what-the-bank/sources/com/google/gson/internal/bind/JsonTreeReader.java

1318 lines
45 KiB
Java

package com.google.gson.internal.bind;
import android.graphics.PointF;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import java.io.IOException;
import java.io.Reader;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.Map;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.TVH;
import o.xzZ;
import org.jmrtd.PassportService;
/* loaded from: classes.dex */
public final class JsonTreeReader extends JsonReader {
private static final Object SENTINEL_CLOSED;
private static final Reader UNREADABLE_READER;
private static int b;
private static char[] d;
private int[] pathIndices;
private String[] pathNames;
private Object[] stack;
private int stackSize;
private static final byte[] $$a = {105, ISOFileInfo.A5, 80, 53};
private static final int $$b = 36;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
/* JADX WARN: Removed duplicated region for block: B:10:0x0026 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001e */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0026 -> 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 g(short r5, byte r6, int r7, java.lang.Object[] r8) {
/*
int r6 = r6 + 4
int r7 = r7 * 2
int r7 = 73 - r7
byte[] r0 = com.google.gson.internal.bind.JsonTreeReader.$$a
int r5 = r5 * 3
int r5 = 1 - r5
byte[] r1 = new byte[r5]
r2 = 0
if (r0 != 0) goto L14
r4 = r5
r3 = r2
goto L28
L14:
r3 = r2
L15:
int r6 = r6 + 1
byte r4 = (byte) r7
r1[r3] = r4
int r3 = r3 + 1
if (r3 != r5) goto L26
java.lang.String r5 = new java.lang.String
r5.<init>(r1, r2)
r8[r2] = r5
return
L26:
r4 = r0[r6]
L28:
int r4 = -r4
int r7 = r7 + r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.internal.bind.JsonTreeReader.g(short, byte, int, java.lang.Object[]):void");
}
static {
b = 1;
e();
UNREADABLE_READER = new Reader() { // from class: com.google.gson.internal.bind.JsonTreeReader.1
@Override // java.io.Reader
public int read(char[] cArr, int i, int i2) throws IOException {
throw new AssertionError();
}
@Override // java.io.Reader, java.io.Closeable, java.lang.AutoCloseable
public void close() throws IOException {
throw new AssertionError();
}
};
SENTINEL_CLOSED = new Object();
int i = e + 45;
b = i % 128;
if (i % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public JsonTreeReader(JsonElement jsonElement) {
super(UNREADABLE_READER);
this.stack = new Object[32];
this.stackSize = 0;
this.pathNames = new String[32];
this.pathIndices = new int[32];
push(jsonElement);
}
@Override // com.google.gson.stream.JsonReader
public final void beginArray() throws IOException {
int i = 2 % 2;
int i2 = e + 95;
b = i2 % 128;
if (i2 % 2 == 0) {
expect(JsonToken.BEGIN_ARRAY);
push(((JsonArray) peekStack()).iterator());
this.pathIndices[0] = 0;
} else {
expect(JsonToken.BEGIN_ARRAY);
push(((JsonArray) peekStack()).iterator());
this.pathIndices[this.stackSize - 1] = 0;
}
}
@Override // com.google.gson.stream.JsonReader
public final void endArray() throws IOException {
int i = 2 % 2;
int i2 = b + 1;
e = i2 % 128;
int i3 = i2 % 2;
expect(JsonToken.END_ARRAY);
popStack();
popStack();
int i4 = this.stackSize;
if (i4 > 0) {
int i5 = b;
int i6 = i5 + 23;
e = i6 % 128;
if (i6 % 2 != 0) {
int[] iArr = this.pathIndices;
int i7 = i4 + 35;
iArr[i7] = iArr[i7];
} else {
int[] iArr2 = this.pathIndices;
int i8 = i4 - 1;
iArr2[i8] = iArr2[i8] + 1;
}
int i9 = i5 + 113;
e = i9 % 128;
if (i9 % 2 != 0) {
int i10 = 2 / 4;
}
}
}
@Override // com.google.gson.stream.JsonReader
public final void beginObject() throws IOException {
int i = 2 % 2;
int i2 = e + 81;
b = i2 % 128;
int i3 = i2 % 2;
expect(JsonToken.BEGIN_OBJECT);
push(((JsonObject) peekStack()).entrySet().iterator());
int i4 = e + 55;
b = i4 % 128;
int i5 = i4 % 2;
}
@Override // com.google.gson.stream.JsonReader
public final void endObject() throws IOException {
int i = 2 % 2;
int i2 = b + 65;
e = i2 % 128;
if (i2 % 2 == 0) {
expect(JsonToken.END_OBJECT);
popStack();
popStack();
int i3 = this.stackSize;
if (i3 > 0) {
int[] iArr = this.pathIndices;
int i4 = i3 - 1;
iArr[i4] = iArr[i4] + 1;
}
int i5 = b + 61;
e = i5 % 128;
int i6 = i5 % 2;
return;
}
expect(JsonToken.END_OBJECT);
popStack();
popStack();
throw null;
}
@Override // com.google.gson.stream.JsonReader
public final boolean hasNext() throws IOException {
int i = 2 % 2;
int i2 = e + 97;
b = i2 % 128;
if (i2 % 2 != 0) {
JsonToken peek = peek();
if (peek == JsonToken.END_OBJECT) {
return false;
}
int i3 = b + 71;
e = i3 % 128;
int i4 = i3 % 2;
JsonToken jsonToken = JsonToken.END_ARRAY;
if (i4 != 0) {
int i5 = 86 / 0;
if (peek == jsonToken) {
return false;
}
} else if (peek == jsonToken) {
return false;
}
return true;
}
peek();
JsonToken jsonToken2 = JsonToken.END_OBJECT;
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.google.gson.stream.JsonReader
public final JsonToken peek() throws IOException {
int i = 2 % 2;
while (true) {
Object obj = null;
if (this.stackSize == 0) {
int i2 = e + 113;
b = i2 % 128;
if (i2 % 2 == 0) {
JsonToken jsonToken = JsonToken.END_DOCUMENT;
throw null;
}
JsonToken jsonToken2 = JsonToken.END_DOCUMENT;
int i3 = e + 21;
b = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 88 / 0;
}
return jsonToken2;
}
Object peekStack = peekStack();
if (!(peekStack instanceof Iterator)) {
if (!(!(peekStack instanceof JsonObject))) {
return JsonToken.BEGIN_OBJECT;
}
if (peekStack instanceof JsonArray) {
return JsonToken.BEGIN_ARRAY;
}
if (!(peekStack instanceof JsonPrimitive)) {
if (!(!(peekStack instanceof JsonNull))) {
return JsonToken.NULL;
}
if (peekStack == SENTINEL_CLOSED) {
throw new IllegalStateException("JsonReader is closed");
}
throw new AssertionError();
}
int i5 = e + 23;
b = i5 % 128;
int i6 = i5 % 2;
JsonPrimitive jsonPrimitive = (JsonPrimitive) peekStack;
if (jsonPrimitive.isString()) {
JsonToken jsonToken3 = JsonToken.STRING;
int i7 = e + 95;
b = i7 % 128;
if (i7 % 2 != 0) {
return jsonToken3;
}
throw null;
}
if (jsonPrimitive.isBoolean()) {
return JsonToken.BOOLEAN;
}
if (!jsonPrimitive.isNumber()) {
throw new AssertionError();
}
int i8 = b + 125;
e = i8 % 128;
if (i8 % 2 == 0) {
return JsonToken.NUMBER;
}
JsonToken jsonToken4 = JsonToken.NUMBER;
obj.hashCode();
throw null;
}
boolean z = this.stack[this.stackSize - 2] instanceof JsonObject;
Iterator it = (Iterator) peekStack;
if (!it.hasNext()) {
return z ? JsonToken.END_OBJECT : JsonToken.END_ARRAY;
}
if (z) {
return JsonToken.NAME;
}
push(it.next());
}
}
private Object peekStack() {
int i = 2 % 2;
int i2 = b + 43;
e = i2 % 128;
return i2 % 2 != 0 ? this.stack[this.stackSize << 1] : this.stack[this.stackSize - 1];
}
private Object popStack() {
Object obj;
int i = 2 % 2;
int i2 = e + 37;
int i3 = i2 % 128;
b = i3;
if (i2 % 2 == 0) {
Object[] objArr = this.stack;
int i4 = this.stackSize;
this.stackSize = i4;
obj = objArr[i4];
objArr[i4] = null;
} else {
Object[] objArr2 = this.stack;
int i5 = this.stackSize - 1;
this.stackSize = i5;
obj = objArr2[i5];
objArr2[i5] = null;
}
int i6 = i3 + 61;
e = i6 % 128;
int i7 = i6 % 2;
return obj;
}
private void expect(JsonToken jsonToken) throws IOException {
int i = 2 % 2;
int i2 = b + 111;
e = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
if (peek() == jsonToken) {
int i3 = b + 39;
e = i3 % 128;
if (i3 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
StringBuilder sb = new StringBuilder("Expected ");
sb.append(jsonToken);
sb.append(" but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
peek();
throw null;
}
@Override // com.google.gson.stream.JsonReader
public final String nextName() throws IOException {
int i = 2 % 2;
int i2 = e + 95;
b = i2 % 128;
int i3 = i2 % 2;
expect(JsonToken.NAME);
Map.Entry entry = (Map.Entry) ((Iterator) peekStack()).next();
String str = (String) entry.getKey();
this.pathNames[this.stackSize - 1] = str;
push(entry.getValue());
int i4 = e + 61;
b = i4 % 128;
if (i4 % 2 != 0) {
return str;
}
throw null;
}
@Override // com.google.gson.stream.JsonReader
public final String nextString() throws IOException {
int i = 2 % 2;
int i2 = e + 7;
b = i2 % 128;
int i3 = i2 % 2;
JsonToken peek = peek();
if (peek != JsonToken.STRING && peek != JsonToken.NUMBER) {
StringBuilder sb = new StringBuilder("Expected ");
sb.append(JsonToken.STRING);
sb.append(" but was ");
sb.append(peek);
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
String asString = ((JsonPrimitive) popStack()).getAsString();
int i4 = this.stackSize;
if (i4 > 0) {
int i5 = e + 107;
b = i5 % 128;
int i6 = i5 % 2;
int[] iArr = this.pathIndices;
int i7 = i4 - 1;
iArr[i7] = iArr[i7] + 1;
}
int i8 = e + 37;
b = i8 % 128;
int i9 = i8 % 2;
return asString;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0044, code lost:
r3 = r5.pathIndices;
r2 = r2 + 52;
r3[r2] = r3[r2] >> 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x004f, code lost:
r3 = r5.pathIndices;
r2 = r2 - 1;
r3[r2] = r3[r2] + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0037, code lost:
if (r2 > 0) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0023, code lost:
if (r2 > 0) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0039, code lost:
r3 = com.google.gson.internal.bind.JsonTreeReader.b + 101;
com.google.gson.internal.bind.JsonTreeReader.e = r3 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0042, code lost:
if ((r3 % 2) == 0) goto L12;
*/
@Override // com.google.gson.stream.JsonReader
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean nextBoolean() throws java.io.IOException {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.internal.bind.JsonTreeReader.e
int r1 = r1 + 93
int r2 = r1 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r2
int r1 = r1 % r0
if (r1 != 0) goto L26
com.google.gson.stream.JsonToken r1 = com.google.gson.stream.JsonToken.BOOLEAN
r5.expect(r1)
java.lang.Object r1 = r5.popStack()
com.google.gson.JsonPrimitive r1 = (com.google.gson.JsonPrimitive) r1
boolean r1 = r1.getAsBoolean()
int r2 = r5.stackSize
r3 = 81
int r3 = r3 / 0
if (r2 <= 0) goto L59
goto L39
L26:
com.google.gson.stream.JsonToken r1 = com.google.gson.stream.JsonToken.BOOLEAN
r5.expect(r1)
java.lang.Object r1 = r5.popStack()
com.google.gson.JsonPrimitive r1 = (com.google.gson.JsonPrimitive) r1
boolean r1 = r1.getAsBoolean()
int r2 = r5.stackSize
if (r2 <= 0) goto L59
L39:
int r3 = com.google.gson.internal.bind.JsonTreeReader.b
int r3 = r3 + 101
int r4 = r3 % 128
com.google.gson.internal.bind.JsonTreeReader.e = r4
int r3 = r3 % r0
if (r3 == 0) goto L4f
int[] r3 = r5.pathIndices
int r2 = r2 + 52
r4 = r3[r2]
int r4 = r4 >> 1
r3[r2] = r4
goto L59
L4f:
int[] r3 = r5.pathIndices
int r2 = r2 + (-1)
r4 = r3[r2]
int r4 = r4 + 1
r3[r2] = r4
L59:
int r2 = com.google.gson.internal.bind.JsonTreeReader.e
int r2 = r2 + 19
int r3 = r2 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r3
int r2 = r2 % r0
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.internal.bind.JsonTreeReader.nextBoolean():boolean");
}
@Override // com.google.gson.stream.JsonReader
public final void nextNull() throws IOException {
int i = 2 % 2;
int i2 = e + 13;
b = i2 % 128;
if (i2 % 2 == 0) {
expect(JsonToken.NULL);
popStack();
Object obj = null;
obj.hashCode();
throw null;
}
expect(JsonToken.NULL);
popStack();
int i3 = this.stackSize;
if (i3 > 0) {
int i4 = e + 41;
int i5 = i4 % 128;
b = i5;
int i6 = i4 % 2;
int[] iArr = this.pathIndices;
int i7 = i3 - 1;
iArr[i7] = iArr[i7] + 1;
int i8 = i5 + 107;
e = i8 % 128;
int i9 = i8 % 2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x0025, code lost:
if (r1 != com.google.gson.stream.JsonToken.STRING) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0028, code lost:
r0 = new java.lang.StringBuilder("Expected ");
r0.append(com.google.gson.stream.JsonToken.NUMBER);
r0.append(" but was ");
r0.append(r1);
r0.append(locationString());
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x004c, code lost:
throw new java.lang.IllegalStateException(r0.toString());
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x0021, code lost:
if (r1 != com.google.gson.stream.JsonToken.NUMBER) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r1 != com.google.gson.stream.JsonToken.NUMBER) goto L9;
*/
@Override // com.google.gson.stream.JsonReader
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final double nextDouble() throws java.io.IOException {
/*
r7 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.internal.bind.JsonTreeReader.b
int r1 = r1 + 19
int r2 = r1 % 128
com.google.gson.internal.bind.JsonTreeReader.e = r2
int r1 = r1 % r0
if (r1 == 0) goto L1b
com.google.gson.stream.JsonToken r1 = r7.peek()
com.google.gson.stream.JsonToken r2 = com.google.gson.stream.JsonToken.NUMBER
r3 = 35
int r3 = r3 / 0
if (r1 == r2) goto L4d
goto L23
L1b:
com.google.gson.stream.JsonToken r1 = r7.peek()
com.google.gson.stream.JsonToken r2 = com.google.gson.stream.JsonToken.NUMBER
if (r1 == r2) goto L4d
L23:
com.google.gson.stream.JsonToken r2 = com.google.gson.stream.JsonToken.STRING
if (r1 != r2) goto L28
goto L4d
L28:
java.lang.StringBuilder r0 = new java.lang.StringBuilder
java.lang.String r2 = "Expected "
r0.<init>(r2)
com.google.gson.stream.JsonToken r2 = com.google.gson.stream.JsonToken.NUMBER
r0.append(r2)
java.lang.String r2 = " but was "
r0.append(r2)
r0.append(r1)
java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
java.lang.String r2 = r7.locationString()
r0.append(r2)
java.lang.String r0 = r0.toString()
r1.<init>(r0)
throw r1
L4d:
java.lang.Object r1 = r7.peekStack()
com.google.gson.JsonPrimitive r1 = (com.google.gson.JsonPrimitive) r1
double r1 = r1.getAsDouble()
boolean r3 = r7.isLenient()
if (r3 != 0) goto L8c
int r3 = com.google.gson.internal.bind.JsonTreeReader.e
int r3 = r3 + 7
int r4 = r3 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r4
int r3 = r3 % r0
if (r3 == 0) goto L87
boolean r3 = java.lang.Double.isNaN(r1)
r3 = r3 ^ 1
if (r3 == 0) goto L77
boolean r3 = java.lang.Double.isInfinite(r1)
if (r3 != 0) goto L77
goto L8c
L77:
java.lang.NumberFormatException r0 = new java.lang.NumberFormatException
java.lang.String r3 = "JSON forbids NaN and infinities: "
java.lang.String r1 = java.lang.String.valueOf(r1)
java.lang.String r1 = r3.concat(r1)
r0.<init>(r1)
throw r0
L87:
java.lang.Double.isNaN(r1)
r0 = 0
throw r0
L8c:
r7.popStack()
int r3 = r7.stackSize
if (r3 <= 0) goto Lb8
int r4 = com.google.gson.internal.bind.JsonTreeReader.e
int r4 = r4 + 25
int r5 = r4 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r5
int r4 = r4 % r0
if (r4 != 0) goto La7
int[] r4 = r7.pathIndices
int r3 = r3 + 22
r6 = r4[r3]
r4[r3] = r6
goto Lb1
La7:
int[] r4 = r7.pathIndices
int r3 = r3 + (-1)
r6 = r4[r3]
int r6 = r6 + 1
r4[r3] = r6
Lb1:
int r5 = r5 + 93
int r3 = r5 % 128
com.google.gson.internal.bind.JsonTreeReader.e = r3
int r5 = r5 % r0
Lb8:
return r1
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.internal.bind.JsonTreeReader.nextDouble():double");
}
private static void f(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
int i;
int i2;
int i3;
Object method;
int length;
char[] cArr;
char[] cArr2;
int i4 = 2 % 2;
TVH tvh = new TVH();
int i5 = 0;
int i6 = iArr[0];
int i7 = 1;
int i8 = iArr[1];
int i9 = iArr[2];
int i10 = iArr[3];
char[] cArr3 = d;
char c = '0';
if (cArr3 != null) {
int i11 = $10 + 47;
$11 = i11 % 128;
if (i11 % 2 == 0) {
length = cArr3.length;
cArr = new char[length];
} else {
length = cArr3.length;
cArr = new char[length];
}
int i12 = 0;
while (i12 < length) {
try {
Object[] objArr2 = new Object[i7];
objArr2[i5] = Integer.valueOf(cArr3[i12]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr2 = cArr3;
} else {
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", c, i5) + PassportService.DEFAULT_MAX_BLOCKSIZE, (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 4, (char) (41977 - (ViewConfiguration.getEdgeSlop() >> 16)));
byte b2 = (byte) i5;
byte b3 = (byte) (b2 - 1);
cArr2 = cArr3;
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (-b3), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr[i12] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i12++;
cArr3 = cArr2;
i5 = 0;
i7 = 1;
c = '0';
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr3 = cArr;
}
char[] cArr4 = new char[i8];
System.arraycopy(cArr3, i6, cArr4, 0, i8);
if (bArr != null) {
char[] cArr5 = new char[i8];
tvh.c = 0;
char c2 = 0;
while (tvh.c < i8) {
if (bArr[tvh.c] == 1) {
int i13 = 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((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 501, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) (54 - KeyEvent.normalizeMetaState(0)))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i13] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} else {
int i14 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 != null) {
method = obj3;
} else {
method = ((Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0, 0) + 16, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (58134 - (KeyEvent.getMaxKeyCode() >> 16)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, method);
}
cArr5[i14] = ((Character) ((Method) method).invoke(null, objArr5)).charValue();
int i15 = $10 + 9;
$11 = i15 % 128;
int i16 = i15 % 2;
}
char c3 = cArr5[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(402 - (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 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) ((SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 21607));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 - 1);
Object[] objArr7 = new Object[1];
g(b4, b5, (byte) (b5 + 1), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
c2 = c3;
}
cArr4 = cArr5;
}
if (i10 > 0) {
char[] cArr6 = new char[i8];
i = 0;
System.arraycopy(cArr4, 0, cArr6, 0, i8);
int i17 = i8 - i10;
System.arraycopy(cArr6, 0, cArr4, i17, i10);
System.arraycopy(cArr6, i10, cArr4, 0, i17);
} else {
i = 0;
}
if (z) {
char[] cArr7 = new char[i8];
while (true) {
tvh.c = i;
if (tvh.c >= i8) {
break;
}
int i18 = $11 + 65;
$10 = i18 % 128;
if (i18 % 2 != 0) {
cArr7[tvh.c] = cArr4[(i8 >> tvh.c) >>> 1];
i = tvh.c;
} else {
cArr7[tvh.c] = cArr4[(i8 - tvh.c) - 1];
i = tvh.c + 1;
}
}
cArr4 = cArr7;
}
if (i9 > 0) {
int i19 = $11 + 105;
$10 = i19 % 128;
int i20 = i19 % 2 != 0 ? 1 : 0;
while (true) {
tvh.c = i20;
if (tvh.c >= i8) {
break;
}
int i21 = $11 + 93;
$10 = i21 % 128;
if (i21 % 2 != 0) {
cArr4[tvh.c] = (char) (cArr4[tvh.c] * iArr[2]);
i3 = tvh.c;
i2 = 1;
} else {
i2 = 1;
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i3 = tvh.c;
}
i20 = i3 + i2;
}
}
objArr[0] = new String(cArr4);
}
@Override // com.google.gson.stream.JsonReader
public final long nextLong() throws IOException {
int i = 2 % 2;
int i2 = e + 63;
b = i2 % 128;
if (i2 % 2 != 0) {
JsonToken peek = peek();
if (peek != JsonToken.NUMBER && peek != JsonToken.STRING) {
StringBuilder sb = new StringBuilder("Expected ");
sb.append(JsonToken.NUMBER);
sb.append(" but was ");
sb.append(peek);
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
long asLong = ((JsonPrimitive) peekStack()).getAsLong();
popStack();
int i3 = this.stackSize;
if (i3 > 0) {
int i4 = e + 75;
b = i4 % 128;
if (i4 % 2 != 0) {
int[] iArr = this.pathIndices;
int i5 = i3 - 1;
iArr[i5] = iArr[i5] + 1;
} else {
int[] iArr2 = this.pathIndices;
int i6 = i3 + 118;
iArr2[i6] = iArr2[i6];
}
}
int i7 = e + 15;
b = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 27 / 0;
}
return asLong;
}
peek();
JsonToken jsonToken = JsonToken.NUMBER;
Object obj = null;
obj.hashCode();
throw null;
}
@Override // com.google.gson.stream.JsonReader
public final int nextInt() throws IOException {
int i = 2 % 2;
int i2 = b + 7;
e = i2 % 128;
if (i2 % 2 == 0) {
JsonToken peek = peek();
if (peek != JsonToken.NUMBER && peek != JsonToken.STRING) {
StringBuilder sb = new StringBuilder("Expected ");
sb.append(JsonToken.NUMBER);
sb.append(" but was ");
sb.append(peek);
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
int asInt = ((JsonPrimitive) peekStack()).getAsInt();
popStack();
int i3 = this.stackSize;
if (i3 > 0) {
int i4 = e + 37;
b = i4 % 128;
int i5 = i4 % 2;
int[] iArr = this.pathIndices;
int i6 = i3 - 1;
iArr[i6] = iArr[i6] + 1;
}
return asInt;
}
peek();
JsonToken jsonToken = JsonToken.NUMBER;
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final JsonElement nextJsonElement() throws IOException {
int i = 2 % 2;
JsonToken peek = peek();
if (peek != JsonToken.NAME) {
int i2 = b + 121;
e = i2 % 128;
int i3 = i2 % 2;
if (peek != JsonToken.END_ARRAY && peek != JsonToken.END_OBJECT && peek != JsonToken.END_DOCUMENT) {
int i4 = e + 73;
b = i4 % 128;
if (i4 % 2 != 0) {
JsonElement jsonElement = (JsonElement) peekStack();
skipValue();
return jsonElement;
}
skipValue();
throw null;
}
}
StringBuilder sb = new StringBuilder("Unexpected ");
sb.append(peek);
sb.append(" when reading a JsonElement.");
throw new IllegalStateException(sb.toString());
}
@Override // com.google.gson.stream.JsonReader, java.io.Closeable, java.lang.AutoCloseable
public final void close() throws IOException {
int i = 2 % 2;
int i2 = b;
int i3 = i2 + 13;
e = i3 % 128;
int i4 = i3 % 2;
this.stack = new Object[]{SENTINEL_CLOSED};
this.stackSize = 1;
int i5 = i2 + 103;
e = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 89 / 0;
}
}
@Override // com.google.gson.stream.JsonReader
public final void skipValue() throws IOException {
int i = 2 % 2;
if (peek() == JsonToken.NAME) {
int i2 = b + 59;
e = i2 % 128;
if (i2 % 2 != 0) {
nextName();
String[] strArr = this.pathNames;
int i3 = this.stackSize * 4;
Object[] objArr = new Object[1];
f(new byte[]{1, 0, 0, 1}, new int[]{0, 4, 3, 2}, false, objArr);
strArr[i3] = ((String) objArr[0]).intern();
} else {
nextName();
String[] strArr2 = this.pathNames;
int i4 = this.stackSize - 2;
Object[] objArr2 = new Object[1];
f(new byte[]{1, 0, 0, 1}, new int[]{0, 4, 3, 2}, false, objArr2);
strArr2[i4] = ((String) objArr2[0]).intern();
}
} else {
popStack();
int i5 = this.stackSize;
if (i5 > 0) {
int i6 = e + 105;
b = i6 % 128;
int i7 = i6 % 2;
Object[] objArr3 = new Object[1];
f(new byte[]{1, 0, 0, 1}, new int[]{0, 4, 3, 2}, false, objArr3);
this.pathNames[i5 - 1] = ((String) objArr3[0]).intern();
}
}
int i8 = this.stackSize;
if (i8 > 0) {
int[] iArr = this.pathIndices;
int i9 = i8 - 1;
iArr[i9] = iArr[i9] + 1;
}
}
@Override // com.google.gson.stream.JsonReader
public final String toString() {
int i = 2 % 2;
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(locationString());
String obj = sb.toString();
int i2 = e + 119;
b = i2 % 128;
int i3 = i2 % 2;
return obj;
}
public final void promoteNameToValue() throws IOException {
int i = 2 % 2;
expect(JsonToken.NAME);
Map.Entry entry = (Map.Entry) ((Iterator) peekStack()).next();
push(entry.getValue());
push(new JsonPrimitive((String) entry.getKey()));
int i2 = e + 9;
b = i2 % 128;
if (i2 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x002a, code lost:
r6.stack = java.util.Arrays.copyOf(r3, r2);
r6.pathIndices = java.util.Arrays.copyOf(r6.pathIndices, r2);
r6.pathNames = (java.lang.String[]) java.util.Arrays.copyOf(r6.pathNames, r2);
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0043, code lost:
r1 = r2 << 1;
r6.stack = java.util.Arrays.copyOf(r3, r1);
r6.pathIndices = java.util.Arrays.copyOf(r6.pathIndices, r1);
r6.pathNames = (java.lang.String[]) java.util.Arrays.copyOf(r6.pathNames, r1);
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x001f, code lost:
if (r2 == r3.length) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0017, code lost:
if (r2 == r3.length) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0021, code lost:
r1 = r1 + 39;
com.google.gson.internal.bind.JsonTreeReader.b = r1 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0028, code lost:
if ((r1 % 2) != 0) goto L12;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void push(java.lang.Object r7) {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.internal.bind.JsonTreeReader.e
int r2 = r1 + 79
int r3 = r2 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r3
int r2 = r2 % r0
if (r2 != 0) goto L1a
int r2 = r6.stackSize
java.lang.Object[] r3 = r6.stack
int r4 = r3.length
r5 = 49
int r5 = r5 / 0
if (r2 != r4) goto L5d
goto L21
L1a:
int r2 = r6.stackSize
java.lang.Object[] r3 = r6.stack
int r4 = r3.length
if (r2 != r4) goto L5d
L21:
int r1 = r1 + 39
int r4 = r1 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r4
int r1 = r1 % r0
if (r1 != 0) goto L43
java.lang.Object[] r1 = java.util.Arrays.copyOf(r3, r2)
r6.stack = r1
int[] r1 = r6.pathIndices
int[] r1 = java.util.Arrays.copyOf(r1, r2)
r6.pathIndices = r1
java.lang.String[] r1 = r6.pathNames
java.lang.Object[] r1 = java.util.Arrays.copyOf(r1, r2)
java.lang.String[] r1 = (java.lang.String[]) r1
r6.pathNames = r1
goto L5d
L43:
int r1 = r2 << 1
java.lang.Object[] r2 = java.util.Arrays.copyOf(r3, r1)
r6.stack = r2
int[] r2 = r6.pathIndices
int[] r2 = java.util.Arrays.copyOf(r2, r1)
r6.pathIndices = r2
java.lang.String[] r2 = r6.pathNames
java.lang.Object[] r1 = java.util.Arrays.copyOf(r2, r1)
java.lang.String[] r1 = (java.lang.String[]) r1
r6.pathNames = r1
L5d:
java.lang.Object[] r1 = r6.stack
int r2 = r6.stackSize
int r3 = r2 + 1
r6.stackSize = r3
r1[r2] = r7
int r7 = com.google.gson.internal.bind.JsonTreeReader.b
int r7 = r7 + 73
int r1 = r7 % 128
com.google.gson.internal.bind.JsonTreeReader.e = r1
int r7 = r7 % r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.internal.bind.JsonTreeReader.push(java.lang.Object):void");
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x006e, code lost:
r3 = r3 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0070, code lost:
if (r3 >= r4) goto L39;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0076, code lost:
if ((r5[r3] instanceof java.util.Iterator) == false) goto L40;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0078, code lost:
r1.append('.');
r4 = r10.pathNames[r3];
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0081, code lost:
if (r4 == null) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0083, code lost:
r1.append(r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x002f, code lost:
r3 = r3 + 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x0031, code lost:
if (r3 >= r4) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0033, code lost:
r6 = r6 + 63;
r4 = r6 % 128;
com.google.gson.internal.bind.JsonTreeReader.e = r4;
r6 = r6 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x003e, code lost:
if ((r5[r3] instanceof java.util.Iterator) == false) goto L36;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0040, code lost:
r4 = r4 + 7;
com.google.gson.internal.bind.JsonTreeReader.b = r4 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0047, code lost:
if ((r4 % 2) != 0) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x0049, code lost:
r1.append(org.bouncycastle.pqc.math.linearalgebra.Matrix.MATRIX_TYPE_RANDOM_REGULAR);
r1.append(r10.pathIndices[r3]);
r4 = 16;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x0066, code lost:
r1.append(r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:32:0x0058, code lost:
r1.append('[');
r1.append(r10.pathIndices[r3]);
r4 = ']';
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x002d, code lost:
if ((r7 instanceof com.google.gson.JsonArray) != false) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0024, code lost:
if ((r7 instanceof com.google.gson.JsonArray) != false) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x006c, code lost:
if ((r7 instanceof com.google.gson.JsonObject) == false) goto L38;
*/
@Override // com.google.gson.stream.JsonReader
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.String getPath() {
/*
r10 = this;
r0 = 2
int r1 = r0 % r0
java.lang.StringBuilder r1 = new java.lang.StringBuilder
java.lang.String r2 = "$"
r1.<init>(r2)
r2 = 0
r3 = r2
Lc:
int r4 = r10.stackSize
if (r3 >= r4) goto L89
int r5 = com.google.gson.internal.bind.JsonTreeReader.e
int r5 = r5 + 125
int r6 = r5 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r6
int r5 = r5 % r0
if (r5 != 0) goto L27
java.lang.Object[] r5 = r10.stack
r7 = r5[r3]
boolean r8 = r7 instanceof com.google.gson.JsonArray
r9 = 93
int r9 = r9 / r2
if (r8 == 0) goto L6a
goto L2f
L27:
java.lang.Object[] r5 = r10.stack
r7 = r5[r3]
boolean r8 = r7 instanceof com.google.gson.JsonArray
if (r8 == 0) goto L6a
L2f:
int r3 = r3 + 1
if (r3 >= r4) goto L86
int r6 = r6 + 63
int r4 = r6 % 128
com.google.gson.internal.bind.JsonTreeReader.e = r4
int r6 = r6 % r0
r5 = r5[r3]
boolean r5 = r5 instanceof java.util.Iterator
if (r5 == 0) goto L86
int r4 = r4 + 7
int r5 = r4 % 128
com.google.gson.internal.bind.JsonTreeReader.b = r5
int r4 = r4 % r0
if (r4 != 0) goto L58
r4 = 82
r1.append(r4)
int[] r4 = r10.pathIndices
r4 = r4[r3]
r1.append(r4)
r4 = 16
goto L66
L58:
r4 = 91
r1.append(r4)
int[] r4 = r10.pathIndices
r4 = r4[r3]
r1.append(r4)
r4 = 93
L66:
r1.append(r4)
goto L86
L6a:
boolean r6 = r7 instanceof com.google.gson.JsonObject
if (r6 == 0) goto L86
int r3 = r3 + 1
if (r3 >= r4) goto L86
r4 = r5[r3]
boolean r4 = r4 instanceof java.util.Iterator
if (r4 == 0) goto L86
r4 = 46
r1.append(r4)
java.lang.String[] r4 = r10.pathNames
r4 = r4[r3]
if (r4 == 0) goto L86
r1.append(r4)
L86:
int r3 = r3 + 1
goto Lc
L89:
java.lang.String r0 = r1.toString()
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.internal.bind.JsonTreeReader.getPath():java.lang.String");
}
private String locationString() {
int i = 2 % 2;
StringBuilder sb = new StringBuilder(" at path ");
sb.append(getPath());
String obj = sb.toString();
int i2 = e + 37;
b = i2 % 128;
int i3 = i2 % 2;
return obj;
}
static void e() {
d = new char[]{39996, 40036, 40059, 40063};
}
}