discord-jadx/app/src/main/java/c/i/a/c/j0.java

92 lines
2.0 KiB
Java

package c.i.a.c;
import c.i.a.c.r1;
/* compiled from: DefaultControlDispatcher */
public class j0 implements i0 {
public final r1.c a;
public long b;
/* renamed from: c reason: collision with root package name */
public long f917c;
public j0() {
this.f917c = 15000;
this.b = 5000;
this.a = new r1.c();
}
public j0(long j, long j2) {
this.f917c = j;
this.b = j2;
this.a = new r1.c();
}
public static void g(g1 g1Var, long j) {
long J = g1Var.J() + j;
long C = g1Var.C();
if (C != -9223372036854775807L) {
J = Math.min(J, C);
}
g1Var.f(g1Var.o(), Math.max(J, 0L));
}
public boolean a(g1 g1Var) {
if (!e() || !g1Var.k()) {
return true;
}
g(g1Var, this.f917c);
return true;
}
public boolean b(g1 g1Var) {
r1 D = g1Var.D();
if (D.q() || g1Var.d()) {
return true;
}
int o = g1Var.o();
D.n(o, this.a);
int y2 = g1Var.y();
if (y2 != -1) {
g1Var.f(y2, -9223372036854775807L);
return true;
} else if (!this.a.c() || !this.a.k) {
return true;
} else {
g1Var.f(o, -9223372036854775807L);
return true;
}
}
public boolean c(g1 g1Var) {
r1 D = g1Var.D();
if (!D.q() && !g1Var.d()) {
int o = g1Var.o();
D.n(o, this.a);
int t = g1Var.t();
boolean z2 = this.a.c() && !this.a.j;
if (t != -1 && (g1Var.J() <= 3000 || z2)) {
g1Var.f(t, -9223372036854775807L);
} else if (!z2) {
g1Var.f(o, 0);
}
}
return true;
}
public boolean d(g1 g1Var) {
if (!f() || !g1Var.k()) {
return true;
}
g(g1Var, -this.b);
return true;
}
public boolean e() {
return this.f917c > 0;
}
public boolean f() {
return this.b > 0;
}
}