package com.scb.phone.view.fragment.registration; import android.content.DialogInterface; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.registration.RegistrationSuccessActivity; import com.scb.phone.view.activity.registration.friends.FriendsRegistrationActivity; import com.scb.phone.view.adapter.registration.RegistrationManageDeviceAdapter; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.fragment.registration.RegistrationManageDevicesFragment; import java.text.MessageFormat; import java.util.List; import o.C12914fKz; import o.C16565pPd; import o.C8041czi; import o.EnumC1279Zn; import o.EnumC8951daY; import o.InterfaceC12790fHY; import o.InterfaceC13391fZD; import o.InterfaceC9596dmi; import o.JC; import o.gjJ; /* loaded from: classes5.dex */ public class RegistrationManageDevicesFragment extends Hilt_RegistrationManageDevicesFragment implements InterfaceC9596dmi, InterfaceC12790fHY.HBt { private static int g = 0; private static int j = 1; private RegistrationManageDeviceAdapter c; private C16565pPd d = new C16565pPd(); @BindView Button nextButton; @InterfaceC13391fZD public C8041czi presenter; @BindView RecyclerView recyclerView; public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) { int i4 = ~i2; int i5 = ~i3; int i6 = ~(i4 | i5); int i7 = ~i; int i8 = (i * 371) + (i2 * 371) + ((i6 | (~(i7 | i3))) * (-370)); int i9 = (~(i3 | i4)) | (~(i5 | i7)); int i10 = ~(i | i2); switch (i8 + ((i9 | i10) * (-370)) + (i10 * 370)) { case 1: return b(objArr); case 2: return a(objArr); case 3: return e(objArr); case 4: return c(objArr); case 5: return i(objArr); case 6: return f(objArr); case 7: return g(objArr); case 8: return h(objArr); case 9: return j(objArr); case 10: return m(objArr); default: return d(objArr); } } private static /* synthetic */ Object h(Object[] objArr) { String str = (String) objArr[0]; boolean booleanValue = ((Boolean) objArr[1]).booleanValue(); int i = 2 % 2; RegistrationManageDevicesFragment registrationManageDevicesFragment = new RegistrationManageDevicesFragment(); Bundle bundle = new Bundle(); int i2 = j; int i3 = ((i2 ^ 33) | (i2 & 33)) << 1; int i4 = -(((~i2) & 33) | (i2 & (-34))); int i5 = (i3 & i4) + (i4 | i3); g = i5 % 128; if (i5 % 2 == 0) { bundle.putString("error_text", str); bundle.putBoolean("EXTRA_IS_CC_ACTIVATION", booleanValue); registrationManageDevicesFragment.setArguments(bundle); int i6 = j; int i7 = i6 & 55; int i8 = -(-(i6 | 55)); int i9 = (i7 ^ i8) + ((i8 & i7) << 1); g = i9 % 128; int i10 = i9 % 2; return registrationManageDevicesFragment; } bundle.putString("error_text", str); bundle.putBoolean("EXTRA_IS_CC_ACTIVATION", booleanValue); throw null; } /* JADX WARN: Code restructure failed: missing block: B:14:0x00b4, code lost: if ((!getArguments().getBoolean("EXTRA_IS_CC_ACTIVATION", true)) != true) goto L23; */ /* JADX WARN: Code restructure failed: missing block: B:18:0x00c2, code lost: if ((!getArguments().getBoolean("EXTRA_IS_CC_ACTIVATION", false)) != false) goto L24; */ @Override // androidx.fragment.app.Fragment /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public android.view.View onCreateView(android.view.LayoutInflater r8, android.view.ViewGroup r9, android.os.Bundle r10) { /* Method dump skipped, instructions count: 313 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.registration.RegistrationManageDevicesFragment.onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle):android.view.View"); } private static /* synthetic */ Object c(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; String str = (String) objArr[1]; int i = 2 % 2; int i2 = j; int i3 = i2 & 117; int i4 = (i2 ^ 117) | i3; int i5 = ((i3 | i4) << 1) - (i4 ^ i3); g = i5 % 128; int i6 = i5 % 2; RegistrationManageDeviceAdapter registrationManageDeviceAdapter = registrationManageDevicesFragment.c; System.identityHashCode(registrationManageDevicesFragment); int identityHashCode = System.identityHashCode(registrationManageDevicesFragment); int i7 = ~identityHashCode; int i8 = ~((381873610 & i7) | (381873610 ^ i7)); int i9 = ((~i8) & 681326773) | ((-681326774) & i8); int i10 = i8 & 681326773; int i11 = ((i10 & i9) | (i9 ^ i10)) * (-933); int i12 = (-846273546) & i11; int i13 = (((((-846273546) ^ i11) | i12) << 1) - (~(-((i11 | (-846273546)) & (~i12))))) - 1; int i14 = (identityHashCode | i7) & (~identityHashCode); int i15 = 681326773 & i14; int i16 = (i14 | 681326773) & (~i15); int i17 = ~((i16 & i15) | (i16 ^ i15)); int i18 = ((i17 & 373474634) | (i17 ^ 373474634)) * 933; int i19 = ((i13 | i18) << 1) - (i18 ^ i13); int i20 = ((i19 ^ (-753689984)) | (i19 & (-753689984))) << 1; int i21 = -(((-753689984) & (~i19)) | (753689983 & i19)); if (-747145757 <= (i20 ^ i21) + ((i21 & i20) << 1)) { int i22 = 3 % 5; } int i23 = 0; while (true) { if (i23 >= registrationManageDeviceAdapter.c.size()) { break; } int i24 = j; int i25 = (i24 & 87) + (i24 | 87); g = i25 % 128; int i26 = i25 % 2; JC jc = registrationManageDeviceAdapter.c.get(i23); int i27 = j; int i28 = ((i27 & (-62)) | ((~i27) & 61)) + ((i27 & 61) << 1); g = i28 % 128; int i29 = i28 % 2; if (!(!str.equalsIgnoreCase(jc.a))) { int i30 = g; int i31 = ((i30 & 106) + (i30 | 106)) - 1; j = i31 % 128; int i32 = i31 % 2; registrationManageDeviceAdapter.c.remove(i23); int i33 = g; int i34 = (((i33 ^ 87) | (i33 & 87)) << 1) - (((~i33) & 87) | (i33 & (-88))); j = i34 % 128; if (i34 % 2 == 0) { registrationManageDeviceAdapter.notifyItemRemoved(i23); throw null; } registrationManageDeviceAdapter.notifyItemRemoved(i23); } else { int i35 = (i23 & 30) | ((~i23) & (-31)); int i36 = (i23 & (-31)) << 1; int i37 = (i35 & i36) + (i36 | i35); i23 = (-2) - (((i37 & 33) + (i37 | 33)) ^ (-1)); int i38 = j; int i39 = (i38 ^ 61) + ((i38 & 61) << 1); g = i39 % 128; int i40 = i39 % 2; } } registrationManageDevicesFragment.nextButton.setVisibility(0); registrationManageDevicesFragment.nextButton.setEnabled(true); int i41 = j + 39; g = i41 % 128; if (i41 % 2 == 0) { return null; } throw null; } private static /* synthetic */ Object j(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; String str = (String) objArr[1]; int i = 2 % 2; int i2 = g; int i3 = i2 & 53; int i4 = (i3 - (~(-(-((i2 ^ 53) | i3))))) - 1; j = i4 % 128; int i5 = i4 % 2; Object obj = null; if (!(!(registrationManageDevicesFragment.getActivity() instanceof BaseActivity))) { int i6 = g; int i7 = i6 & 3; int i8 = (i6 ^ 3) | i7; int i9 = (i7 ^ i8) + ((i8 & i7) << 1); j = i9 % 128; int i10 = i9 % 2; FragmentActivity activity = registrationManageDevicesFragment.getActivity(); EnumC8951daY enumC8951daY = EnumC8951daY.ERROR; int i11 = g + 37; j = i11 % 128; if (i11 % 2 == 0) { registrationManageDevicesFragment.getActivity(); obj.hashCode(); throw null; } if (registrationManageDevicesFragment.getActivity() != null) { BaseActivity.a(new Object[]{(BaseActivity) registrationManageDevicesFragment.getActivity(), activity, Integer.valueOf(R.id.root_activity), str, enumC8951daY}, 855668825, -855668822, R.id.root_activity); int i12 = g; int i13 = (i12 ^ 39) + ((i12 & 39) << 1); j = i13 % 128; int i14 = i13 % 2; } } int i15 = g; int i16 = i15 & 69; int i17 = i16 + ((i15 ^ 69) | i16); j = i17 % 128; if (i17 % 2 == 0) { int i18 = 30 / 0; } return null; } private static /* synthetic */ Object d(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; int i = 2 % 2; registrationManageDevicesFragment.c = new RegistrationManageDeviceAdapter((List) objArr[1], registrationManageDevicesFragment); RecyclerView recyclerView = registrationManageDevicesFragment.recyclerView; registrationManageDevicesFragment.getContext(); LinearLayoutManager linearLayoutManager = new LinearLayoutManager(1, false); int i2 = j + 25; g = i2 % 128; int i3 = i2 % 2; recyclerView.setLayoutManager(linearLayoutManager); RecyclerView recyclerView2 = registrationManageDevicesFragment.recyclerView; RegistrationManageDeviceAdapter registrationManageDeviceAdapter = registrationManageDevicesFragment.c; int i4 = g; int i5 = i4 & 113; int i6 = ((i4 ^ 113) | i5) << 1; int i7 = -((i4 | 113) & (~i5)); int i8 = ((i6 | i7) << 1) - (i7 ^ i6); j = i8 % 128; int i9 = i8 % 2; recyclerView2.setAdapter(registrationManageDeviceAdapter); if (i9 == 0) { int i10 = 15 / 0; } int i11 = g + 9; j = i11 % 128; Object obj = null; if (i11 % 2 != 0) { return null; } obj.hashCode(); throw null; } private static /* synthetic */ Object e(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; EnumC1279Zn enumC1279Zn = (EnumC1279Zn) objArr[1]; int i = 2 % 2; int i2 = j; int i3 = i2 & 63; int i4 = (((i2 | 63) & (~i3)) - (~(i3 << 1))) - 1; g = i4 % 128; int i5 = i4 % 2; registrationManageDevicesFragment.T(); if (registrationManageDevicesFragment.getContext() != null) { int i6 = j; int i7 = i6 & 109; int i8 = -(-((i6 ^ 109) | i7)); int i9 = (i7 & i8) + (i8 | i7); g = i9 % 128; int i10 = i9 % 2; registrationManageDevicesFragment.startActivity(FriendsRegistrationActivity.alv_(registrationManageDevicesFragment.getContext(), enumC1279Zn)); int i11 = g; int i12 = (((i11 | 23) << 1) - (~(-(i11 ^ 23)))) - 1; j = i12 % 128; int i13 = i12 % 2; } int i14 = j; int i15 = ((i14 ^ 107) | (i14 & 107)) << 1; int i16 = -(((~i14) & 107) | (i14 & (-108))); int i17 = (i15 & i16) + (i16 | i15); g = i17 % 128; int i18 = i17 % 2; return null; } private static /* synthetic */ Object g(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; EnumC1279Zn enumC1279Zn = (EnumC1279Zn) objArr[1]; int i = 2 % 2; int i2 = g; int i3 = i2 ^ 89; int i4 = ((i2 & 89) | i3) << 1; int i5 = -i3; int i6 = ((i4 | i5) << 1) - (i4 ^ i5); j = i6 % 128; int i7 = i6 % 2; registrationManageDevicesFragment.T(); if (registrationManageDevicesFragment.getContext() != null) { int i8 = j; int i9 = i8 & 69; int i10 = -(-((i8 ^ 69) | i9)); int i11 = ((i9 | i10) << 1) - (i10 ^ i9); g = i11 % 128; int i12 = i11 % 2; registrationManageDevicesFragment.startActivity(RegistrationSuccessActivity.alp_(registrationManageDevicesFragment.getContext(), enumC1279Zn)); int i13 = j; int i14 = (i13 & (-94)) | ((~i13) & 93); int i15 = (i13 & 93) << 1; int i16 = ((i14 | i15) << 1) - (i15 ^ i14); g = i16 % 128; int i17 = i16 % 2; } int i18 = g; int i19 = i18 & 11; int i20 = -(-(i18 | 11)); int i21 = ((i19 | i20) << 1) - (i20 ^ i19); j = i21 % 128; int i22 = i21 % 2; return null; } private static /* synthetic */ Object a(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; String str = (String) objArr[1]; int i = 2 % 2; int i2 = g; int i3 = i2 & 79; int i4 = (((i2 ^ 79) | i3) << 1) - ((i2 | 79) & (~i3)); j = i4 % 128; int i5 = i4 % 2; registrationManageDevicesFragment.presenter.e(str); int i6 = j; int i7 = i6 & 65; int i8 = (i6 ^ 65) | i7; int i9 = (i7 & i8) + (i8 | i7); g = i9 % 128; if (i9 % 2 == 0) { return null; } throw null; } private static /* synthetic */ Object m(Object[] objArr) { DialogInterface dialogInterface = (DialogInterface) objArr[0]; int i = 2 % 2; int i2 = j; int i3 = (i2 & 75) + (i2 | 75); g = i3 % 128; int i4 = i3 % 2; dialogInterface.dismiss(); if (i4 == 0) { return null; } int i5 = 34 / 0; return null; } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public void onDestroyView() { int i = 2 % 2; int i2 = j; int i3 = ((i2 ^ 119) - (~((i2 & 119) << 1))) - 1; g = i3 % 128; if (i3 % 2 != 0) { super.onDestroyView(); this.presenter.w_(); int i4 = 7 / 0; } else { super.onDestroyView(); this.presenter.w_(); } } /* JADX WARN: Multi-variable type inference failed */ @OnClick public void onButtonNext() { int i = 2 % 2; int i2 = g; int i3 = i2 & 67; int i4 = -(-((i2 ^ 67) | i3)); int i5 = ((i3 | i4) << 1) - (i4 ^ i3); j = i5 % 128; int i6 = i5 % 2; this.nextButton.setEnabled(false); C8041czi c8041czi = this.presenter; int i7 = j; int i8 = i7 & 103; int i9 = (i8 - (~((i7 ^ 103) | i8))) - 1; g = i9 % 128; int i10 = i9 % 2; boolean booleanValue = ((Boolean) C12914fKz.e(new Object[]{getContext()}, -561036075, 561036080, (int) System.currentTimeMillis())).booleanValue(); int i11 = (booleanValue ? 1 : 0) & 1; c8041czi.d(((!booleanValue ? 1 : 0) | i11) & (~i11)); int i12 = j; int i13 = i12 & 95; int i14 = ((i12 ^ 95) | i13) << 1; int i15 = -((i12 | 95) & (~i13)); int i16 = (i14 ^ i15) + ((i15 & i14) << 1); g = i16 % 128; int i17 = i16 % 2; } private static /* synthetic */ Object f(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; int i = 2 % 2; int i2 = g; int i3 = (((i2 & (-78)) | ((~i2) & 77)) - (~(-(-((i2 & 77) << 1))))) - 1; j = i3 % 128; int i4 = i3 % 2; registrationManageDevicesFragment.nextButton.setEnabled(true); int i5 = g; int i6 = ((i5 | 99) << 1) - (i5 ^ 99); j = i6 % 128; Object obj = null; if (i6 % 2 != 0) { return null; } obj.hashCode(); throw null; } private static /* synthetic */ Object i(Object[] objArr) { String format; final RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; final String str = (String) objArr[1]; String str2 = (String) objArr[2]; ((Boolean) objArr[3]).booleanValue(); int i = 2 % 2; int i2 = j; int i3 = (i2 | 49) << 1; int i4 = -(((~i2) & 49) | (i2 & (-50))); int i5 = (i3 ^ i4) + ((i4 & i3) << 1); g = i5 % 128; int i6 = i5 % 2; CustomDialog b = CustomDialog.b(registrationManageDevicesFragment.getContext()); String string = registrationManageDevicesFragment.getString(R.string.registration_review_devices_delete_popup_title); int i7 = g; int i8 = ((i7 | 87) << 1) - (i7 ^ 87); j = i8 % 128; Object obj = null; if (i8 % 2 == 0) { gjJ.a(string); obj.hashCode(); throw null; } if (gjJ.a(string)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(string); int i9 = j; int i10 = (((i9 | 107) << 1) - (~(-(((~i9) & 107) | (i9 & (-108)))))) - 1; g = i10 % 128; int i11 = i10 % 2; } String string2 = registrationManageDevicesFragment.getString(R.string.registration_review_devices_delete_popup_text); Object[] objArr2 = new Object[1]; int i12 = j; int i13 = (i12 & 37) + (i12 | 37); g = i13 % 128; if (i13 % 2 != 0) { objArr2[0] = str2; format = MessageFormat.format(string2, objArr2); } else { objArr2[0] = str2; format = MessageFormat.format(string2, objArr2); } int i14 = g + 49; j = i14 % 128; int i15 = i14 % 2; if (gjJ.a(format)) { int i16 = j; int i17 = ((i16 ^ 67) | (i16 & 67)) << 1; int i18 = -(((~i16) & 67) | (i16 & (-68))); int i19 = (i17 ^ i18) + ((i18 & i17) << 1); g = i19 % 128; int i20 = i19 % 2; b.mTextTextView.setVisibility(0); TextView textView = b.mTextTextView; int i21 = g; int i22 = (i21 & 45) + (i21 | 45); j = i22 % 128; if (i22 % 2 == 0) { textView.setText(format); throw null; } textView.setText(format); } CustomDialog aoT_ = b.aoT_(R.string.delete_logout, new DialogInterface.OnClickListener(registrationManageDevicesFragment, str) { // from class: o.fws private String d; private RegistrationManageDevicesFragment e; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i23) { RegistrationManageDevicesFragment.d(new Object[]{this.e, this.d}, 783510430, -783510429, (int) System.currentTimeMillis()); } { this.e = registrationManageDevicesFragment; this.d = str; } }); DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener() { // from class: o.fwq @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i23) { RegistrationManageDevicesFragment.d(new Object[]{dialogInterface}, -1596111861, 1596111871, (int) System.currentTimeMillis()); } }; int i23 = g; int i24 = (((i23 ^ 69) | (i23 & 69)) << 1) - (((~i23) & 69) | (i23 & (-70))); j = i24 % 128; int i25 = i24 % 2; ((CustomDialog) CustomDialog.e(new Object[]{aoT_, Integer.valueOf(R.string.delete_not_now), onClickListener})).show(); int i26 = j; int i27 = ((i26 ^ 65) | (i26 & 65)) << 1; int i28 = -(((~i26) & 65) | (i26 & (-66))); int i29 = ((i27 | i28) << 1) - (i28 ^ i27); g = i29 % 128; if (i29 % 2 != 0) { int i30 = 57 / 0; } return null; } private static /* synthetic */ Object b(Object[] objArr) { RegistrationManageDevicesFragment registrationManageDevicesFragment = (RegistrationManageDevicesFragment) objArr[0]; String str = (String) objArr[1]; int i = 2 % 2; int i2 = g; int i3 = i2 & 53; int i4 = (((i2 | 53) & (~i3)) - (~(-(-(i3 << 1))))) - 1; j = i4 % 128; Object[] objArr2 = {registrationManageDevicesFragment, str}; if (i4 % 2 == 0) { d(objArr2, -319356159, 319356161, System.identityHashCode(registrationManageDevicesFragment)); int i5 = 64 / 0; } else { d(objArr2, -319356159, 319356161, System.identityHashCode(registrationManageDevicesFragment)); } int i6 = j; int i7 = i6 & 63; int i8 = (i6 ^ 63) | i7; int i9 = ((i7 | i8) << 1) - (i8 ^ i7); g = i9 % 128; int i10 = i9 % 2; return null; } @Override // o.InterfaceC9596dmi public final void c(String str) { d(new Object[]{this, str}, 847449144, -847449140, System.identityHashCode(this)); } @Override // o.InterfaceC12790fHY.HBt public final void b(String str, String str2, boolean z) { d(new Object[]{this, str, str2, Boolean.valueOf(z)}, -485528993, 485528998, System.identityHashCode(this)); } @Override // o.InterfaceC9596dmi public final void b(EnumC1279Zn enumC1279Zn) { d(new Object[]{this, enumC1279Zn}, -2142555828, 2142555835, System.identityHashCode(this)); } @Override // o.InterfaceC9596dmi public final void c(EnumC1279Zn enumC1279Zn) { d(new Object[]{this, enumC1279Zn}, 1723969356, -1723969353, System.identityHashCode(this)); } @Override // o.InterfaceC9596dmi public final void d() { d(new Object[]{this}, 185476411, -185476405, System.identityHashCode(this)); } @Override // o.InterfaceC9596dmi public final void a(String str) { d(new Object[]{this, str}, -778369238, 778369247, System.identityHashCode(this)); } @Override // o.InterfaceC9596dmi public final void c(List list) { d(new Object[]{this, list}, -459723528, 459723528, System.identityHashCode(this)); } public static RegistrationManageDevicesFragment b(String str, boolean z) { return (RegistrationManageDevicesFragment) d(new Object[]{str, Boolean.valueOf(z)}, -837567115, 837567123, (int) System.currentTimeMillis()); } private /* synthetic */ void e(String str) { d(new Object[]{this, str}, -319356159, 319356161, System.identityHashCode(this)); } }