package androidx.compose.foundation.layout;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import h2.d0;
import h2.f0;
import h2.g0;
import h2.p0;
import j2.b0;
import kotlin.jvm.internal.v;
import l1.i;
import rm.n0;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class m extends i.c implements b0 {
    private float C;
    private float D;
    private float E;
    private float F;
    private boolean G;

    /* loaded from: classes.dex */
    static final class a extends v implements dn.l {

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ p0 f1848q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ g0 f1849r;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(p0 p0Var, g0 g0Var) {
            super(1);
            this.f1848q = p0Var;
            this.f1849r = g0Var;
        }

        public final void a(p0.a aVar) {
            if (m.this.h2()) {
                p0.a.l(aVar, this.f1848q, this.f1849r.Z0(m.this.i2()), this.f1849r.Z0(m.this.j2()), BitmapDescriptorFactory.HUE_RED, 4, null);
            } else {
                p0.a.h(aVar, this.f1848q, this.f1849r.Z0(m.this.i2()), this.f1849r.Z0(m.this.j2()), BitmapDescriptorFactory.HUE_RED, 4, null);
            }
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((p0.a) obj);
            return n0.f34904a;
        }
    }

    public /* synthetic */ m(float f10, float f11, float f12, float f13, boolean z10, kotlin.jvm.internal.k kVar) {
        this(f10, f11, f12, f13, z10);
    }

    @Override // j2.b0
    public f0 h(g0 g0Var, d0 d0Var, long j10) {
        int Z0 = g0Var.Z0(this.C) + g0Var.Z0(this.E);
        int Z02 = g0Var.Z0(this.D) + g0Var.Z0(this.F);
        p0 Y = d0Var.Y(c3.c.n(j10, -Z0, -Z02));
        return g0.j0(g0Var, c3.c.i(j10, Y.S0() + Z0), c3.c.h(j10, Y.F0() + Z02), null, new a(Y, g0Var), 4, null);
    }

    public final boolean h2() {
        return this.G;
    }

    public final float i2() {
        return this.C;
    }

    public final float j2() {
        return this.D;
    }

    public final void k2(float f10) {
        this.F = f10;
    }

    public final void l2(float f10) {
        this.E = f10;
    }

    public final void m2(boolean z10) {
        this.G = z10;
    }

    public final void n2(float f10) {
        this.C = f10;
    }

    public final void o2(float f10) {
        this.D = f10;
    }

    private m(float f10, float f11, float f12, float f13, boolean z10) {
        this.C = f10;
        this.D = f11;
        this.E = f12;
        this.F = f13;
        this.G = z10;
    }
}
