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.xH, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17492xH extends C16157lj { @InterfaceC13391fZD public C17492xH(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } public final C0967Sn e(BOR bor) { C14957gcv.e(bor, ""); List list = bor.a; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); Iterator it = list.iterator(); while (it.hasNext()) { WIL wil = (WIL) it.next(); String str = wil.d; int i = wil.b; String str2 = wil.e; String str3 = wil.a; String str4 = wil.c; C14957gcv.e(str3, ""); C14957gcv.e(str4, ""); String a = a(str4, str3); C14957gcv.c((Object) a, ""); List list2 = wil.f; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (lIc lic : list2) { int i2 = lic.h; String str5 = lic.a; String str6 = lic.d; String str7 = lic.b; Iterator it2 = it; String str8 = lic.c; C14957gcv.e(str7, ""); C14957gcv.e(str8, ""); String a2 = a(str8, str7); C14957gcv.c((Object) a2, ""); arrayList2.add(new C0966Sm(i2, str5, str6, a2, lic.e)); it = it2; } arrayList.add(new RV(str, i, str2, a, arrayList2)); it = it; } ArrayList arrayList3 = arrayList; List list3 = bor.b; C14957gcv.e(list3, ""); ArrayList arrayList4 = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it3 = list3.iterator(); while (it3.hasNext()) { arrayList4.add(b((Rtm) it3.next())); } ArrayList arrayList5 = arrayList4; List list4 = bor.e; C14957gcv.e(list4, ""); ArrayList arrayList6 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (Wma wma : list4) { int i3 = wma.c; String str9 = wma.a; String str10 = wma.e; String str11 = wma.d; C14957gcv.e(str10, ""); C14957gcv.e(str11, ""); String a3 = a(str11, str10); C14957gcv.c((Object) a3, ""); arrayList6.add(new RQ(i3, str9, a3, wma.b)); } return new C0967Sn(arrayList3, arrayList5, arrayList6); } public final C0965Sl b(Rtm rtm) { C14957gcv.e(rtm, ""); int i = rtm.j; String str = rtm.a; String str2 = rtm.d; String str3 = rtm.c; C14957gcv.e(str2, ""); C14957gcv.e(str3, ""); String a = a(str3, str2); C14957gcv.c((Object) a, ""); String str4 = rtm.e; String str5 = rtm.i; String str6 = rtm.b; C14957gcv.e(str5, ""); C14957gcv.e(str6, ""); String a2 = a(str6, str5); C14957gcv.c((Object) a2, ""); return new C0965Sl(i, str, a, str4, a2); } }