package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* renamed from: o.nn */ /* loaded from: classes3.dex */ public final class C16371nn extends C16157lj { /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16371nn(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } private static List a(List list) { ArrayList arrayList; String str; String str2; Double valueOf; String str3; String str4; String str5; String str6; Double d; Double d2; Double d3; if (list != null) { List list2 = list; String str7 = ""; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { YFu yFu = (YFu) it.next(); List list3 = yFu.a; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, str7); ArrayList arrayList3 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (C17352vyp c17352vyp : list4) { GH gh = new GH((byte) 0); YOF yof = c17352vyp.e; C0448Gt c0448Gt = new C0448Gt((byte) 0); c0448Gt.d = (yof == null || (d3 = yof.b) == null) ? 0.0d : d3.doubleValue(); c0448Gt.c = (yof == null || (d2 = yof.a) == null) ? 0.0d : d2.doubleValue(); c0448Gt.a = (yof == null || (d = yof.c) == null) ? 0.0d : d.doubleValue(); gh.d = c0448Gt; QhH qhH = c17352vyp.c; C0421Gf c0421Gf = new C0421Gf((byte) 0); if (qhH == null || (str = qhH.b) == null) { str = str7; } c0421Gf.e = str; if (qhH == null || (str2 = qhH.f) == null) { str2 = str7; } c0421Gf.i = str2; if (qhH == null || (valueOf = qhH.g) == null) { valueOf = Double.valueOf(0.0d); } c0421Gf.h = valueOf; if (qhH == null || (str3 = qhH.d) == null) { str3 = str7; } c0421Gf.b = str3; if (qhH == null || (str4 = qhH.e) == null) { str4 = str7; } c0421Gf.d = str4; if (qhH == null || (str5 = qhH.a) == null) { str5 = str7; } c0421Gf.a = str5; if (qhH == null || (str6 = qhH.c) == null) { str6 = str7; } c0421Gf.c = str6; gh.c = c0421Gf; arrayList3.add(gh); } arrayList = arrayList3; } else { arrayList = new ArrayList(); } ArrayList arrayList4 = arrayList; CoP coP = yFu.e; String str8 = null; String str9 = coP != null ? coP.d : null; String str10 = coP != null ? coP.e : null; if (coP != null) { str8 = coP.b; } arrayList2.add(new C0444Gs(arrayList4, new C0456Gz(str9, str10, str8), yFu.k, yFu.g, yFu.n, yFu.l, yFu.f9155o, yFu.j, yFu.h, yFu.t, yFu.f)); it = it; str7 = str7; } return arrayList2; } return C14851gaI.c; } public final C0437Go d(List list, GC gc, C0693Mj c0693Mj) { C14957gcv.e(gc, ""); int size = gc.a.size(); String str = (String) C6583cXR.c(new Object[]{Double.valueOf(gc.d)}, -150997759, 150997764, (int) System.currentTimeMillis()); C14957gcv.c((Object) str, ""); return new C0437Go(size, str, a(list), c0693Mj != null ? new C0440Gq(c0693Mj.d, c0693Mj.c) : null); } }