package androidx.compose.foundation.layout;

import e0.t;
import h2.d0;
import h2.g0;

/* loaded from: classes.dex */
final class f extends h {
    private t C;
    private boolean D;

    public f(t tVar, boolean z10) {
        this.C = tVar;
        this.D = z10;
    }

    @Override // androidx.compose.foundation.layout.h
    public long h2(g0 g0Var, d0 d0Var, long j10) {
        int v02 = this.C == t.Min ? d0Var.v0(c3.b.l(j10)) : d0Var.s(c3.b.l(j10));
        if (v02 < 0) {
            v02 = 0;
        }
        return c3.b.f7403b.d(v02);
    }

    @Override // androidx.compose.foundation.layout.h
    public boolean i2() {
        return this.D;
    }

    public void j2(boolean z10) {
        this.D = z10;
    }

    public final void k2(t tVar) {
        this.C = tVar;
    }

    @Override // androidx.compose.foundation.layout.h, j2.b0
    public int p(h2.o oVar, h2.n nVar, int i10) {
        return this.C == t.Min ? nVar.v0(i10) : nVar.s(i10);
    }

    @Override // androidx.compose.foundation.layout.h, j2.b0
    public int s(h2.o oVar, h2.n nVar, int i10) {
        return this.C == t.Min ? nVar.v0(i10) : nVar.s(i10);
    }
}
