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.Comparator; import java.util.Iterator; import java.util.List; /* renamed from: o.Dn, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C0299Dn extends BaseAssetsDisplayMapper { /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C0299Dn(Resources resources, SharedPreferences sharedPreferences, String str) { super(resources, sharedPreferences, str); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); C14957gcv.e(str, ""); } public final List d(List list, List list2, boolean z) { List list3 = list2; C14957gcv.e(list, ""); C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(); Iterator it = C14881gav.a((Iterable) list, (Comparator) new Sts()).iterator(); while (it.hasNext()) { C16270mpP c16270mpP = (C16270mpP) it.next(); ArrayList arrayList2 = new ArrayList(); for (Object obj : list3) { if (C14957gcv.b((Object) ((C10195dyG) obj).a, (Object) c16270mpP.d)) { arrayList2.add(obj); } } ArrayList arrayList3 = arrayList2; if (!arrayList3.isEmpty()) { Integer num = c16270mpP.g; String str = c16270mpP.d; String e = C6583cXR.e(c16270mpP.d, z); String str2 = c16270mpP.h; String str3 = c16270mpP.f; String str4 = c16270mpP.c; Double d = c16270mpP.e; Integer num2 = c16270mpP.b; C14957gcv.e(arrayList3, ""); Iterator it2 = it; C10195dyG c10195dyG = (C10195dyG) (arrayList3.isEmpty() ? null : arrayList3.get(0)); String str5 = c10195dyG != null ? c10195dyG.d : null; String str6 = c16270mpP.a; String b_ = b_(c16270mpP.j); String b_2 = b_(c16270mpP.i); C14957gcv.e(arrayList3, ""); C10195dyG c10195dyG2 = (C10195dyG) (arrayList3.isEmpty() ? null : arrayList3.get(0)); arrayList.add(new C1173Xd(num, str, e, str2, str3, str4, d, num2, str5, str6, b_, b_2, c10195dyG2 != null ? Boolean.valueOf(c10195dyG2.b) : null)); it = it2; } list3 = list2; } return arrayList; } /* renamed from: o.Dn$Sts */ /* loaded from: classes3.dex */ public static final class Sts implements Comparator { /* JADX WARN: Multi-variable type inference failed */ @Override // java.util.Comparator public final int compare(T t, T t2) { Integer num = ((C16270mpP) t).g; Integer num2 = ((C16270mpP) t2).g; if (num == num2) { return 0; } if (num == null) { return -1; } if (num2 == null) { return 1; } return num.compareTo(num2); } } }