package o; import android.content.SharedPreferences; import android.content.res.Resources; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.List; import o.C17281vW; /* renamed from: o.vS, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C17273vS extends C16157lj { private final C17281vW d; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C17273vS(Resources resources, SharedPreferences sharedPreferences, C17281vW c17281vW) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); C14957gcv.e(c17281vW, ""); this.d = c17281vW; } public final C0893Qx b(List list, boolean z) { C14957gcv.e(list, ""); C17281vW c17281vW = this.d; C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { C14569fvg c14569fvg = (C14569fvg) it.next(); int i = c14569fvg.a; List a = C14881gav.a((Iterable) c14569fvg.e, (Comparator) new C17281vW.HBt()); C14957gcv.e(a, ""); ArrayList arrayList2 = new ArrayList(a instanceof Collection ? a.size() : 10); for (WLx wLx : a) { C17276vT c17276vT = c17281vW.a; C14957gcv.e(wLx, ""); String b = c17276vT.b(wLx.d, wLx.e, z); String b2 = c17276vT.b(wLx.d, wLx.b, z); List list3 = wLx.c; C17272vR c17272vR = c17276vT.a; C14957gcv.e(list3, ""); ArrayList arrayList3 = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (slh slhVar : list3) { C14957gcv.e(slhVar, ""); arrayList3.add(new C0889Qv(slhVar.d, slhVar.c, slhVar.a)); it = it; } arrayList2.add(new C0884Qt(b, b2, arrayList3)); it = it; } arrayList.add(new QC(i, arrayList2)); it = it; } return new C0893Qx(arrayList); } }