2021-07-24 02:37:17 +00:00
|
|
|
package h0.a.a;
|
|
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
/* compiled from: AnnotationWriter */
|
|
|
|
public final class a {
|
|
|
|
public final v a;
|
|
|
|
public final boolean b;
|
|
|
|
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
2021-07-27 00:35:07 +00:00
|
|
|
public final c f2797c;
|
2021-07-24 02:37:17 +00:00
|
|
|
public final int d;
|
|
|
|
public int e;
|
|
|
|
public final a f;
|
|
|
|
public a g;
|
|
|
|
|
|
|
|
public a(v vVar, boolean z2, c cVar, a aVar) {
|
|
|
|
this.a = vVar;
|
|
|
|
this.b = z2;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c = cVar;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i = cVar.b;
|
|
|
|
this.d = i == 0 ? -1 : i - 2;
|
|
|
|
this.f = aVar;
|
|
|
|
if (aVar != null) {
|
|
|
|
aVar.g = this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static int b(String str, a[] aVarArr, int i) {
|
|
|
|
int i2 = (i * 2) + 7;
|
|
|
|
for (int i3 = 0; i3 < i; i3++) {
|
|
|
|
a aVar = aVarArr[i3];
|
|
|
|
i2 += aVar == null ? 0 : aVar.a(str) - 8;
|
|
|
|
}
|
|
|
|
return i2;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void d(int i, a[] aVarArr, int i2, c cVar) {
|
|
|
|
int i3 = (i2 * 2) + 1;
|
|
|
|
for (int i4 = 0; i4 < i2; i4++) {
|
|
|
|
a aVar = aVarArr[i4];
|
|
|
|
i3 += aVar == null ? 0 : aVar.a(null) - 8;
|
|
|
|
}
|
|
|
|
cVar.j(i);
|
|
|
|
cVar.i(i3);
|
|
|
|
cVar.g(i2);
|
|
|
|
for (int i5 = 0; i5 < i2; i5++) {
|
|
|
|
a aVar2 = null;
|
|
|
|
int i6 = 0;
|
|
|
|
for (a aVar3 = aVarArr[i5]; aVar3 != null; aVar3 = aVar3.f) {
|
|
|
|
aVar3.g();
|
|
|
|
i6++;
|
|
|
|
aVar2 = aVar3;
|
|
|
|
}
|
|
|
|
cVar.j(i6);
|
|
|
|
while (aVar2 != null) {
|
2021-07-27 00:35:07 +00:00
|
|
|
c cVar2 = aVar2.f2797c;
|
2021-07-24 02:37:17 +00:00
|
|
|
cVar.h(cVar2.a, 0, cVar2.b);
|
|
|
|
aVar2 = aVar2.g;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public int a(String str) {
|
|
|
|
if (str != null) {
|
|
|
|
this.a.l(str);
|
|
|
|
}
|
|
|
|
int i = 8;
|
|
|
|
for (a aVar = this; aVar != null; aVar = aVar.f) {
|
2021-07-27 00:35:07 +00:00
|
|
|
i += aVar.f2797c.b;
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void c(int i, c cVar) {
|
|
|
|
int i2 = 2;
|
|
|
|
int i3 = 0;
|
|
|
|
a aVar = null;
|
|
|
|
for (a aVar2 = this; aVar2 != null; aVar2 = aVar2.f) {
|
|
|
|
aVar2.g();
|
2021-07-27 00:35:07 +00:00
|
|
|
i2 += aVar2.f2797c.b;
|
2021-07-24 02:37:17 +00:00
|
|
|
i3++;
|
|
|
|
aVar = aVar2;
|
|
|
|
}
|
|
|
|
cVar.j(i);
|
|
|
|
cVar.i(i2);
|
|
|
|
cVar.j(i3);
|
|
|
|
while (aVar != null) {
|
2021-07-27 00:35:07 +00:00
|
|
|
c cVar2 = aVar.f2797c;
|
2021-07-24 02:37:17 +00:00
|
|
|
cVar.h(cVar2.a, 0, cVar2.b);
|
|
|
|
aVar = aVar.g;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void e(String str, Object obj) {
|
|
|
|
this.e++;
|
|
|
|
if (this.b) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.j(this.a.l(str));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
if (obj instanceof String) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(115, this.a.l((String) obj));
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (obj instanceof Byte) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(66, this.a.e(((Byte) obj).byteValue()).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (obj instanceof Boolean) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(90, this.a.e(((Boolean) obj).booleanValue() ? 1 : 0).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (obj instanceof Character) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(67, this.a.e(((Character) obj).charValue()).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (obj instanceof Short) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(83, this.a.e(((Short) obj).shortValue()).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
} else if (obj instanceof w) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(99, this.a.l(((w) obj).d()));
|
2021-07-24 02:37:17 +00:00
|
|
|
} else {
|
|
|
|
int i = 0;
|
|
|
|
if (obj instanceof byte[]) {
|
|
|
|
byte[] bArr = (byte[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, bArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length = bArr.length;
|
|
|
|
while (i < length) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(66, this.a.e(bArr[i]).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof boolean[]) {
|
|
|
|
boolean[] zArr = (boolean[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, zArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length2 = zArr.length;
|
|
|
|
while (i < length2) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(90, this.a.e(zArr[i] ? 1 : 0).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof short[]) {
|
|
|
|
short[] sArr = (short[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, sArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length3 = sArr.length;
|
|
|
|
while (i < length3) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(83, this.a.e(sArr[i]).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof char[]) {
|
|
|
|
char[] cArr = (char[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, cArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length4 = cArr.length;
|
|
|
|
while (i < length4) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(67, this.a.e(cArr[i]).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof int[]) {
|
|
|
|
int[] iArr = (int[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, iArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length5 = iArr.length;
|
|
|
|
while (i < length5) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(73, this.a.e(iArr[i]).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof long[]) {
|
|
|
|
long[] jArr = (long[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, jArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length6 = jArr.length;
|
|
|
|
while (i < length6) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(74, this.a.g(5, jArr[i]).a);
|
2021-07-24 02:37:17 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof float[]) {
|
|
|
|
float[] fArr = (float[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, fArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length7 = fArr.length;
|
|
|
|
while (i < length7) {
|
|
|
|
float f = fArr[i];
|
2021-07-27 00:35:07 +00:00
|
|
|
c cVar = this.f2797c;
|
2021-07-24 02:37:17 +00:00
|
|
|
v vVar = this.a;
|
|
|
|
Objects.requireNonNull(vVar);
|
|
|
|
cVar.e(70, vVar.f(4, Float.floatToRawIntBits(f)).a);
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else if (obj instanceof double[]) {
|
|
|
|
double[] dArr = (double[]) obj;
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, dArr.length);
|
2021-07-24 02:37:17 +00:00
|
|
|
int length8 = dArr.length;
|
|
|
|
while (i < length8) {
|
|
|
|
double d = dArr[i];
|
2021-07-27 00:35:07 +00:00
|
|
|
c cVar2 = this.f2797c;
|
2021-07-24 02:37:17 +00:00
|
|
|
v vVar2 = this.a;
|
|
|
|
Objects.requireNonNull(vVar2);
|
|
|
|
cVar2.e(68, vVar2.g(6, Double.doubleToRawLongBits(d)).a);
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
u b = this.a.b(obj);
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(".s.IFJDCS".charAt(b.b), b.a);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public a f(String str) {
|
|
|
|
this.e++;
|
|
|
|
if (this.b) {
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.j(this.a.l(str));
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
2021-07-27 00:35:07 +00:00
|
|
|
this.f2797c.e(91, 0);
|
|
|
|
return new a(this.a, false, this.f2797c, null);
|
2021-07-24 02:37:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void g() {
|
|
|
|
int i = this.d;
|
|
|
|
if (i != -1) {
|
2021-07-27 00:35:07 +00:00
|
|
|
byte[] bArr = this.f2797c.a;
|
2021-07-24 02:37:17 +00:00
|
|
|
int i2 = this.e;
|
|
|
|
bArr[i] = (byte) (i2 >>> 8);
|
|
|
|
bArr[i + 1] = (byte) i2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|