package com.scb.phone.view.fragment.easycash; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.PointF; import android.os.Bundle; 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.Button; import android.widget.ExpandableListView; import butterknife.BindView; import butterknife.ButterKnife; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.scb.phone.R; import com.scb.phone.view.custom.common.CustomTwoPicker; import com.scb.phone.view.fragment.easycash.DurationEmploymentDialog; import net.sf.scuba.smartcards.ISO7816; import o.C10393eCt; import o.C14875gap; import o.C14957gcv; import o.InterfaceC10336eBR; import o.eCC; /* loaded from: classes5.dex */ public final class DurationEmploymentDialog extends Dialog implements InterfaceC10336eBR, DialogInterface.OnShowListener { private static char[] f; private static long g; private static int h; private final eCC a; private LWm b; private String c; private String d; private final eCC e; @BindView public Button positiveButton; @BindView public CustomTwoPicker twoPickerView; private static final byte[] $$a = {63, 15, ISO7816.INS_GET_DATA, 59}; private static final int $$b = 56; private static int $10 = 0; private static int $11 = 1; private static int j = 0; /* loaded from: classes5.dex */ public interface LWm { void c(String str, String str2); } public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) { int i4 = (i * (-665)) + (i2 * 334); int i5 = ~i; int i6 = ~i3; int i7 = i4 + (i5 * (-333)) + (((~(i5 | i6)) | (~(i2 | i3))) * 333) + (((~(i5 | i3)) | (~(i2 | i6))) * 333); if (i7 != 1) { return i7 != 2 ? i7 != 3 ? e(objArr) : c(objArr) : d(objArr); } DurationEmploymentDialog durationEmploymentDialog = (DurationEmploymentDialog) objArr[0]; int i8 = 2 % 2; int i9 = h + 29; j = i9 % 128; int i10 = i9 % 2; durationEmploymentDialog.b(); int i11 = h + 35; j = i11 % 128; int i12 = i11 % 2; return null; } /* JADX WARN: Removed duplicated region for block: B:10:0x0023 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001b */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x002c). 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 l(byte r6, int r7, short r8, java.lang.Object[] r9) { /* byte[] r0 = com.scb.phone.view.fragment.easycash.DurationEmploymentDialog.$$a int r8 = 106 - r8 int r7 = r7 * 4 int r1 = r7 + 1 int r6 = r6 * 2 int r6 = 4 - r6 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L15 r3 = r8 r4 = r2 r8 = r6 goto L2c L15: r3 = r2 L16: byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r7) goto L23 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L23: int r3 = r3 + 1 r4 = r0[r6] r5 = r8 r8 = r6 r6 = r4 r4 = r3 r3 = r5 L2c: int r6 = r6 + r3 int r8 = r8 + 1 r3 = r4 r5 = r8 r8 = r6 r6 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.easycash.DurationEmploymentDialog.l(byte, int, short, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public DurationEmploymentDialog(Context context) { super(context); C14957gcv.e(context, ""); Object[] objArr = new Object[1]; k((char) (Process.myTid() >> 22), (-1) - TextUtils.lastIndexOf("", '0'), 1 - Color.red(0), objArr); String intern = ((String) objArr[0]).intern(); Object[] objArr2 = new Object[1]; k((char) (ViewConfiguration.getEdgeSlop() >> 16), (ViewConfiguration.getTouchSlop() >> 8) + 1, KeyEvent.keyCodeFromString("") + 1, objArr2); String intern2 = ((String) objArr2[0]).intern(); Object[] objArr3 = new Object[1]; k((char) ((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 17185), (KeyEvent.getMaxKeyCode() >> 16) + 2, 1 - (ViewConfiguration.getPressedStateDuration() >> 16), objArr3); String[] strArr = {"-", intern, intern2, ((String) objArr3[0]).intern(), "3", "4", "5", "6", "7", "8", "9", "10", ">10"}; String string = context.getString(R.string.auto_scbone_occupation_picker_column_year_title); C14957gcv.c((Object) string, ""); this.a = new eCC("YEAR", strArr, string); Object[] objArr4 = new Object[1]; k((char) (ViewConfiguration.getScrollBarFadeDuration() >> 16), Process.myTid() >> 22, View.combineMeasuredStates(0, 0) + 1, objArr4); String intern3 = ((String) objArr4[0]).intern(); Object[] objArr5 = new Object[1]; k((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)), TextUtils.getCapsMode("", 0, 0) + 1, -TextUtils.indexOf((CharSequence) "", '0'), objArr5); String intern4 = ((String) objArr5[0]).intern(); Object[] objArr6 = new Object[1]; k((char) ((ViewConfiguration.getScrollBarSize() >> 8) + 17185), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 2, -ExpandableListView.getPackedPositionChild(0L), objArr6); String[] strArr2 = {"-", intern3, intern4, ((String) objArr6[0]).intern(), "3", "4", "5", "6", "7", "8", "9", "10", "11"}; String string2 = context.getString(R.string.auto_scbone_occupation_picker_column_month_title); C14957gcv.c((Object) string2, ""); this.e = new eCC("MONTH", strArr2, string2); this.d = "-"; this.c = "-"; } private CustomTwoPicker i() { int i = 2 % 2; CustomTwoPicker customTwoPicker = this.twoPickerView; if (customTwoPicker != null) { int i2 = h + 103; j = i2 % 128; int i3 = i2 % 2; return customTwoPicker; } C14957gcv.a(""); int i4 = h + 29; j = i4 % 128; int i5 = i4 % 2; return null; } private Button asc_() { int i = 2 % 2; int i2 = h + 69; j = i2 % 128; int i3 = i2 % 2; Button button = this.positiveButton; if (button != null) { return button; } C14957gcv.a(""); int i4 = h + 43; j = i4 % 128; if (i4 % 2 == 0) { return null; } throw null; } /* loaded from: classes5.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } @Override // android.app.Dialog protected final void onCreate(Bundle bundle) { int i = 2 % 2; int i2 = j + 123; h = i2 % 128; int i3 = i2 % 2; super.onCreate(bundle); setContentView(R.layout.2131559414); ButterKnife.Dh_(this); c(); setOnShowListener(this); int i4 = h + 57; j = i4 % 128; int i5 = i4 % 2; } private final void b() { int i = 2 % 2; int i2 = h + 59; j = i2 % 128; int i3 = i2 % 2; CustomTwoPicker i4 = i(); i4.c(this.a, this.e); i4.setOnSelectedLister(this); boolean z = false; Object obj = null; CustomTwoPicker.setSelected$default(i4, 0, null, 2, null); String str = this.d; if (str == null || str.length() == 0 || !C14957gcv.b((Object) this.d, (Object) "11")) { String str2 = this.d; if (str2 != null) { int i5 = h + 17; j = i5 % 128; int i6 = i5 % 2; if (str2.length() != 0) { int d = C14875gap.d(this.a.c, this.d); c(new Object[]{this, Integer.valueOf(d)}, 726472310, -726472308, d); } } } else { int i7 = h + 89; j = i7 % 128; if (i7 % 2 != 0) { String[] strArr = this.a.c; C14957gcv.e(strArr, ""); int length = strArr.length; c(new Object[]{this, Integer.valueOf(length)}, 726472310, -726472308, length); } else { String[] strArr2 = this.a.c; C14957gcv.e(strArr2, ""); z = true; int length2 = strArr2.length - 1; c(new Object[]{this, Integer.valueOf(length2)}, 726472310, -726472308, length2); } e(z); } String str3 = this.c; if (str3 != null) { int i8 = h + 69; j = i8 % 128; if (i8 % 2 != 0) { str3.length(); obj.hashCode(); throw null; } if (str3.length() != 0) { a(C14875gap.d(this.e.c, this.c)); } } } /* JADX WARN: Removed duplicated region for block: B:28:0x0286 */ /* JADX WARN: Removed duplicated region for block: B:30:0x0287 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void k(char r20, int r21, int r22, java.lang.Object[] r23) { /* Method dump skipped, instructions count: 656 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.easycash.DurationEmploymentDialog.k(char, int, int, java.lang.Object[]):void"); } @Override // o.InterfaceC10336eBR public final void b(C10393eCt c10393eCt) { int i = 2 % 2; C14957gcv.e(c10393eCt, ""); this.d = c10393eCt.e; if (d() && e()) { int i2 = j + 91; h = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; k((char) (ImageFormat.getBitsPerPixel(0) + 1), 1 - View.combineMeasuredStates(0, 0), View.getDefaultSize(0, 0) + 1, objArr); this.c = ((String) objArr[0]).intern(); a(2); int i4 = h + 107; j = i4 % 128; int i5 = i4 % 2; } e(C14957gcv.b((Object) this.d, (Object) ">10")); } private static /* synthetic */ Object c(Object[] objArr) { DurationEmploymentDialog durationEmploymentDialog = (DurationEmploymentDialog) objArr[0]; C10393eCt c10393eCt = (C10393eCt) objArr[1]; int i = 2 % 2; C14957gcv.e(c10393eCt, ""); durationEmploymentDialog.c = c10393eCt.e; if (durationEmploymentDialog.d() && durationEmploymentDialog.e()) { int i2 = j + 25; h = i2 % 128; int i3 = i2 % 2; Object[] objArr2 = new Object[1]; k((char) (ViewConfiguration.getScrollBarSize() >> 8), -((byte) KeyEvent.getModifierMetaStateMask()), 1 - (ViewConfiguration.getEdgeSlop() >> 16), objArr2); durationEmploymentDialog.c = ((String) objArr2[0]).intern(); durationEmploymentDialog.a(2); return null; } if (durationEmploymentDialog.e()) { int i4 = h + 89; j = i4 % 128; int i5 = i4 % 2; Object[] objArr3 = new Object[1]; k((char) View.resolveSizeAndState(0, 0, 0), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1, 1 - ExpandableListView.getPackedPositionGroup(0L), objArr3); durationEmploymentDialog.c = ((String) objArr3[0]).intern(); durationEmploymentDialog.a(1); } return null; } private static /* synthetic */ Object e(Object[] objArr) { String str = (String) objArr[0]; int i = 2 % 2; C14957gcv.e(str, ""); if (C14957gcv.b((Object) str, (Object) "11")) { int i2 = j + 79; h = i2 % 128; if (i2 % 2 == 0) { int i3 = 69 / 0; } str = ">10"; } int i4 = h + 27; j = i4 % 128; int i5 = i4 % 2; return str; } private final void c() { int i = 2 % 2; asc_().setOnClickListener(new View.OnClickListener(this) { // from class: o.eSV private DurationEmploymentDialog d; @Override // android.view.View.OnClickListener public final void onClick(View view) { DurationEmploymentDialog.a(this.d); } { this.d = this; } }); int i2 = h + 45; j = i2 % 128; if (i2 % 2 != 0) { int i3 = 7 / 0; } } private static final void d(DurationEmploymentDialog durationEmploymentDialog) { int i = 2 % 2; int i2 = j + 117; h = i2 % 128; int i3 = i2 % 2; C14957gcv.e(durationEmploymentDialog, ""); String a = durationEmploymentDialog.a(durationEmploymentDialog.d); String d = d(durationEmploymentDialog.c); LWm lWm = durationEmploymentDialog.b; if (lWm != null) { int i4 = j + 41; h = i4 % 128; int i5 = i4 % 2; lWm.c(a, d); } durationEmploymentDialog.dismiss(); } private final String a(String str) { int i = 2 % 2; int i2 = j + 87; h = i2 % 128; int i3 = i2 % 2; if (!(!C14957gcv.b((Object) str, (Object) "-"))) { return null; } String[] strArr = this.a.c; C14957gcv.e(this.a.c, ""); if (!C14957gcv.b((Object) str, (Object) strArr[r3.length - 1])) { return str; } int i4 = j + 35; int i5 = i4 % 128; h = i5; int i6 = i4 % 2; int i7 = i5 + 79; j = i7 % 128; int i8 = i7 % 2; return "11"; } private static String d(String str) { int i = 2 % 2; int i2 = j + 31; h = i2 % 128; if (i2 % 2 == 0) { int i3 = 42 / 0; if (!C14957gcv.b((Object) str, (Object) "-")) { return str; } } else if (!C14957gcv.b((Object) str, (Object) "-")) { return str; } int i4 = h + 11; j = i4 % 128; if (i4 % 2 == 0) { return null; } throw null; } private final void e(boolean z) { int i = 2 % 2; int i2 = j + 99; h = i2 % 128; if (i2 % 2 == 0) { throw null; } if (z) { Object[] objArr = new Object[1]; k((char) (ViewConfiguration.getDoubleTapTimeout() >> 16), View.getDefaultSize(0, 0), (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 1, objArr); this.c = ((String) objArr[0]).intern(); a(1); int i3 = h + 121; j = i3 % 128; if (i3 % 2 != 0) { int i4 = 2 / 4; } } i().setEnable(!z, "MONTH"); } private final void a(int i) { int i2 = 2 % 2; int i3 = j + 25; h = i3 % 128; if (i3 % 2 != 0) { i().setSelected(i, "MONTH"); return; } i().setSelected(i, "MONTH"); Object obj = null; obj.hashCode(); throw null; } private static /* synthetic */ Object d(Object[] objArr) { DurationEmploymentDialog durationEmploymentDialog = (DurationEmploymentDialog) objArr[0]; int intValue = ((Number) objArr[1]).intValue(); int i = 2 % 2; int i2 = h + 75; j = i2 % 128; int i3 = i2 % 2; durationEmploymentDialog.i().setSelected(intValue, "YEAR"); if (i3 != 0) { int i4 = 82 / 0; } int i5 = h + 33; j = i5 % 128; if (i5 % 2 != 0) { int i6 = 42 / 0; } return null; } private final boolean d() { String str; String str2; int i = 2 % 2; int i2 = h + 97; j = i2 % 128; if (i2 % 2 != 0) { str = this.d; TextUtils.indexOf((CharSequence) "", '9', 1); Object[] objArr = new Object[1]; k((char) (((byte) KeyEvent.getModifierMetaStateMask()) - 1), 0, ViewConfiguration.getMaximumDrawingCacheSize() >>> 32, objArr); str2 = (String) objArr[0]; } else { str = this.d; Object[] objArr2 = new Object[1]; k((char) ((-1) - ((byte) KeyEvent.getModifierMetaStateMask())), TextUtils.indexOf((CharSequence) "", '0', 0) + 1, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 1, objArr2); str2 = (String) objArr2[0]; } return C14957gcv.b((Object) str, (Object) str2.intern()); } private final boolean e() { int i = 2 % 2; String str = this.c; if (str == null || str.length() == 0) { return true; } int i2 = h + 65; j = i2 % 128; int i3 = i2 % 2; if (C14957gcv.b((Object) this.c, (Object) "-")) { return true; } int i4 = h + 37; j = i4 % 128; if (i4 % 2 != 0) { String str2 = this.c; Object[] objArr = new Object[1]; k((char) (MotionEvent.axisFromString("") * (-1)), View.getDefaultSize(1, 0), View.resolveSizeAndState(1, 1, 0) + 1, objArr); if (C14957gcv.b((Object) str2, (Object) ((String) objArr[0]).intern())) { return true; } } else { String str3 = this.c; Object[] objArr2 = new Object[1]; k((char) ((-1) - MotionEvent.axisFromString("")), View.getDefaultSize(0, 0), 1 - View.resolveSizeAndState(0, 0, 0), objArr2); if (C14957gcv.b((Object) str3, (Object) ((String) objArr2[0]).intern())) { return true; } } return false; } static void a() { f = new char[]{36834, 36835, 52417}; g = 1024552890720731469L; } public final void c(LWm lWm) { int i = 2 % 2; int i2 = h + 21; j = i2 % 128; int i3 = i2 % 2; C14957gcv.e(lWm, ""); this.b = lWm; int i4 = h + 43; j = i4 % 128; if (i4 % 2 != 0) { throw null; } } public final DurationEmploymentDialog d(String str, String str2) { int i = 2 % 2; int i2 = j + 75; int i3 = i2 % 128; h = i3; int i4 = i2 % 2; this.d = str; this.c = str2; int i5 = i3 + 29; j = i5 % 128; if (i5 % 2 == 0) { return this; } throw null; } @Override // android.content.DialogInterface.OnShowListener public final void onShow(DialogInterface dialogInterface) { c(new Object[]{this, dialogInterface}, -982723162, 982723163, System.identityHashCode(this)); } @Override // o.InterfaceC10336eBR public final void e(C10393eCt c10393eCt) { c(new Object[]{this, c10393eCt}, -719482175, 719482178, System.identityHashCode(this)); } public static String e(String str) { return (String) c(new Object[]{str}, -1643499898, 1643499898, (int) System.currentTimeMillis()); } private final void b(int i) { c(new Object[]{this, Integer.valueOf(i)}, 726472310, -726472308, i); } static { h = 1; a(); new HBt((byte) 0); int i = j + 17; h = i % 128; int i2 = i % 2; } public static /* synthetic */ void a(DurationEmploymentDialog durationEmploymentDialog) { int i = 2 % 2; int i2 = j + 97; h = i2 % 128; int i3 = i2 % 2; d(durationEmploymentDialog); int i4 = h + 57; j = i4 % 128; int i5 = i4 % 2; } }