430 lines
12 KiB
Java
430 lines
12 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.base.Ascii;
|
||
|
import com.google.common.primitives.UnsignedBytes;
|
||
|
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
|
||
|
import java.io.IOException;
|
||
|
import o.AbstractC16345ndh;
|
||
|
import o.C1458aEp;
|
||
|
import o.oZe;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class dJF {
|
||
|
dJF() {
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static final class Sts {
|
||
|
public final C1458aEp a;
|
||
|
public Object b;
|
||
|
public int c;
|
||
|
public long d;
|
||
|
|
||
|
Sts() {
|
||
|
this.a = C1458aEp.c();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public Sts(C1458aEp c1458aEp) {
|
||
|
this.a = c1458aEp;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int b(int i, byte[] bArr, int i2, Sts sts) {
|
||
|
int i3 = i & 127;
|
||
|
int i4 = i2 + 1;
|
||
|
byte b = bArr[i2];
|
||
|
if (b >= 0) {
|
||
|
sts.c = i3 | (b << 7);
|
||
|
return i4;
|
||
|
}
|
||
|
int i5 = i3 | ((b & Ascii.DEL) << 7);
|
||
|
int i6 = i2 + 2;
|
||
|
byte b2 = bArr[i4];
|
||
|
if (b2 >= 0) {
|
||
|
sts.c = i5 | (b2 << 14);
|
||
|
return i6;
|
||
|
}
|
||
|
int i7 = i5 | ((b2 & Ascii.DEL) << 14);
|
||
|
int i8 = i2 + 3;
|
||
|
byte b3 = bArr[i6];
|
||
|
if (b3 >= 0) {
|
||
|
sts.c = i7 | (b3 << Ascii.NAK);
|
||
|
return i8;
|
||
|
}
|
||
|
int i9 = i7 | ((b3 & Ascii.DEL) << 21);
|
||
|
int i10 = i2 + 4;
|
||
|
byte b4 = bArr[i8];
|
||
|
if (b4 >= 0) {
|
||
|
sts.c = i9 | (b4 << 28);
|
||
|
return i10;
|
||
|
}
|
||
|
while (true) {
|
||
|
int i11 = i10 + 1;
|
||
|
if (bArr[i10] >= 0) {
|
||
|
sts.c = i9 | ((b4 & Ascii.DEL) << 28);
|
||
|
return i11;
|
||
|
}
|
||
|
i10 = i11;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int a(byte[] bArr, int i, Sts sts) {
|
||
|
int i2 = i + 1;
|
||
|
long j = bArr[i];
|
||
|
if (j >= 0) {
|
||
|
sts.d = j;
|
||
|
return i2;
|
||
|
}
|
||
|
return e(j, bArr, i2, sts);
|
||
|
}
|
||
|
|
||
|
private static int e(long j, byte[] bArr, int i, Sts sts) {
|
||
|
int i2 = i + 1;
|
||
|
byte b = bArr[i];
|
||
|
long j2 = (j & 127) | ((b & Ascii.DEL) << 7);
|
||
|
int i3 = 7;
|
||
|
while (b < 0) {
|
||
|
b = bArr[i2];
|
||
|
i3 += 7;
|
||
|
j2 |= (b & Ascii.DEL) << i3;
|
||
|
i2++;
|
||
|
}
|
||
|
sts.d = j2;
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int d(byte[] bArr, int i) {
|
||
|
return ((bArr[i + 3] & UnsignedBytes.MAX_VALUE) << 24) | (bArr[i] & UnsignedBytes.MAX_VALUE) | ((bArr[i + 1] & UnsignedBytes.MAX_VALUE) << 8) | ((bArr[i + 2] & UnsignedBytes.MAX_VALUE) << 16);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static long b(byte[] bArr, int i) {
|
||
|
return (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16) | ((bArr[i + 3] & 255) << 24) | ((bArr[i + 4] & 255) << 32) | ((bArr[i + 5] & 255) << 40) | ((bArr[i + 6] & 255) << 48) | ((bArr[i + 7] & 255) << 56);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int d(CSi cSi, byte[] bArr, int i, int i2, Sts sts) throws IOException {
|
||
|
int i3 = i + 1;
|
||
|
int i4 = bArr[i];
|
||
|
if (i4 < 0) {
|
||
|
i3 = b(i4, bArr, i3, sts);
|
||
|
i4 = sts.c;
|
||
|
}
|
||
|
int i5 = i3;
|
||
|
if (i4 < 0 || i4 > i2 - i5) {
|
||
|
throw InvalidProtocolBufferException.h();
|
||
|
}
|
||
|
Object b = cSi.b();
|
||
|
int i6 = i4 + i5;
|
||
|
cSi.e(b, bArr, i5, i6, sts);
|
||
|
cSi.c(b);
|
||
|
sts.b = b;
|
||
|
return i6;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int b(CSi cSi, byte[] bArr, int i, int i2, int i3, Sts sts) throws IOException {
|
||
|
Uon uon = (Uon) cSi;
|
||
|
Object c = uon.c.c(uon.d);
|
||
|
int d = uon.d(c, bArr, i, i2, i3, sts);
|
||
|
uon.c(c);
|
||
|
sts.b = c;
|
||
|
return d;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int b(int i, byte[] bArr, int i2, int i3, oZe.tOB<?> tob, Sts sts) {
|
||
|
nBu nbu = (nBu) tob;
|
||
|
int i4 = i2 + 1;
|
||
|
byte b = bArr[i2];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i4 = b(b, bArr, i4, sts);
|
||
|
}
|
||
|
nbu.d(sts.c);
|
||
|
while (i4 < i3) {
|
||
|
int i5 = i4 + 1;
|
||
|
byte b2 = bArr[i4];
|
||
|
if (b2 >= 0) {
|
||
|
sts.c = b2;
|
||
|
} else {
|
||
|
i5 = b(b2, bArr, i5, sts);
|
||
|
}
|
||
|
if (i != sts.c) {
|
||
|
break;
|
||
|
}
|
||
|
i4 = i5 + 1;
|
||
|
byte b3 = bArr[i5];
|
||
|
if (b3 >= 0) {
|
||
|
sts.c = b3;
|
||
|
} else {
|
||
|
i4 = b(b3, bArr, i4, sts);
|
||
|
}
|
||
|
nbu.d(sts.c);
|
||
|
}
|
||
|
return i4;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int d(byte[] bArr, int i, oZe.tOB<?> tob, Sts sts) throws IOException {
|
||
|
nBu nbu = (nBu) tob;
|
||
|
int i2 = i + 1;
|
||
|
byte b = bArr[i];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i2 = b(b, bArr, i2, sts);
|
||
|
}
|
||
|
int i3 = sts.c + i2;
|
||
|
while (i2 < i3) {
|
||
|
int i4 = i2 + 1;
|
||
|
byte b2 = bArr[i2];
|
||
|
if (b2 >= 0) {
|
||
|
sts.c = b2;
|
||
|
i2 = i4;
|
||
|
} else {
|
||
|
i2 = b(b2, bArr, i4, sts);
|
||
|
}
|
||
|
nbu.d(sts.c);
|
||
|
}
|
||
|
if (i2 == i3) {
|
||
|
return i2;
|
||
|
}
|
||
|
throw InvalidProtocolBufferException.h();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int e(CSi<?> cSi, int i, byte[] bArr, int i2, int i3, oZe.tOB<?> tob, Sts sts) throws IOException {
|
||
|
int d = d(cSi, bArr, i2, i3, sts);
|
||
|
tob.add(sts.b);
|
||
|
while (d < i3) {
|
||
|
int i4 = d + 1;
|
||
|
byte b = bArr[d];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i4 = b(b, bArr, i4, sts);
|
||
|
}
|
||
|
if (i != sts.c) {
|
||
|
break;
|
||
|
}
|
||
|
d = d(cSi, bArr, i4, i3, sts);
|
||
|
tob.add(sts.b);
|
||
|
}
|
||
|
return d;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int e(int i, byte[] bArr, int i2, int i3, Object obj, vAr var, Sts sts) throws IOException {
|
||
|
AbstractC16345ndh.RVV<?, ?> rvv = sts.a.a.get(new C1458aEp.HBt(var, i >>> 3));
|
||
|
if (rvv == null) {
|
||
|
return d(i, bArr, i2, i3, Uon.e(obj), sts);
|
||
|
}
|
||
|
AbstractC16345ndh.Sts sts2 = (AbstractC16345ndh.Sts) obj;
|
||
|
sts2.b();
|
||
|
QWH<AbstractC16345ndh.HBt> qwh = sts2.extensions;
|
||
|
AbstractC16345ndh.HBt hBt = rvv.b;
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int d(int i, byte[] bArr, int i2, int i3, pTc ptc, Sts sts) throws InvalidProtocolBufferException {
|
||
|
int b;
|
||
|
if (C15775iXO.d(i) == 0) {
|
||
|
throw InvalidProtocolBufferException.c();
|
||
|
}
|
||
|
int e = C15775iXO.e(i);
|
||
|
if (e == 0) {
|
||
|
int a = a(bArr, i2, sts);
|
||
|
ptc.c(i, Long.valueOf(sts.d));
|
||
|
return a;
|
||
|
}
|
||
|
if (e == 1) {
|
||
|
ptc.c(i, Long.valueOf(b(bArr, i2)));
|
||
|
return i2 + 8;
|
||
|
}
|
||
|
if (e == 2) {
|
||
|
int i4 = i2 + 1;
|
||
|
byte b2 = bArr[i2];
|
||
|
if (b2 >= 0) {
|
||
|
sts.c = b2;
|
||
|
} else {
|
||
|
i4 = b(b2, bArr, i4, sts);
|
||
|
}
|
||
|
int i5 = sts.c;
|
||
|
if (i5 < 0) {
|
||
|
throw InvalidProtocolBufferException.i();
|
||
|
}
|
||
|
if (i5 > bArr.length - i4) {
|
||
|
throw InvalidProtocolBufferException.h();
|
||
|
}
|
||
|
if (i5 == 0) {
|
||
|
ptc.c(i, jra.d);
|
||
|
} else {
|
||
|
ptc.c(i, jra.d(bArr, i4, i5));
|
||
|
}
|
||
|
return i4 + i5;
|
||
|
}
|
||
|
if (e != 3) {
|
||
|
if (e == 5) {
|
||
|
ptc.c(i, Integer.valueOf(d(bArr, i2)));
|
||
|
return i2 + 4;
|
||
|
}
|
||
|
throw InvalidProtocolBufferException.c();
|
||
|
}
|
||
|
pTc b3 = pTc.b();
|
||
|
int i6 = (i & (-8)) | 4;
|
||
|
int i7 = 0;
|
||
|
while (true) {
|
||
|
if (i2 >= i3) {
|
||
|
break;
|
||
|
}
|
||
|
int i8 = i2 + 1;
|
||
|
byte b4 = bArr[i2];
|
||
|
if (b4 >= 0) {
|
||
|
sts.c = b4;
|
||
|
b = i8;
|
||
|
} else {
|
||
|
b = b(b4, bArr, i8, sts);
|
||
|
}
|
||
|
int i9 = sts.c;
|
||
|
if (i9 == i6) {
|
||
|
i7 = i9;
|
||
|
i2 = b;
|
||
|
break;
|
||
|
}
|
||
|
i7 = i9;
|
||
|
i2 = d(i9, bArr, b, i3, b3, sts);
|
||
|
}
|
||
|
if (i2 > i3 || i7 != i6) {
|
||
|
throw InvalidProtocolBufferException.f();
|
||
|
}
|
||
|
ptc.c(i, b3);
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int b(int i, byte[] bArr, int i2, int i3, Sts sts) throws InvalidProtocolBufferException {
|
||
|
if (C15775iXO.d(i) == 0) {
|
||
|
throw InvalidProtocolBufferException.c();
|
||
|
}
|
||
|
int e = C15775iXO.e(i);
|
||
|
if (e == 0) {
|
||
|
return a(bArr, i2, sts);
|
||
|
}
|
||
|
if (e == 1) {
|
||
|
return i2 + 8;
|
||
|
}
|
||
|
if (e == 2) {
|
||
|
int i4 = i2 + 1;
|
||
|
byte b = bArr[i2];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i4 = b(b, bArr, i4, sts);
|
||
|
}
|
||
|
return i4 + sts.c;
|
||
|
}
|
||
|
if (e != 3) {
|
||
|
if (e == 5) {
|
||
|
return i2 + 4;
|
||
|
}
|
||
|
throw InvalidProtocolBufferException.c();
|
||
|
}
|
||
|
int i5 = (i & (-8)) | 4;
|
||
|
int i6 = 0;
|
||
|
while (i2 < i3) {
|
||
|
int i7 = i2 + 1;
|
||
|
byte b2 = bArr[i2];
|
||
|
if (b2 >= 0) {
|
||
|
sts.c = b2;
|
||
|
i2 = i7;
|
||
|
} else {
|
||
|
i2 = b(b2, bArr, i7, sts);
|
||
|
}
|
||
|
i6 = sts.c;
|
||
|
if (i6 == i5) {
|
||
|
break;
|
||
|
}
|
||
|
i2 = b(i6, bArr, i2, i3, sts);
|
||
|
}
|
||
|
if (i2 > i3 || i6 != i5) {
|
||
|
throw InvalidProtocolBufferException.f();
|
||
|
}
|
||
|
return i2;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int c(byte[] bArr, int i, Sts sts) throws InvalidProtocolBufferException {
|
||
|
int i2 = i + 1;
|
||
|
byte b = bArr[i];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i2 = b(b, bArr, i2, sts);
|
||
|
}
|
||
|
int i3 = sts.c;
|
||
|
if (i3 < 0) {
|
||
|
throw InvalidProtocolBufferException.i();
|
||
|
}
|
||
|
if (i3 > bArr.length - i2) {
|
||
|
throw InvalidProtocolBufferException.h();
|
||
|
}
|
||
|
if (i3 == 0) {
|
||
|
sts.b = jra.d;
|
||
|
return i2;
|
||
|
}
|
||
|
sts.b = jra.d(bArr, i2, i3);
|
||
|
return i2 + i3;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int e(byte[] bArr, int i, Sts sts) throws InvalidProtocolBufferException {
|
||
|
int i2 = i + 1;
|
||
|
byte b = bArr[i];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i2 = b(b, bArr, i2, sts);
|
||
|
}
|
||
|
int i3 = sts.c;
|
||
|
if (i3 < 0) {
|
||
|
throw InvalidProtocolBufferException.i();
|
||
|
}
|
||
|
if (i3 == 0) {
|
||
|
sts.b = "";
|
||
|
return i2;
|
||
|
}
|
||
|
sts.b = new String(bArr, i2, i3, oZe.b);
|
||
|
return i2 + i3;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static int b(byte[] bArr, int i, Sts sts) throws InvalidProtocolBufferException {
|
||
|
int i2 = i + 1;
|
||
|
byte b = bArr[i];
|
||
|
if (b >= 0) {
|
||
|
sts.c = b;
|
||
|
} else {
|
||
|
i2 = b(b, bArr, i2, sts);
|
||
|
}
|
||
|
int i3 = sts.c;
|
||
|
if (i3 < 0) {
|
||
|
throw InvalidProtocolBufferException.i();
|
||
|
}
|
||
|
if (i3 == 0) {
|
||
|
sts.b = "";
|
||
|
return i2;
|
||
|
}
|
||
|
sts.b = iEH.c(bArr, i2, i3);
|
||
|
return i2 + i3;
|
||
|
}
|
||
|
}
|