package o; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class SIz extends ZTC { @InterfaceC13391fZD public SIz() { } public static C15816ioh a(NFW nfw) { String str; C14851gaI c14851gaI; String str2; String str3; C14957gcv.e(nfw, ""); String str4 = nfw.c; if (str4 == null) { str4 = ""; } String str5 = nfw.b; if (str5 == null) { str5 = ""; } String str6 = nfw.e; if (str6 == null) { str6 = ""; } List list = nfw.a; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { RPt rPt = (RPt) it.next(); OffsetDateTime a = a(rPt.f); OffsetDateTime a2 = a(rPt.g); String str7 = rPt.j; String str8 = rPt.i; String str9 = rPt.h; String str10 = rPt.d; String str11 = rPt.e; String str12 = rPt.m; String str13 = rPt.a; String str14 = rPt.b; Iterator it2 = it; BGr bGr = rPt.c; String str15 = bGr != null ? bGr.a : null; BGr bGr2 = rPt.c; if (bGr2 != null) { str3 = bGr2.c; str2 = str4; } else { str2 = str4; str3 = null; } arrayList.add(new Cpk(a, a2, str7, str8, str9, str10, str11, str12, str13, str14, new C15598gwj(str15, str3))); it = it2; str4 = str2; } str = str4; c14851gaI = arrayList; } else { str = str4; c14851gaI = C14851gaI.c; } return new C15816ioh(str, str5, str6, c14851gaI); } }