package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.util.Base64; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; import o.C15715hv; import o.UU; import o.UX; /* loaded from: classes3.dex */ public final class AN extends AH> { private static int a = 1; private static int b = 0; private static byte d = 6; private void n(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ d); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } @InterfaceC13391fZD public AN(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); } /* JADX WARN: Code restructure failed: missing block: B:40:0x0056, code lost: if (r17.h.b != false) goto L9; */ /* JADX WARN: Removed duplicated region for block: B:10:0x005c */ /* JADX WARN: Removed duplicated region for block: B:13:0x0068 */ /* JADX WARN: Removed duplicated region for block: B:16:0x00d8 */ /* JADX WARN: Removed duplicated region for block: B:27:0x0122 */ /* JADX WARN: Removed duplicated region for block: B:30:0x013c */ /* JADX WARN: Removed duplicated region for block: B:33:0x0160 */ /* JADX WARN: Removed duplicated region for block: B:38:0x012e */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.util.List e(o.C7968cyO r17, final boolean r18, boolean r19) { /* Method dump skipped, instructions count: 445 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.AN.e(o.cyO, boolean, boolean):java.util.List"); } private static List e(String str, List list) { ArrayList arrayList = new ArrayList(); if (list != null && !list.isEmpty()) { list.get(list.size() - 1).r = true; UX.IeS b2 = UX.b(); b2.a = str; b2.i = 1; arrayList.add(new UX(b2, (byte) 0)); arrayList.addAll(list); } return arrayList; } /* JADX WARN: Code restructure failed: missing block: B:10:0x004b, code lost: r2 = new java.lang.Object[1]; n(r5.substring(4), r2); r5 = ((java.lang.String) r2[0]).intern(); */ /* JADX WARN: Code restructure failed: missing block: B:11:0x005d, code lost: r1 = new java.lang.Object[1]; n(r5.substring(4), r1); ((java.lang.String) r1[0]).intern(); r0 = null; r0.hashCode(); */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0071, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x003d, code lost: if (r5.startsWith(",*,)") != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0026, code lost: if (r5.startsWith(",*,)") != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x003f, code lost: r2 = o.AN.b + 41; o.AN.a = r2 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0049, code lost: if ((r2 % 2) == 0) goto L12; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private o.UV g() { /* r7 = this; r0 = 2 int r1 = r0 % r0 int r1 = o.AN.b int r1 = r1 + 7 int r2 = r1 % 128 o.AN.a = r2 int r1 = r1 % r0 java.lang.String r2 = ",*,)" r3 = 0 r4 = 1 if (r1 != 0) goto L29 o.UU$IeS r1 = o.UU.d() r5 = 9 r1.q = r5 android.content.res.Resources r5 = r7.e int r6 = o.C15715hv.tOB.account_management_scbs_label java.lang.String r5 = r5.getString(r6) boolean r2 = r5.startsWith(r2) if (r2 == 0) goto L72 goto L3f L29: o.UU$IeS r1 = o.UU.d() r5 = 12 r1.q = r5 android.content.res.Resources r5 = r7.e int r6 = o.C15715hv.tOB.account_management_scbs_label java.lang.String r5 = r5.getString(r6) boolean r2 = r5.startsWith(r2) if (r2 == 0) goto L72 L3f: int r2 = o.AN.b int r2 = r2 + 41 int r6 = r2 % 128 o.AN.a = r6 int r2 = r2 % r0 r0 = 4 if (r2 == 0) goto L5d java.lang.String r0 = r5.substring(r0) java.lang.Object[] r2 = new java.lang.Object[r4] r7.n(r0, r2) r0 = r2[r3] java.lang.String r0 = (java.lang.String) r0 java.lang.String r5 = r0.intern() goto L72 L5d: java.lang.String r0 = r5.substring(r0) java.lang.Object[] r1 = new java.lang.Object[r4] r7.n(r0, r1) r0 = r1[r3] java.lang.String r0 = (java.lang.String) r0 r0.intern() r0 = 0 r0.hashCode() throw r0 L72: r1.e = r5 r1.g = r4 o.UU r0 = new o.UU r0.(r1, r3) return r0 */ throw new UnsupportedOperationException("Method not decompiled: o.AN.g():o.UV"); } private static List c(List list, boolean z) { ArrayList arrayList = new ArrayList(); ArrayList arrayList2 = new ArrayList(); for (hAo hao : list) { if ("CDX".equals(hao.f) && "CARDX".equals(hao.g)) { arrayList2.add(hao); } else { arrayList.add(hao); } } return z ? arrayList2 : arrayList; } public static /* synthetic */ UV c(AeX aeX) { UU.IeS d2 = UU.d(); d2.q = 4; String str = aeX.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = aeX.a.d; d2.n = (String) C6583cXR.c(new Object[]{aeX.d}, -1613428710, 1613428726, (int) System.currentTimeMillis()); d2.d = aeX.d; return new UU(d2, (byte) 0); } public static /* synthetic */ UV a(boolean z, JNE jne) { UU.IeS d2 = UU.d(); d2.q = 2; String str = jne.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = jne.b.d; d2.n = C6583cXR.b(jne.a, z); d2.d = jne.a; return new UU(d2, (byte) 0); } public static /* synthetic */ UV c(idH idh) { UU.IeS d2 = UU.d(); d2.q = 14; String str = idh.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = idh.j.d; d2.n = C6583cXR.d(idh.a, idh.d); d2.d = idh.a; return new UU(d2, (byte) 0); } public static /* synthetic */ UV e(AN an, Yms yms) { String d2 = C6583cXR.d(yms.b, (String) null); UU.IeS d3 = UU.d(); d3.q = 15; String str = yms.d; if (str == null || str.isEmpty()) { str = ""; } d3.b = str; d3.e = an.e(C15715hv.tOB.account_management_product_type); d3.d = yms.a; d3.n = d2; return new UU(d3, (byte) 0); } /* JADX INFO: Access modifiers changed from: private */ public static UV c(QBA qba, boolean z) { String b2; if ("1001".equals(qba.b.b)) { b2 = C6583cXR.e(qba.a, z); } else { b2 = C6583cXR.b(qba.a, z); } UU.IeS d2 = UU.d(); d2.q = 5; String str = qba.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = qba.b.d; d2.n = b2; d2.d = qba.a; return new UU(d2, (byte) 0); } public static /* synthetic */ UV c(hAo hao) { UU.IeS d2 = UU.d(); d2.q = 3; String str = hao.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = hao.b.d; d2.n = C6583cXR.d(hao.j, hao.a); d2.d = hao.j; return new UU(d2, (byte) 0); } public static /* synthetic */ UV a(Wqa wqa) { UU.IeS d2 = UU.d(); d2.q = 7; String str = wqa.e; if (str == null || str.isEmpty()) { str = ""; } d2.b = str; d2.e = wqa.b.d; d2.n = wqa.j; d2.d = wqa.j; return new UU(d2, (byte) 0); } }