Files
rr3-apk/decompiled/sources/com/fyber/inneractive/sdk/protobuf/s0.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

320 lines
11 KiB
Java

package com.fyber.inneractive.sdk.protobuf;
import com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite;
import com.fyber.inneractive.sdk.protobuf.a0;
import com.fyber.inneractive.sdk.protobuf.r1;
import com.fyber.inneractive.sdk.protobuf.u;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
/* loaded from: classes2.dex */
public final class s0<T> implements d1<T> {
public final o0 a;
public final k1<?, ?> b;
public final boolean c;
public final r<?> d;
public s0(k1<?, ?> k1Var, r<?> rVar, o0 o0Var) {
this.b = k1Var;
this.c = rVar.a(o0Var);
this.d = rVar;
this.a = o0Var;
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final T a() {
return (T) ((GeneratedMessageLite.b) this.a.newBuilderForType()).b();
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final boolean b(T t, T t2) {
if (!this.b.b(t).equals(this.b.b(t2))) {
return false;
}
if (this.c) {
return this.d.a(t).equals(this.d.a(t2));
}
return true;
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final int d(T t) {
int hashCode = this.b.b(t).hashCode();
return this.c ? (hashCode * 53) + this.d.a(t).a.hashCode() : hashCode;
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final int c(T t) {
k1<?, ?> k1Var = this.b;
int d = k1Var.d(k1Var.b(t));
if (!this.c) {
return d;
}
u<?> a = this.d.a(t);
int i = 0;
for (int i2 = 0; i2 < a.a.b.size(); i2++) {
i += u.a(a.a.a(i2));
}
Iterator<Map.Entry<?, Object>> it = a.a.b().iterator();
while (it.hasNext()) {
i += u.a(it.next());
}
return d + i;
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final void a(T t, T t2) {
k1<?, ?> k1Var = this.b;
Class<?> cls = e1.a;
k1Var.c(t, k1Var.a(k1Var.b(t), k1Var.b(t2)));
if (this.c) {
r<?> rVar = this.d;
u<?> a = rVar.a(t2);
if (a.a.isEmpty()) {
return;
}
u<?> b = rVar.b(t);
b.getClass();
for (int i = 0; i < a.a.b.size(); i++) {
b.c(a.a.a(i));
}
Iterator<Map.Entry<?, Object>> it = a.a.b().iterator();
while (it.hasNext()) {
b.c(it.next());
}
}
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final boolean b(T t) {
return this.d.a(t).d();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final void a(Object obj, m mVar) throws IOException {
Iterator<Map.Entry<?, Object>> e = this.d.a(obj).e();
while (e.hasNext()) {
Map.Entry<?, Object> next = e.next();
u.b bVar = (u.b) next.getKey();
if (bVar.d() == r1.c.MESSAGE && !bVar.b() && !bVar.isPacked()) {
if (next instanceof a0.a) {
int a = bVar.a();
i a2 = ((a0.a) next).a.getValue().a();
mVar.getClass();
if (a2 instanceof i) {
mVar.a.c(a, a2);
} else {
mVar.a.a(a, (o0) a2);
}
} else {
int a3 = bVar.a();
Object value = next.getValue();
mVar.getClass();
if (value instanceof i) {
mVar.a.c(a3, (i) value);
} else {
mVar.a.a(a3, (o0) value);
}
}
} else {
throw new IllegalStateException("Found invalid MessageSet item.");
}
}
k1<?, ?> k1Var = this.b;
k1Var.a((Object) k1Var.b(obj), mVar);
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:22:0x00b0 */
/* JADX WARN: Removed duplicated region for block: B:24:0x00b5 A[EDGE_INSN: B:24:0x00b5->B:25:0x00b5 BREAK A[LOOP:1: B:10:0x0061->B:18:0x0061], SYNTHETIC] */
@Override // com.fyber.inneractive.sdk.protobuf.d1
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(T r11, byte[] r12, int r13, int r14, com.fyber.inneractive.sdk.protobuf.e.b r15) throws java.io.IOException {
/*
r10 = this;
r0 = r11
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite r0 = (com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite) r0
com.fyber.inneractive.sdk.protobuf.l1 r1 = r0.unknownFields
com.fyber.inneractive.sdk.protobuf.l1 r2 = com.fyber.inneractive.sdk.protobuf.l1.f
if (r1 != r2) goto L10
com.fyber.inneractive.sdk.protobuf.l1 r1 = new com.fyber.inneractive.sdk.protobuf.l1
r1.<init>()
r0.unknownFields = r1
L10:
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite$ExtendableMessage r11 = (com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite.ExtendableMessage) r11
com.fyber.inneractive.sdk.protobuf.u r11 = r11.ensureExtensionsAreMutable()
r0 = 0
r2 = r0
L18:
if (r13 >= r14) goto Lc1
int r4 = com.fyber.inneractive.sdk.protobuf.e.c(r12, r13, r15)
int r13 = r15.a
int r3 = com.fyber.inneractive.sdk.protobuf.r1.a
r5 = 2
if (r13 == r3) goto L5f
r3 = r13 & 7
if (r3 != r5) goto L5a
com.fyber.inneractive.sdk.protobuf.r<?> r2 = r10.d
com.fyber.inneractive.sdk.protobuf.q r3 = r15.d
com.fyber.inneractive.sdk.protobuf.o0 r5 = r10.a
int r6 = r13 >>> 3
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite$e r8 = r2.a(r3, r5, r6)
if (r8 == 0) goto L50
com.fyber.inneractive.sdk.protobuf.z0 r13 = com.fyber.inneractive.sdk.protobuf.z0.c
com.fyber.inneractive.sdk.protobuf.o0 r2 = r8.c
java.lang.Class r2 = r2.getClass()
com.fyber.inneractive.sdk.protobuf.d1 r13 = r13.a(r2)
int r13 = com.fyber.inneractive.sdk.protobuf.e.a(r13, r12, r4, r14, r15)
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite$d r2 = r8.d
java.lang.Object r3 = r15.c
r11.b(r2, r3)
L4e:
r2 = r8
goto L18
L50:
r2 = r13
r3 = r12
r5 = r14
r6 = r1
r7 = r15
int r13 = com.fyber.inneractive.sdk.protobuf.e.a(r2, r3, r4, r5, r6, r7)
goto L4e
L5a:
int r13 = com.fyber.inneractive.sdk.protobuf.e.a(r13, r12, r4, r14, r15)
goto L18
L5f:
r13 = 0
r3 = r0
L61:
if (r4 >= r14) goto Lb5
int r4 = com.fyber.inneractive.sdk.protobuf.e.c(r12, r4, r15)
int r6 = r15.a
int r7 = r6 >>> 3
r8 = r6 & 7
if (r7 == r5) goto L98
r9 = 3
if (r7 == r9) goto L73
goto Lab
L73:
if (r2 == 0) goto L8d
com.fyber.inneractive.sdk.protobuf.z0 r6 = com.fyber.inneractive.sdk.protobuf.z0.c
com.fyber.inneractive.sdk.protobuf.o0 r7 = r2.c
java.lang.Class r7 = r7.getClass()
com.fyber.inneractive.sdk.protobuf.d1 r6 = r6.a(r7)
int r4 = com.fyber.inneractive.sdk.protobuf.e.a(r6, r12, r4, r14, r15)
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite$d r6 = r2.d
java.lang.Object r7 = r15.c
r11.b(r6, r7)
goto L61
L8d:
if (r8 != r5) goto Lab
int r4 = com.fyber.inneractive.sdk.protobuf.e.a(r12, r4, r15)
java.lang.Object r3 = r15.c
com.fyber.inneractive.sdk.protobuf.i r3 = (com.fyber.inneractive.sdk.protobuf.i) r3
goto L61
L98:
if (r8 != 0) goto Lab
int r4 = com.fyber.inneractive.sdk.protobuf.e.c(r12, r4, r15)
int r13 = r15.a
com.fyber.inneractive.sdk.protobuf.r<?> r2 = r10.d
com.fyber.inneractive.sdk.protobuf.q r6 = r15.d
com.fyber.inneractive.sdk.protobuf.o0 r7 = r10.a
com.fyber.inneractive.sdk.protobuf.GeneratedMessageLite$e r2 = r2.a(r6, r7, r13)
goto L61
Lab:
int r7 = com.fyber.inneractive.sdk.protobuf.r1.b
if (r6 != r7) goto Lb0
goto Lb5
Lb0:
int r4 = com.fyber.inneractive.sdk.protobuf.e.a(r6, r12, r4, r14, r15)
goto L61
Lb5:
if (r3 == 0) goto Lbe
int r13 = com.fyber.inneractive.sdk.protobuf.r1.a(r13, r5)
r1.a(r13, r3)
Lbe:
r13 = r4
goto L18
Lc1:
if (r13 != r14) goto Lc4
return
Lc4:
com.fyber.inneractive.sdk.protobuf.z r11 = com.fyber.inneractive.sdk.protobuf.z.g()
throw r11
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.protobuf.s0.a(java.lang.Object, byte[], int, int, com.fyber.inneractive.sdk.protobuf.e$b):void");
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final void a(T t, c1 c1Var, q qVar) throws IOException {
k1 k1Var = this.b;
r rVar = this.d;
l1 a = k1Var.a(t);
u<ET> b = rVar.b(t);
do {
try {
if (c1Var.j() == Integer.MAX_VALUE) {
break;
}
} finally {
k1Var.b((Object) t, (T) a);
}
} while (a(c1Var, qVar, rVar, b, k1Var, a));
}
@Override // com.fyber.inneractive.sdk.protobuf.d1
public final void a(T t) {
this.b.e(t);
this.d.c(t);
}
public final <UT, UB, ET extends u.b<ET>> boolean a(c1 c1Var, q qVar, r<ET> rVar, u<ET> uVar, k1<UT, UB> k1Var, UB ub) throws IOException {
int b = c1Var.b();
if (b != r1.a) {
if ((b & 7) == 2) {
GeneratedMessageLite.e a = rVar.a(qVar, this.a, b >>> 3);
if (a != null) {
rVar.a(c1Var, a, qVar, uVar);
return true;
}
return k1Var.a((k1<UT, UB>) ub, c1Var);
}
return c1Var.p();
}
GeneratedMessageLite.e eVar = null;
int i = 0;
i iVar = null;
while (c1Var.j() != Integer.MAX_VALUE) {
int b2 = c1Var.b();
if (b2 == r1.c) {
i = c1Var.m();
eVar = rVar.a(qVar, this.a, i);
} else if (b2 == r1.d) {
if (eVar != null) {
rVar.a(c1Var, eVar, qVar, uVar);
} else {
iVar = c1Var.l();
}
} else if (!c1Var.p()) {
break;
}
}
if (c1Var.b() != r1.b) {
throw z.a();
}
if (iVar != null) {
if (eVar != null) {
rVar.a(iVar, eVar, qVar, uVar);
} else {
k1Var.a((k1<UT, UB>) ub, i, iVar);
}
}
return true;
}
}