- 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
134 lines
3.4 KiB
Java
134 lines
3.4 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.f9;
|
|
import com.applovin.impl.fr;
|
|
import com.applovin.impl.gl;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class er extends gl {
|
|
private a n;
|
|
private int o;
|
|
private boolean p;
|
|
private fr.d q;
|
|
private fr.b r;
|
|
|
|
public static int a(byte b, int i, int i2) {
|
|
return (b >> i2) & (255 >>> (8 - i));
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public void c(long j) {
|
|
super.c(j);
|
|
this.p = j != 0;
|
|
fr.d dVar = this.q;
|
|
this.o = dVar != null ? dVar.g : 0;
|
|
}
|
|
|
|
public static boolean c(bh bhVar) {
|
|
try {
|
|
return fr.a(1, bhVar, true);
|
|
} catch (dh unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public a b(bh bhVar) {
|
|
fr.d dVar = this.q;
|
|
if (dVar == null) {
|
|
this.q = fr.b(bhVar);
|
|
return null;
|
|
}
|
|
fr.b bVar = this.r;
|
|
if (bVar == null) {
|
|
this.r = fr.a(bhVar);
|
|
return null;
|
|
}
|
|
byte[] bArr = new byte[bhVar.e()];
|
|
System.arraycopy(bhVar.c(), 0, bArr, 0, bhVar.e());
|
|
return new a(dVar, bVar, bArr, fr.a(bhVar, dVar.b), fr.a(r4.length - 1));
|
|
}
|
|
|
|
public static void a(bh bhVar, long j) {
|
|
if (bhVar.b() < bhVar.e() + 4) {
|
|
bhVar.a(Arrays.copyOf(bhVar.c(), bhVar.e() + 4));
|
|
} else {
|
|
bhVar.e(bhVar.e() + 4);
|
|
}
|
|
byte[] c = bhVar.c();
|
|
c[bhVar.e() - 4] = (byte) (j & 255);
|
|
c[bhVar.e() - 3] = (byte) ((j >>> 8) & 255);
|
|
c[bhVar.e() - 2] = (byte) ((j >>> 16) & 255);
|
|
c[bhVar.e() - 1] = (byte) ((j >>> 24) & 255);
|
|
}
|
|
|
|
public static final class a {
|
|
public final fr.d a;
|
|
public final fr.b b;
|
|
public final byte[] c;
|
|
public final fr.c[] d;
|
|
public final int e;
|
|
|
|
public a(fr.d dVar, fr.b bVar, byte[] bArr, fr.c[] cVarArr, int i) {
|
|
this.a = dVar;
|
|
this.b = bVar;
|
|
this.c = bArr;
|
|
this.d = cVarArr;
|
|
this.e = i;
|
|
}
|
|
}
|
|
|
|
private static int a(byte b, a aVar) {
|
|
if (!aVar.d[a(b, aVar.e, 1)].a) {
|
|
return aVar.a.g;
|
|
}
|
|
return aVar.a.h;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public long a(bh bhVar) {
|
|
if ((bhVar.c()[0] & 1) == 1) {
|
|
return -1L;
|
|
}
|
|
int a2 = a(bhVar.c()[0], (a) b1.b(this.n));
|
|
long j = this.p ? (this.o + a2) / 4 : 0;
|
|
a(bhVar, j);
|
|
this.p = true;
|
|
this.o = a2;
|
|
return j;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public boolean a(bh bhVar, long j, gl.b bVar) {
|
|
if (this.n != null) {
|
|
b1.a(bVar.a);
|
|
return false;
|
|
}
|
|
a b = b(bhVar);
|
|
this.n = b;
|
|
if (b == null) {
|
|
return true;
|
|
}
|
|
fr.d dVar = b.a;
|
|
ArrayList arrayList = new ArrayList();
|
|
arrayList.add(dVar.j);
|
|
arrayList.add(b.c);
|
|
bVar.a = new f9.b().f(MimeTypes.AUDIO_VORBIS).b(dVar.e).k(dVar.d).c(dVar.b).n(dVar.c).a(arrayList).a();
|
|
return true;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public void a(boolean z) {
|
|
super.a(z);
|
|
if (z) {
|
|
this.n = null;
|
|
this.q = null;
|
|
this.r = null;
|
|
}
|
|
this.o = 0;
|
|
this.p = false;
|
|
}
|
|
}
|