Files
rr3-apk/decompiled/sources/com/applovin/impl/hg.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

90 lines
2.2 KiB
Java

package com.applovin.impl;
/* loaded from: classes.dex */
public class hg implements k8 {
public static final o8 d = new o8() { // from class: com.applovin.impl.hg$$ExternalSyntheticLambda0
@Override // com.applovin.impl.o8
public final k8[] a() {
k8[] b;
b = hg.b();
return b;
}
};
private m8 a;
private gl b;
private boolean c;
/* JADX INFO: Access modifiers changed from: private */
public static /* synthetic */ k8[] b() {
return new k8[]{new hg()};
}
@Override // com.applovin.impl.k8
public void a() {
}
@Override // com.applovin.impl.k8
public void a(m8 m8Var) {
this.a = m8Var;
}
private boolean b(l8 l8Var) {
jg jgVar = new jg();
if (jgVar.a(l8Var, true) && (jgVar.b & 2) == 2) {
int min = Math.min(jgVar.i, 8);
bh bhVar = new bh(min);
l8Var.c(bhVar.c(), 0, min);
if (y8.c(a(bhVar))) {
this.b = new y8();
} else if (er.c(a(bhVar))) {
this.b = new er();
} else if (tg.b(a(bhVar))) {
this.b = new tg();
}
return true;
}
return false;
}
@Override // com.applovin.impl.k8
public int a(l8 l8Var, th thVar) {
b1.b(this.a);
if (this.b == null) {
if (b(l8Var)) {
l8Var.b();
} else {
throw dh.a("Failed to determine bitstream type", null);
}
}
if (!this.c) {
qo a = this.a.a(0, 1);
this.a.c();
this.b.a(this.a, a);
this.c = true;
}
return this.b.a(l8Var, thVar);
}
private static bh a(bh bhVar) {
bhVar.f(0);
return bhVar;
}
@Override // com.applovin.impl.k8
public void a(long j, long j2) {
gl glVar = this.b;
if (glVar != null) {
glVar.a(j, j2);
}
}
@Override // com.applovin.impl.k8
public boolean a(l8 l8Var) {
try {
return b(l8Var);
} catch (dh unused) {
return false;
}
}
}