package x;

import x.C0734c;

/* JADX INFO: renamed from: x.a, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
final class C0732a implements C0734c.a {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final long f6738b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final int f6739c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final long f6740d;

    public C0732a(long j2, int i2, long j3) {
        this.f6738b = j2;
        this.f6739c = i2;
        this.f6740d = j3 != -1 ? d(j3) : -1L;
    }

    @Override // v.m
    public boolean b() {
        return this.f6740d != -1;
    }

    @Override // v.m
    public long c(long j2) {
        if (this.f6740d == -1) {
            return 0L;
        }
        return ((j2 * ((long) this.f6739c)) / 8000000) + this.f6738b;
    }

    @Override // x.C0734c.a
    public long d(long j2) {
        return (Math.max(0L, j2 - this.f6738b) * 8000000) / ((long) this.f6739c);
    }

    @Override // x.C0734c.a
    public long h() {
        return this.f6740d;
    }
}
