package v0;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import h2.p0;
import y.r0;
import y0.l2;
import y0.x2;
import y0.y3;

/* loaded from: classes.dex */
public abstract class a1 {

    /* renamed from: a, reason: collision with root package name */
    private static final float f37814a;

    /* renamed from: b, reason: collision with root package name */
    private static final l1.i f37815b;

    /* renamed from: c, reason: collision with root package name */
    private static final float f37816c;

    /* renamed from: d, reason: collision with root package name */
    private static final float f37817d;

    /* renamed from: e, reason: collision with root package name */
    private static final float f37818e;

    /* renamed from: f, reason: collision with root package name */
    private static final y.x f37819f;

    /* renamed from: g, reason: collision with root package name */
    private static final y.x f37820g;

    /* renamed from: h, reason: collision with root package name */
    private static final y.x f37821h;

    /* renamed from: i, reason: collision with root package name */
    private static final y.x f37822i;

    /* renamed from: j, reason: collision with root package name */
    private static final y.x f37823j;

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ long f37824p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ u1.k f37825q;

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

        /* renamed from: s, reason: collision with root package name */
        final /* synthetic */ y3 f37827s;

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ y3 f37828t;

        /* renamed from: u, reason: collision with root package name */
        final /* synthetic */ y3 f37829u;

        /* renamed from: v, reason: collision with root package name */
        final /* synthetic */ float f37830v;

        /* renamed from: w, reason: collision with root package name */
        final /* synthetic */ long f37831w;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(long j10, u1.k kVar, y3 y3Var, y3 y3Var2, y3 y3Var3, y3 y3Var4, float f10, long j11) {
            super(1);
            this.f37824p = j10;
            this.f37825q = kVar;
            this.f37826r = y3Var;
            this.f37827s = y3Var2;
            this.f37828t = y3Var3;
            this.f37829u = y3Var4;
            this.f37830v = f10;
            this.f37831w = j11;
        }

