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
This commit is contained in:
2026-02-18 15:48:36 -08:00
parent c19eb3d7ff
commit c080f0d97f
26930 changed files with 2529574 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.text.TextUtils;
/* loaded from: classes2.dex */
public final class a {
public static void a(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static void b(boolean z) {
if (!z) {
throw new IllegalStateException();
}
}
public static void a(boolean z, String str) {
if (!z) {
throw new IllegalArgumentException(String.valueOf(str));
}
}
public static void b(boolean z, String str) {
if (!z) {
throw new IllegalStateException(str);
}
}
public static <T> T a(T t) {
t.getClass();
return t;
}
public static String a(String str) {
if (TextUtils.isEmpty(str)) {
throw new IllegalArgumentException();
}
return str;
}
}

View File

@@ -0,0 +1,95 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.util.Log;
import androidx.annotation.NonNull;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/* loaded from: classes2.dex */
public final class b {
public final File a;
public final File b;
public static final class a extends OutputStream {
public final FileOutputStream a;
public boolean b = false;
public a(File file) throws FileNotFoundException {
this.a = new FileOutputStream(file);
}
@Override // java.io.OutputStream, java.io.Flushable
public final void flush() throws IOException {
this.a.flush();
}
@Override // java.io.OutputStream
public final void write(int i) throws IOException {
this.a.write(i);
}
@Override // java.io.OutputStream
public final void write(@NonNull byte[] bArr) throws IOException {
this.a.write(bArr);
}
@Override // java.io.OutputStream
public final void write(@NonNull byte[] bArr, int i, int i2) throws IOException {
this.a.write(bArr, i, i2);
}
@Override // java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable
public final void close() throws IOException {
if (this.b) {
return;
}
this.b = true;
this.a.flush();
try {
this.a.getFD().sync();
} catch (IOException e) {
Log.w("AtomicFile", "Failed to sync file descriptor:", e);
}
this.a.close();
}
}
public b(File file) {
this.a = file;
this.b = new File(file.getPath() + ".bak");
}
public final FileInputStream a() throws FileNotFoundException {
if (this.b.exists()) {
this.a.delete();
this.b.renameTo(this.a);
}
return new FileInputStream(this.a);
}
public final a b() throws IOException {
if (this.a.exists()) {
if (this.b.exists()) {
this.a.delete();
} else if (!this.a.renameTo(this.b)) {
Log.w("AtomicFile", "Couldn't rename file " + this.a + " to backup file " + this.b);
}
}
try {
return new a(this.a);
} catch (FileNotFoundException unused) {
if (!this.a.getParentFile().mkdirs()) {
throw new IOException("Couldn't create directory " + this.a);
}
try {
return new a(this.a);
} catch (FileNotFoundException unused2) {
throw new IOException("Couldn't create " + this.a);
}
}
}
}

View File

@@ -0,0 +1,48 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.util.Pair;
/* loaded from: classes2.dex */
public final class c {
public static final byte[] a = {0, 0, 0, 1};
public static final int[] b = {96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350};
public static final int[] c = {0, 1, 2, 3, 4, 5, 6, 8, -1, -1, -1, 7, 8, -1, 8, -1};
public static Pair<Integer, Integer> a(byte[] bArr) {
int i;
int i2;
j jVar = new j(bArr, bArr.length);
int a2 = jVar.a(5);
if (a2 == 31) {
a2 = jVar.a(6) + 32;
}
int a3 = jVar.a(4);
if (a3 == 15) {
i = jVar.a(24);
} else {
a.a(a3 < 13);
i = b[a3];
}
int a4 = jVar.a(4);
if (a2 == 5 || a2 == 29) {
int a5 = jVar.a(4);
if (a5 == 15) {
i2 = jVar.a(24);
} else {
a.a(a5 < 13);
i2 = b[a5];
}
i = i2;
int a6 = jVar.a(5);
if (a6 == 31) {
a6 = jVar.a(6) + 32;
}
if (a6 == 22) {
a4 = jVar.a(4);
}
}
int i3 = c[a4];
a.a(i3 != -1);
return Pair.create(Integer.valueOf(i), Integer.valueOf(i3));
}
}

View File

@@ -0,0 +1,10 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
/* loaded from: classes2.dex */
public final class d {
public boolean a;
public final synchronized void a() {
this.a = false;
}
}

View File

@@ -0,0 +1,22 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
/* loaded from: classes2.dex */
public final class e {
public final int a;
public final int b;
public final int c;
public final long d;
public e(byte[] bArr) {
j jVar = new j(bArr);
jVar.b(136);
jVar.a(16);
jVar.a(16);
jVar.a(24);
jVar.a(24);
this.a = jVar.a(20);
this.b = jVar.a(3) + 1;
this.c = jVar.a(5) + 1;
this.d = ((jVar.a(4) & 15) << 32) | (jVar.a(32) & 4294967295L);
}
}

View File

@@ -0,0 +1,24 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class f {
public int a;
public long[] b = new long[32];
public f(int i) {
}
public final void a(long j) {
int i = this.a;
long[] jArr = this.b;
if (i == jArr.length) {
this.b = Arrays.copyOf(jArr, i * 2);
}
long[] jArr2 = this.b;
int i2 = this.a;
this.a = i2 + 1;
jArr2[i2] = j;
}
}

View File

@@ -0,0 +1,10 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
/* loaded from: classes2.dex */
public interface g {
com.fyber.inneractive.sdk.player.exoplayer2.n a(com.fyber.inneractive.sdk.player.exoplayer2.n nVar);
com.fyber.inneractive.sdk.player.exoplayer2.n i();
long m();
}

View File

@@ -0,0 +1,102 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.text.TextUtils;
import com.mbridge.msdk.playercommon.exoplayer2.util.MimeTypes;
/* loaded from: classes2.dex */
public final class h {
public static String a(String str) {
if (str == null) {
return null;
}
String trim = str.trim();
if (trim.startsWith("avc1") || trim.startsWith("avc3")) {
return "video/avc";
}
if (trim.startsWith("hev1") || trim.startsWith("hvc1")) {
return "video/hevc";
}
if (trim.startsWith("vp9")) {
return MimeTypes.VIDEO_VP9;
}
if (trim.startsWith("vp8")) {
return MimeTypes.VIDEO_VP8;
}
if (trim.startsWith("mp4a")) {
return MimeTypes.AUDIO_AAC;
}
if (trim.startsWith("ac-3") || trim.startsWith("dac3")) {
return MimeTypes.AUDIO_AC3;
}
if (trim.startsWith("ec-3") || trim.startsWith("dec3")) {
return MimeTypes.AUDIO_E_AC3;
}
if (trim.startsWith("dtsc") || trim.startsWith("dtse")) {
return MimeTypes.AUDIO_DTS;
}
if (trim.startsWith("dtsh") || trim.startsWith("dtsl")) {
return MimeTypes.AUDIO_DTS_HD;
}
if (trim.startsWith("opus")) {
return MimeTypes.AUDIO_OPUS;
}
if (trim.startsWith("vorbis")) {
return MimeTypes.AUDIO_VORBIS;
}
return null;
}
public static int b(String str) {
String substring;
if (TextUtils.isEmpty(str)) {
return -1;
}
if (c(str)) {
return 1;
}
if (d(str)) {
return 2;
}
if (str == null) {
substring = null;
} else {
int indexOf = str.indexOf(47);
if (indexOf == -1) {
throw new IllegalArgumentException("Invalid mime type: ".concat(str));
}
substring = str.substring(0, indexOf);
}
if ("text".equals(substring) || MimeTypes.APPLICATION_CEA608.equals(str) || MimeTypes.APPLICATION_CEA708.equals(str) || MimeTypes.APPLICATION_MP4CEA608.equals(str) || MimeTypes.APPLICATION_SUBRIP.equals(str) || MimeTypes.APPLICATION_TTML.equals(str) || MimeTypes.APPLICATION_TX3G.equals(str) || MimeTypes.APPLICATION_MP4VTT.equals(str) || MimeTypes.APPLICATION_RAWCC.equals(str) || MimeTypes.APPLICATION_VOBSUB.equals(str) || MimeTypes.APPLICATION_PGS.equals(str) || MimeTypes.APPLICATION_DVBSUBS.equals(str)) {
return 3;
}
return (MimeTypes.APPLICATION_ID3.equals(str) || MimeTypes.APPLICATION_EMSG.equals(str) || MimeTypes.APPLICATION_SCTE35.equals(str) || MimeTypes.APPLICATION_CAMERA_MOTION.equals(str)) ? 4 : -1;
}
public static boolean c(String str) {
String substring;
if (str == null) {
substring = null;
} else {
int indexOf = str.indexOf(47);
if (indexOf == -1) {
throw new IllegalArgumentException("Invalid mime type: ".concat(str));
}
substring = str.substring(0, indexOf);
}
return "audio".equals(substring);
}
public static boolean d(String str) {
String substring;
if (str == null) {
substring = null;
} else {
int indexOf = str.indexOf(47);
if (indexOf == -1) {
throw new IllegalArgumentException("Invalid mime type: ".concat(str));
}
substring = str.substring(0, indexOf);
}
return "video".equals(substring);
}
}

View File

@@ -0,0 +1,133 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import java.util.Arrays;
/* loaded from: classes2.dex */
public final class i {
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};
public static final Object c = new Object();
public static int[] d = new int[10];
public static final class a {
public final int a;
public final boolean b;
public a(boolean z, int i, int i2) {
this.a = i2;
this.b = z;
}
}
public static final class b {
public final int a;
public final int b;
public final int c;
public final float d;
public final boolean e;
public final boolean f;
public final int g;
public final int h;
public final int i;
public final boolean j;
public b(int i, int i2, int i3, float f, boolean z, boolean z2, int i4, int i5, int i6, boolean z3) {
this.a = i;
this.b = i2;
this.c = i3;
this.d = f;
this.e = z;
this.f = z2;
this.g = i4;
this.h = i5;
this.i = i6;
this.j = z3;
}
}
public static int a(byte[] bArr, int i) {
int i2;
synchronized (c) {
int i3 = 0;
int i4 = 0;
while (i3 < i) {
while (true) {
if (i3 >= i - 2) {
i3 = i;
break;
}
try {
if (bArr[i3] == 0 && bArr[i3 + 1] == 0 && bArr[i3 + 2] == 3) {
break;
}
i3++;
} catch (Throwable th) {
throw th;
}
}
if (i3 < i) {
int[] iArr = d;
if (iArr.length <= i4) {
d = Arrays.copyOf(iArr, iArr.length * 2);
}
d[i4] = i3;
i3 += 3;
i4++;
}
}
i2 = i - i4;
int i5 = 0;
int i6 = 0;
for (int i7 = 0; i7 < i4; i7++) {
int i8 = d[i7] - i6;
System.arraycopy(bArr, i6, bArr, i5, i8);
int i9 = i5 + i8;
int i10 = i9 + 1;
bArr[i9] = 0;
i5 = i9 + 2;
bArr[i10] = 0;
i6 += i8 + 3;
}
System.arraycopy(bArr, i6, bArr, i5, i2 - i5);
}
return i2;
}
/* JADX WARN: Removed duplicated region for block: B:28:0x00ed */
/* JADX WARN: Removed duplicated region for block: B:31:0x00fb */
/* JADX WARN: Removed duplicated region for block: B:47:0x013c */
/* JADX WARN: Removed duplicated region for block: B:54:0x014d */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static com.fyber.inneractive.sdk.player.exoplayer2.util.i.b a(byte[] r20, int r21, int r22) {
/*
Method dump skipped, instructions count: 374
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.player.exoplayer2.util.i.a(byte[], int, int):com.fyber.inneractive.sdk.player.exoplayer2.util.i$b");
}
/* JADX WARN: Code restructure failed: missing block: B:56:0x0093, code lost:
r9 = true;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static int a(byte[] r8, int r9, int r10, boolean[] r11) {
/*
Method dump skipped, instructions count: 186
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.player.exoplayer2.util.i.a(byte[], int, int, boolean[]):int");
}
public static void a(boolean[] zArr) {
zArr[0] = false;
zArr[1] = false;
zArr[2] = false;
}
}

View File

@@ -0,0 +1,101 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
/* loaded from: classes2.dex */
public final class j {
public final byte[] a;
public int b;
public int c;
public final int d;
public j(byte[] bArr) {
this(bArr, bArr.length);
}
public final boolean a() {
int i;
byte[] bArr = this.a;
int i2 = this.b;
byte b = bArr[i2];
int i3 = this.c;
boolean z = false;
boolean z2 = (b & (128 >> i3)) != 0;
int i4 = i3 + 1;
this.c = i4;
if (i4 == 8) {
this.c = 0;
this.b = i2 + 1;
}
int i5 = this.b;
if (i5 >= 0 && (i5 < (i = this.d) || (i5 == i && this.c == 0))) {
z = true;
}
a.b(z);
return z2;
}
public final void b(int i) {
int i2;
int i3 = i / 8;
this.b = i3;
int i4 = i - (i3 * 8);
this.c = i4;
a.b(i3 >= 0 && (i3 < (i2 = this.d) || (i3 == i2 && i4 == 0)));
}
public final void c(int i) {
int i2;
int i3 = i / 8;
int i4 = this.b + i3;
this.b = i4;
int i5 = (i - (i3 * 8)) + this.c;
this.c = i5;
boolean z = true;
if (i5 > 7) {
this.b = i4 + 1;
this.c = i5 - 8;
}
int i6 = this.b;
if (i6 < 0 || (i6 >= (i2 = this.d) && (i6 != i2 || this.c != 0))) {
z = false;
}
a.b(z);
}
public j(byte[] bArr, int i) {
this.a = bArr;
this.d = i;
}
public final int a(int i) {
int i2;
int i3;
this.c += i;
boolean z = false;
int i4 = 0;
while (true) {
i2 = this.c;
if (i2 <= 8) {
break;
}
int i5 = i2 - 8;
this.c = i5;
byte[] bArr = this.a;
int i6 = this.b;
this.b = i6 + 1;
i4 |= (bArr[i6] & 255) << i5;
}
byte[] bArr2 = this.a;
int i7 = this.b;
int i8 = ((-1) >>> (32 - i)) & (i4 | ((bArr2[i7] & 255) >> (8 - i2)));
if (i2 == 8) {
this.c = 0;
this.b = i7 + 1;
}
int i9 = this.b;
if (i9 >= 0 && (i9 < (i3 = this.d) || (i9 == i3 && this.c == 0))) {
z = true;
}
a.b(z);
return i8;
}
}

View File

@@ -0,0 +1,235 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import java.nio.charset.Charset;
/* loaded from: classes2.dex */
public final class k {
public byte[] a;
public int b;
public int c;
public k() {
}
public k(int i) {
this.a = new byte[i];
this.c = i;
}
public final int a() {
return this.c - this.b;
}
public final void a(byte[] bArr, int i) {
this.a = bArr;
this.c = i;
this.b = 0;
}
public final int b() {
byte[] bArr = this.a;
if (bArr == null) {
return 0;
}
return bArr.length;
}
public final void c(int i) {
a(b() < i ? new byte[i] : this.a, i);
}
public final void d(int i) {
a.a(i >= 0 && i <= this.a.length);
this.c = i;
}
public final void e(int i) {
a.a(i >= 0 && i <= this.c);
this.b = i;
}
public final void f(int i) {
e(this.b + i);
}
public final int g() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = bArr[i] & 255;
this.b = i + 2;
return ((bArr[i2] & 255) << 8) | i3;
}
public final long h() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 7;
long j = ((bArr[i] & 255) << 56) | ((bArr[i + 1] & 255) << 48) | ((bArr[i + 2] & 255) << 40) | ((bArr[i + 3] & 255) << 32) | ((bArr[i + 4] & 255) << 24) | ((bArr[i + 5] & 255) << 16) | ((bArr[i + 6] & 255) << 8);
this.b = i + 8;
return (bArr[i2] & 255) | j;
}
public final int i() {
return (j() << 21) | (j() << 14) | (j() << 7) | j();
}
public final int j() {
byte[] bArr = this.a;
int i = this.b;
this.b = i + 1;
return bArr[i] & 255;
}
public final long k() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 3;
long j = ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8);
this.b = i + 4;
return (bArr[i2] & 255) | j;
}
public final int l() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 2;
int i3 = ((bArr[i + 1] & 255) << 8) | ((bArr[i] & 255) << 16);
this.b = i + 3;
return (bArr[i2] & 255) | i3;
}
public final int m() {
int c = c();
if (c >= 0) {
return c;
}
throw new IllegalStateException(com.fyber.inneractive.sdk.player.exoplayer2.i.a("Top bit not zero: ", c));
}
public final long n() {
long h = h();
if (h >= 0) {
return h;
}
throw new IllegalStateException("Top bit not zero: " + h);
}
public final int o() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 1;
int i3 = (bArr[i] & 255) << 8;
this.b = i + 2;
return (bArr[i2] & 255) | i3;
}
public final void p() {
this.b = 0;
this.c = 0;
}
public final String b(int i) {
String str = new String(this.a, this.b, i, Charset.defaultCharset());
this.b += i;
return str;
}
public final int c() {
byte[] bArr = this.a;
int i = this.b;
int i2 = ((bArr[i + 1] & 255) << 16) | ((bArr[i] & 255) << 24);
int i3 = i + 3;
int i4 = i2 | ((bArr[i + 2] & 255) << 8);
this.b = i + 4;
return (bArr[i3] & 255) | i4;
}
public final long f() {
byte[] bArr = this.a;
int i = this.b;
int i2 = i + 3;
long j = (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
this.b = i + 4;
return ((bArr[i2] & 255) << 24) | j;
}
public final String d() {
if (a() == 0) {
return null;
}
int i = this.b;
while (i < this.c) {
byte b = this.a[i];
int i2 = s.a;
if (b == 10 || b == 13) {
break;
}
i++;
}
int i3 = this.b;
if (i - i3 >= 3) {
byte[] bArr = this.a;
if (bArr[i3] == -17 && bArr[i3 + 1] == -69 && bArr[i3 + 2] == -65) {
this.b = i3 + 3;
}
}
byte[] bArr2 = this.a;
int i4 = this.b;
String str = new String(bArr2, i4, i - i4);
this.b = i;
int i5 = this.c;
if (i == i5) {
return str;
}
byte[] bArr3 = this.a;
if (bArr3[i] == 13) {
int i6 = i + 1;
this.b = i6;
if (i6 == i5) {
return str;
}
}
int i7 = this.b;
if (bArr3[i7] == 10) {
this.b = i7 + 1;
}
return str;
}
public final int e() {
byte[] bArr = this.a;
int i = this.b;
int i2 = ((bArr[i + 1] & 255) << 8) | (bArr[i] & 255);
int i3 = i + 3;
int i4 = i2 | ((bArr[i + 2] & 255) << 16);
this.b = i + 4;
return ((bArr[i3] & 255) << 24) | i4;
}
public k(byte[] bArr) {
this.a = bArr;
this.c = bArr.length;
}
public final void a(byte[] bArr, int i, int i2) {
System.arraycopy(this.a, this.b, bArr, i, i2);
this.b += i2;
}
public k(byte[] bArr, int i) {
this.a = bArr;
this.c = i;
}
public final String a(int i) {
if (i == 0) {
return "";
}
int i2 = this.b;
int i3 = (i2 + i) - 1;
String str = new String(this.a, i2, (i3 >= this.c || this.a[i3] != 0) ? i : i - 1);
this.b += i;
return str;
}
}

