package o; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.threeten.bp.OffsetDateTime; /* renamed from: o.pye, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16654pye extends ZTC { @InterfaceC13391fZD public C16654pye() { } public final List a(List list, List list2) { PuL b; Object obj; if (list == null) { return new ArrayList(); } List list3 = list; C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (Wqa wqa : list3) { C14957gcv.e(wqa, ""); if (list2 == null || list2.isEmpty()) { b = b(wqa); } else { Iterator it = list2.iterator(); while (true) { if (!it.hasNext()) { obj = null; break; } obj = it.next(); if (C14957gcv.b((Object) wqa.j, (Object) ((Uns) obj).b)) { break; } } Uns uns = (Uns) obj; if (uns != null) { C14957gcv.e(wqa, ""); b = new PuL(); b.e = uns != null ? uns.c : 0; b.i = wqa.j; b.f = uns != null ? uns.g : 0.0d; b.k = wqa.f; b.b = wqa.e; JZY jzy = wqa.b; b.h = jzy != null ? jzy.d : null; b.j = uns != null ? uns.e : null; b.c = wqa.a; pOH poh = uns != null ? uns.a : null; C16955siY c16955siY = new C16955siY(); c16955siY.a = poh != null ? poh.d : null; c16955siY.j = poh != null ? poh.f : null; c16955siY.c = poh != null ? poh.c : null; c16955siY.e = poh != null ? poh.a : null; c16955siY.b = poh != null ? poh.e : null; c16955siY.d = poh != null ? poh.b : null; b.d = c16955siY; C0986Tas c0986Tas = uns != null ? uns.d : null; GLt gLt = new GLt(); gLt.e = c0986Tas != null ? c0986Tas.d : 0; gLt.d = b(c0986Tas != null ? c0986Tas.b : null, new InterfaceC1244Ytw(this) { // from class: o.UWA private C16654pye e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { C12272evA c12272evA = (C12272evA) obj2; rsn rsnVar = new rsn(); rsnVar.i = c12272evA != null ? c12272evA.f : null; rsnVar.b = c12272evA != null ? c12272evA.b : null; rsnVar.h = (OffsetDateTime) ZTC.e(new Object[]{c12272evA != null ? c12272evA.i : null, null}, 267499366, -267499366, (int) System.currentTimeMillis()); Double c = C16654pye.c(c12272evA != null ? c12272evA.a : null); C14957gcv.c(c, ""); rsnVar.c = c.doubleValue(); rsnVar.f = c12272evA != null ? c12272evA.j : null; rsnVar.a = c12272evA != null ? c12272evA.d : null; rsnVar.e = c12272evA != null ? c12272evA.c : null; rsnVar.d = c12272evA != null ? c12272evA.e : null; rsnVar.j = c12272evA != null ? c12272evA.h : null; rsnVar.g = c12272evA != null ? c12272evA.g : null; return rsnVar; } { this.e = this; } }); b.g = gLt; b.a = true; } else { b = b(wqa); } } arrayList.add(b); } return arrayList; } private static PuL b(Wqa wqa) { PuL puL = new PuL(); puL.i = wqa.j; puL.f = 0.0d; puL.k = wqa.f; puL.b = wqa.e; JZY jzy = wqa.b; puL.h = jzy != null ? jzy.d : null; puL.j = null; puL.c = wqa.a; return puL; } }