- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
116 lines
2.6 KiB
Java
116 lines
2.6 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.a9;
|
|
import com.applovin.impl.gl;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class y8 extends gl {
|
|
private a9 n;
|
|
private a o;
|
|
|
|
public static boolean c(bh bhVar) {
|
|
return bhVar.a() >= 5 && bhVar.w() == 127 && bhVar.y() == 1179402563;
|
|
}
|
|
|
|
private static boolean a(byte[] bArr) {
|
|
return bArr[0] == -1;
|
|
}
|
|
|
|
private int b(bh bhVar) {
|
|
int i = (bhVar.c()[2] & 255) >> 4;
|
|
if (i == 6 || i == 7) {
|
|
bhVar.g(4);
|
|
bhVar.D();
|
|
}
|
|
int b = w8.b(bhVar, i);
|
|
bhVar.f(0);
|
|
return b;
|
|
}
|
|
|
|
public static final class a implements kg {
|
|
private a9 a;
|
|
private a9.a b;
|
|
private long c = -1;
|
|
private long d = -1;
|
|
|
|
@Override // com.applovin.impl.kg
|
|
public long a(l8 l8Var) {
|
|
long j = this.d;
|
|
if (j < 0) {
|
|
return -1L;
|
|
}
|
|
long j2 = -(j + 2);
|
|
this.d = -1L;
|
|
return j2;
|
|
}
|
|
|
|
public void b(long j) {
|
|
this.c = j;
|
|
}
|
|
|
|
public a(a9 a9Var, a9.a aVar) {
|
|
this.a = a9Var;
|
|
this.b = aVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.kg
|
|
public ij a() {
|
|
b1.b(this.c != -1);
|
|
return new z8(this.a, this.c);
|
|
}
|
|
|
|
@Override // com.applovin.impl.kg
|
|
public void a(long j) {
|
|
long[] jArr = this.b.a;
|
|
this.d = jArr[xp.b(jArr, j, true, true)];
|
|
}
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public long a(bh bhVar) {
|
|
if (a(bhVar.c())) {
|
|
return b(bhVar);
|
|
}
|
|
return -1L;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public boolean a(bh bhVar, long j, gl.b bVar) {
|
|
byte[] c = bhVar.c();
|
|
a9 a9Var = this.n;
|
|
if (a9Var == null) {
|
|
a9 a9Var2 = new a9(c, 17);
|
|
this.n = a9Var2;
|
|
bVar.a = a9Var2.a(Arrays.copyOfRange(c, 9, bhVar.e()), (bf) null);
|
|
return true;
|
|
}
|
|
if ((c[0] & Byte.MAX_VALUE) == 3) {
|
|
a9.a a2 = x8.a(bhVar);
|
|
a9 a3 = a9Var.a(a2);
|
|
this.n = a3;
|
|
this.o = new a(a3, a2);
|
|
return true;
|
|
}
|
|
if (!a(c)) {
|
|
return true;
|
|
}
|
|
a aVar = this.o;
|
|
if (aVar != null) {
|
|
aVar.b(j);
|
|
bVar.b = this.o;
|
|
}
|
|
b1.a(bVar.a);
|
|
return false;
|
|
}
|
|
|
|
@Override // com.applovin.impl.gl
|
|
public void a(boolean z) {
|
|
super.a(z);
|
|
if (z) {
|
|
this.n = null;
|
|
this.o = null;
|
|
}
|
|
}
|
|
}
|