- 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
235 lines
7.0 KiB
Java
235 lines
7.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.exoplayer2.common.base.Ascii;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class zf {
|
|
public static final byte[] a = {0, 0, 0, 1};
|
|
public static final float[] b = {1.0f, 1.0f, 1.0909091f, 0.90909094f, 1.4545455f, 1.2121212f, 2.1818182f, 1.8181819f, 2.909091f, 2.4242425f, 1.6363636f, 1.3636364f, 1.939394f, 1.6161616f, 1.3333334f, 1.5f, 2.0f};
|
|
private static final Object c = new Object();
|
|
private static int[] d = new int[10];
|
|
|
|
public static int c(byte[] bArr, int i) {
|
|
int i2;
|
|
synchronized (c) {
|
|
int i3 = 0;
|
|
int i4 = 0;
|
|
while (i3 < i) {
|
|
try {
|
|
i3 = a(bArr, i3, i);
|
|
if (i3 < i) {
|
|
int[] iArr = d;
|
|
if (iArr.length <= i4) {
|
|
d = Arrays.copyOf(iArr, iArr.length * 2);
|
|
}
|
|
d[i4] = i3;
|
|
i3 += 3;
|
|
i4++;
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
i2 = i - i4;
|
|
int i5 = 0;
|
|
int i6 = 0;
|
|
for (int i7 = 0; i7 < i4; i7++) {
|
|
int i8 = d[i7] - i5;
|
|
System.arraycopy(bArr, i5, bArr, i6, i8);
|
|
int i9 = i6 + i8;
|
|
int i10 = i9 + 1;
|
|
bArr[i9] = 0;
|
|
i6 = i9 + 2;
|
|
bArr[i10] = 0;
|
|
i5 += i8 + 3;
|
|
}
|
|
System.arraycopy(bArr, i5, bArr, i6, i2 - i6);
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:28:0x00e2 */
|
|
/* JADX WARN: Removed duplicated region for block: B:31:0x00f0 */
|
|
/* JADX WARN: Removed duplicated region for block: B:47:0x0137 */
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x014a */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static com.applovin.impl.zf.b c(byte[] r22, int r23, int r24) {
|
|
/*
|
|
Method dump skipped, instructions count: 373
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.zf.c(byte[], int, int):com.applovin.impl.zf$b");
|
|
}
|
|
|
|
public static final class b {
|
|
public final int a;
|
|
public final int b;
|
|
public final int c;
|
|
public final int d;
|
|
public final int e;
|
|
public final int f;
|
|
public final float g;
|
|
public final boolean h;
|
|
public final boolean i;
|
|
public final int j;
|
|
public final int k;
|
|
public final int l;
|
|
public final boolean m;
|
|
|
|
public b(int i, int i2, int i3, int i4, int i5, int i6, float f, boolean z, boolean z2, int i7, int i8, int i9, boolean z3) {
|
|
this.a = i;
|
|
this.b = i2;
|
|
this.c = i3;
|
|
this.d = i4;
|
|
this.e = i5;
|
|
this.f = i6;
|
|
this.g = f;
|
|
this.h = z;
|
|
this.i = z2;
|
|
this.j = i7;
|
|
this.k = i8;
|
|
this.l = i9;
|
|
this.m = z3;
|
|
}
|
|
}
|
|
|
|
public static final class a {
|
|
public final int a;
|
|
public final int b;
|
|
public final boolean c;
|
|
|
|
public a(int i, int i2, boolean z) {
|
|
this.a = i;
|
|
this.b = i2;
|
|
this.c = z;
|
|
}
|
|
}
|
|
|
|
public static int b(byte[] bArr, int i) {
|
|
return bArr[i + 3] & Ascii.US;
|
|
}
|
|
|
|
public static a b(byte[] bArr, int i, int i2) {
|
|
ch chVar = new ch(bArr, i, i2);
|
|
chVar.d(8);
|
|
int f = chVar.f();
|
|
int f2 = chVar.f();
|
|
chVar.g();
|
|
return new a(f, f2, chVar.c());
|
|
}
|
|
|
|
public static void a(boolean[] zArr) {
|
|
zArr[0] = false;
|
|
zArr[1] = false;
|
|
zArr[2] = false;
|
|
}
|
|
|
|
public static void a(ByteBuffer byteBuffer) {
|
|
int position = byteBuffer.position();
|
|
int i = 0;
|
|
int i2 = 0;
|
|
while (true) {
|
|
int i3 = i + 1;
|
|
if (i3 < position) {
|
|
int i4 = byteBuffer.get(i) & 255;
|
|
if (i2 == 3) {
|
|
if (i4 == 1 && (byteBuffer.get(i3) & Ascii.US) == 7) {
|
|
ByteBuffer duplicate = byteBuffer.duplicate();
|
|
duplicate.position(i - 3);
|
|
duplicate.limit(position);
|
|
byteBuffer.position(0);
|
|
byteBuffer.put(duplicate);
|
|
return;
|
|
}
|
|
} else if (i4 == 0) {
|
|
i2++;
|
|
}
|
|
if (i4 != 0) {
|
|
i2 = 0;
|
|
}
|
|
i = i3;
|
|
} else {
|
|
byteBuffer.clear();
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static int a(byte[] bArr, int i, int i2, boolean[] zArr) {
|
|
int i3 = i2 - i;
|
|
b1.b(i3 >= 0);
|
|
if (i3 == 0) {
|
|
return i2;
|
|
}
|
|
if (zArr[0]) {
|
|
a(zArr);
|
|
return i - 3;
|
|
}
|
|
if (i3 > 1 && zArr[1] && bArr[i] == 1) {
|
|
a(zArr);
|
|
return i - 2;
|
|
}
|
|
if (i3 > 2 && zArr[2] && bArr[i] == 0 && bArr[i + 1] == 1) {
|
|
a(zArr);
|
|
return i - 1;
|
|
}
|
|
int i4 = i2 - 1;
|
|
int i5 = i + 2;
|
|
while (i5 < i4) {
|
|
byte b2 = bArr[i5];
|
|
if ((b2 & 254) == 0) {
|
|
int i6 = i5 - 2;
|
|
if (bArr[i6] == 0 && bArr[i5 - 1] == 0 && b2 == 1) {
|
|
a(zArr);
|
|
return i6;
|
|
}
|
|
i5 -= 2;
|
|
}
|
|
i5 += 3;
|
|
}
|
|
zArr[0] = i3 <= 2 ? !(i3 != 2 ? !(zArr[1] && bArr[i4] == 1) : !(zArr[2] && bArr[i2 + (-2)] == 0 && bArr[i4] == 1)) : bArr[i2 + (-3)] == 0 && bArr[i2 + (-2)] == 0 && bArr[i4] == 1;
|
|
zArr[1] = i3 <= 1 ? zArr[2] && bArr[i4] == 0 : bArr[i2 + (-2)] == 0 && bArr[i4] == 0;
|
|
zArr[2] = bArr[i4] == 0;
|
|
return i2;
|
|
}
|
|
|
|
private static int a(byte[] bArr, int i, int i2) {
|
|
while (i < i2 - 2) {
|
|
if (bArr[i] == 0 && bArr[i + 1] == 0 && bArr[i + 2] == 3) {
|
|
return i;
|
|
}
|
|
i++;
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
public static int a(byte[] bArr, int i) {
|
|
return (bArr[i + 3] & 126) >> 1;
|
|
}
|
|
|
|
private static void a(ch chVar, int i) {
|
|
int i2 = 8;
|
|
int i3 = 8;
|
|
for (int i4 = 0; i4 < i; i4++) {
|
|
if (i2 != 0) {
|
|
i2 = ((chVar.e() + i3) + 256) % 256;
|
|
}
|
|
if (i2 != 0) {
|
|
i3 = i2;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static boolean a(String str, byte b2) {
|
|
if ("video/avc".equals(str) && (b2 & Ascii.US) == 6) {
|
|
return true;
|
|
}
|
|
return "video/hevc".equals(str) && ((b2 & 126) >> 1) == 39;
|
|
}
|
|
}
|