View File

@@ -0,0 +1,178 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
/* loaded from: classes2.dex */
public final class l {
public byte[] a;
public int b;
public int c;
public int d;
public l(byte[] bArr, int i, int i2) {
a(bArr, i, i2);
}
public final boolean b() {
boolean z = (this.a[this.c] & (128 >> this.d)) != 0;
e();
return z;
}
public final int c() {
int i = 0;
while (!b()) {
i++;
}
return ((1 << i) - 1) + (i > 0 ? b(i) : 0);
}
public final void d(int i) {
int i2;
int i3;
int i4 = this.c;
int i5 = i / 8;
int i6 = i4 + i5;
this.c = i6;
int i7 = (i - (i5 * 8)) + this.d;
this.d = i7;
boolean z = true;
if (i7 > 7) {
this.c = i6 + 1;
this.d = i7 - 8;
}
while (true) {
int i8 = i4 + 1;
i2 = this.c;
if (i8 > i2) {
break;
}
if (c(i8)) {
this.c++;
i4 += 3;
} else {
i4 = i8;
}
}
if (i2 < 0 || (i2 >= (i3 = this.b) && (i2 != i3 || this.d != 0))) {
z = false;
}
a.b(z);
}
public final void e() {
int i;
boolean z = true;
int i2 = this.d + 1;
this.d = i2;
if (i2 == 8) {
this.d = 0;
int i3 = this.c;
this.c = i3 + (c(i3 + 1) ? 2 : 1);
}
int i4 = this.c;
if (i4 < 0 || (i4 >= (i = this.b) && (i4 != i || this.d != 0))) {
z = false;
}
a.b(z);
}
public final void a(byte[] bArr, int i, int i2) {
this.a = bArr;
this.c = i;
this.b = i2;
boolean z = false;
this.d = 0;
if (i >= 0 && (i < i2 || i == i2)) {
z = true;
}
a.b(z);
}
public final boolean c(int i) {
if (2 <= i && i < this.b) {
byte[] bArr = this.a;
if (bArr[i] == 3 && bArr[i - 2] == 0 && bArr[i - 1] == 0) {
return true;
}
}
return false;
}
public final int b(int i) {
int i2;
int i3;
this.d += i;
boolean z = false;
int i4 = 0;
while (true) {
i2 = this.d;
if (i2 <= 8) {
break;
}
int i5 = i2 - 8;
this.d = i5;
byte[] bArr = this.a;
int i6 = this.c;
i4 |= (bArr[i6] & 255) << i5;
if (!c(i6 + 1)) {
r3 = 1;
}
this.c = i6 + r3;
}
byte[] bArr2 = this.a;
int i7 = this.c;
int i8 = ((-1) >>> (32 - i)) & (i4 | ((bArr2[i7] & 255) >> (8 - i2)));
if (i2 == 8) {
this.d = 0;
this.c = i7 + (c(i7 + 1) ? 2 : 1);
}
int i9 = this.c;
if (i9 >= 0 && (i9 < (i3 = this.b) || (i9 == i3 && this.d == 0))) {
z = true;
}
a.b(z);
return i8;
}
public final boolean a(int i) {
int i2 = this.c;
int i3 = i / 8;
int i4 = i2 + i3;
int i5 = (this.d + i) - (i3 * 8);
if (i5 > 7) {
i4++;
i5 -= 8;
}
while (true) {
int i6 = i2 + 1;
if (i6 > i4 || i4 >= this.b) {
break;
}
if (c(i6)) {
i4++;
i2 += 3;
} else {
i2 = i6;
}
}
int i7 = this.b;
return i4 < i7 || (i4 == i7 && i5 == 0);
}
public final int d() {
int c = c();
return ((c + 1) / 2) * (c % 2 == 0 ? -1 : 1);
}
public final boolean a() {
int i = this.c;
int i2 = this.d;
int i3 = 0;
while (this.c < this.b && !b()) {
i3++;
}
boolean z = this.c == this.b;
this.c = i;
this.d = i2;
return !z && a((i3 * 2) + 1);
}
}

