package o; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import o.TPf; import o.lMw; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class icz extends ZTC { @InterfaceC13391fZD public icz() { } public static TPf d(lMw lmw) { String str; C15890jRd c15890jRd; ArrayList arrayList; C14957gcv.e(lmw, ""); if (lmw.e == null || lmw.b == null || lmw.a == null || lmw.g == null || lmw.d == null) { return null; } lMw.LWm lWm = lmw.e; TPf.RVV rvv = new TPf.RVV(lWm.j, lWm.e, lWm.g, lWm.n, lWm.h, lWm.b, lWm.c, lWm.i, lWm.a, lWm.d, lWm.f); C15747iJN c15747iJN = lmw.b; C15890jRd c15890jRd2 = new C15890jRd(c15747iJN.d, c15747iJN.b); String str2 = lmw.a; List list = lmw.f; if (list == null) { str = str2; c15890jRd = c15890jRd2; arrayList = null; } else { ArrayList arrayList2 = new ArrayList(); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (lMw.IeS ieS : list2) { ArrayList arrayList4 = arrayList2; arrayList3.add(Boolean.valueOf(arrayList4.add(new TPf.IeS(ieS.i, ZTC.b(ieS.c, (OffsetDateTime) null), ieS.a, ieS.b, ieS.e, ZTC.b(ieS.d, (OffsetDateTime) null), ieS.h, ieS.f)))); arrayList2 = arrayList4; c15890jRd2 = c15890jRd2; str2 = str2; } str = str2; c15890jRd = c15890jRd2; arrayList = arrayList2; } String str3 = lmw.g; List list3 = lmw.d; C14957gcv.e(list3, ""); ArrayList arrayList5 = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it = list3.iterator(); while (it.hasNext()) { arrayList5.add(((BxK) it.next()).b); } return new TPf(rvv, c15890jRd, str, arrayList, str3, arrayList5); } }