package o; import androidx.fragment.app.FragmentActivity; import com.scb.phone.view.fragment.profilemanagement.ProfileManagementFragment; import java.util.Arrays; /* renamed from: o.fuM, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C14496fuM { private static final String[] a = {"android.permission.WRITE_EXTERNAL_STORAGE"}; private static final String[] b = {"android.permission.READ_MEDIA_IMAGES"}; public static final void c(ProfileManagementFragment profileManagementFragment) { C14957gcv.e(profileManagementFragment, ""); FragmentActivity requireActivity = profileManagementFragment.requireActivity(); String[] strArr = a; if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { if (C15581guh.e(profileManagementFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) { profileManagementFragment.a(new C14497fuN(profileManagementFragment)); return; } else { profileManagementFragment.requestPermissions(strArr, 97); return; } } C7758cuP c7758cuP = profileManagementFragment.profileManagementPresenter; if (c7758cuP == null) { C14957gcv.a(""); c7758cuP = null; } c7758cuP.b(profileManagementFragment.c); } public static final void a(ProfileManagementFragment profileManagementFragment) { C14957gcv.e(profileManagementFragment, ""); FragmentActivity requireActivity = profileManagementFragment.requireActivity(); String[] strArr = b; if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { if (C15581guh.e(profileManagementFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) { C14494fuK c14494fuK = new C14494fuK(profileManagementFragment); C14957gcv.e(c14494fuK, ""); profileManagementFragment.a(c14494fuK); return; } profileManagementFragment.requestPermissions(strArr, 98); return; } C7758cuP c7758cuP = profileManagementFragment.profileManagementPresenter; if (c7758cuP == null) { C14957gcv.a(""); c7758cuP = null; } c7758cuP.b(profileManagementFragment.c); } public static final void c(ProfileManagementFragment profileManagementFragment, int i, int[] iArr) { C14957gcv.e(profileManagementFragment, ""); C14957gcv.e(iArr, ""); C7758cuP c7758cuP = null; if (i == 97) { if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { String[] strArr = a; if (C15581guh.e(profileManagementFragment, (String[]) Arrays.copyOf(strArr, strArr.length))) { profileManagementFragment.L(); return; } guQ.b("onNeverAskAgain", new Object[0]); C7758cuP c7758cuP2 = profileManagementFragment.profileManagementPresenter; if (c7758cuP2 != null) { c7758cuP = c7758cuP2; } else { C14957gcv.a(""); } c7758cuP.b(profileManagementFragment.c); return; } C7758cuP c7758cuP3 = profileManagementFragment.profileManagementPresenter; if (c7758cuP3 != null) { c7758cuP = c7758cuP3; } else { C14957gcv.a(""); } c7758cuP.b(profileManagementFragment.c); return; } if (i == 98) { if (!C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { String[] strArr2 = b; if (C15581guh.e(profileManagementFragment, (String[]) Arrays.copyOf(strArr2, strArr2.length))) { profileManagementFragment.N(); return; } guQ.b("onNeverAskAgainAndroid13", new Object[0]); C7758cuP c7758cuP4 = profileManagementFragment.profileManagementPresenter; if (c7758cuP4 != null) { c7758cuP = c7758cuP4; } else { C14957gcv.a(""); } c7758cuP.b(profileManagementFragment.c); return; } C7758cuP c7758cuP5 = profileManagementFragment.profileManagementPresenter; if (c7758cuP5 != null) { c7758cuP = c7758cuP5; } else { C14957gcv.a(""); } c7758cuP.b(profileManagementFragment.c); } } }