package com.kofax.mobile.sdk.ak; import android.content.Context; import android.content.res.Resources; import android.util.Base64; import java.nio.charset.StandardCharsets; /* loaded from: classes3.dex */ public class e { private static byte a = 6; private static int b = 1; private static int d; public static String b(Context context, String str) { int i = 2 % 2; int i2 = b + 17; d = i2 % 128; try { if (i2 % 2 == 0) { String string = context.getString(context.getResources().getIdentifier(str, "string", context.getPackageName())); if (!string.startsWith(",*,)")) { return string; } int i3 = d + 51; b = i3 % 128; int i4 = i3 % 2; Object[] objArr = new Object[1]; c(string.substring(4), objArr); return ((String) objArr[0]).intern(); } context.getString(context.getResources().getIdentifier(str, "string", context.getPackageName())).startsWith(",*,)"); Object obj = null; obj.hashCode(); throw null; } catch (Resources.NotFoundException e) { throw new RuntimeException("Could not load string resource: ".concat(String.valueOf(str)), e); } } private static void c(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] ^ a); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } }