Files
rr3-apk/decompiled-community/sources/com/applovin/impl/xc.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

327 lines
9.5 KiB
Java

package com.applovin.impl;
import com.applovin.impl.be;
import com.applovin.impl.fo;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes.dex */
public final class xc extends b4 {
private final be j;
private final boolean k;
private final fo.d l;
private final fo.b m;
private a n;
private wc o;
private boolean p;
private boolean q;
private boolean r;
public static final class b extends fo {
private final td c;
@Override // com.applovin.impl.fo
public int a() {
return 1;
}
@Override // com.applovin.impl.fo
public int b() {
return 1;
}
@Override // com.applovin.impl.fo
public Object b(int i) {
return a.g;
}
public b(td tdVar) {
this.c = tdVar;
}
@Override // com.applovin.impl.fo
public int a(Object obj) {
return obj == a.g ? 0 : -1;
}
@Override // com.applovin.impl.fo
public fo.b a(int i, fo.b bVar, boolean z) {
bVar.a(z ? 0 : null, z ? a.g : null, 0, C.TIME_UNSET, 0L, u.h, true);
return bVar;
}
@Override // com.applovin.impl.fo
public fo.d a(int i, fo.d dVar, long j) {
dVar.a(fo.d.s, this.c, null, C.TIME_UNSET, C.TIME_UNSET, C.TIME_UNSET, false, true, null, 0L, C.TIME_UNSET, 0, 0, 0L);
dVar.m = true;
return dVar;
}
}
@Override // com.applovin.impl.be
public void b() {
}
public fo i() {
return this.n;
}
public xc(be beVar, boolean z) {
this.j = beVar;
this.k = z && beVar.c();
this.l = new fo.d();
this.m = new fo.b();
fo d = beVar.d();
if (d != null) {
this.n = a.a(d, (Object) null, (Object) null);
this.r = true;
} else {
this.n = a.a(beVar.a());
}
}
@Override // com.applovin.impl.be
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public wc a(be.a aVar, n0 n0Var, long j) {
wc wcVar = new wc(aVar, n0Var, j);
wcVar.a(this.j);
if (this.q) {
wcVar.a(aVar.b(b(aVar.a)));
} else {
this.o = wcVar;
if (!this.p) {
this.p = true;
a((Object) null, this.j);
}
}
return wcVar;
}
@Override // com.applovin.impl.b4, com.applovin.impl.c2
public void h() {
this.q = false;
this.p = false;
super.h();
}
public static final class a extends i9 {
public static final Object g = new Object();
private final Object d;
private final Object f;
private a(fo foVar, Object obj, Object obj2) {
super(foVar);
this.d = obj;
this.f = obj2;
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public Object b(int i) {
Object b = this.c.b(i);
return xp.a(b, this.f) ? g : b;
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public int a(Object obj) {
Object obj2;
fo foVar = this.c;
if (g.equals(obj) && (obj2 = this.f) != null) {
obj = obj2;
}
return foVar.a(obj);
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public fo.b a(int i, fo.b bVar, boolean z) {
this.c.a(i, bVar, z);
if (xp.a(bVar.b, this.f) && z) {
bVar.b = g;
}
return bVar;
}
@Override // com.applovin.impl.i9, com.applovin.impl.fo
public fo.d a(int i, fo.d dVar, long j) {
this.c.a(i, dVar, j);
if (xp.a(dVar.a, this.d)) {
dVar.a = fo.d.s;
}
return dVar;
}
public static a a(td tdVar) {
return new a(new b(tdVar), fo.d.s, g);
}
public static a a(fo foVar, Object obj, Object obj2) {
return new a(foVar, obj, obj2);
}
public a a(fo foVar) {
return new a(foVar, this.d, this.f);
}
}
private Object a(Object obj) {
return (this.n.f == null || !this.n.f.equals(obj)) ? obj : a.g;
}
private Object b(Object obj) {
return (this.n.f == null || !obj.equals(a.g)) ? obj : this.n.f;
}
@Override // com.applovin.impl.be
public td a() {
return this.j.a();
}
@Override // com.applovin.impl.b4
public be.a a(Void r1, be.a aVar) {
return aVar.b(a(aVar.a));
}
/* JADX WARN: Removed duplicated region for block: B:12:? A[RETURN, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:27:0x008d */
/* JADX WARN: Removed duplicated region for block: B:30:0x009e */
/* JADX WARN: Removed duplicated region for block: B:31:0x0094 */
/* JADX WARN: Removed duplicated region for block: B:9:0x00bb */
@Override // com.applovin.impl.b4
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public void a(java.lang.Void r13, com.applovin.impl.be r14, com.applovin.impl.fo r15) {
/*
r12 = this;
boolean r13 = r12.q
if (r13 == 0) goto L19
com.applovin.impl.xc$a r13 = r12.n
com.applovin.impl.xc$a r13 = r13.a(r15)
r12.n = r13
com.applovin.impl.wc r13 = r12.o
if (r13 == 0) goto Lae
long r13 = r13.c()
r12.a(r13)
goto Lae
L19:
boolean r13 = r15.c()
if (r13 == 0) goto L36
boolean r13 = r12.r
if (r13 == 0) goto L2a
com.applovin.impl.xc$a r13 = r12.n
com.applovin.impl.xc$a r13 = r13.a(r15)
goto L32
L2a:
java.lang.Object r13 = com.applovin.impl.fo.d.s
java.lang.Object r14 = com.applovin.impl.xc.a.g
com.applovin.impl.xc$a r13 = com.applovin.impl.xc.a.a(r15, r13, r14)
L32:
r12.n = r13
goto Lae
L36:
com.applovin.impl.fo$d r13 = r12.l
r14 = 0
r15.a(r14, r13)
com.applovin.impl.fo$d r13 = r12.l
long r0 = r13.c()
com.applovin.impl.fo$d r13 = r12.l
java.lang.Object r13 = r13.a
com.applovin.impl.wc r2 = r12.o
if (r2 == 0) goto L74
long r2 = r2.d()
com.applovin.impl.xc$a r4 = r12.n
com.applovin.impl.wc r5 = r12.o
com.applovin.impl.be$a r5 = r5.a
java.lang.Object r5 = r5.a
com.applovin.impl.fo$b r6 = r12.m
r4.a(r5, r6)
com.applovin.impl.fo$b r4 = r12.m
long r4 = r4.e()
long r4 = r4 + r2
com.applovin.impl.xc$a r2 = r12.n
com.applovin.impl.fo$d r3 = r12.l
com.applovin.impl.fo$d r14 = r2.a(r14, r3)
long r2 = r14.c()
int r14 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1))
if (r14 == 0) goto L74
r10 = r4
goto L75
L74:
r10 = r0
L75:
com.applovin.impl.fo$d r7 = r12.l
com.applovin.impl.fo$b r8 = r12.m
r9 = 0
r6 = r15
android.util.Pair r14 = r6.a(r7, r8, r9, r10)
java.lang.Object r0 = r14.first
java.lang.Object r14 = r14.second
java.lang.Long r14 = (java.lang.Long) r14
long r1 = r14.longValue()
boolean r14 = r12.r
if (r14 == 0) goto L94
com.applovin.impl.xc$a r13 = r12.n
com.applovin.impl.xc$a r13 = r13.a(r15)
goto L98
L94:
com.applovin.impl.xc$a r13 = com.applovin.impl.xc.a.a(r15, r13, r0)
L98:
r12.n = r13
com.applovin.impl.wc r13 = r12.o
if (r13 == 0) goto Lae
r12.a(r1)
com.applovin.impl.be$a r13 = r13.a
java.lang.Object r14 = r13.a
java.lang.Object r14 = r12.b(r14)
com.applovin.impl.be$a r13 = r13.b(r14)
goto Laf
Lae:
r13 = 0
Laf:
r14 = 1
r12.r = r14
r12.q = r14
com.applovin.impl.xc$a r14 = r12.n
r12.a(r14)
if (r13 == 0) goto Lc6
com.applovin.impl.wc r14 = r12.o
java.lang.Object r14 = com.applovin.impl.b1.a(r14)
com.applovin.impl.wc r14 = (com.applovin.impl.wc) r14
r14.a(r13)
Lc6:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.xc.a(java.lang.Void, com.applovin.impl.be, com.applovin.impl.fo):void");
}
@Override // com.applovin.impl.b4, com.applovin.impl.c2
public void a(xo xoVar) {
super.a(xoVar);
if (this.k) {
return;
}
this.p = true;
a((Object) null, this.j);
}
@Override // com.applovin.impl.be
public void a(wd wdVar) {
((wc) wdVar).i();
if (wdVar == this.o) {
this.o = null;
}
}
private void a(long j) {
wc wcVar = this.o;
int a2 = this.n.a(wcVar.a.a);
if (a2 == -1) {
return;
}
long j2 = this.n.a(a2, this.m).d;
if (j2 != C.TIME_UNSET && j >= j2) {
j = Math.max(0L, j2 - 1);
}
wcVar.e(j);
}
}