View File

@@ -0,0 +1,50 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import com.fyber.inneractive.sdk.player.exoplayer2.util.b;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/* loaded from: classes2.dex */
public final class m extends BufferedOutputStream {
public boolean a;
public m(b.a aVar) {
super(aVar);
}
public final void a(OutputStream outputStream) {
a.b(this.a);
((BufferedOutputStream) this).out = outputStream;
((BufferedOutputStream) this).count = 0;
this.a = false;
}
public m(FileOutputStream fileOutputStream, int i) {
super(fileOutputStream, i);
}
@Override // java.io.FilterOutputStream, java.io.OutputStream, java.io.Closeable, java.lang.AutoCloseable
public final void close() throws IOException {
this.a = true;
try {
flush();
th = null;
} catch (Throwable th) {
th = th;
}
try {
((BufferedOutputStream) this).out.close();
} catch (Throwable th2) {
if (th == null) {
th = th2;
}
}
if (th == null) {
return;
}
int i = s.a;
throw th;
}
}

View File

@@ -0,0 +1,42 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import java.util.ArrayList;
import java.util.Comparator;
/* loaded from: classes2.dex */
public final class n {
public static final a h = new a();
public static final b i = new b();
public int e;
public int f;
public int g;
public final int a = 2000;
public final c[] c = new c[5];
public final ArrayList<c> b = new ArrayList<>();
public int d = -1;
public class a implements Comparator<c> {
@Override // java.util.Comparator
public final int compare(c cVar, c cVar2) {
return cVar.a - cVar2.a;
}
}
public class b implements Comparator<c> {
@Override // java.util.Comparator
public final int compare(c cVar, c cVar2) {
float f = cVar.c;
float f2 = cVar2.c;
if (f < f2) {
return -1;
}
return f2 < f ? 1 : 0;
}
}
public static class c {
public int a;
public int b;
public float c;
}
}

