package com.scb.phone.view.fragment.ebillsubscription; import android.graphics.ImageFormat; import android.graphics.PointF; import android.media.AudioTrack; import android.net.Uri; import android.os.Process; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import butterknife.BindView; import butterknife.ButterKnife; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.pingan.ai.p; import com.scb.phone.R; import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource; import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget; import com.scb.phone.view.fragment.BaseFragment; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISOFileInfo; import o.C1189Xo; import o.C1193Xr; import o.C6583cXR; import o.Nhs; import o.xzZ; /* loaded from: classes5.dex */ public class BaseEBillSubscriptionReviewFragment extends BaseFragment { @BindView CustomTransferAndPaySource sourceDetail; @BindView CustomTransferAndPayTarget targetDetail; private static final byte[] $$a = {88, ISOFileInfo.FCI_EXT, 86, 9}; private static final int $$b = 93; private static int $10 = 0; private static int $11 = 1; private static int j = 0; private static int f = 1; private static long d = 9051040786702654117L; private static int c = -1527208269; private static char h = 55973; /* JADX WARN: Removed duplicated region for block: B:10:0x0025 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001d */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x002a). Please report as a decompilation issue!!! */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void n(short r7, int r8, byte r9, java.lang.Object[] r10) { /* int r9 = r9 * 3 int r9 = 4 - r9 byte[] r0 = com.scb.phone.view.fragment.ebillsubscription.BaseEBillSubscriptionReviewFragment.$$a int r8 = r8 + 114 int r7 = r7 * 2 int r7 = r7 + 1 byte[] r1 = new byte[r7] r2 = 0 if (r0 != 0) goto L15 r8 = r7 r3 = r9 r5 = r2 goto L2a L15: r3 = r2 L16: byte r4 = (byte) r8 int r5 = r3 + 1 r1[r3] = r4 if (r5 != r7) goto L25 java.lang.String r7 = new java.lang.String r7.(r1, r2) r10[r2] = r7 return L25: r3 = r0[r9] r6 = r3 r3 = r9 r9 = r6 L2a: int r9 = -r9 int r8 = r8 + r9 int r9 = r3 + 1 r3 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.ebillsubscription.BaseEBillSubscriptionReviewFragment.n(short, int, byte, java.lang.Object[]):void"); } /* JADX INFO: Access modifiers changed from: protected */ public final void d(C1189Xo c1189Xo, C1193Xr c1193Xr, View view) { int i = 2 % 2; int i2 = f + 109; j = i2 % 128; int i3 = i2 % 2; ButterKnife.c(this, view); b(c1189Xo); a(c1193Xr); int i4 = j + 57; f = i4 % 128; int i5 = i4 % 2; } private void b(C1189Xo c1189Xo) { int i = 2 % 2; this.sourceDetail.setText(getString(R.string.promptpay_id)); if (!(!TextUtils.equals("MOB", c1189Xo.Y))) { int i2 = j + 75; f = i2 % 128; if (i2 % 2 == 0) { this.sourceDetail.setAvatar(C6583cXR.VS_(getContext(), R.drawable.icon_prompt_pay_mobile).toString()); int i3 = 50 / 0; } else { this.sourceDetail.setAvatar(C6583cXR.VS_(getContext(), R.drawable.icon_prompt_pay_mobile).toString()); } } else if (TextUtils.equals("CID", c1189Xo.Y)) { int i4 = j + 101; f = i4 % 128; if (i4 % 2 == 0) { this.sourceDetail.setAvatar(C6583cXR.VS_(getContext(), R.drawable.icon_prompt_pay_cid).toString()); int i5 = 66 / 0; } else { this.sourceDetail.setAvatar(C6583cXR.VS_(getContext(), R.drawable.icon_prompt_pay_cid).toString()); } } this.sourceDetail.tvSourceAccount.setVisibility(8); this.sourceDetail.setSourceName(C6583cXR.c(c1189Xo.Y, c1189Xo.U)); } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ private void a(C1193Xr c1193Xr) { int i = 2 % 2; this.targetDetail.setText(getString(R.string.billers_detail)); this.targetDetail.setTargetName(c1193Xr.e()); this.targetDetail.setReferenceNumbers(c1193Xr.h); if (c1193Xr.c() == null || Uri.EMPTY.toString().equals(c1193Xr.c())) { this.targetDetail.setAvatar(C6583cXR.VS_(getContext(), R.drawable.bankicon_scb).toString()); int i2 = j + 123; f = i2 % 128; int i3 = i2 % 2; } else { int i4 = f + 39; j = i4 % 128; int i5 = i4 % 2; this.targetDetail.setAvatar(c1193Xr.c()); } String str = c1193Xr.P; str.hashCode(); char c2 = 0; switch (str.hashCode()) { case 1537: Object[] objArr = new Object[1]; m((char) ((AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 46704), MotionEvent.axisFromString("") + 1, new char[]{29463, 8367, 28858, 4022}, new char[]{10313, 18909}, new char[]{0, 0, 0, 0}, objArr); if (str.equals(((String) objArr[0]).intern())) { int i6 = j + 3; int i7 = i6 % 128; f = i7; int i8 = i6 % 2; int i9 = i7 + 73; j = i9 % 128; int i10 = i9 % 2; break; } c2 = 65535; break; case 1538: Object[] objArr2 = new Object[1]; m((char) (TextUtils.getTrimmedLength("") + 33421), ViewConfiguration.getScrollBarSize() >> 8, new char[]{47152, 44505, 36131, 13442}, new char[]{22607, 32954}, new char[]{0, 0, 0, 0}, objArr2); if (str.equals(((String) objArr2[0]).intern())) { int i11 = f + 43; j = i11 % 128; int i12 = i11 % 2; c2 = 1; break; } c2 = 65535; break; case 1539: Object[] objArr3 = new Object[1]; m((char) (TextUtils.indexOf("", "", 0, 0) + 44204), ViewConfiguration.getTapTimeout() >> 16, new char[]{26852, 56472, 44033, 11436}, new char[]{30664, 4763}, new char[]{0, 0, 0, 0}, objArr3); if (str.equals(((String) objArr3[0]).intern())) { c2 = 2; break; } c2 = 65535; break; default: c2 = 65535; break; } if (c2 == 0) { this.targetDetail.setReferenceNo1(getString(R.string.ebill_selected_reference, c1193Xr.F, c1193Xr.K)); int i13 = j + 59; f = i13 % 128; if (i13 % 2 != 0) { return; } Object obj = null; obj.hashCode(); throw null; } if (c2 == 1) { this.targetDetail.setReferenceNo1(getString(R.string.ebill_selected_reference, c1193Xr.F, c1193Xr.K)); this.targetDetail.setReferenceNo2(getString(R.string.ebill_selected_reference, c1193Xr.M, c1193Xr.J)); } else { if (c2 != 2) { return; } this.targetDetail.setReferenceNo1(getString(R.string.ebill_selected_reference, c1193Xr.F, c1193Xr.K)); this.targetDetail.setReferenceNo2(getString(R.string.ebill_selected_reference, c1193Xr.M, c1193Xr.J)); this.targetDetail.setReferenceNo3(getString(R.string.ebill_selected_reference, c1193Xr.L, c1193Xr.N)); } } private static void m(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) { int i2; int i3 = 2; int i4 = 2 % 2; Nhs nhs = new Nhs(); int length = cArr.length; char[] cArr4 = new char[length]; int length2 = cArr3.length; char[] cArr5 = new char[length2]; System.arraycopy(cArr, 0, cArr4, 0, length); System.arraycopy(cArr3, 0, cArr5, 0, length2); cArr4[0] = (char) (cArr4[0] ^ c2); cArr5[2] = (char) (cArr5[2] + ((char) i)); int length3 = cArr2.length; char[] cArr6 = new char[length3]; nhs.a = 0; int i5 = $10 + 79; $11 = i5 % 128; int i6 = i5 % 2; while (nhs.a < length3) { int i7 = $11 + 41; $10 = i7 % 128; int i8 = i7 % i3; try { Object[] objArr2 = {nhs}; Object obj = xzZ.y.get(263693715); if (obj == null) { obj = ((Class) xzZ.c((TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 45, TextUtils.lastIndexOf("", '0', 0) + 6, (char) View.resolveSize(0, 0))).getMethod("t", Object.class); xzZ.y.put(263693715, obj); } int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue(); Object[] objArr3 = {nhs}; Object obj2 = xzZ.y.get(-484664112); if (obj2 == null) { Class cls = (Class) xzZ.c(351 - ImageFormat.getBitsPerPixel(0), ExpandableListView.getPackedPositionGroup(0L) + 5, (char) (Process.getGidForName("") + 52129)); byte b = (byte) 0; byte b2 = (byte) (b + 1); Object[] objArr4 = new Object[1]; n(b, b2, (byte) (b2 - 1), objArr4); obj2 = cls.getMethod((String) objArr4[0], Object.class); xzZ.y.put(-484664112, obj2); } int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue(); Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj3 = xzZ.y.get(430099516); if (obj3 == null) { obj3 = ((Class) xzZ.c(((Process.getThreadPriority(0) + 20) >> 6) + 748, (KeyEvent.getMaxKeyCode() >> 16) + 5, (char) ExpandableListView.getPackedPositionType(0L))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE); xzZ.y.put(430099516, obj3); } ((Method) obj3).invoke(null, objArr5); Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])}; Object obj4 = xzZ.y.get(1019894806); if (obj4 != null) { i2 = 2; } else { Class cls2 = (Class) xzZ.c(402 - (ViewConfiguration.getScrollBarFadeDuration() >> 16), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) ((PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 21608)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr7 = new Object[1]; n(b3, b4, b4, objArr7); i2 = 2; obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(1019894806, obj4); } cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue(); cArr4[intValue2] = nhs.c; cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (d ^ 9051040786702654117L)) ^ ((int) (c ^ 9051040786702654117L))) ^ ((char) (h ^ 9051040786702654117L))); nhs.a++; i3 = i2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } objArr[0] = new String(cArr6); } }