package e0;

import androidx.compose.foundation.layout.HorizontalAlignElement;
import androidx.compose.foundation.layout.LayoutWeightElement;
import l1.c;

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

    /* renamed from: a, reason: collision with root package name */
    public static final g f16653a = new g();

    private g() {
    }

    @Override // e0.f
    public l1.i a(l1.i iVar, float f10, boolean z10) {
        float f11;
        if (((double) f10) > 0.0d) {
            f11 = jn.o.f(f10, Float.MAX_VALUE);
            return iVar.f(new LayoutWeightElement(f11, z10));
        }
        throw new IllegalArgumentException(("invalid weight " + f10 + "; must be greater than zero").toString());
    }

    @Override // e0.f
    public l1.i b(l1.i iVar, c.b bVar) {
        return iVar.f(new HorizontalAlignElement(bVar));
    }
}
