52 lines
1.3 KiB
Java
52 lines
1.3 KiB
Java
package c.i.a.c.a2.k0;
|
|
|
|
import c.i.a.c.a2.t;
|
|
import c.i.a.c.a2.u;
|
|
import c.i.a.c.i2.f0;
|
|
/* compiled from: WavSeekMap */
|
|
public final class e implements t {
|
|
public final c a;
|
|
public final int b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final long f754c;
|
|
public final long d;
|
|
public final long e;
|
|
|
|
public e(c cVar, int i, long j, long j2) {
|
|
this.a = cVar;
|
|
this.b = i;
|
|
this.f754c = j;
|
|
long j3 = (j2 - j) / ((long) cVar.d);
|
|
this.d = j3;
|
|
this.e = b(j3);
|
|
}
|
|
|
|
public final long b(long j) {
|
|
return f0.E(j * ((long) this.b), 1000000, (long) this.a.f753c);
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public boolean c() {
|
|
return true;
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public t.a h(long j) {
|
|
long i = f0.i((((long) this.a.f753c) * j) / (((long) this.b) * 1000000), 0, this.d - 1);
|
|
long j2 = (((long) this.a.d) * i) + this.f754c;
|
|
long b = b(i);
|
|
u uVar = new u(b, j2);
|
|
if (b >= j || i == this.d - 1) {
|
|
return new t.a(uVar);
|
|
}
|
|
long j3 = i + 1;
|
|
return new t.a(uVar, new u(b(j3), (((long) this.a.d) * j3) + this.f754c));
|
|
}
|
|
|
|
@Override // c.i.a.c.a2.t
|
|
public long i() {
|
|
return this.e;
|
|
}
|
|
}
|