package o; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class KXi extends ZTC { public final C1886aRC a; public final qyw b; @InterfaceC13391fZD public KXi(C1886aRC c1886aRC, qyw qywVar) { C14957gcv.e(c1886aRC, ""); C14957gcv.e(qywVar, ""); this.a = c1886aRC; this.b = qywVar; } public static List b(List list) { ArrayList arrayList; Boolean bool; if (list == null) { return null; } List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (xdk xdkVar : list2) { String str = xdkVar != null ? xdkVar.e : null; String str2 = xdkVar != null ? xdkVar.c : null; String str3 = xdkVar != null ? xdkVar.h : null; OffsetDateTime a = C2974aoj.a(xdkVar != null ? xdkVar.i : null, null); boolean booleanValue = (xdkVar == null || (bool = xdkVar.d) == null) ? false : bool.booleanValue(); String str4 = xdkVar != null ? xdkVar.b : null; List list3 = xdkVar != null ? xdkVar.a : null; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList3 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (vsi vsiVar : list4) { arrayList3.add(new ysd(vsiVar != null ? vsiVar.e : null)); } arrayList = arrayList3; } else { arrayList = null; } arrayList2.add(new OZD(str, str2, str3, a, booleanValue, str4, arrayList)); } return arrayList2; } }