package o; import androidx.core.app.ActivityCompat; import com.scb.phone.view.activity.investment.assessment.RiskAssessmentSuccessActivity; import java.util.Arrays; /* renamed from: o.dTr, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C8721dTr { private static InterfaceC15579guf a; private static InterfaceC15579guf b; private static final String[] d = {"android.permission.WRITE_EXTERNAL_STORAGE"}; private static final String[] c = {"android.permission.READ_MEDIA_IMAGES"}; public static final void d(RiskAssessmentSuccessActivity riskAssessmentSuccessActivity, C0816Pb c0816Pb, boolean z, YV yv) { C14957gcv.e(riskAssessmentSuccessActivity, ""); C14957gcv.e(c0816Pb, ""); C14957gcv.e(yv, ""); String[] strArr = d; if (C15581guh.b(riskAssessmentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { riskAssessmentSuccessActivity.d(c0816Pb, z, yv); return; } b = new C8724dTu(riskAssessmentSuccessActivity, c0816Pb, z, yv); RiskAssessmentSuccessActivity riskAssessmentSuccessActivity2 = riskAssessmentSuccessActivity; if (!C15581guh.aDf_(riskAssessmentSuccessActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { ActivityCompat.lM_(riskAssessmentSuccessActivity2, strArr, 112); return; } InterfaceC15579guf interfaceC15579guf = b; if (interfaceC15579guf != null) { riskAssessmentSuccessActivity.c(interfaceC15579guf); } } public static final void e(RiskAssessmentSuccessActivity riskAssessmentSuccessActivity, C0816Pb c0816Pb, boolean z, YV yv) { C14957gcv.e(riskAssessmentSuccessActivity, ""); C14957gcv.e(c0816Pb, ""); C14957gcv.e(yv, ""); String[] strArr = c; if (C15581guh.b(riskAssessmentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { C14957gcv.e(c0816Pb, ""); C14957gcv.e(yv, ""); riskAssessmentSuccessActivity.d(c0816Pb, z, yv); return; } a = new C8720dTq(riskAssessmentSuccessActivity, c0816Pb, z, yv); RiskAssessmentSuccessActivity riskAssessmentSuccessActivity2 = riskAssessmentSuccessActivity; if (!C15581guh.aDf_(riskAssessmentSuccessActivity2, (String[]) Arrays.copyOf(strArr, strArr.length))) { ActivityCompat.lM_(riskAssessmentSuccessActivity2, strArr, 113); return; } InterfaceC15579guf interfaceC15579guf = a; if (interfaceC15579guf != null) { InterfaceC15579guf interfaceC15579guf2 = interfaceC15579guf; C14957gcv.e(interfaceC15579guf2, ""); guQ.c("onShowRationaleAndroid13", new Object[0]); riskAssessmentSuccessActivity.c(interfaceC15579guf2); } } public static final void e(RiskAssessmentSuccessActivity riskAssessmentSuccessActivity, int i, int[] iArr) { C14957gcv.e(riskAssessmentSuccessActivity, ""); C14957gcv.e(iArr, ""); if (i == 112) { if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { InterfaceC15579guf interfaceC15579guf = b; if (interfaceC15579guf != null) { interfaceC15579guf.a(); } } else { String[] strArr = d; if (!C15581guh.aDf_(riskAssessmentSuccessActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { RiskAssessmentSuccessActivity.j(); } else { RiskAssessmentSuccessActivity.f(); } } b = null; return; } if (i == 113) { if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { InterfaceC15579guf interfaceC15579guf2 = a; if (interfaceC15579guf2 != null) { interfaceC15579guf2.a(); } } else { String[] strArr2 = c; if (!C15581guh.aDf_(riskAssessmentSuccessActivity, (String[]) Arrays.copyOf(strArr2, strArr2.length))) { RiskAssessmentSuccessActivity.h(); } else { RiskAssessmentSuccessActivity.g(); } } a = null; } } }