package I;

import androidx.core.location.LocationRequestCompat;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
final class f implements g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f955a;

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

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

    public f(g gVar, boolean z2, long j2, long j3) {
        this.f956b = gVar;
        this.f955a = j2;
        this.f957c = (z2 ? j2 : 0L) + j3;
    }

    @Override // I.g
    public int a(long j2) {
        return this.f956b.a(j2 - this.f957c);
    }

    @Override // I.g
    public long b(int i2) {
        if (this.f956b.b(i2) == LocationRequestCompat.PASSIVE_INTERVAL) {
            return LocationRequestCompat.PASSIVE_INTERVAL;
        }
        return this.f957c + this.f956b.b(i2);
    }

    @Override // I.g
    public List c(long j2) {
        return this.f956b.c(j2 - this.f957c);
    }

    @Override // I.g
    public int d() {
        return this.f956b.d();
    }
}
