package y0;

/* loaded from: classes.dex */
public final class s1 implements f {

    /* renamed from: a, reason: collision with root package name */
    private final f f51796a;

    /* renamed from: b, reason: collision with root package name */
    private final int f51797b;

    /* renamed from: c, reason: collision with root package name */
    private int f51798c;

    public s1(f fVar, int i10) {
        this.f51796a = fVar;
        this.f51797b = i10;
    }

    @Override // y0.f
    public void a(int i10, int i11) {
        this.f51796a.a(i10 + (this.f51798c == 0 ? this.f51797b : 0), i11);
    }

    @Override // y0.f
    public Object b() {
        return this.f51796a.b();
    }

    @Override // y0.f
    public void c(int i10, Object obj) {
        this.f51796a.c(i10 + (this.f51798c == 0 ? this.f51797b : 0), obj);
    }

    @Override // y0.f
    public void clear() {
        p.r("Clear is not valid on OffsetApplier");
    }

    @Override // y0.f
    public void d(Object obj) {
        this.f51798c++;
        this.f51796a.d(obj);
    }

    @Override // y0.f
    public void f(int i10, int i11, int i12) {
        int i13 = this.f51798c == 0 ? this.f51797b : 0;
        this.f51796a.f(i10 + i13, i11 + i13, i12);
    }

    @Override // y0.f
    public void g() {
        if (!(this.f51798c > 0)) {
            p.r("OffsetApplier up called with no corresponding down");
        }
        this.f51798c--;
        this.f51796a.g();
    }

    @Override // y0.f
    public void h(int i10, Object obj) {
        this.f51796a.h(i10 + (this.f51798c == 0 ? this.f51797b : 0), obj);
    }
}
