package o; import android.content.SharedPreferences; import android.content.res.Resources; import android.util.Base64; import java.nio.charset.StandardCharsets; import o.C15715hv; import o.QK; /* renamed from: o.pj, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C16614pj extends C16157lj { private static int a = 0; private static byte b = 6; private static int d = 1; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C16614pj(Resources resources, SharedPreferences sharedPreferences) { super(resources, sharedPreferences); C14957gcv.e(resources, ""); C14957gcv.e(sharedPreferences, ""); } public final QK c(String str, String str2, boolean z) { C14957gcv.e(str, ""); QK.LWm e = QK.e(); e.a = c(str, z); if (str2 == null) { str2 = ""; } e.h = str2; e.g = this.e.getString(C15715hv.tOB.debit_card_activation_account_label); e.c = C6583cXR.VR_(C15715hv.IeS.bankicon_scb).toString(); QK qk = new QK(e, (byte) 0); C14957gcv.c(qk, ""); return qk; } private void q(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ b); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } public final QO g() { int i = 2 % 2; int i2 = a + 99; d = i2 % 128; int i3 = i2 % 2; QK.LWm e = QK.e(); e.h = this.e.getString(C15715hv.tOB.debit_card_activation_physical_type); String string = this.e.getString(C15715hv.tOB.debit_card_activation_card_product_label); if (string.startsWith(",*,)")) { int i4 = a + 3; d = i4 % 128; if (i4 % 2 == 0) { Object[] objArr = new Object[1]; q(string.substring(4), objArr); string = ((String) objArr[0]).intern(); int i5 = 54 / 0; } else { Object[] objArr2 = new Object[1]; q(string.substring(4), objArr2); string = ((String) objArr2[0]).intern(); } } e.g = string; QK qk = new QK(e, (byte) 0); C14957gcv.c(qk, ""); QK qk2 = qk; int i6 = d + 13; a = i6 % 128; int i7 = i6 % 2; return qk2; } }