View File

@@ -0,0 +1,47 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.os.SystemClock;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes2.dex */
public final class o implements g {
public boolean a;
public long b;
public long c;
public com.fyber.inneractive.sdk.player.exoplayer2.n d = com.fyber.inneractive.sdk.player.exoplayer2.n.d;
@Override // com.fyber.inneractive.sdk.player.exoplayer2.util.g
public final com.fyber.inneractive.sdk.player.exoplayer2.n i() {
return this.d;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.util.g
public final com.fyber.inneractive.sdk.player.exoplayer2.n a(com.fyber.inneractive.sdk.player.exoplayer2.n nVar) {
if (this.a) {
this.b = m();
if (this.a) {
this.c = SystemClock.elapsedRealtime();
}
}
this.d = nVar;
return nVar;
}
@Override // com.fyber.inneractive.sdk.player.exoplayer2.util.g
public final long m() {
long j = this.b;
if (!this.a) {
return j;
}
long elapsedRealtime = SystemClock.elapsedRealtime() - this.c;
if (this.d.a == 1.0f) {
int i = com.fyber.inneractive.sdk.player.exoplayer2.b.a;
long j2 = C.TIME_UNSET;
if (elapsedRealtime != C.TIME_UNSET) {
j2 = 1000 * elapsedRealtime;
}
return j + j2;
}
return j + (elapsedRealtime * r4.c);
}
}

View File

@@ -0,0 +1,54 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import com.mbridge.msdk.playercommon.exoplayer2.C;
/* loaded from: classes2.dex */
public final class p {
public long a;
public long b;
public volatile long c = C.TIME_UNSET;
public p(long j) {
c(j);
}
public final synchronized void c(long j) {
a.b(this.c == C.TIME_UNSET);
this.a = j;
}
public final long b(long j) {
if (j == C.TIME_UNSET) {
return C.TIME_UNSET;
}
if (this.c != C.TIME_UNSET) {
long j2 = (this.c * 90000) / 1000000;
long j3 = (4294967296L + j2) / 8589934592L;
long j4 = ((j3 - 1) * 8589934592L) + j;
j += j3 * 8589934592L;
if (Math.abs(j4 - j2) < Math.abs(j - j2)) {
j = j4;
}
}
return a((j * 1000000) / 90000);
}
public final long a(long j) {
if (j == C.TIME_UNSET) {
return C.TIME_UNSET;
}
if (this.c != C.TIME_UNSET) {
this.c = j;
} else {
long j2 = this.a;
if (j2 != Long.MAX_VALUE) {
this.b = j2 - j;
}
synchronized (this) {
this.c = j;
notifyAll();
}
}
return j + this.b;
}
}

View File

@@ -0,0 +1,18 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.os.Trace;
/* loaded from: classes2.dex */
public final class q {
public static void a(String str) {
if (s.a >= 18) {
Trace.beginSection(str);
}
}
public static void a() {
if (s.a >= 18) {
Trace.endSection();
}
}
}

View File

@@ -0,0 +1,144 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.net.Uri;
import android.text.TextUtils;
/* loaded from: classes2.dex */
public final class r {
public static Uri a(String str, String str2) {
String a;
StringBuilder sb = new StringBuilder();
if (str == null) {
str = "";
}
if (str2 == null) {
str2 = "";
}
int[] a2 = a(str2);
if (a2[0] != -1) {
sb.append(str2);
a(sb, a2[1], a2[2]);
a = sb.toString();
} else {
int[] a3 = a(str);
if (a2[3] == 0) {
sb.append((CharSequence) str, 0, a3[3]);
sb.append(str2);
a = sb.toString();
} else if (a2[2] == 0) {
sb.append((CharSequence) str, 0, a3[2]);
sb.append(str2);
a = sb.toString();
} else {
int i = a2[1];
if (i != 0) {
int i2 = a3[0] + 1;
sb.append((CharSequence) str, 0, i2);
sb.append(str2);
a = a(sb, a2[1] + i2, i2 + a2[2]);
} else if (str2.charAt(i) == '/') {
sb.append((CharSequence) str, 0, a3[1]);
sb.append(str2);
int i3 = a3[1];
a = a(sb, i3, a2[2] + i3);
} else {
int i4 = a3[0] + 2;
int i5 = a3[1];
if (i4 >= i5 || i5 != a3[2]) {
int lastIndexOf = str.lastIndexOf(47, a3[2] - 1);
int i6 = lastIndexOf == -1 ? a3[1] : lastIndexOf + 1;
sb.append((CharSequence) str, 0, i6);
sb.append(str2);
a = a(sb, a3[1], i6 + a2[2]);
} else {
sb.append((CharSequence) str, 0, i5);
sb.append('/');
sb.append(str2);
int i7 = a3[1];
a = a(sb, i7, a2[2] + i7 + 1);
}
}
}
}
return Uri.parse(a);
}
public static String a(StringBuilder sb, int i, int i2) {
int i3;
int i4;
if (i >= i2) {
return sb.toString();
}
if (sb.charAt(i) == '/') {
i++;
}
int i5 = i;
int i6 = i5;
while (i5 <= i2) {
if (i5 == i2) {
i3 = i5;
} else if (sb.charAt(i5) == '/') {
i3 = i5 + 1;
} else {
i5++;
}
int i7 = i6 + 1;
if (i5 == i7 && sb.charAt(i6) == '.') {
sb.delete(i6, i3);
i2 -= i3 - i6;
} else {
if (i5 == i6 + 2 && sb.charAt(i6) == '.' && sb.charAt(i7) == '.') {
i4 = sb.lastIndexOf("/", i6 - 2) + 1;
int i8 = i4 > i ? i4 : i;
sb.delete(i8, i3);
i2 -= i3 - i8;
} else {
i4 = i5 + 1;
}
i6 = i4;
}
i5 = i6;
}
return sb.toString();
}
public static int[] a(String str) {
int i;
int[] iArr = new int[4];
if (TextUtils.isEmpty(str)) {
iArr[0] = -1;
return iArr;
}
int length = str.length();
int indexOf = str.indexOf(35);
if (indexOf != -1) {
length = indexOf;
}
int indexOf2 = str.indexOf(63);
if (indexOf2 == -1 || indexOf2 > length) {
indexOf2 = length;
}
int indexOf3 = str.indexOf(47);
if (indexOf3 == -1 || indexOf3 > indexOf2) {
indexOf3 = indexOf2;
}
int indexOf4 = str.indexOf(58);
if (indexOf4 > indexOf3) {
indexOf4 = -1;
}
int i2 = indexOf4 + 2;
if (i2 < indexOf2 && str.charAt(indexOf4 + 1) == '/' && str.charAt(i2) == '/') {
i = str.indexOf(47, indexOf4 + 3);
if (i == -1 || i > indexOf2) {
i = indexOf2;
}
} else {
i = indexOf4 + 1;
}
iArr[0] = indexOf4;
iArr[1] = i;
iArr[2] = indexOf2;
iArr[3] = length;
return iArr;
}
}

View File

@@ -0,0 +1,182 @@
package com.fyber.inneractive.sdk.player.exoplayer2.util;
import android.os.Build;
import androidx.annotation.NonNull;
import java.io.Closeable;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.regex.Pattern;
/* loaded from: classes2.dex */
public final class s {
public static final int a;
public static final String b;
public static final String c;
public static final String d;
public static final String e;
public static final Pattern f;
public static final Pattern g;
public static final int[] h;
public class a implements ThreadFactory {
public final /* synthetic */ String a;
public a(String str) {
this.a = str;
}
@Override // java.util.concurrent.ThreadFactory
public final Thread newThread(@NonNull Runnable runnable) {
return new Thread(runnable, this.a);
}
}
public static int a(int i) {
if (i == 8) {
return 3;
}
if (i == 16) {
return 2;
}
if (i != 24) {
return i != 32 ? 0 : 1073741824;
}
return Integer.MIN_VALUE;
}
public static boolean a(Object obj, Object obj2) {
return obj == null ? obj2 == null : obj.equals(obj2);
}
public static byte[] b(String str) {
return str.getBytes(Charset.defaultCharset());
}
public static ExecutorService c(String str) {
return Executors.newSingleThreadExecutor(new a(str));
}
public static void a(com.fyber.inneractive.sdk.player.exoplayer2.upstream.f fVar) {
if (fVar != null) {
try {
fVar.close();
} catch (IOException unused) {
}
}
}
public static void a(Closeable closeable) {
if (closeable != null) {
try {
closeable.close();
} catch (IOException unused) {
}
}
}
public static int a(int i, int i2) {
return ((i + i2) - 1) / i2;
}
public static int a(long[] jArr, long j, boolean z) {
int i;
int binarySearch = Arrays.binarySearch(jArr, j);
if (binarySearch < 0) {
i = -(binarySearch + 2);
} else {
while (true) {
int i2 = binarySearch - 1;
if (i2 < 0 || jArr[i2] != j) {
break;
}
binarySearch = i2;
}
i = binarySearch;
}
return z ? Math.max(0, i) : i;
}
static {
int i = Build.VERSION.SDK_INT;
a = i;
String str = Build.DEVICE;
b = str;
String str2 = Build.MANUFACTURER;
c = str2;
String str3 = Build.MODEL;
d = str3;
e = str + ", " + str3 + ", " + str2 + ", " + i;
f = Pattern.compile("(\\d\\d\\d\\d)\\-(\\d\\d)\\-(\\d\\d)[Tt](\\d\\d):(\\d\\d):(\\d\\d)([\\.,](\\d+))?([Zz]|((\\+|\\-)(\\d?\\d):?(\\d\\d)))?");
Pattern.compile("^(-)?P(([0-9]*)Y)?(([0-9]*)M)?(([0-9]*)D)?(T(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?)?$");
g = Pattern.compile("%([A-Fa-f0-9]{2})");
h = new int[]{0, 79764919, 159529838, 222504665, 319059676, 398814059, 445009330, 507990021, 638119352, 583659535, 797628118, 726387553, 890018660, 835552979, 1015980042, 944750013, 1276238704, 1221641927, 1167319070, 1095957929, 1595256236, 1540665371, 1452775106, 1381403509, 1780037320, 1859660671, 1671105958, 1733955601, 2031960084, 2111593891, 1889500026, 1952343757, -1742489888, -1662866601, -1851683442, -1788833735, -1960329156, -1880695413, -2103051438, -2040207643, -1104454824, -1159051537, -1213636554, -1284997759, -1389417084, -1444007885, -1532160278, -1603531939, -734892656, -789352409, -575645954, -646886583, -952755380, -1007220997, -827056094, -898286187, -231047128, -151282273, -71779514, -8804623, -515967244, -436212925, -390279782, -327299027, 881225847, 809987520, 1023691545, 969234094, 662832811, 591600412, 771767749, 717299826, 311336399, 374308984, 453813921, 533576470, 25881363, 88864420, 134795389, 214552010, 2023205639, 2086057648, 1897238633, 1976864222, 1804852699, 1867694188, 1645340341, 1724971778, 1587496639, 1516133128, 1461550545, 1406951526, 1302016099, 1230646740, 1142491917, 1087903418, -1398421865, -1469785312, -1524105735, -1578704818, -1079922613, -1151291908, -1239184603, -1293773166, -1968362705, -1905510760, -2094067647, -2014441994, -1716953613, -1654112188, -1876203875, -1796572374, -525066777, -462094256, -382327159, -302564546, -206542021, -143559028, -97365931, -17609246, -960696225, -1031934488, -817968335, -872425850, -709327229, -780559564, -600130067, -654598054, 1762451694, 1842216281, 1619975040, 1682949687, 2047383090, 2127137669, 1938468188, 2001449195, 1325665622, 1271206113, 1183200824, 1111960463, 1543535498, 1489069629, 1434599652, 1363369299, 622672798, 568075817, 748617968, 677256519, 907627842, 853037301, 1067152940, 995781531, 51762726, 131386257, 177728840, 240578815, 269590778, 349224269, 429104020, 491947555, -248556018, -168932423, -122852000, -60002089, -500490030, -420856475, -341238852, -278395381, -685261898, -739858943, -559578920, -630940305, -1004286614, -1058877219, -845023740, -916395085, -1119974018, -1174433591, -1262701040, -1333941337, -1371866206, -1426332139, -1481064244, -1552294533, -1690935098, -1611170447, -1833673816, -1770699233, -2009983462, -1930228819, -2119160460, -2056179517, 1569362073, 1498123566, 1409854455, 1355396672, 1317987909, 1246755826, 1192025387, 1137557660, 2072149281, 2135122070, 1912620623, 1992383480, 1753615357, 1816598090, 1627664531, 1707420964, 295390185, 358241886, 404320391, 483945776, 43990325, 106832002, 186451547, 266083308, 932423249, 861060070, 1041341759, 986742920, 613929101, 542559546, 756411363, 701822548, -978770311, -1050133554, -869589737, -924188512, -693284699, -764654318, -550540341, -605129092, -475935807, -413084042, -366743377, -287118056, -257573603, -194731862, -114850189, -35218492, -1984365303, -1921392450, -2143631769, -2063868976, -1698919467, -1635936670, -1824608069, -1744851700, -1347415887, -1418654458, -1506661409, -1561119128, -1129027987, -1200260134, -1254728445, -1309196108};
}
public static int a(long[] jArr, long j, boolean z, boolean z2) {
int i;
int i2;
int binarySearch = Arrays.binarySearch(jArr, j);
if (binarySearch < 0) {
i2 = ~binarySearch;
} else {
while (true) {
i = binarySearch + 1;
if (i >= jArr.length || jArr[i] != j) {
break;
}
binarySearch = i;
}
i2 = z ? binarySearch : i;
}
return z2 ? Math.min(jArr.length - 1, i2) : i2;
}
public static long a(long j, long j2, long j3) {
if (j3 >= j2 && j3 % j2 == 0) {
return j / (j3 / j2);
}
if (j3 < j2 && j2 % j3 == 0) {
return (j2 / j3) * j;
}
return (long) (j * (j2 / j3));
}
public static void a(long[] jArr, long j) {
int i = 0;
if (j >= 1000000 && j % 1000000 == 0) {
long j2 = j / 1000000;
while (i < jArr.length) {
jArr[i] = jArr[i] / j2;
i++;
}
return;
}
if (j < 1000000 && 1000000 % j == 0) {
long j3 = 1000000 / j;
while (i < jArr.length) {
jArr[i] = jArr[i] * j3;
i++;
}
return;
}
double d2 = 1000000 / j;
while (i < jArr.length) {
jArr[i] = (long) (jArr[i] * d2);
i++;
}
}
public static int a(String str) {
int length = str.length();
com.fyber.inneractive.sdk.player.exoplayer2.util.a.a(length <= 4);
int i = 0;
for (int i2 = 0; i2 < length; i2++) {
i = (i << 8) | str.charAt(i2);
}
return i;
}
}