what-the-bank/sources/com/google/gson/stream/JsonReader.java

2266 lines
76 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.gson.stream;
import android.graphics.Color;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.cdma.CdmaCellLocation;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.gson.internal.JsonReaderInternalAccess;
import com.google.gson.internal.bind.JsonTreeReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.Reader;
import java.lang.reflect.Method;
import java.util.Arrays;
import o.C4593bdB;
import o.xzZ;
/* loaded from: classes.dex */
public class JsonReader implements Closeable {
private static final long MIN_INCOMPLETE_INTEGER = -922337203685477580L;
private static final int NUMBER_CHAR_DECIMAL = 3;
private static final int NUMBER_CHAR_DIGIT = 2;
private static final int NUMBER_CHAR_EXP_DIGIT = 7;
private static final int NUMBER_CHAR_EXP_E = 5;
private static final int NUMBER_CHAR_EXP_SIGN = 6;
private static final int NUMBER_CHAR_FRACTION_DIGIT = 4;
private static final int NUMBER_CHAR_NONE = 0;
private static final int NUMBER_CHAR_SIGN = 1;
private static final int PEEKED_BEGIN_ARRAY = 3;
private static final int PEEKED_BEGIN_OBJECT = 1;
private static final int PEEKED_BUFFERED = 11;
private static final int PEEKED_DOUBLE_QUOTED = 9;
private static final int PEEKED_DOUBLE_QUOTED_NAME = 13;
private static final int PEEKED_END_ARRAY = 4;
private static final int PEEKED_END_OBJECT = 2;
private static final int PEEKED_EOF = 17;
private static final int PEEKED_FALSE = 6;
private static final int PEEKED_LONG = 15;
private static final int PEEKED_NONE = 0;
private static final int PEEKED_NULL = 7;
private static final int PEEKED_NUMBER = 16;
private static final int PEEKED_SINGLE_QUOTED = 8;
private static final int PEEKED_SINGLE_QUOTED_NAME = 12;
private static final int PEEKED_TRUE = 5;
private static final int PEEKED_UNQUOTED = 10;
private static final int PEEKED_UNQUOTED_NAME = 14;
private static long c;
private static int e;
private final Reader in;
private int[] pathIndices;
private String[] pathNames;
private long peekedLong;
private int peekedNumberLength;
private String peekedString;
private int[] stack;
private static final byte[] $$d = {82, -108, -39, 86};
private static final int $$e = 107;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private boolean lenient = false;
private final char[] buffer = new char[1024];
private int pos = 0;
private int limit = 0;
private int lineNumber = 0;
private int lineStart = 0;
int peeked = 0;
private int stackSize = 1;
private static void i(int i, short s, short s2, Object[] objArr) {
int i2 = s2 * 2;
int i3 = i + 77;
byte[] bArr = $$d;
int i4 = s + 4;
byte[] bArr2 = new byte[i2 + 1];
int i5 = -1;
if (bArr == null) {
i3 = i2 + (-i4);
i4 = i4;
i5 = -1;
}
while (true) {
int i6 = i4 + 1;
int i7 = i5 + 1;
bArr2[i7] = (byte) i3;
if (i7 == i2) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i3 += -bArr[i6];
i4 = i6;
i5 = i7;
}
}
}
private static void h(char[] cArr, int i, Object[] objArr) {
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = $11 + 75;
$10 = i3 % 128;
if (i3 % 2 != 0) {
int i4 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c(402 - View.resolveSizeAndState(0, 0, 0), (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)) + 5, (char) (View.combineMeasuredStates(0, 0) + 21608));
byte b = (byte) 0;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
i(b, b2, (byte) (b2 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i4] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() * (c % (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - KeyEvent.getDeadChar(0, 0), (CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 5, (char) (ViewConfiguration.getPressedStateDuration() >> 16));
byte b3 = (byte) ($$e & 5);
byte b4 = (byte) (-b3);
Object[] objArr5 = new Object[1];
i(b3, b4, (byte) (b4 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
int i5 = c4593bdB.e;
Object[] objArr6 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1229953068);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(402 - Color.argb(0, 0, 0, 0), TextUtils.getCapsMode("", 0, 0) + 5, (char) (((Process.getThreadPriority(0) + 20) >> 6) + 21608));
byte b5 = (byte) 0;
byte b6 = (byte) (b5 - 1);
Object[] objArr7 = new Object[1];
i(b5, b6, (byte) (b6 + 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj3);
}
jArr[i5] = ((Long) ((Method) obj3).invoke(null, objArr6)).longValue() ^ (c ^ (-6958928035870403642L));
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c(View.combineMeasuredStates(0, 0) + 238, TextUtils.lastIndexOf("", '0', 0) + 6, (char) (TextUtils.lastIndexOf("", '0', 0) + 1));
byte b7 = (byte) ($$e & 5);
byte b8 = (byte) (-b7);
Object[] objArr9 = new Object[1];
i(b7, b8, (byte) (b8 + 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i6 = $10 + 67;
$11 = i6 % 128;
int i7 = i6 % 2;
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
try {
Object[] objArr10 = {c4593bdB, c4593bdB};
Object obj5 = xzZ.y.get(-1143917229);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 237, 4 - TextUtils.indexOf((CharSequence) "", '0', 0), (char) (1 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))));
byte b9 = (byte) ($$e & 5);
byte b10 = (byte) (-b9);
Object[] objArr11 = new Object[1];
i(b9, b10, (byte) (b10 + 1), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj5);
}
((Method) obj5).invoke(null, objArr10);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr2);
}
public JsonReader(Reader reader) {
int[] iArr = new int[32];
this.stack = iArr;
iArr[0] = 6;
this.pathNames = new String[32];
this.pathIndices = new int[32];
if (reader == null) {
throw new NullPointerException("in == null");
}
this.in = reader;
int i = a + 107;
e = i % 128;
if (i % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public void beginArray() throws IOException {
int i = 2 % 2;
int i2 = e + 31;
a = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
int i3 = this.peeked;
if (i3 == 0) {
i3 = doPeek();
}
if (i3 == 3) {
int i4 = a + 37;
e = i4 % 128;
int i5 = i4 % 2;
push(1);
this.pathIndices[this.stackSize - 1] = 0;
this.peeked = 0;
return;
}
StringBuilder sb = new StringBuilder("Expected BEGIN_ARRAY but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
public void endArray() throws IOException {
int i = 2 % 2;
int i2 = a + 81;
e = i2 % 128;
int i3 = i2 % 2;
int i4 = this.peeked;
if (i4 == 0) {
i4 = doPeek();
}
if (i4 != 4) {
StringBuilder sb = new StringBuilder("Expected END_ARRAY but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
int i5 = e;
int i6 = i5 + 61;
a = i6 % 128;
int i7 = i6 % 2;
int i8 = this.stackSize;
this.stackSize = i8 - 1;
int[] iArr = this.pathIndices;
int i9 = i8 - 2;
iArr[i9] = iArr[i9] + 1;
this.peeked = 0;
int i10 = i5 + 73;
a = i10 % 128;
int i11 = i10 % 2;
}
public void beginObject() throws IOException {
int i = 2 % 2;
int i2 = e + 105;
int i3 = i2 % 128;
a = i3;
int i4 = i2 % 2;
int i5 = this.peeked;
if (i5 == 0) {
int i6 = i3 + 67;
e = i6 % 128;
int i7 = i6 % 2;
i5 = doPeek();
}
if (i5 == 1) {
push(3);
this.peeked = 0;
} else {
StringBuilder sb = new StringBuilder("Expected BEGIN_OBJECT but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
}
public void endObject() throws IOException {
int i = 2 % 2;
int i2 = a + 9;
e = i2 % 128;
int i3 = i2 % 2;
int i4 = this.peeked;
if (i4 == 0) {
i4 = doPeek();
}
if (i4 == 2) {
int i5 = a + 39;
e = i5 % 128;
int i6 = i5 % 2;
int i7 = this.stackSize;
int i8 = i7 - 1;
this.stackSize = i8;
this.pathNames[i8] = null;
int[] iArr = this.pathIndices;
int i9 = i7 - 2;
iArr[i9] = iArr[i9] + 1;
this.peeked = 0;
return;
}
StringBuilder sb = new StringBuilder("Expected END_OBJECT but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
public boolean hasNext() throws IOException {
int i = 2 % 2;
int i2 = this.peeked;
if (i2 == 0) {
i2 = doPeek();
}
if (i2 != 2) {
int i3 = a + 59;
int i4 = i3 % 128;
e = i4;
int i5 = i3 % 2;
if (i2 != 4) {
int i6 = i4 + 53;
a = i6 % 128;
int i7 = i6 % 2;
return true;
}
}
return false;
}
/* JADX WARN: Code restructure failed: missing block: B:29:0x001b, code lost:
r1 = doPeek();
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x0019, code lost:
if (r1 == 0) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r1 == 0) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public com.google.gson.stream.JsonToken peek() throws java.io.IOException {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.stream.JsonReader.a
int r1 = r1 + 61
int r2 = r1 % 128
com.google.gson.stream.JsonReader.e = r2
int r1 = r1 % r0
if (r1 != 0) goto L17
int r1 = r4.peeked
r2 = 52
int r2 = r2 / 0
if (r1 != 0) goto L1f
goto L1b
L17:
int r1 = r4.peeked
if (r1 != 0) goto L1f
L1b:
int r1 = r4.doPeek()
L1f:
switch(r1) {
case 1: goto L4c;
case 2: goto L49;
case 3: goto L46;
case 4: goto L43;
case 5: goto L40;
case 6: goto L40;
case 7: goto L3d;
case 8: goto L3a;
case 9: goto L3a;
case 10: goto L3a;
case 11: goto L3a;
case 12: goto L2e;
case 13: goto L2e;
case 14: goto L2e;
case 15: goto L2b;
case 16: goto L2b;
case 17: goto L28;
default: goto L22;
}
L22:
java.lang.AssertionError r0 = new java.lang.AssertionError
r0.<init>()
throw r0
L28:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.END_DOCUMENT
return r0
L2b:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.NUMBER
return r0
L2e:
com.google.gson.stream.JsonToken r1 = com.google.gson.stream.JsonToken.NAME
int r2 = com.google.gson.stream.JsonReader.e
int r2 = r2 + 67
int r3 = r2 % 128
com.google.gson.stream.JsonReader.a = r3
int r2 = r2 % r0
return r1
L3a:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.STRING
return r0
L3d:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.NULL
return r0
L40:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.BOOLEAN
return r0
L43:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.END_ARRAY
return r0
L46:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.BEGIN_ARRAY
return r0
L49:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.END_OBJECT
return r0
L4c:
com.google.gson.stream.JsonToken r0 = com.google.gson.stream.JsonToken.BEGIN_OBJECT
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.peek():com.google.gson.stream.JsonToken");
}
int doPeek() throws IOException {
int i = 2 % 2;
int[] iArr = this.stack;
int i2 = this.stackSize - 1;
int i3 = iArr[i2];
if (i3 == 1) {
iArr[i2] = 2;
} else {
if (i3 != 2) {
if (i3 != 3) {
int i4 = a;
int i5 = i4 + 103;
e = i5 % 128;
int i6 = i5 % 2;
if (i3 != 5) {
if (i3 == 4) {
iArr[i2] = 5;
int nextNonWhitespace = nextNonWhitespace(true);
if (nextNonWhitespace != 58) {
if (nextNonWhitespace != 61) {
throw syntaxError("Expected ':'");
}
checkLenient();
if (this.pos < this.limit || fillBuffer(1)) {
char[] cArr = this.buffer;
int i7 = this.pos;
if (cArr[i7] == '>') {
this.pos = i7 + 1;
}
}
}
} else if (i3 == 6) {
if (this.lenient) {
consumeNonExecutePrefix();
}
this.stack[this.stackSize - 1] = 7;
} else if (i3 == 7) {
int i8 = i4 + 43;
e = i8 % 128;
if (i8 % 2 != 0 ? nextNonWhitespace(false) == -1 : nextNonWhitespace(true) == -1) {
this.peeked = 17;
return 17;
}
checkLenient();
this.pos--;
} else if (i3 == 8) {
throw new IllegalStateException("JsonReader is closed");
}
}
}
iArr[i2] = 4;
if (i3 == 5) {
int i9 = a + 11;
e = i9 % 128;
int i10 = i9 % 2;
int nextNonWhitespace2 = nextNonWhitespace(true);
if (nextNonWhitespace2 != 44) {
if (nextNonWhitespace2 != 59) {
if (nextNonWhitespace2 != 125) {
throw syntaxError("Unterminated object");
}
int i11 = e + 101;
a = i11 % 128;
int i12 = i11 % 2;
this.peeked = 2;
return 2;
}
checkLenient();
}
}
int nextNonWhitespace3 = nextNonWhitespace(true);
if (nextNonWhitespace3 == 34) {
this.peeked = 13;
return 13;
}
if (nextNonWhitespace3 == 39) {
checkLenient();
this.peeked = 12;
return 12;
}
if (nextNonWhitespace3 == 125) {
if (i3 == 5) {
throw syntaxError("Expected name");
}
this.peeked = 2;
return 2;
}
int i13 = a + 57;
e = i13 % 128;
int i14 = i13 % 2;
checkLenient();
this.pos--;
if (!isLiteral((char) nextNonWhitespace3)) {
throw syntaxError("Expected name");
}
this.peeked = 14;
return 14;
}
int nextNonWhitespace4 = nextNonWhitespace(true);
if (nextNonWhitespace4 != 44) {
if (nextNonWhitespace4 != 59) {
if (nextNonWhitespace4 != 93) {
throw syntaxError("Unterminated array");
}
this.peeked = 4;
return 4;
}
checkLenient();
int i15 = e + 55;
a = i15 % 128;
int i16 = i15 % 2;
}
}
int nextNonWhitespace5 = nextNonWhitespace(true);
if (nextNonWhitespace5 == 34) {
this.peeked = 9;
return 9;
}
if (nextNonWhitespace5 == 39) {
checkLenient();
this.peeked = 8;
return 8;
}
if (nextNonWhitespace5 != 44 && nextNonWhitespace5 != 59) {
if (nextNonWhitespace5 == 91) {
this.peeked = 3;
return 3;
}
if (nextNonWhitespace5 != 93) {
if (nextNonWhitespace5 == 123) {
this.peeked = 1;
return 1;
}
this.pos--;
int peekKeyword = peekKeyword();
if (peekKeyword != 0) {
int i17 = e + 17;
a = i17 % 128;
int i18 = i17 % 2;
return peekKeyword;
}
int peekNumber = peekNumber();
if (peekNumber != 0) {
int i19 = e + 33;
a = i19 % 128;
int i20 = i19 % 2;
return peekNumber;
}
if (!isLiteral(this.buffer[this.pos])) {
throw syntaxError("Expected value");
}
checkLenient();
this.peeked = 10;
return 10;
}
if (i3 == 1) {
this.peeked = 4;
return 4;
}
}
if (i3 != 1) {
int i21 = e + 35;
int i22 = i21 % 128;
a = i22;
if (i21 % 2 == 0 ? i3 != 2 : i3 != 2) {
int i23 = i22 + 49;
e = i23 % 128;
int i24 = i23 % 2;
throw syntaxError("Unexpected value");
}
}
checkLenient();
this.pos--;
this.peeked = 7;
return 7;
}
/* JADX WARN: Removed duplicated region for block: B:18:0x0075 */
/* JADX WARN: Removed duplicated region for block: B:46:0x00c1 */
/* JADX WARN: Removed duplicated region for block: B:56:0x00ea */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private int peekKeyword() throws java.io.IOException {
/*
Method dump skipped, instructions count: 260
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.peekKeyword():int");
}
/* JADX WARN: Code restructure failed: missing block: B:13:0x00c3, code lost:
if (r10 != 2) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x00c5, code lost:
if (r11 == false) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x00cb, code lost:
if (r13 != Long.MIN_VALUE) goto L63;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x00cd, code lost:
r2 = com.google.gson.stream.JsonReader.e + 1;
com.google.gson.stream.JsonReader.a = r2 % 128;
r2 = r2 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x00d6, code lost:
if (r12 == false) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x00dc, code lost:
if (r13 != 0) goto L66;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x00de, code lost:
if (r12 != false) goto L70;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x00e0, code lost:
if (r12 != false) goto L68;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x00e2, code lost:
r13 = -r13;
*/
/* JADX WARN: Code restructure failed: missing block: B:24:0x00e3, code lost:
r20.peekedLong = r13;
r20.pos += r9;
r20.peeked = 15;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x00ee, code lost:
return 15;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x00ef, code lost:
if (r10 == 2) goto L77;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x00f1, code lost:
r2 = com.google.gson.stream.JsonReader.a + 23;
com.google.gson.stream.JsonReader.e = r2 % 128;
r2 = r2 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x00fb, code lost:
if (r10 == 4) goto L77;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x00fe, code lost:
if (r10 == 7) goto L77;
*/
/* JADX WARN: Code restructure failed: missing block: B:32:0x0100, code lost:
return 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x0102, code lost:
r20.peekedNumberLength = r9;
r20.peeked = 16;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x0108, code lost:
return 16;
*/
/* JADX WARN: Code restructure failed: missing block: B:77:0x00a0, code lost:
if (r10 == 6) goto L51;
*/
/* JADX WARN: Code restructure failed: missing block: B:82:0x00c1, code lost:
if (isLiteral(r15) != false) goto L79;
*/
/* JADX WARN: Code restructure failed: missing block: B:83:0x0109, code lost:
return 0;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r10v11 */
/* JADX WARN: Type inference failed for: r10v13 */
/* JADX WARN: Type inference failed for: r10v14 */
/* JADX WARN: Type inference failed for: r10v16 */
/* JADX WARN: Type inference failed for: r10v17 */
/* JADX WARN: Type inference failed for: r10v2 */
/* JADX WARN: Type inference failed for: r10v20 */
/* JADX WARN: Type inference failed for: r10v3 */
/* JADX WARN: Type inference failed for: r10v4 */
/* JADX WARN: Type inference failed for: r10v5 */
/* JADX WARN: Type inference failed for: r10v6 */
/* JADX WARN: Type inference failed for: r10v7 */
/* JADX WARN: Type inference failed for: r10v8 */
/* JADX WARN: Type inference failed for: r10v9 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private int peekNumber() throws java.io.IOException {
/*
Method dump skipped, instructions count: 348
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.peekNumber():int");
}
private boolean isLiteral(char c2) throws IOException {
int i = 2 % 2;
int i2 = a;
int i3 = i2 + 95;
e = i3 % 128;
int i4 = i3 % 2;
if (c2 == '\t' || c2 == '\n') {
return false;
}
int i5 = i2 + 27;
e = i5 % 128;
int i6 = i5 % 2;
if (c2 == '\f' || c2 == '\r') {
return false;
}
int i7 = i2 + 109;
e = i7 % 128;
if (i7 % 2 == 0) {
if (c2 == '\r') {
return false;
}
} else if (c2 == ' ') {
return false;
}
if (c2 != '#') {
int i8 = i2 + 31;
e = i8 % 128;
int i9 = i8 % 2;
if (c2 == ',') {
return false;
}
if (c2 != '/' && c2 != '=') {
if (c2 == '{' || c2 == '}' || c2 == ':') {
return false;
}
if (c2 != ';') {
int i10 = i2 + 79;
int i11 = i10 % 128;
e = i11;
int i12 = i10 % 2;
switch (c2) {
case '[':
case ']':
return false;
case '\\':
break;
default:
int i13 = i11 + 41;
a = i13 % 128;
int i14 = i13 % 2;
return true;
}
}
}
}
checkLenient();
return false;
}
public String nextName() throws IOException {
String nextQuotedValue;
int i = 2 % 2;
int i2 = this.peeked;
if (i2 == 0) {
int i3 = a + 109;
e = i3 % 128;
if (i3 % 2 == 0) {
i2 = doPeek();
int i4 = 16 / 0;
} else {
i2 = doPeek();
}
}
if (i2 == 14) {
nextQuotedValue = nextUnquotedValue();
} else if (i2 == 12) {
nextQuotedValue = nextQuotedValue('\'');
} else {
if (i2 != 13) {
StringBuilder sb = new StringBuilder("Expected a name but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
nextQuotedValue = nextQuotedValue('\"');
}
this.peeked = 0;
this.pathNames[this.stackSize - 1] = nextQuotedValue;
int i5 = a + 113;
e = i5 % 128;
int i6 = i5 % 2;
return nextQuotedValue;
}
public String nextString() throws IOException {
String str;
int i = 2 % 2;
int i2 = this.peeked;
if (i2 == 0) {
i2 = doPeek();
}
if (i2 == 10) {
str = nextUnquotedValue();
} else if (i2 == 8) {
str = nextQuotedValue('\'');
} else if (i2 == 9) {
int i3 = e + 111;
a = i3 % 128;
str = nextQuotedValue(i3 % 2 != 0 ? 'e' : '\"');
} else if (i2 == 11) {
str = this.peekedString;
this.peekedString = null;
} else if (i2 == 15) {
int i4 = a + 3;
e = i4 % 128;
int i5 = i4 % 2;
String l = Long.toString(this.peekedLong);
int i6 = a + 105;
e = i6 % 128;
int i7 = i6 % 2;
str = l;
} else {
if (i2 != 16) {
StringBuilder sb = new StringBuilder("Expected a string but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
str = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
}
this.peeked = 0;
int[] iArr = this.pathIndices;
int i8 = this.stackSize - 1;
iArr[i8] = iArr[i8] + 1;
return str;
}
public boolean nextBoolean() throws IOException {
int i = 2 % 2;
int i2 = e + 23;
a = i2 % 128;
if (i2 % 2 != 0) {
throw null;
}
int i3 = this.peeked;
if (i3 == 0) {
i3 = doPeek();
}
if (i3 == 5) {
this.peeked = 0;
int[] iArr = this.pathIndices;
int i4 = this.stackSize - 1;
iArr[i4] = iArr[i4] + 1;
return true;
}
if (i3 == 6) {
int i5 = e + 3;
a = i5 % 128;
int i6 = i5 % 2;
this.peeked = 0;
int[] iArr2 = this.pathIndices;
int i7 = this.stackSize - 1;
iArr2[i7] = iArr2[i7] + 1;
return false;
}
StringBuilder sb = new StringBuilder("Expected a boolean but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
/* JADX WARN: Code restructure failed: missing block: B:15:0x001b, code lost:
r1 = doPeek();
r3 = com.google.gson.stream.JsonReader.e + 105;
com.google.gson.stream.JsonReader.a = r3 % 128;
r3 = r3 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0019, code lost:
if (r1 == 0) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r1 == 0) goto L9;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void nextNull() throws java.io.IOException {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.stream.JsonReader.e
int r1 = r1 + 67
int r2 = r1 % 128
com.google.gson.stream.JsonReader.a = r2
int r1 = r1 % r0
r2 = 0
if (r1 == 0) goto L17
int r1 = r5.peeked
r3 = 90
int r3 = r3 / r2
if (r1 != 0) goto L28
goto L1b
L17:
int r1 = r5.peeked
if (r1 != 0) goto L28
L1b:
int r1 = r5.doPeek()
int r3 = com.google.gson.stream.JsonReader.e
int r3 = r3 + 105
int r4 = r3 % 128
com.google.gson.stream.JsonReader.a = r4
int r3 = r3 % r0
L28:
r3 = 7
if (r1 != r3) goto L48
r5.peeked = r2
int[] r1 = r5.pathIndices
int r3 = r5.stackSize
int r3 = r3 + (-1)
r4 = r1[r3]
int r4 = r4 + 1
r1[r3] = r4
int r1 = com.google.gson.stream.JsonReader.e
int r1 = r1 + 93
int r3 = r1 % 128
com.google.gson.stream.JsonReader.a = r3
int r1 = r1 % r0
if (r1 == 0) goto L47
r0 = 53
int r0 = r0 / r2
L47:
return
L48:
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
java.lang.StringBuilder r1 = new java.lang.StringBuilder
java.lang.String r2 = "Expected null but was "
r1.<init>(r2)
com.google.gson.stream.JsonToken r2 = r5.peek()
r1.append(r2)
java.lang.String r2 = r5.locationString()
r1.append(r2)
java.lang.String r1 = r1.toString()
r0.<init>(r1)
throw r0
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.nextNull():void");
}
public double nextDouble() throws IOException {
char c2;
int i = 2 % 2;
int i2 = this.peeked;
if (i2 == 0) {
int i3 = e + 65;
a = i3 % 128;
int i4 = i3 % 2;
i2 = doPeek();
}
if (i2 == 15) {
this.peeked = 0;
int[] iArr = this.pathIndices;
int i5 = this.stackSize - 1;
iArr[i5] = iArr[i5] + 1;
return this.peekedLong;
}
if (i2 == 16) {
this.peekedString = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
} else {
if (i2 != 8) {
int i6 = a;
int i7 = i6 + 69;
e = i7 % 128;
int i8 = i7 % 2;
if (i2 != 9) {
int i9 = i6 + 61;
int i10 = i9 % 128;
e = i10;
int i11 = i9 % 2;
if (i2 == 10) {
int i12 = i10 + 1;
a = i12 % 128;
int i13 = i12 % 2;
this.peekedString = nextUnquotedValue();
} else if (i2 != 11) {
StringBuilder sb = new StringBuilder("Expected a double but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
}
}
if (i2 == 8) {
int i14 = a + 71;
e = i14 % 128;
int i15 = i14 % 2;
c2 = '\'';
} else {
c2 = '\"';
}
this.peekedString = nextQuotedValue(c2);
}
this.peeked = 11;
double parseDouble = Double.parseDouble(this.peekedString);
if (!this.lenient && (Double.isNaN(parseDouble) || Double.isInfinite(parseDouble))) {
StringBuilder sb2 = new StringBuilder("JSON forbids NaN and infinities: ");
sb2.append(parseDouble);
sb2.append(locationString());
throw new MalformedJsonException(sb2.toString());
}
this.peekedString = null;
this.peeked = 0;
int[] iArr2 = this.pathIndices;
int i16 = this.stackSize - 1;
iArr2[i16] = iArr2[i16] + 1;
return parseDouble;
}
public long nextLong() throws IOException {
int i = 2 % 2;
int i2 = a + 37;
e = i2 % 128;
int i3 = i2 % 2;
int i4 = this.peeked;
if (i4 == 0) {
i4 = doPeek();
}
if (i4 == 15) {
this.peeked = 0;
int[] iArr = this.pathIndices;
int i5 = this.stackSize - 1;
iArr[i5] = iArr[i5] + 1;
long j = this.peekedLong;
int i6 = e + 95;
a = i6 % 128;
int i7 = i6 % 2;
return j;
}
if (i4 == 16) {
this.peekedString = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
} else {
if (i4 != 8 && i4 != 9 && i4 != 10) {
StringBuilder sb = new StringBuilder("Expected a long but was ");
sb.append(peek());
sb.append(locationString());
throw new IllegalStateException(sb.toString());
}
if (i4 == 10) {
this.peekedString = nextUnquotedValue();
} else {
this.peekedString = nextQuotedValue(i4 == 8 ? '\'' : '\"');
}
try {
long parseLong = Long.parseLong(this.peekedString);
this.peeked = 0;
int[] iArr2 = this.pathIndices;
int i8 = this.stackSize - 1;
iArr2[i8] = iArr2[i8] + 1;
return parseLong;
} catch (NumberFormatException unused) {
}
}
this.peeked = 11;
double parseDouble = Double.parseDouble(this.peekedString);
long j2 = (long) parseDouble;
if (j2 != parseDouble) {
StringBuilder sb2 = new StringBuilder("Expected a long but was ");
sb2.append(this.peekedString);
sb2.append(locationString());
throw new NumberFormatException(sb2.toString());
}
this.peekedString = null;
this.peeked = 0;
int[] iArr3 = this.pathIndices;
int i9 = this.stackSize - 1;
iArr3[i9] = iArr3[i9] + 1;
return j2;
}
/* JADX WARN: Code restructure failed: missing block: B:26:0x0032, code lost:
r12.pos = r10;
r10 = (r10 - r4) - 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0036, code lost:
if (r3 != null) goto L20;
*/
/* JADX WARN: Code restructure failed: missing block: B:28:0x0038, code lost:
r13 = new java.lang.String(r1, r4, r10);
r1 = com.google.gson.stream.JsonReader.a + 35;
com.google.gson.stream.JsonReader.e = r1 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:29:0x0046, code lost:
if ((r1 % 2) != 0) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x0048, code lost:
r0 = 68 / 0;
*/
/* JADX WARN: Code restructure failed: missing block: B:31:0x004b, code lost:
return r13;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x004c, code lost:
r3.append(r1, r4, r10);
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x0053, code lost:
return r3.toString();
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x008d, code lost:
if (r3 != null) goto L34;
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x008f, code lost:
r3 = new java.lang.StringBuilder(java.lang.Math.max((r6 - r4) << 1, 16));
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x009b, code lost:
r3.append(r1, r4, r6 - r4);
r12.pos = r6;
*/
/* JADX WARN: Code restructure failed: missing block: B:42:0x00a6, code lost:
if (fillBuffer(1) == false) goto L42;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x00a8, code lost:
r4 = com.google.gson.stream.JsonReader.a + 91;
com.google.gson.stream.JsonReader.e = r4 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x00bc, code lost:
throw syntaxError("Unterminated string");
*/
/* JADX WARN: Removed duplicated region for block: B:12:0x0079 */
/* JADX WARN: Removed duplicated region for block: B:18:0x0058 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private java.lang.String nextQuotedValue(char r13) throws java.io.IOException {
/*
r12 = this;
r0 = 2
int r1 = r0 % r0
char[] r1 = r12.buffer
int r2 = com.google.gson.stream.JsonReader.a
int r2 = r2 + 55
int r3 = r2 % 128
com.google.gson.stream.JsonReader.e = r3
int r2 = r2 % r0
r2 = 0
r3 = r2
L10:
int r4 = r12.pos
int r5 = r12.limit
L14:
r6 = r4
L15:
r7 = 16
r8 = 1
if (r6 >= r5) goto L8d
int r9 = com.google.gson.stream.JsonReader.a
int r10 = r9 + 75
int r11 = r10 % 128
com.google.gson.stream.JsonReader.e = r11
int r10 = r10 % r0
r11 = 0
if (r10 != 0) goto L2c
char r6 = r1[r6]
r10 = r11
if (r6 != r13) goto L54
goto L32
L2c:
int r10 = r6 + 1
char r6 = r1[r6]
if (r6 != r13) goto L54
L32:
r12.pos = r10
int r10 = r10 - r4
int r10 = r10 - r8
if (r3 != 0) goto L4c
java.lang.String r13 = new java.lang.String
r13.<init>(r1, r4, r10)
int r1 = com.google.gson.stream.JsonReader.a
int r1 = r1 + 35
int r2 = r1 % 128
com.google.gson.stream.JsonReader.e = r2
int r1 = r1 % r0
if (r1 != 0) goto L4b
r0 = 68
int r0 = r0 / r11
L4b:
return r13
L4c:
r3.append(r1, r4, r10)
java.lang.String r13 = r3.toString()
return r13
L54:
r11 = 92
if (r6 != r11) goto L79
r12.pos = r10
int r10 = r10 - r4
if (r3 != 0) goto L68
java.lang.StringBuilder r3 = new java.lang.StringBuilder
int r5 = r10 << 1
int r5 = java.lang.Math.max(r5, r7)
r3.<init>(r5)
L68:
int r10 = r10 + (-1)
r3.append(r1, r4, r10)
char r4 = r12.readEscapeCharacter()
r3.append(r4)
int r4 = r12.pos
int r5 = r12.limit
goto L14
L79:
r7 = 10
if (r6 != r7) goto L8b
int r6 = r12.lineNumber
int r6 = r6 + r8
r12.lineNumber = r6
r12.lineStart = r10
int r9 = r9 + 95
int r6 = r9 % 128
com.google.gson.stream.JsonReader.e = r6
int r9 = r9 % r0
L8b:
r6 = r10
goto L15
L8d:
if (r3 != 0) goto L9b
java.lang.StringBuilder r3 = new java.lang.StringBuilder
int r5 = r6 - r4
int r5 = r5 << r8
int r5 = java.lang.Math.max(r5, r7)
r3.<init>(r5)
L9b:
int r5 = r6 - r4
r3.append(r1, r4, r5)
r12.pos = r6
boolean r4 = r12.fillBuffer(r8)
if (r4 == 0) goto Lb6
int r4 = com.google.gson.stream.JsonReader.a
int r4 = r4 + 91
int r5 = r4 % 128
com.google.gson.stream.JsonReader.e = r5
int r4 = r4 % r0
if (r4 == 0) goto Lb5
goto L10
Lb5:
throw r2
Lb6:
java.lang.String r13 = "Unterminated string"
java.io.IOException r13 = r12.syntaxError(r13)
throw r13
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.nextQuotedValue(char):java.lang.String");
}
/* JADX WARN: Code restructure failed: missing block: B:27:0x00bb, code lost:
if ((r4 % 2) != 0) goto L44;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x007f, code lost:
checkLenient();
*/
/* JADX WARN: Failed to find 'out' block for switch in B:58:0x0079. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:58:0x0079 */
/* JADX WARN: Removed duplicated region for block: B:64:0x007f A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private java.lang.String nextUnquotedValue() throws java.io.IOException {
/*
Method dump skipped, instructions count: 230
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.nextUnquotedValue():java.lang.String");
}
private void skipQuotedValue(char c2) throws IOException {
int i = 2 % 2;
int i2 = a + 65;
e = i2 % 128;
int i3 = i2 % 2;
char[] cArr = this.buffer;
while (true) {
int i4 = this.pos;
int i5 = this.limit;
while (true) {
if (i4 < i5) {
int i6 = i4 + 1;
char c3 = cArr[i4];
if (c3 == c2) {
int i7 = e + 43;
a = i7 % 128;
int i8 = i7 % 2;
this.pos = i6;
return;
}
if (c3 == '\\') {
this.pos = i6;
readEscapeCharacter();
break;
} else {
if (c3 == '\n') {
this.lineNumber++;
this.lineStart = i6;
}
i4 = i6;
}
} else {
this.pos = i4;
if (!fillBuffer(1)) {
int i9 = a + 7;
e = i9 % 128;
int i10 = i9 % 2;
throw syntaxError("Unterminated string");
}
}
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:42:0x008d, code lost:
checkLenient();
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x0090, code lost:
r6.pos += r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x0095, code lost:
return;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:39:0x0081. Please report as an issue. */
/* JADX WARN: Removed duplicated region for block: B:15:0x0030 */
/* JADX WARN: Removed duplicated region for block: B:21:0x0046 */
/* JADX WARN: Removed duplicated region for block: B:37:0x0078 */
/* JADX WARN: Removed duplicated region for block: B:50:0x008d A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:60:0x008d A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:65:0x0090 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void skipUnquotedValue() throws java.io.IOException {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
L3:
r1 = 0
L4:
int r2 = r6.pos
int r2 = r2 + r1
int r3 = r6.limit
if (r2 >= r3) goto L96
char[] r3 = r6.buffer
char r2 = r3[r2]
r3 = 9
if (r2 == r3) goto L90
r3 = 10
if (r2 == r3) goto L90
int r3 = com.google.gson.stream.JsonReader.e
int r4 = r3 + 23
int r5 = r4 % 128
com.google.gson.stream.JsonReader.a = r5
int r4 = r4 % 2
if (r4 == 0) goto L28
r4 = 11
if (r2 == r4) goto L90
goto L2c
L28:
r4 = 12
if (r2 == r4) goto L90
L2c:
r4 = 13
if (r2 == r4) goto L90
int r3 = r3 + 53
int r4 = r3 % 128
com.google.gson.stream.JsonReader.a = r4
int r3 = r3 % r0
if (r3 == 0) goto L3e
r3 = 101(0x65, float:1.42E-43)
if (r2 == r3) goto L90
goto L42
L3e:
r3 = 32
if (r2 == r3) goto L90
L42:
r3 = 35
if (r2 == r3) goto L8d
r3 = 44
if (r2 == r3) goto L90
r3 = 47
if (r2 == r3) goto L8d
r3 = 61
if (r2 == r3) goto L8d
int r4 = r4 + 17
int r3 = r4 % 128
com.google.gson.stream.JsonReader.e = r3
int r4 = r4 % 2
r4 = 123(0x7b, float:1.72E-43)
if (r2 == r4) goto L90
r4 = 125(0x7d, float:1.75E-43)
if (r2 == r4) goto L90
int r4 = r3 + 57
int r5 = r4 % 128
com.google.gson.stream.JsonReader.a = r5
int r4 = r4 % r0
if (r4 == 0) goto L70
r4 = 23
if (r2 == r4) goto L90
goto L74
L70:
r4 = 58
if (r2 == r4) goto L90
L74:
r4 = 59
if (r2 == r4) goto L8d
int r3 = r3 + 13
int r4 = r3 % 128
com.google.gson.stream.JsonReader.a = r4
int r3 = r3 % r0
if (r3 != 0) goto L88
switch(r2) {
case 91: goto L90;
case 92: goto L8d;
case 93: goto L90;
default: goto L84;
}
L84:
int r1 = r1 + 1
goto L4
L88:
r0 = 0
r0.hashCode()
throw r0
L8d:
r6.checkLenient()
L90:
int r0 = r6.pos
int r0 = r0 + r1
r6.pos = r0
return
L96:
r6.pos = r2
r1 = 1
boolean r1 = r6.fillBuffer(r1)
if (r1 != 0) goto L3
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.skipUnquotedValue():void");
}
public int nextInt() throws IOException {
int i = 2 % 2;
int i2 = this.peeked;
if (i2 == 0) {
int i3 = a + 117;
e = i3 % 128;
int i4 = i3 % 2;
i2 = doPeek();
}
if (i2 == 15) {
long j = this.peekedLong;
int i5 = (int) j;
if (j != i5) {
StringBuilder sb = new StringBuilder("Expected an int but was ");
sb.append(this.peekedLong);
sb.append(locationString());
throw new NumberFormatException(sb.toString());
}
this.peeked = 0;
int[] iArr = this.pathIndices;
int i6 = this.stackSize - 1;
iArr[i6] = iArr[i6] + 1;
return i5;
}
if (i2 == 16) {
this.peekedString = new String(this.buffer, this.pos, this.peekedNumberLength);
this.pos += this.peekedNumberLength;
int i7 = e + 95;
a = i7 % 128;
int i8 = i7 % 2;
} else {
if (i2 != 8 && i2 != 9) {
int i9 = a + 69;
e = i9 % 128;
if (i9 % 2 != 0 ? i2 != 10 : i2 != 86) {
StringBuilder sb2 = new StringBuilder("Expected an int but was ");
sb2.append(peek());
sb2.append(locationString());
throw new IllegalStateException(sb2.toString());
}
}
if (i2 == 10) {
this.peekedString = nextUnquotedValue();
} else {
this.peekedString = nextQuotedValue(i2 == 8 ? '\'' : '\"');
}
try {
int parseInt = Integer.parseInt(this.peekedString);
this.peeked = 0;
int[] iArr2 = this.pathIndices;
int i10 = this.stackSize - 1;
iArr2[i10] = iArr2[i10] + 1;
return parseInt;
} catch (NumberFormatException unused) {
}
}
this.peeked = 11;
double parseDouble = Double.parseDouble(this.peekedString);
int i11 = (int) parseDouble;
if (i11 != parseDouble) {
StringBuilder sb3 = new StringBuilder("Expected an int but was ");
sb3.append(this.peekedString);
sb3.append(locationString());
throw new NumberFormatException(sb3.toString());
}
this.peekedString = null;
this.peeked = 0;
int[] iArr3 = this.pathIndices;
int i12 = this.stackSize - 1;
iArr3[i12] = iArr3[i12] + 1;
return i11;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public void close() throws IOException {
int i = 2 % 2;
int i2 = e + 73;
a = i2 % 128;
if (i2 % 2 != 0) {
this.peeked = 1;
this.stack[1] = 11;
this.stackSize = 0;
} else {
this.peeked = 0;
this.stack[0] = 8;
this.stackSize = 1;
}
this.in.close();
}
public void skipValue() throws IOException {
int i = 2 % 2;
int i2 = e + 109;
a = i2 % 128;
int i3 = i2 % 2 != 0 ? 1 : 0;
do {
int i4 = this.peeked;
if (i4 == 0) {
int i5 = a + 9;
e = i5 % 128;
if (i5 % 2 == 0) {
i4 = doPeek();
int i6 = 34 / 0;
} else {
i4 = doPeek();
}
}
if (i4 == 3) {
push(1);
} else if (i4 == 1) {
push(3);
} else {
if (i4 != 4) {
if (i4 == 2) {
int i7 = e + 25;
a = i7 % 128;
if (i7 % 2 != 0) {
this.stackSize = 0;
i3--;
this.peeked = 0;
}
} else {
if (i4 == 14 || i4 == 10) {
skipUnquotedValue();
} else {
if (i4 != 8) {
int i8 = e + 21;
a = i8 % 128;
int i9 = i8 % 2;
if (i4 != 12) {
if (i4 == 9 || i4 == 13) {
skipQuotedValue('\"');
} else if (i4 == 16) {
this.pos += this.peekedNumberLength;
}
}
}
skipQuotedValue('\'');
}
this.peeked = 0;
}
}
this.stackSize--;
i3--;
this.peeked = 0;
}
i3++;
this.peeked = 0;
} while (i3 != 0);
int[] iArr = this.pathIndices;
int i10 = this.stackSize - 1;
iArr[i10] = iArr[i10] + 1;
String[] strArr = this.pathNames;
Object[] objArr = new Object[1];
h(new char[]{43191, 14417, 35151, 6722}, 37117 - (ViewConfiguration.getKeyRepeatTimeout() >> 16), objArr);
strArr[i10] = ((String) objArr[0]).intern();
}
private void push(int i) {
int i2 = 2 % 2;
int i3 = e;
int i4 = i3 + 105;
a = i4 % 128;
int i5 = i4 % 2;
int i6 = this.stackSize;
int[] iArr = this.stack;
if (i6 == iArr.length) {
int i7 = i3 + 99;
a = i7 % 128;
int i8 = i7 % 2;
int i9 = i6 << 1;
this.stack = Arrays.copyOf(iArr, i9);
this.pathIndices = Arrays.copyOf(this.pathIndices, i9);
this.pathNames = (String[]) Arrays.copyOf(this.pathNames, i9);
int i10 = a + 43;
e = i10 % 128;
int i11 = i10 % 2;
}
int[] iArr2 = this.stack;
int i12 = this.stackSize;
this.stackSize = i12 + 1;
iArr2[i12] = i;
}
/* JADX WARN: Removed duplicated region for block: B:13:0x005e */
/* JADX WARN: Removed duplicated region for block: B:27:0x0079 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private boolean fillBuffer(int r10) throws java.io.IOException {
/*
r9 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.google.gson.stream.JsonReader.a
int r1 = r1 + 5
int r2 = r1 % 128
com.google.gson.stream.JsonReader.e = r2
int r1 = r1 % r0
char[] r1 = r9.buffer
int r2 = r9.lineStart
int r3 = r9.pos
int r2 = r2 - r3
r9.lineStart = r2
int r2 = r9.limit
r4 = 0
if (r2 == r3) goto L21
int r2 = r2 - r3
r9.limit = r2
java.lang.System.arraycopy(r1, r3, r1, r4, r2)
goto L23
L21:
r9.limit = r4
L23:
r9.pos = r4
int r2 = com.google.gson.stream.JsonReader.a
int r2 = r2 + 31
int r3 = r2 % 128
com.google.gson.stream.JsonReader.e = r3
int r2 = r2 % r0
L2e:
java.io.Reader r2 = r9.in
int r3 = r9.limit
int r5 = r1.length
int r5 = r5 - r3
int r2 = r2.read(r1, r3, r5)
r3 = -1
if (r2 == r3) goto L83
int r3 = com.google.gson.stream.JsonReader.a
int r3 = r3 + 33
int r5 = r3 % 128
com.google.gson.stream.JsonReader.e = r5
int r3 = r3 % r0
r6 = 1
if (r3 != 0) goto L51
int r3 = r9.limit
int r3 = r3 % r2
r9.limit = r3
int r2 = r9.lineNumber
if (r2 != 0) goto L79
goto L5a
L51:
int r3 = r9.limit
int r3 = r3 + r2
r9.limit = r3
int r2 = r9.lineNumber
if (r2 != 0) goto L79
L5a:
int r2 = r9.lineStart
if (r2 != 0) goto L79
int r7 = r5 + 95
int r8 = r7 % 128
com.google.gson.stream.JsonReader.a = r8
int r7 = r7 % r0
if (r3 <= 0) goto L79
char r7 = r1[r4]
r8 = 65279(0xfeff, float:9.1475E-41)
if (r7 != r8) goto L79
int r7 = r9.pos
int r7 = r7 + r6
r9.pos = r7
int r2 = r2 + 1
r9.lineStart = r2
int r10 = r10 + 1
L79:
if (r3 < r10) goto L2e
int r5 = r5 + 7
int r10 = r5 % 128
com.google.gson.stream.JsonReader.a = r10
int r5 = r5 % r0
return r6
L83:
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.fillBuffer(int):boolean");
}
/* JADX WARN: Removed duplicated region for block: B:26:0x006c */
/* JADX WARN: Removed duplicated region for block: B:58:0x00d5 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private int nextNonWhitespace(boolean r11) throws java.io.IOException {
/*
Method dump skipped, instructions count: 237
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.nextNonWhitespace(boolean):int");
}
private void checkLenient() throws IOException {
int i = 2 % 2;
int i2 = a;
int i3 = i2 + 77;
e = i3 % 128;
int i4 = i3 % 2;
if (!this.lenient) {
throw syntaxError("Use JsonReader.setLenient(true) to accept malformed JSON");
}
int i5 = i2 + 45;
e = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void skipToEndOfLine() throws IOException {
char c2;
int i = 2 % 2;
do {
if (this.pos >= this.limit) {
int i2 = a + 81;
e = i2 % 128;
int i3 = i2 % 2;
if (!fillBuffer(1)) {
return;
}
}
char[] cArr = this.buffer;
int i4 = this.pos;
int i5 = i4 + 1;
this.pos = i5;
c2 = cArr[i4];
if (c2 == '\n') {
int i6 = a + 33;
e = i6 % 128;
this.lineNumber = i6 % 2 == 0 ? 0 : this.lineNumber + 1;
this.lineStart = i5;
return;
}
} while (c2 != '\r');
}
/* JADX WARN: Code restructure failed: missing block: B:9:0x002a, code lost:
return false;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private boolean skipTo(java.lang.String r8) throws java.io.IOException {
/*
r7 = this;
r0 = 2
int r1 = r0 % r0
int r1 = r8.length()
L7:
int r2 = r7.pos
int r3 = r7.limit
int r2 = r2 + r1
r4 = 0
if (r2 <= r3) goto L2b
int r2 = com.google.gson.stream.JsonReader.a
int r2 = r2 + 75
int r3 = r2 % 128
com.google.gson.stream.JsonReader.e = r3
int r2 = r2 % r0
if (r2 != 0) goto L24
boolean r2 = r7.fillBuffer(r1)
r3 = 68
int r3 = r3 / r4
if (r2 != 0) goto L2b
goto L2a
L24:
boolean r2 = r7.fillBuffer(r1)
if (r2 != 0) goto L2b
L2a:
return r4
L2b:
char[] r2 = r7.buffer
int r3 = r7.pos
char r2 = r2[r3]
r5 = 10
r6 = 1
if (r2 != r5) goto L49
int r2 = r7.lineNumber
int r2 = r2 + r6
r7.lineNumber = r2
int r3 = r3 + 1
r7.lineStart = r3
int r2 = com.google.gson.stream.JsonReader.e
int r2 = r2 + 93
int r3 = r2 % 128
com.google.gson.stream.JsonReader.a = r3
int r2 = r2 % r0
goto L62
L49:
r2 = r4
L4a:
if (r2 >= r1) goto L6b
int r3 = com.google.gson.stream.JsonReader.a
int r3 = r3 + 119
int r5 = r3 % 128
com.google.gson.stream.JsonReader.e = r5
int r3 = r3 % r0
char[] r3 = r7.buffer
int r5 = r7.pos
int r5 = r5 + r2
char r3 = r3[r5]
char r5 = r8.charAt(r2)
if (r3 == r5) goto L68
L62:
int r2 = r7.pos
int r2 = r2 + r6
r7.pos = r2
goto L7
L68:
int r2 = r2 + 1
goto L4a
L6b:
int r8 = com.google.gson.stream.JsonReader.e
int r8 = r8 + 37
int r1 = r8 % 128
com.google.gson.stream.JsonReader.a = r1
int r8 = r8 % r0
if (r8 == 0) goto L79
r8 = 67
int r8 = r8 / r4
L79:
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.gson.stream.JsonReader.skipTo(java.lang.String):boolean");
}
public String toString() {
int i = 2 % 2;
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(locationString());
String obj = sb.toString();
int i2 = a + 53;
e = i2 % 128;
if (i2 % 2 != 0) {
return obj;
}
throw null;
}
String locationString() {
int i = 2 % 2;
int i2 = this.lineNumber;
int i3 = this.pos;
int i4 = this.lineStart;
StringBuilder sb = new StringBuilder(" at line ");
sb.append(i2 + 1);
sb.append(" column ");
sb.append((i3 - i4) + 1);
sb.append(" path ");
sb.append(getPath());
String obj = sb.toString();
int i5 = a + 85;
e = i5 % 128;
int i6 = i5 % 2;
return obj;
}
public String getPath() {
int i = 2 % 2;
StringBuilder sb = new StringBuilder("$");
int i2 = this.stackSize;
int i3 = a + 67;
e = i3 % 128;
int i4 = i3 % 2;
int i5 = 0;
while (i5 < i2) {
int i6 = this.stack[i5];
if (i6 != 1) {
int i7 = e + 55;
int i8 = i7 % 128;
a = i8;
if (i7 % 2 == 0 ? i6 != 2 : i6 != 4) {
if (i6 != 3) {
int i9 = i8 + 41;
int i10 = i9 % 128;
e = i10;
if (i9 % 2 != 0 ? i6 != 4 : i6 != 2) {
int i11 = i10 + 63;
a = i11 % 128;
if (i11 % 2 != 0) {
if (i6 != 2) {
}
} else if (i6 != 5) {
}
i5++;
int i12 = a + 35;
e = i12 % 128;
int i13 = i12 % 2;
}
}
sb.append('.');
String str = this.pathNames[i5];
if (str != null) {
int i14 = a + 41;
e = i14 % 128;
int i15 = i14 % 2;
sb.append(str);
}
i5++;
int i122 = a + 35;
e = i122 % 128;
int i132 = i122 % 2;
}
}
sb.append('[');
sb.append(this.pathIndices[i5]);
sb.append(']');
i5++;
int i1222 = a + 35;
e = i1222 % 128;
int i1322 = i1222 % 2;
}
return sb.toString();
}
private char readEscapeCharacter() throws IOException {
int i;
int i2 = 2 % 2;
if (this.pos == this.limit && !fillBuffer(1)) {
int i3 = e + 39;
a = i3 % 128;
int i4 = i3 % 2;
throw syntaxError("Unterminated escape sequence");
}
char[] cArr = this.buffer;
int i5 = this.pos;
int i6 = i5 + 1;
this.pos = i6;
char c2 = cArr[i5];
if (c2 != '\n') {
int i7 = a + 97;
int i8 = i7 % 128;
e = i8;
int i9 = i7 % 2;
if (c2 != '\"' && c2 != '\'') {
int i10 = i8 + 1;
a = i10 % 128;
if (i10 % 2 == 0 ? c2 != '/' : c2 != 127) {
if (c2 != '\\') {
int i11 = i8 + 23;
int i12 = i11 % 128;
a = i12;
int i13 = i11 % 2;
if (c2 == 'b') {
return '\b';
}
if (c2 == 'f') {
return '\f';
}
int i14 = i12 + 93;
e = i14 % 128;
if (i14 % 2 != 0 ? c2 == 'n' : c2 == '7') {
return '\n';
}
if (c2 == 'r') {
return '\r';
}
if (c2 == 't') {
return '\t';
}
int i15 = i12 + 49;
e = i15 % 128;
int i16 = i15 % 2;
if (c2 != 'u') {
throw syntaxError("Invalid escape sequence");
}
if (i5 + 5 > this.limit && !fillBuffer(4)) {
throw syntaxError("Unterminated escape sequence");
}
int i17 = this.pos;
char c3 = 0;
for (int i18 = i17; i18 < i17 + 4; i18++) {
char c4 = this.buffer[i18];
char c5 = (char) (c3 << 4);
if (c4 < '0' || c4 > '9') {
if (c4 >= 'a') {
int i19 = e + 19;
a = i19 % 128;
if (i19 % 2 == 0 ? c4 <= 'f' : c4 <= 'E') {
i = c4 - 'W';
}
}
if (c4 < 'A' || c4 > 'F') {
throw new NumberFormatException("\\u".concat(new String(this.buffer, this.pos, 4)));
}
i = c4 - '7';
} else {
int i20 = a + 125;
e = i20 % 128;
i = i20 % 2 == 0 ? c4 + '\f' : c4 - '0';
}
c3 = (char) (c5 + i);
int i21 = e + 53;
a = i21 % 128;
int i22 = i21 % 2;
}
this.pos += 4;
return c3;
}
}
}
} else {
this.lineNumber++;
this.lineStart = i6;
}
return c2;
}
private IOException syntaxError(String str) throws IOException {
int i = 2 % 2;
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(locationString());
throw new MalformedJsonException(sb.toString());
}
private void consumeNonExecutePrefix() throws IOException {
int i = 2 % 2;
nextNonWhitespace(true);
int i2 = this.pos;
int i3 = i2 - 1;
this.pos = i3;
if (i2 + 4 <= this.limit || fillBuffer(5)) {
char[] cArr = this.buffer;
if (cArr[i3] == ')') {
int i4 = e;
int i5 = i4 + 61;
a = i5 % 128;
int i6 = i5 % 2;
if (cArr[i2] == ']' && cArr[i2 + 1] == '}') {
int i7 = i4 + 1;
a = i7 % 128;
if (i7 % 2 != 0) {
if (cArr[i2 + 5] != 'z') {
return;
}
} else if (cArr[i2 + 2] != '\'') {
return;
}
if (cArr[i2 + 3] == '\n') {
this.pos += 5;
}
}
}
}
}
static {
e = 1;
c();
JsonReaderInternalAccess.INSTANCE = new JsonReaderInternalAccess() { // from class: com.google.gson.stream.JsonReader.1
@Override // com.google.gson.internal.JsonReaderInternalAccess
public void promoteNameToValue(JsonReader jsonReader) throws IOException {
if (jsonReader instanceof JsonTreeReader) {
((JsonTreeReader) jsonReader).promoteNameToValue();
return;
}
int i = jsonReader.peeked;
if (i == 0) {
i = jsonReader.doPeek();
}
if (i == 13) {
jsonReader.peeked = 9;
return;
}
if (i == 12) {
jsonReader.peeked = 8;
} else {
if (i == 14) {
jsonReader.peeked = 10;
return;
}
StringBuilder sb = new StringBuilder("Expected a name but was ");
sb.append(jsonReader.peek());
sb.append(jsonReader.locationString());
throw new IllegalStateException(sb.toString());
}
}
};
int i = a + 115;
e = i % 128;
int i2 = i % 2;
}
static void c() {
c = 7154854581129427743L;
}
public final void setLenient(boolean z) {
int i = 2 % 2;
int i2 = e + 29;
int i3 = i2 % 128;
a = i3;
int i4 = i2 % 2;
this.lenient = z;
int i5 = i3 + 27;
e = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public final boolean isLenient() {
int i = 2 % 2;
int i2 = a;
int i3 = i2 + 117;
e = i3 % 128;
int i4 = i3 % 2;
boolean z = this.lenient;
int i5 = i2 + 59;
e = i5 % 128;
if (i5 % 2 != 0) {
return z;
}
Object obj = null;
obj.hashCode();
throw null;
}
}