- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
122 lines
2.9 KiB
Java
122 lines
2.9 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.impl.zg;
|
|
import java.nio.ByteBuffer;
|
|
import java.util.ArrayDeque;
|
|
import java.util.Deque;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class i8 implements ol {
|
|
private final c5 a = new c5();
|
|
private final rl b = new rl();
|
|
private final Deque c = new ArrayDeque();
|
|
private int d;
|
|
private boolean e;
|
|
|
|
@Override // com.applovin.impl.m5
|
|
public void a() {
|
|
this.e = true;
|
|
}
|
|
|
|
@Override // com.applovin.impl.ol
|
|
public void a(long j) {
|
|
}
|
|
|
|
public i8() {
|
|
for (int i = 0; i < 2; i++) {
|
|
this.c.addFirst(new fk(new zg.a() { // from class: com.applovin.impl.i8$$ExternalSyntheticLambda0
|
|
@Override // com.applovin.impl.zg.a
|
|
public final void a(zg zgVar) {
|
|
i8.this.a((sl) zgVar);
|
|
}
|
|
}));
|
|
}
|
|
this.d = 0;
|
|
}
|
|
|
|
@Override // com.applovin.impl.m5
|
|
/* renamed from: e, reason: merged with bridge method [inline-methods] */
|
|
public rl d() {
|
|
b1.b(!this.e);
|
|
if (this.d != 0) {
|
|
return null;
|
|
}
|
|
this.d = 1;
|
|
return this.b;
|
|
}
|
|
|
|
@Override // com.applovin.impl.m5
|
|
public void a(rl rlVar) {
|
|
b1.b(!this.e);
|
|
b1.b(this.d == 1);
|
|
b1.a(this.b == rlVar);
|
|
this.d = 2;
|
|
}
|
|
|
|
@Override // com.applovin.impl.m5
|
|
/* renamed from: f, reason: merged with bridge method [inline-methods] */
|
|
public sl c() {
|
|
b1.b(!this.e);
|
|
if (this.d != 2 || this.c.isEmpty()) {
|
|
return null;
|
|
}
|
|
sl slVar = (sl) this.c.removeFirst();
|
|
if (this.b.e()) {
|
|
slVar.b(4);
|
|
} else {
|
|
rl rlVar = this.b;
|
|
slVar.a(this.b.f, new a(rlVar.f, this.a.a(((ByteBuffer) b1.a(rlVar.c)).array())), 0L);
|
|
}
|
|
this.b.b();
|
|
this.d = 0;
|
|
return slVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.m5
|
|
public void b() {
|
|
b1.b(!this.e);
|
|
this.b.b();
|
|
this.d = 0;
|
|
}
|
|
|
|
public static final class a implements nl {
|
|
private final long a;
|
|
private final eb b;
|
|
|
|
@Override // com.applovin.impl.nl
|
|
public int a() {
|
|
return 1;
|
|
}
|
|
|
|
@Override // com.applovin.impl.nl
|
|
public int a(long j) {
|
|
return this.a > j ? 0 : -1;
|
|
}
|
|
|
|
public a(long j, eb ebVar) {
|
|
this.a = j;
|
|
this.b = ebVar;
|
|
}
|
|
|
|
@Override // com.applovin.impl.nl
|
|
public long a(int i) {
|
|
b1.a(i == 0);
|
|
return this.a;
|
|
}
|
|
|
|
@Override // com.applovin.impl.nl
|
|
public List b(long j) {
|
|
return j >= this.a ? this.b : eb.h();
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public void a(sl slVar) {
|
|
b1.b(this.c.size() < 2);
|
|
b1.a(!this.c.contains(slVar));
|
|
slVar.b();
|
|
this.c.addFirst(slVar);
|
|
}
|
|
}
|