        public final void a(u1.f fVar) {
            a1.g(fVar, this.f37824p, this.f37825q);
            a1.h(fVar, ((Number) this.f37828t.getValue()).floatValue() + (((((Number) this.f37826r.getValue()).floatValue() * 216.0f) % 360.0f) - 90.0f) + ((Number) this.f37829u.getValue()).floatValue(), this.f37830v, Math.abs(((Number) this.f37827s.getValue()).floatValue() - ((Number) this.f37828t.getValue()).floatValue()), this.f37831w, this.f37825q);
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class b extends kotlin.jvm.internal.v implements dn.p {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ l1.i f37832p;

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

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

        /* renamed from: s, reason: collision with root package name */
        final /* synthetic */ long f37835s;

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ int f37836t;

        /* renamed from: u, reason: collision with root package name */
        final /* synthetic */ int f37837u;

        /* renamed from: v, reason: collision with root package name */
        final /* synthetic */ int f37838v;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(l1.i iVar, long j10, float f10, long j11, int i10, int i11, int i12) {
            super(2);
            this.f37832p = iVar;
            this.f37833q = j10;
            this.f37834r = f10;
            this.f37835s = j11;
            this.f37836t = i10;
            this.f37837u = i11;
            this.f37838v = i12;
        }

        public final void a(y0.m mVar, int i10) {
            a1.a(this.f37832p, this.f37833q, this.f37834r, this.f37835s, this.f37836t, mVar, l2.a(this.f37837u | 1), this.f37838v);
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return rm.n0.f34904a;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final c f37839p = new c();

        c() {
            super(1);
        }

        public final void a(r0.b bVar) {
            bVar.d(1332);
            bVar.e(bVar.f(Float.valueOf(BitmapDescriptorFactory.HUE_RED), 0), a1.f37823j);
            bVar.f(Float.valueOf(290.0f), 666);
        }

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class d extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final d f37840p = new d();

        d() {
            super(1);
        }

        public final void a(r0.b bVar) {
            bVar.d(1332);
            bVar.e(bVar.f(Float.valueOf(BitmapDescriptorFactory.HUE_RED), 666), a1.f37823j);
            bVar.f(Float.valueOf(290.0f), bVar.b());
        }

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

    /* loaded from: classes.dex */
    static final class e extends kotlin.jvm.internal.v implements dn.q {

        /* renamed from: p, reason: collision with root package name */
        public static final e f37841p = new e();

        /* JADX INFO: Access modifiers changed from: package-private */
        /* loaded from: classes.dex */
        public static final class a extends kotlin.jvm.internal.v implements dn.l {

            /* renamed from: p, reason: collision with root package name */
            final /* synthetic */ h2.p0 f37842p;

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

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            a(h2.p0 p0Var, int i10) {
                super(1);
                this.f37842p = p0Var;
                this.f37843q = i10;
            }

            public final void a(p0.a aVar) {
                p0.a.h(aVar, this.f37842p, 0, -this.f37843q, BitmapDescriptorFactory.HUE_RED, 4, null);
            }

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

        e() {
            super(3);
        }

        public final h2.f0 a(h2.g0 g0Var, h2.d0 d0Var, long j10) {
            int Z0 = g0Var.Z0(a1.f37814a);
            int i10 = Z0 * 2;
            h2.p0 Y = d0Var.Y(c3.c.n(j10, 0, i10));
            return h2.g0.j0(g0Var, Y.S0(), Y.F0() - i10, null, new a(Y, Z0), 4, null);
        }

        @Override // dn.q
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
            return a((h2.g0) obj, (h2.d0) obj2, ((c3.b) obj3).r());
        }
    }

    /* loaded from: classes.dex */
    static final class f extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final f f37844p = new f();

        f() {
            super(1);
        }

        public final void a(o2.u uVar) {
        }

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

    static {
        float t10 = c3.h.t(10);
        f37814a = t10;
        f37815b = androidx.compose.foundation.layout.l.k(o2.l.c(androidx.compose.ui.layout.b.a(l1.i.f27362a, e.f37841p), true, f.f37844p), BitmapDescriptorFactory.HUE_RED, t10, 1, null);
        f37816c = c3.h.t(240);
        x0.n nVar = x0.n.f50086a;
        f37817d = nVar.e();
        f37818e = c3.h.t(nVar.c() - c3.h.t(nVar.e() * 2));
        f37819f = new y.x(0.2f, BitmapDescriptorFactory.HUE_RED, 0.8f, 1.0f);
        f37820g = new y.x(0.4f, BitmapDescriptorFactory.HUE_RED, 1.0f, 1.0f);
        f37821h = new y.x(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0.65f, 1.0f);
        f37822i = new y.x(0.1f, BitmapDescriptorFactory.HUE_RED, 0.45f, 1.0f);
        f37823j = new y.x(0.4f, BitmapDescriptorFactory.HUE_RED, 0.2f, 1.0f);
    }

    /* JADX WARN: Removed duplicated region for block: B:108:0x0079  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x0063  */
    /* JADX WARN: Removed duplicated region for block: B:26:0x007f  */
    /* JADX WARN: Removed duplicated region for block: B:30:0x009e  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00b4  */
    /* JADX WARN: Removed duplicated region for block: B:53:0x011a  */
    /* JADX WARN: Removed duplicated region for block: B:56:0x026c  */
    /* JADX WARN: Removed duplicated region for block: B:62:0x02b0  */
    /* JADX WARN: Removed duplicated region for block: B:65:0x02bd  */
    /* JADX WARN: Removed duplicated region for block: B:69:0x02d2  */
    /* JADX WARN: Removed duplicated region for block: B:73:0x0300  */
    /* JADX WARN: Removed duplicated region for block: B:79:0x02b3  */
    /* JADX WARN: Removed duplicated region for block: B:82:0x0287  */
    /* JADX WARN: Removed duplicated region for block: B:83:0x0278  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x00d3  */
    /* JADX WARN: Removed duplicated region for block: B:88:0x00dc  */
    /* JADX WARN: Removed duplicated region for block: B:90:0x00e6  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x00f1  */
    /* JADX WARN: Removed duplicated region for block: B:95:0x00fe  */
    /* JADX WARN: Removed duplicated region for block: B:96:0x0109  */
    /* JADX WARN: Removed duplicated region for block: B:97:0x00fb  */
    /* JADX WARN: Removed duplicated region for block: B:98:0x00d6  */
    /* JADX WARN: Removed duplicated region for block: B:99:0x0082  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(l1.i iVar, long j10, float f10, long j11, int i10, y0.m mVar, int i11, int i12) {
        l1.i iVar2;
        int i13;
        long j12;
        float f11;
        long j13;
        int i14;
        int i15;
        l1.i iVar3;
        long j14;
        int i16;
        long j15;
        float f12;
        int i17;
        long j16;
        int i18;
        long j17;
        l1.i iVar4;
        u1.k kVar;
        boolean z10;
        boolean z11;
        Object f13;
        int i19;
        long j18;
        int i20;
        y0.m r10 = mVar.r(-115871647);
        int i21 = i12 & 1;
        if (i21 != 0) {
            i13 = i11 | 6;
            iVar2 = iVar;
        } else if ((i11 & 6) == 0) {
            iVar2 = iVar;
            i13 = (r10.R(iVar2) ? 4 : 2) | i11;
        } else {
            iVar2 = iVar;
            i13 = i11;
        }
        if ((i11 & 48) == 0) {
            j12 = j10;
            i13 |= ((i12 & 2) == 0 && r10.j(j12)) ? 32 : 16;
        } else {
            j12 = j10;
        }
        int i22 = i12 & 4;
        if (i22 != 0) {
            i13 |= 384;
        } else if ((i11 & 384) == 0) {
            f11 = f10;
            i13 |= r10.h(f11) ? 256 : 128;
            if ((i11 & 3072) != 0) {
                if ((i12 & 8) == 0) {
                    j13 = j11;
                    if (r10.j(j13)) {
                        i20 = 2048;
                        i13 |= i20;
                    }
                } else {
                    j13 = j11;
                }
                i20 = UserMetadata.MAX_ATTRIBUTE_SIZE;
                i13 |= i20;
            } else {
                j13 = j11;
            }
            i14 = i12 & 16;
            if (i14 == 0) {
                i13 |= 24576;
            } else if ((i11 & 24576) == 0) {
                i15 = i10;
                i13 |= r10.i(i15) ? 16384 : UserMetadata.MAX_INTERNAL_KEY_SIZE;
                if ((i13 & 9363) == 9362 || !r10.v()) {
                    r10.q();
                    if ((i11 & 1) != 0 || r10.E()) {
                        iVar3 = i21 != 0 ? l1.i.f27362a : iVar2;
                        if ((i12 & 2) != 0) {
                            j12 = z0.f38837a.a(r10, 6);
                            i13 &= -113;
                        }
                        if (i22 != 0) {
                            f11 = z0.f38837a.d();
                        }
                        if ((i12 & 8) != 0) {
                            j14 = z0.f38837a.c(r10, 6);
                            i13 &= -7169;
                        } else {
                            j14 = j13;
                        }
                        if (i14 != 0) {
                            i16 = i13;
                            j16 = j14;
                            f12 = f11;
                            i17 = z0.f38837a.b();
                        } else {
                            i16 = i13;
                            j15 = j12;
                            long j19 = j14;
                            f12 = f11;
                            i17 = i15;
                            j16 = j19;
                            r10.P();
                            if (y0.p.H()) {
                                y0.p.Q(-115871647, i16, -1, "androidx.compose.material3.CircularProgressIndicator (ProgressIndicator.kt:637)");
                            }
                            u1.k kVar2 = new u1.k(((c3.d) r10.t(androidx.compose.ui.platform.c1.d())).L0(f12), BitmapDescriptorFactory.HUE_RED, i17, 0, null, 26, null);
                            y.n0 c10 = y.o0.c(null, r10, 0, 1);
                            y.q1 g10 = y.s1.g(kotlin.jvm.internal.s.f26202a);
                            y.m0 e10 = y.j.e(y.j.j(6660, 0, y.f0.e(), 2, null), null, 0L, 6, null);
                            int i23 = y.n0.f51283f;
                            int i24 = y.m0.f51230d;
                            boolean z12 = true;
                            i18 = i16;
                            long j20 = j16;
                            y3 b10 = y.o0.b(c10, 0, 5, g10, e10, null, r10, i23 | 432 | (i24 << 12), 16);
                            y3 a10 = y.o0.a(c10, BitmapDescriptorFactory.HUE_RED, 286.0f, y.j.e(y.j.j(1332, 0, y.f0.e(), 2, null), null, 0L, 6, null), null, r10, i23 | 432 | (i24 << 9), 8);
                            y3 a11 = y.o0.a(c10, BitmapDescriptorFactory.HUE_RED, 290.0f, y.j.e(y.j.f(c.f37839p), null, 0L, 6, null), null, r10, i23 | 432 | (i24 << 9), 8);
                            y3 a12 = y.o0.a(c10, BitmapDescriptorFactory.HUE_RED, 290.0f, y.j.e(y.j.f(d.f37840p), null, 0L, 6, null), null, r10, i23 | 432 | (i24 << 9), 8);
                            l1.i o10 = androidx.compose.foundation.layout.o.o(z.t0.a(iVar3), f37818e);
                            if (((i18 & 7168) ^ 3072) <= 2048) {
                                j17 = j20;
                                if (r10.j(j17)) {
                                    iVar4 = iVar3;
                                    z10 = true;
                                    kVar = kVar2;
                                    int i25 = i17;
                                    boolean m10 = z10 | r10.m(kVar) | r10.R(b10) | r10.R(a11) | r10.R(a12) | r10.R(a10) | ((i18 & 896) != 256);
                                    if ((((i18 & 112) ^ 48) > 32 || !r10.j(j15)) && (i18 & 48) != 32) {
                                        z12 = false;
                                    }
                                    z11 = m10 | z12;
                                    f13 = r10.f();
                                    if (!z11 || f13 == y0.m.f51621a.a()) {
                                        f13 = new a(j17, kVar, b10, a11, a12, a10, f12, j15);
                                        r10.I(f13);
                                    }
                                    z.i.a(o10, (dn.l) f13, r10, 0);
                                    if (y0.p.H()) {
                                        y0.p.P();
                                    }
                                    i19 = i25;
                                    j18 = j15;
                                    j13 = j17;
                                    iVar2 = iVar4;
                                }
                            } else {
                                j17 = j20;
                            }
                            iVar4 = iVar3;
                            if ((i18 & 3072) != 2048) {
                                kVar = kVar2;
                                z10 = false;
                                int i252 = i17;
                                boolean m102 = z10 | r10.m(kVar) | r10.R(b10) | r10.R(a11) | r10.R(a12) | r10.R(a10) | ((i18 & 896) != 256);
                                if (((i18 & 112) ^ 48) > 32) {
                                }
                                z12 = false;
                                z11 = m102 | z12;
                                f13 = r10.f();
                                if (!z11) {
                                }
                                f13 = new a(j17, kVar, b10, a11, a12, a10, f12, j15);
                                r10.I(f13);
                                z.i.a(o10, (dn.l) f13, r10, 0);
                                if (y0.p.H()) {
                                }
                                i19 = i252;
                                j18 = j15;
                                j13 = j17;
                                iVar2 = iVar4;
                            }
                            z10 = true;
                            kVar = kVar2;
                            int i2522 = i17;
                            boolean m1022 = z10 | r10.m(kVar) | r10.R(b10) | r10.R(a11) | r10.R(a12) | r10.R(a10) | ((i18 & 896) != 256);
                            if (((i18 & 112) ^ 48) > 32) {
                            }
                            z12 = false;
                            z11 = m1022 | z12;
                            f13 = r10.f();
                            if (!z11) {
                            }
                            f13 = new a(j17, kVar, b10, a11, a12, a10, f12, j15);
                            r10.I(f13);
                            z.i.a(o10, (dn.l) f13, r10, 0);
                            if (y0.p.H()) {
                            }
                            i19 = i2522;
                            j18 = j15;
                            j13 = j17;
                            iVar2 = iVar4;
                        }
                    } else {
                        r10.A();
                        if ((i12 & 2) != 0) {
                            i13 &= -113;
                        }
                        if ((i12 & 8) != 0) {
                            i13 &= -7169;
                        }
                        iVar3 = iVar2;
                        f12 = f11;
                        i17 = i15;
                        j16 = j13;
                        i16 = i13;
                    }
                    j15 = j12;
                    r10.P();
                    if (y0.p.H()) {
                    }
                    u1.k kVar22 = new u1.k(((c3.d) r10.t(androidx.compose.ui.platform.c1.d())).L0(f12), BitmapDescriptorFactory.HUE_RED, i17, 0, null, 26, null);
                    y.n0 c102 = y.o0.c(null, r10, 0, 1);
                    y.q1 g102 = y.s1.g(kotlin.jvm.internal.s.f26202a);
                    y.m0 e102 = y.j.e(y.j.j(6660, 0, y.f0.e(), 2, null), null, 0L, 6, null);
                    int i232 = y.n0.f51283f;
                    int i242 = y.m0.f51230d;
                    boolean z122 = true;
                    i18 = i16;
                    long j202 = j16;
                    y3 b102 = y.o0.b(c102, 0, 5, g102, e102, null, r10, i232 | 432 | (i242 << 12), 16);
                    y3 a102 = y.o0.a(c102, BitmapDescriptorFactory.HUE_RED, 286.0f, y.j.e(y.j.j(1332, 0, y.f0.e(), 2, null), null, 0L, 6, null), null, r10, i232 | 432 | (i242 << 9), 8);
                    y3 a112 = y.o0.a(c102, BitmapDescriptorFactory.HUE_RED, 290.0f, y.j.e(y.j.f(c.f37839p), null, 0L, 6, null), null, r10, i232 | 432 | (i242 << 9), 8);
                    y3 a122 = y.o0.a(c102, BitmapDescriptorFactory.HUE_RED, 290.0f, y.j.e(y.j.f(d.f37840p), null, 0L, 6, null), null, r10, i232 | 432 | (i242 << 9), 8);
                    l1.i o102 = androidx.compose.foundation.layout.o.o(z.t0.a(iVar3), f37818e);
                    if (((i18 & 7168) ^ 3072) <= 2048) {
                    }
                    iVar4 = iVar3;
                    if ((i18 & 3072) != 2048) {
                    }
                    z10 = true;
                    kVar = kVar22;
                    int i25222 = i17;
                    boolean m10222 = z10 | r10.m(kVar) | r10.R(b102) | r10.R(a112) | r10.R(a122) | r10.R(a102) | ((i18 & 896) != 256);
                    if (((i18 & 112) ^ 48) > 32) {
                    }
                    z122 = false;
                    z11 = m10222 | z122;
                    f13 = r10.f();
                    if (!z11) {
                    }
                    f13 = new a(j17, kVar, b102, a112, a122, a102, f12, j15);
                    r10.I(f13);
                    z.i.a(o102, (dn.l) f13, r10, 0);
                    if (y0.p.H()) {
                    }
                    i19 = i25222;
                    j18 = j15;
                    j13 = j17;
                    iVar2 = iVar4;
                } else {
                    r10.A();
                    j18 = j12;
                    f12 = f11;
                    i19 = i15;
                }
                x2 y10 = r10.y();
                if (y10 != null) {
                    y10.a(new b(iVar2, j18, f12, j13, i19, i11, i12));
                    return;
                }
                return;
            }
            i15 = i10;
            if ((i13 & 9363) == 9362) {
            }
            r10.q();
            if ((i11 & 1) != 0) {
            }
            if (i21 != 0) {
            }
            if ((i12 & 2) != 0) {
            }
            if (i22 != 0) {
            }
            if ((i12 & 8) != 0) {
            }
            if (i14 != 0) {
            }
        }
        f11 = f10;
        if ((i11 & 3072) != 0) {
        }
        i14 = i12 & 16;
        if (i14 == 0) {
        }
        i15 = i10;
        if ((i13 & 9363) == 9362) {
        }
        r10.q();
        if ((i11 & 1) != 0) {
        }
        if (i21 != 0) {
        }
        if ((i12 & 2) != 0) {
        }
        if (i22 != 0) {
        }
        if ((i12 & 8) != 0) {
        }
        if (i14 != 0) {
        }
    }

    private static final void f(u1.f fVar, float f10, float f11, long j10, u1.k kVar) {
        float f12 = 2;
        float f13 = kVar.f() / f12;
        float i10 = r1.m.i(fVar.b()) - (f12 * f13);
        u1.f.C1(fVar, j10, f10, f11, false, r1.h.a(f13, f13), r1.n.a(i10, i10), BitmapDescriptorFactory.HUE_RED, kVar, null, 0, 832, null);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void g(u1.f fVar, long j10, u1.k kVar) {
        f(fVar, BitmapDescriptorFactory.HUE_RED, 360.0f, j10, kVar);
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final void h(u1.f fVar, float f10, float f11, float f12, long j10, u1.k kVar) {
        f(fVar, f10 + (s1.t1.e(kVar.b(), s1.t1.f35329a.a()) ? BitmapDescriptorFactory.HUE_RED : ((f11 / c3.h.t(f37818e / 2)) * 57.29578f) / 2.0f), Math.max(f12, 0.1f), j10, kVar);
    }
}
