package o; import android.content.SharedPreferences; import android.content.res.Resources; import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.List; /* renamed from: o.sL, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16909sL extends BaseAssetsDisplayMapper { /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16909sL(Resources resources, SharedPreferences sharedPreferences, String str) { super(resources, sharedPreferences, str); C14957gcv.e(str, ""); } /* renamed from: o.sL$LWm */ /* loaded from: classes3.dex */ public static final class LWm implements Comparator { /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Comparator public final int compare(T t, T t2) { Integer valueOf = Integer.valueOf(((C0714Mx) t).j); Integer valueOf2 = Integer.valueOf(((C0714Mx) t2).j); if (valueOf == valueOf2) { return 0; } if (valueOf == null) { return -1; } if (valueOf2 == null) { return 1; } return valueOf.compareTo(valueOf2); } } public final C0697Mm a(MkB mkB) { String str = ""; C14957gcv.e(mkB, ""); String str2 = mkB.e; String str3 = mkB.b; String str4 = mkB.a; String b_ = b_(mkB.d); C14957gcv.c((Object) b_, ""); List list = mkB.c; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); Iterator it = list.iterator(); while (it.hasNext()) { C0272CuS c0272CuS = (C0272CuS) it.next(); String str5 = c0272CuS.i; String str6 = c0272CuS.j; int i = c0272CuS.h; String str7 = c0272CuS.c; int i2 = c0272CuS.e; int i3 = c0272CuS.a; int i4 = c0272CuS.d; List list2 = c0272CuS.b; Iterator it2 = it; C14957gcv.e(list2, str); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it3 = list2.iterator(); while (it3.hasNext()) { Ocq ocq = (Ocq) it3.next(); Iterator it4 = it3; String str8 = ocq.b; List list3 = ocq.d; int i5 = i3; C14957gcv.e(list3, str); String str9 = str; ArrayList arrayList3 = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (Iterator it5 = list3.iterator(); it5.hasNext(); it5 = it5) { arrayList3.add(new C0705Ms(((mCN) it5.next()).c)); } arrayList2.add(new C0713Mw(str8, arrayList3)); it3 = it4; i3 = i5; str = str9; } arrayList.add(new C0714Mx(str5, str6, i, str7, i2, i3, i4, arrayList2)); it = it2; str = str; } return new C0697Mm(str2, str3, str4, b_, C14881gav.a((Iterable) arrayList, (Comparator) new LWm())); } }