- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
199 lines
6.0 KiB
Java
199 lines
6.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.f9;
|
|
import com.ironsource.mediationsdk.utils.IronSourceConstants;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.extractor.ts.PsExtractor;
|
|
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
|
|
import csdk.gluads.Consts;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class f7 {
|
|
private static final int[] a = {1, 2, 2, 2, 2, 3, 3, 4, 4, 5, 6, 6, 6, 7, 8, 8};
|
|
private static final int[] b = {-1, 8000, 16000, 32000, -1, -1, 11025, 22050, 44100, -1, -1, 12000, 24000, 48000, -1, -1};
|
|
private static final int[] c = {64, 112, 128, PsExtractor.AUDIO_STREAM, 224, 256, 384, 448, 512, 640, 768, 896, 1024, 1152, 1280, 1536, 1920, 2048, IronSourceConstants.IS_AD_UNIT_CAPPED, 2560, 2688, 2816, 2823, 2944, 3072, 3840, 4096, Consts.GEMS_CUSTOM_DATA_LIMIT, 7680};
|
|
|
|
public static boolean a(int i) {
|
|
return i == 2147385345 || i == -25230976 || i == 536864768 || i == -14745368;
|
|
}
|
|
|
|
public static int d(byte[] bArr) {
|
|
int i;
|
|
byte b2;
|
|
int i2;
|
|
byte b3;
|
|
byte b4 = bArr[0];
|
|
if (b4 != -2) {
|
|
if (b4 == -1) {
|
|
i = (bArr[4] & 7) << 4;
|
|
b3 = bArr[7];
|
|
} else if (b4 != 31) {
|
|
i = (bArr[4] & 1) << 6;
|
|
b2 = bArr[5];
|
|
} else {
|
|
i = (bArr[5] & 7) << 4;
|
|
b3 = bArr[6];
|
|
}
|
|
i2 = b3 & 60;
|
|
return (((i2 >> 2) | i) + 1) * 32;
|
|
}
|
|
i = (bArr[5] & 1) << 6;
|
|
b2 = bArr[4];
|
|
i2 = b2 & 252;
|
|
return (((i2 >> 2) | i) + 1) * 32;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0060 */
|
|
/* JADX WARN: Removed duplicated region for block: B:13:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static int a(byte[] r7) {
|
|
/*
|
|
r0 = 0
|
|
r1 = r7[r0]
|
|
r2 = -2
|
|
r3 = 7
|
|
r4 = 6
|
|
r5 = 1
|
|
r6 = 4
|
|
if (r1 == r2) goto L4f
|
|
r2 = -1
|
|
if (r1 == r2) goto L3e
|
|
r2 = 31
|
|
if (r1 == r2) goto L26
|
|
r1 = 5
|
|
r1 = r7[r1]
|
|
r1 = r1 & 3
|
|
int r1 = r1 << 12
|
|
r2 = r7[r4]
|
|
r2 = r2 & 255(0xff, float:3.57E-43)
|
|
int r2 = r2 << r6
|
|
r1 = r1 | r2
|
|
r7 = r7[r3]
|
|
L20:
|
|
r7 = r7 & 240(0xf0, float:3.36E-43)
|
|
int r7 = r7 >> r6
|
|
r7 = r7 | r1
|
|
int r7 = r7 + r5
|
|
goto L5e
|
|
L26:
|
|
r0 = r7[r4]
|
|
r0 = r0 & 3
|
|
int r0 = r0 << 12
|
|
r1 = r7[r3]
|
|
r1 = r1 & 255(0xff, float:3.57E-43)
|
|
int r1 = r1 << r6
|
|
r0 = r0 | r1
|
|
r1 = 8
|
|
r7 = r7[r1]
|
|
L36:
|
|
r7 = r7 & 60
|
|
int r7 = r7 >> 2
|
|
r7 = r7 | r0
|
|
int r7 = r7 + r5
|
|
r0 = r5
|
|
goto L5e
|
|
L3e:
|
|
r0 = r7[r3]
|
|
r0 = r0 & 3
|
|
int r0 = r0 << 12
|
|
r1 = r7[r4]
|
|
r1 = r1 & 255(0xff, float:3.57E-43)
|
|
int r1 = r1 << r6
|
|
r0 = r0 | r1
|
|
r1 = 9
|
|
r7 = r7[r1]
|
|
goto L36
|
|
L4f:
|
|
r1 = r7[r6]
|
|
r1 = r1 & 3
|
|
int r1 = r1 << 12
|
|
r2 = r7[r3]
|
|
r2 = r2 & 255(0xff, float:3.57E-43)
|
|
int r2 = r2 << r6
|
|
r1 = r1 | r2
|
|
r7 = r7[r4]
|
|
goto L20
|
|
L5e:
|
|
if (r0 == 0) goto L64
|
|
int r7 = r7 * 16
|
|
int r7 = r7 / 14
|
|
L64:
|
|
return r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.applovin.impl.f7.a(byte[]):int");
|
|
}
|
|
|
|
private static ah b(byte[] bArr) {
|
|
if (bArr[0] == Byte.MAX_VALUE) {
|
|
return new ah(bArr);
|
|
}
|
|
byte[] copyOf = Arrays.copyOf(bArr, bArr.length);
|
|
if (c(copyOf)) {
|
|
for (int i = 0; i < copyOf.length - 1; i += 2) {
|
|
byte b2 = copyOf[i];
|
|
int i2 = i + 1;
|
|
copyOf[i] = copyOf[i2];
|
|
copyOf[i2] = b2;
|
|
}
|
|
}
|
|
ah ahVar = new ah(copyOf);
|
|
if (copyOf[0] == 31) {
|
|
ah ahVar2 = new ah(copyOf);
|
|
while (ahVar2.b() >= 16) {
|
|
ahVar2.d(2);
|
|
ahVar.a(ahVar2.a(14), 14);
|
|
}
|
|
}
|
|
ahVar.a(copyOf);
|
|
return ahVar;
|
|
}
|
|
|
|
private static boolean c(byte[] bArr) {
|
|
byte b2 = bArr[0];
|
|
return b2 == -2 || b2 == -1;
|
|
}
|
|
|
|
public static int a(ByteBuffer byteBuffer) {
|
|
int i;
|
|
byte b2;
|
|
int i2;
|
|
byte b3;
|
|
int position = byteBuffer.position();
|
|
byte b4 = byteBuffer.get(position);
|
|
if (b4 != -2) {
|
|
if (b4 == -1) {
|
|
i = (byteBuffer.get(position + 4) & 7) << 4;
|
|
b3 = byteBuffer.get(position + 7);
|
|
} else if (b4 != 31) {
|
|
i = (byteBuffer.get(position + 4) & 1) << 6;
|
|
b2 = byteBuffer.get(position + 5);
|
|
} else {
|
|
i = (byteBuffer.get(position + 5) & 7) << 4;
|
|
b3 = byteBuffer.get(position + 6);
|
|
}
|
|
i2 = b3 & 60;
|
|
return (((i2 >> 2) | i) + 1) * 32;
|
|
}
|
|
i = (byteBuffer.get(position + 5) & 1) << 6;
|
|
b2 = byteBuffer.get(position + 4);
|
|
i2 = b2 & 252;
|
|
return (((i2 >> 2) | i) + 1) * 32;
|
|
}
|
|
|
|
public static f9 a(byte[] bArr, String str, String str2, y6 y6Var) {
|
|
ah b2 = b(bArr);
|
|
b2.d(60);
|
|
int i = a[b2.a(6)];
|
|
int i2 = b[b2.a(4)];
|
|
int a2 = b2.a(5);
|
|
int[] iArr = c;
|
|
int i3 = a2 >= iArr.length ? -1 : (iArr[a2] * 1000) / 2;
|
|
b2.d(10);
|
|
return new f9.b().c(str).f(MimeTypes.AUDIO_DTS).b(i3).c(i + (b2.a(2) > 0 ? 1 : 0)).n(i2).a(y6Var).e(str2).a();
|
|
}
|
|
}
|