what-the-bank/sources/com/google/android/gms/common/api/GoogleApiActivity.java

876 lines
43 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.api;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentSender;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Build;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.api.internal.GoogleApiManager;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.huawei.hms.adapter.internal.CommonCode;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import java.lang.reflect.Method;
import o.TVH;
import o.xzZ;
import org.jmrtd.cbeff.ISO781611;
import org.jnbis.internal.NistHelper;
/* loaded from: classes.dex */
public class GoogleApiActivity extends Activity implements DialogInterface.OnCancelListener {
protected int zaa = 0;
private static final byte[] $$a = {94, -44, 14, -83};
private static final int $$b = ISO781611.BIOMETRIC_SUBTYPE_TAG;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static int e = 1;
private static char[] a = {39995, 40044, 40034, 40032, 40059, 40039, 40045, 40002, 40005, 40058, 40027, 39988, 40042, 40059, 40034, 40047, 40039, 40056, 39994, 40039, 40056, 40057, 40032, 40034, 40058, 40017, 40019, 40059, 40037, 40033, 40045, 40041, 40033, 40037, 40039, 40037, 39955, 39999, 39998, 40000, 40001, 40000, 40047, 40040, 40042, 40006, 39998, 40002, 40001, 40001, 40001, 39998, 40006, 40001, 39993, 39998, 39998, 39992, 40001, 40006, 40004, 40005, 40007, 40007, 40007, 40005, 40005, 40001, 39994, 39992, 39997, 39999, 40000, 40046, 40040, 40041, 40001, 39992, 39997, 39996, 40007, 40006, 40005, 40007, 39955, 39972, 39992, 39992, 39992};
private static char[] d = {49115, 48161, 49111, 49090, 49030, 48173, 49028, 49114, 49098, 49088, 49025, 49104, 49119, 49031, 49109, 49110, 48175, 49106, 49026, 49053, 49033, 48168, 48170, 49127, 49112, 49034, 49091, 49126, 48174, 49094, 49035, 48171, 49029, 49024, 49108, 49054, 49089, 49107, 48172, 49116, 49138, 49052, 49095, 49093, 49118, 49117, 49105, 48169, 49027};
private static char c = 35374;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0028). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void h(byte r5, byte r6, int r7, java.lang.Object[] r8) {
/*
int r6 = 120 - r6
int r7 = r7 + 4
byte[] r0 = com.google.android.gms.common.api.GoogleApiActivity.$$a
int r5 = r5 * 4
int r1 = 1 - r5
byte[] r1 = new byte[r1]
r2 = 0
int r5 = 0 - r5
if (r0 != 0) goto L14
r3 = r5
r4 = r2
goto L28
L14:
r3 = r2
L15:
byte r4 = (byte) r6
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r5) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L24:
int r7 = r7 + 1
r3 = r0[r7]
L28:
int r3 = -r3
int r6 = r6 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.api.GoogleApiActivity.h(byte, byte, int, java.lang.Object[]):void");
}
@Override // android.content.DialogInterface.OnCancelListener
public final void onCancel(DialogInterface dialogInterface) {
int i = 2 % 2;
int i2 = b + 17;
e = i2 % 128;
int i3 = 0;
if (i2 % 2 == 0) {
this.zaa = 0;
i3 = 1;
} else {
this.zaa = 0;
}
setResult(i3);
finish();
}
public static Intent zaa(Context context, PendingIntent pendingIntent, int i, boolean z) {
int i2 = 2 % 2;
Intent intent = new Intent(context, (Class<?>) GoogleApiActivity.class);
intent.putExtra("pending_intent", pendingIntent);
intent.putExtra("failing_client_id", i);
intent.putExtra("notify_manager", z);
int i3 = e + 81;
b = i3 % 128;
int i4 = i3 % 2;
return intent;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0074, code lost:
r4.zaa = 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x001b, code lost:
r5 = getIntent().getBooleanExtra("notify_manager", true);
r4.zaa = 0;
setResult(r6, r7);
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x002a, code lost:
if (r5 == false) goto L27;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x002c, code lost:
r5 = com.google.android.gms.common.api.GoogleApiActivity.e + 103;
com.google.android.gms.common.api.GoogleApiActivity.b = r5 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0036, code lost:
if ((r5 % 2) == 0) goto L16;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0038, code lost:
r5 = com.google.android.gms.common.api.internal.GoogleApiManager.zam(r4);
r0 = 89 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x003f, code lost:
if (r6 == (-1)) goto L20;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0060, code lost:
r5.zaA();
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0048, code lost:
if (r6 != 0) goto L27;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x004a, code lost:
r5.zaz(new com.google.android.gms.common.ConnectionResult(13, null), getIntent().getIntExtra("failing_client_id", -1));
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0042, code lost:
r5 = com.google.android.gms.common.api.internal.GoogleApiManager.zam(r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x0046, code lost:
if (r6 == (-1)) goto L20;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0019, code lost:
if (r5 == 1) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost:
if (r5 == 0) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x0064, code lost:
if (r5 != 2) goto L27;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0066, code lost:
r5 = com.google.android.gms.common.api.GoogleApiActivity.e + 49;
com.google.android.gms.common.api.GoogleApiActivity.b = r5 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x006f, code lost:
if ((r5 % 2) == 0) goto L25;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0071, code lost:
r4.zaa = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0076, code lost:
setResult(r6, r7);
*/
@Override // android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
protected final void onActivityResult(int r5, int r6, android.content.Intent r7) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.android.gms.common.api.GoogleApiActivity.e
int r1 = r1 + 53
int r2 = r1 % 128
com.google.android.gms.common.api.GoogleApiActivity.b = r2
int r1 = r1 % r0
r2 = 0
r3 = 1
if (r1 == 0) goto L16
super.onActivityResult(r5, r6, r7)
if (r5 != 0) goto L64
goto L1b
L16:
super.onActivityResult(r5, r6, r7)
if (r5 != r3) goto L64
L1b:
android.content.Intent r5 = r4.getIntent()
java.lang.String r1 = "notify_manager"
boolean r5 = r5.getBooleanExtra(r1, r3)
r4.zaa = r2
r4.setResult(r6, r7)
if (r5 == 0) goto L79
int r5 = com.google.android.gms.common.api.GoogleApiActivity.e
int r5 = r5 + 103
int r7 = r5 % 128
com.google.android.gms.common.api.GoogleApiActivity.b = r7
int r5 = r5 % r0
r7 = -1
if (r5 == 0) goto L42
com.google.android.gms.common.api.internal.GoogleApiManager r5 = com.google.android.gms.common.api.internal.GoogleApiManager.zam(r4)
r0 = 89
int r0 = r0 / r2
if (r6 == r7) goto L60
goto L48
L42:
com.google.android.gms.common.api.internal.GoogleApiManager r5 = com.google.android.gms.common.api.internal.GoogleApiManager.zam(r4)
if (r6 == r7) goto L60
L48:
if (r6 != 0) goto L79
com.google.android.gms.common.ConnectionResult r6 = new com.google.android.gms.common.ConnectionResult
r0 = 13
r1 = 0
r6.<init>(r0, r1)
android.content.Intent r0 = r4.getIntent()
java.lang.String r1 = "failing_client_id"
int r7 = r0.getIntExtra(r1, r7)
r5.zaz(r6, r7)
goto L79
L60:
r5.zaA()
goto L79
L64:
if (r5 != r0) goto L79
int r5 = com.google.android.gms.common.api.GoogleApiActivity.e
int r5 = r5 + 49
int r1 = r5 % 128
com.google.android.gms.common.api.GoogleApiActivity.b = r1
int r5 = r5 % r0
if (r5 == 0) goto L74
r4.zaa = r3
goto L76
L74:
r4.zaa = r2
L76:
r4.setResult(r6, r7)
L79:
r4.finish()
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.api.GoogleApiActivity.onActivityResult(int, int, android.content.Intent):void");
}
private final void zab() {
int i = 2 % 2;
int i2 = b + 125;
e = i2 % 128;
int i3 = i2 % 2;
Bundle extras = getIntent().getExtras();
if (extras == null) {
int i4 = b + 77;
e = i4 % 128;
if (i4 % 2 != 0) {
finish();
return;
} else {
finish();
int i5 = 19 / 0;
return;
}
}
PendingIntent pendingIntent = (PendingIntent) extras.get("pending_intent");
Integer num = (Integer) extras.get("error_code");
if (pendingIntent == null && num == null) {
finish();
return;
}
Object obj = null;
if (pendingIntent == null) {
GoogleApiAvailability.getInstance().showErrorDialogFragment(this, ((Integer) Preconditions.checkNotNull(num)).intValue(), 2, this);
this.zaa = 1;
int i6 = e + 103;
b = i6 % 128;
if (i6 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
int i7 = e + 105;
b = i7 % 128;
int i8 = i7 % 2;
try {
startIntentSenderForResult(pendingIntent.getIntentSender(), 1, null, 0, 0, 0);
this.zaa = 1;
} catch (ActivityNotFoundException unused) {
if (extras.getBoolean("notify_manager", true)) {
GoogleApiManager.zam(this).zaz(new ConnectionResult(22, null), getIntent().getIntExtra("failing_client_id", -1));
} else {
Build.FINGERPRINT.contains("generic");
int i9 = e + 91;
b = i9 % 128;
if (i9 % 2 != 0) {
int i10 = 3 / 3;
}
}
this.zaa = 1;
finish();
} catch (IntentSender.SendIntentException unused2) {
finish();
}
}
@Override // android.app.Activity
protected final void onSaveInstanceState(Bundle bundle) {
int i = 2 % 2;
int i2 = e + 93;
b = i2 % 128;
int i3 = i2 % 2;
bundle.putInt(CommonCode.MapKey.HAS_RESOLUTION, this.zaa);
super.onSaveInstanceState(bundle);
int i4 = e + 63;
b = i4 % 128;
int i5 = i4 % 2;
}
@Override // android.app.Activity
protected final void onCreate(Bundle bundle) {
int i = 2 % 2;
Object[] objArr = new Object[1];
f(new int[]{0, 18, 0, 0}, false, new byte[]{1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{'+', '\t', 21, '\r', 13920}, (byte) (Color.alpha(0) + 98), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(12) - 96, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
g(new char[]{24, 3, 1, '%', '#', 11, 5, 16, 19, 24, '!', 26, '\'', '\f', 0, 14, '*', '\b', '+', 7, 21, 2, '+', 22, 16, 3}, (byte) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 108), 27 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
f(new int[]{18, 18, 0, 18}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i2 = b + 73;
e = i2 % 128;
int i3 = i2 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), ExpandableListView.getPackedPositionType(0L) + 5, (char) TextUtils.getTrimmedLength(""))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
f(new int[]{36, 48, 0, 0}, false, new byte[]{1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
g(new char[]{18, '+', 29, 18, '\'', 4, 11, 27, 18, 1, 11, 31, 11, 31, 4, 20, '\"', 11, 17, 11, 18, '\'', 20, '\n', '\"', '!', '.', '\r', 11, 24, ',', '\"', 13743, 13743, 3, 18, 2, ' ', 13818, 13818, '\'', 4, 18, 31, 11, 25, '\'', 4, '\t', '%', 20, 0, '\t', ' ', 11, 4, ' ', '\t', 16, ' ', '\'', 4, 18, 16}, (byte) (Drawable.resolveOpacity(0, 0) + 2), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 51, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
g(new char[]{16, 31, '/', '\"', 19, 31, 13883, 13883, 11, 24, 29, 19, '0', 11, ',', '\"', 18, '-', 20, '*', 20, '.', 3, '\r', '\t', ' ', 15, 16, 31, '!', 23, 4, 11, '0', 18, 3, 3, 11, 13799, 13799, 6, '.', 5, ' ', 18, 7, 29, 18, '+', 18, '\t', 31, '\'', ' ', '*', 20, '-', 20, 15, 18, 2, ' ', '\r', 4}, (byte) (60 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1))), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 30, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
g(new char[]{7, 0, '/', 21, '\r', 16, 13808, 13808, '\n', '\b', 16, '-', 18, '.', 13874, 13874, 22, '+', '\f', '\b', 19, '\n', '-', 18, 3, 31, 14, '/', 1, '#', 16, 18, '.', 7, 16, '\n', '/', 14, NistHelper.SEP_FS, 30, 15, '&', '\t', 16, 1, 31, 15, '&', 16, 20, 18, '.', '0', '%', 19, 24, '\r', '#', '\n', '*', 29, 20, 7, ',', '$', '0', '\r', '&', 22, 1, 17, '+', ',', 7}, (byte) (ExpandableListView.getPackedPositionGroup(0L) + 59), 73 - Process.getGidForName(""), objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
f(new int[]{84, 5, 0, 0}, true, new byte[]{0, 0, 0, 0, 1}, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
g(new char[]{16, 18, 11, 7, 4, 23, 20, 6, '\'', NistHelper.SEP_FS, '+', 20, '*', '\'', 7, 11, 13799, 13799, '&', 14, '+', 18, 7, '\'', 11, '\f', 17, 24, 1, 20, 18, 11, 11, 6, 19, 16}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.qr_code_generation_slip_specify_amount).substring(0, 2).codePointAt(0) + 18), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 2, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getScrollBarSize() >> 8) + 487, (ViewConfiguration.getTouchSlop() >> 8) + 5, (char) (KeyEvent.getMaxKeyCode() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
if (bundle != null) {
this.zaa = bundle.getInt(CommonCode.MapKey.HAS_RESOLUTION);
}
if (this.zaa != 1) {
int i4 = b + 93;
e = i4 % 128;
int i5 = i4 % 2;
zab();
}
}
@Override // android.app.Activity
protected void onResume() {
int i = 2 % 2;
int i2 = b + 51;
e = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
g(new char[]{24, 3, 1, '%', '#', 11, 5, 16, 19, 24, '!', 26, '\'', '\f', 0, 14, '*', '\b', '+', 7, 21, 2, '+', 22, 16, 3}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 74), 26 - (ViewConfiguration.getDoubleTapTimeout() >> 16), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(new int[]{18, 18, 0, 18}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = e + 11;
b = i4 % 128;
if (i4 % 2 != 0) {
baseContext.getApplicationContext();
throw null;
}
baseContext = baseContext.getApplicationContext();
int i5 = e + 59;
b = i5 % 128;
int i6 = i5 % 2;
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(View.MeasureSpec.getSize(0) + 492, 5 - View.resolveSize(0, 0), (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1378719468);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 486, Drawable.resolveOpacity(0, 0) + 5, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i7 = e + 113;
b = i7 % 128;
int i8 = i7 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
}
@Override // android.app.Activity
protected void onPause() {
int i = 2 % 2;
int i2 = e + 73;
b = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
g(new char[]{24, 3, 1, '%', '#', 11, 5, 16, 19, 24, '!', 26, '\'', '\f', 0, 14, '*', '\b', '+', 7, 21, 2, '+', 22, 16, 3}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.easycash_ncb_slip_save_success).substring(0, 42).codePointAt(7) - 3533), (ViewConfiguration.getTapTimeout() >> 16) + 26, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
f(new int[]{18, 18, 0, 18}, false, new byte[]{1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1}, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i4 = e + 43;
b = i4 % 128;
int i5 = i4 % 2;
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (ViewConfiguration.getEdgeSlop() >> 16), (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) View.MeasureSpec.makeMeasureSpec(0, 0))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - (ViewConfiguration.getPressedStateDuration() >> 16), MotionEvent.axisFromString("") + 6, (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
}
private static void f(int[] iArr, boolean z, byte[] bArr, Object[] objArr) {
int i;
char[] cArr;
int i2 = 2 % 2;
TVH tvh = new TVH();
int i3 = 0;
int i4 = iArr[0];
int i5 = 1;
int i6 = iArr[1];
int i7 = iArr[2];
int i8 = iArr[3];
char[] cArr2 = a;
int i9 = -1;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i10 = 0;
while (i10 < length) {
try {
Object[] objArr2 = new Object[i5];
objArr2[i3] = Integer.valueOf(cArr2[i10]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(Color.red(i3) + 223, 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) ((ViewConfiguration.getScrollDefaultDelay() >> 16) + 41977));
byte b2 = (byte) i3;
cArr = cArr2;
Object[] objArr3 = new Object[1];
h(b2, (byte) (b2 | 49), (byte) i9, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i10] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i10++;
int i11 = $10 + 69;
$11 = i11 % 128;
int i12 = i11 % 2;
cArr2 = cArr;
i3 = 0;
i5 = 1;
i9 = -1;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i6];
System.arraycopy(cArr2, i4, cArr4, 0, i6);
if (bArr != null) {
int i13 = $10 + 1;
$11 = i13 % 128;
int i14 = i13 % 2;
char[] cArr5 = new char[i6];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i6) {
if (bArr[tvh.c] == 1) {
int i15 = $11 + 71;
$10 = i15 % 128;
int i16 = i15 % 2;
int i17 = tvh.c;
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(View.MeasureSpec.makeMeasureSpec(0, 0) + 502, (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (54 - View.MeasureSpec.getSize(0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i17] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i18 = tvh.c;
try {
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(15 - KeyEvent.normalizeMetaState(0), 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 58133))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr5[i18] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
c2 = cArr5[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 402, 5 - TextUtils.getOffsetAfter("", 0), (char) (21607 - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
byte b3 = (byte) 0;
Object[] objArr7 = new Object[1];
h(b3, (byte) (b3 | 47), (byte) (-1), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr4 = cArr5;
}
if (i8 > 0) {
int i19 = $10 + 21;
$11 = i19 % 128;
int i20 = i19 % 2;
char[] cArr6 = new char[i6];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i6);
int i21 = i6 - i8;
System.arraycopy(cArr6, 0, cArr4, i21, i8);
System.arraycopy(cArr6, i8, cArr4, 0, i21);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i6];
while (true) {
tvh.c = i;
if (tvh.c >= i6) {
break;
}
cArr7[tvh.c] = cArr4[(i6 - tvh.c) - 1];
i = tvh.c + 1;
}
cArr4 = cArr7;
}
if (i7 > 0) {
int i22 = 0;
while (true) {
tvh.c = i22;
if (tvh.c >= i6) {
break;
}
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i22 = tvh.c + 1;
}
}
objArr[0] = new String(cArr4);
}
@Override // android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
int i = 2 % 2;
int i2 = b + 39;
e = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
f(new int[]{0, 18, 0, 0}, false, new byte[]{1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0}, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
g(new char[]{'+', '\t', 21, '\r', 13920}, (byte) (98 - (ViewConfiguration.getFadingEdgeLength() >> 16)), 5 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - KeyEvent.getDeadChar(0, 0), (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
f(new int[]{36, 48, 0, 0}, false, new byte[]{1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
g(new char[]{18, '+', 29, 18, '\'', 4, 11, 27, 18, 1, 11, 31, 11, 31, 4, 20, '\"', 11, 17, 11, 18, '\'', 20, '\n', '\"', '!', '.', '\r', 11, 24, ',', '\"', 13743, 13743, 3, 18, 2, ' ', 13818, 13818, '\'', 4, 18, 31, 11, 25, '\'', 4, '\t', '%', 20, 0, '\t', ' ', 11, 4, ' ', '\t', 16, ' ', '\'', 4, 18, 16}, (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 3), 64 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
g(new char[]{16, 31, '/', '\"', 19, 31, 13883, 13883, 11, 24, 29, 19, '0', 11, ',', '\"', 18, '-', 20, '*', 20, '.', 3, '\r', '\t', ' ', 15, 16, 31, '!', 23, 4, 11, '0', 18, 3, 3, 11, 13799, 13799, 6, '.', 5, ' ', 18, 7, 29, 18, '+', 18, '\t', 31, '\'', ' ', '*', 20, '-', 20, 15, 18, 2, ' ', '\r', 4}, (byte) (60 - (ViewConfiguration.getKeyRepeatTimeout() >> 16)), AndroidCharacter.getMirror('0') + 16, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
g(new char[]{7, 0, '/', 21, '\r', 16, 13808, 13808, '\n', '\b', 16, '-', 18, '.', 13874, 13874, 22, '+', '\f', '\b', 19, '\n', '-', 18, 3, 31, 14, '/', 1, '#', 16, 18, '.', 7, 16, '\n', '/', 14, NistHelper.SEP_FS, 30, 15, '&', '\t', 16, 1, 31, 15, '&', 16, 20, 18, '.', '0', '%', 19, 24, '\r', '#', '\n', '*', 29, 20, 7, ',', '$', '0', '\r', '&', 22, 1, 17, '+', ',', 7}, (byte) (58 - MotionEvent.axisFromString("")), 75 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
f(new int[]{84, 5, 0, 0}, true, new byte[]{0, 0, 0, 0, 1}, objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
g(new char[]{16, 18, 11, 7, 4, 23, 20, 6, '\'', NistHelper.SEP_FS, '+', 20, '*', '\'', 7, 11, 13799, 13799, '&', 14, '+', 18, 7, '\'', 11, '\f', 17, 24, 1, 20, 18, 11, 11, 6, 19, 16}, (byte) (59 - ((byte) KeyEvent.getModifierMetaStateMask())), 37 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - Gravity.getAbsoluteGravity(0, 0), 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) ((-1) - TextUtils.lastIndexOf("", '0')))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
int i4 = b + 33;
e = i4 % 128;
int i5 = i4 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:36:0x0130, code lost:
if (r2.b == r2.c) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x0169, code lost:
r10 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), r2};
r11 = o.xzZ.y.get(822107368);
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x01b7, code lost:
if (r11 == null) goto L40;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x0240, code lost:
if (((java.lang.Integer) ((java.lang.reflect.Method) r11).invoke(null, r10)).intValue() != r2.j) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:45:0x0244, code lost:
r10 = new java.lang.Object[]{r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, r2, java.lang.Integer.valueOf(r1), java.lang.Integer.valueOf(r1), r2, java.lang.Integer.valueOf(r1), r2};
r7 = o.xzZ.y.get(-1152873385);
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x0284, code lost:
if (r7 == null) goto L48;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x02fb, code lost:
r7 = ((java.lang.Integer) ((java.lang.reflect.Method) r7).invoke(null, r10)).intValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0308, code lost:
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r7];
r5[r2.e + 1] = r3[r10];
r7 = com.google.android.gms.common.api.GoogleApiActivity.$10 + 15;
com.google.android.gms.common.api.GoogleApiActivity.$11 = r7 % 128;
r7 = r7 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:51:0x0379, code lost:
r2.e += 2;
r7 = com.google.android.gms.common.api.GoogleApiActivity.$10 + 109;
com.google.android.gms.common.api.GoogleApiActivity.$11 = r7 % 128;
r7 = r7 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:52:0x0288, code lost:
r7 = (java.lang.Class) o.xzZ.c((android.view.ViewConfiguration.getTouchSlop() >> 8) + 327, 5 - (android.view.ViewConfiguration.getWindowTouchSlop() >> 8), (char) (android.view.KeyEvent.getMaxKeyCode() >> 16));
r12 = (byte) 0;
r13 = (byte) (r12 + 2);
r15 = new java.lang.Object[1];
h(r12, r13, (byte) (r13 - 3), r15);
r7 = r7.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(-1152873385, r7);
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x032c, code lost:
if (r2.a != r2.d) goto L54;
*/
/* JADX WARN: Code restructure failed: missing block: B:55:0x032e, code lost:
r7 = com.google.android.gms.common.api.GoogleApiActivity.$10 + 75;
com.google.android.gms.common.api.GoogleApiActivity.$11 = r7 % 128;
r7 = r7 % 2;
r2.f = ((r2.f + r1) - 1) % r1;
r2.j = ((r2.j + r1) - 1) % r1;
r7 = (r2.a * r1) + r2.f;
r10 = (r2.d * r1) + r2.j;
r5[r2.e] = r3[r7];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x0360, code lost:
r7 = (r2.a * r1) + r2.j;
r10 = (r2.d * r1) + r2.f;
r5[r2.e] = r3[r7];
r5[r2.e + 1] = r3[r10];
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x01ba, code lost:
r11 = (java.lang.Class) o.xzZ.c(android.view.View.MeasureSpec.makeMeasureSpec(0, 0) + 233, android.text.TextUtils.getOffsetBefore("", 0) + 5, (char) (22024 - android.text.TextUtils.getCapsMode("", 0, 0)));
r12 = (byte) 0;
r13 = r12;
r15 = new java.lang.Object[1];
h(r12, r13, (byte) (r13 - 1), r15);
r11 = r11.getMethod((java.lang.String) r15[0], java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class, java.lang.Object.class, java.lang.Integer.TYPE, java.lang.Object.class);
o.xzZ.y.put(822107368, r11);
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x0146, code lost:
r7 = com.google.android.gms.common.api.GoogleApiActivity.$11 + 29;
com.google.android.gms.common.api.GoogleApiActivity.$10 = r7 % 128;
r7 = r7 % 2;
r5[r2.e] = (char) (r2.b - r26);
r5[r2.e + 1] = (char) (r2.c - r26);
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x0144, code lost:
if (r2.b == r2.c) goto L35;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(char[] r25, byte r26, int r27, java.lang.Object[] r28) {
/*
Method dump skipped, instructions count: 936
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.common.api.GoogleApiActivity.g(char[], byte, int, java.lang.Object[]):void");
}
@Override // android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = e + 21;
b = i2 % 128;
int i3 = i2 % 2;
super.onStart();
int i4 = b + 31;
e = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
}