package B;

import C0.C0109j;
import C0.C0124z;
import F.C0168w;
import F.C0169x;
import G.C0227b;
import G0.InterfaceC0247b0;
import I0.AbstractC0303l;
import J0.C0358f0;
import K.C0464l0;
import T0.C0594e;
import T0.C0600k;
import T0.C0601l;
import T0.InterfaceC0591b;
import V.InterfaceC0619m;
import V2.C0636a3;
import V2.C0691l3;
import X0.C0809w;
import Z0.InterfaceC0866g;
import a0.C0897f0;
import a0.C0900g0;
import a0.I1;
import a0.x2;
import a0.y2;
import a3.AbstractC0978q;
import android.graphics.drawable.Drawable;
import androidx.compose.runtime.MutableFloatState;
import androidx.compose.runtime.collection.MutableVector;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.compose.runtime.saveable.SaveableStateRegistry;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import j0.C2309f;
import p0.AbstractC2697c;
import p0.InterfaceC2712s;
import r0.InterfaceC2866e;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class V implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f200a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f201b;

    public /* synthetic */ V(int i6, Object obj, Object obj2) {
        this.f200a = i6;
        this.f201b = obj;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:120:0x02f8  */
    /* JADX WARN: Removed duplicated region for block: B:121:0x0309  */
    /* JADX WARN: Removed duplicated region for block: B:157:0x03a5  */
    /* JADX WARN: Removed duplicated region for block: B:158:0x03b6  */
    @Override // J4.c
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke(Object obj) {
        D.w wVar;
        E.r rVar;
        C0464l0 c0464l0;
        int i6 = 2;
        D.w wVar2 = null;
        E.r rVar2 = null;
        int i7 = 0;
        objArr = 0;
        objArr = 0;
        objArr = 0;
        Object[] objArr = 0;
        boolean z6 = false;
        char c6 = 1;
        C3137A c3137a = C3137A.f25453a;
        Object obj2 = this.f201b;
        switch (this.f200a) {
            case 0:
                MutableVector mutableVector = (MutableVector) obj2;
                T[] tArr = mutableVector.content;
                int size = mutableVector.getSize();
                while (i7 < size) {
                    ((InterfaceC0247b0) tArr[i7]).c();
                    i7++;
                }
                return c3137a;
            case 1:
                J0.L0 l02 = (J0.L0) obj;
                l02.f2894a = "padding";
                l02.f2896c.c((H0) obj2, "paddingValues");
                return c3137a;
            case 2:
                ((Integer) obj).intValue();
                return obj2;
            case 3:
                D.t tVar = (D.t) obj2;
                return tVar.n(((Integer) obj).intValue(), tVar.f867d);
            case 4:
                float f6 = -((Float) obj).floatValue();
                D.H h5 = (D.H) obj2;
                if ((f6 >= 0.0f || h5.c()) && (f6 <= 0.0f || h5.b())) {
                    if (Math.abs(h5.f774h) > 0.5f) {
                        A.b.c("entered drag with non-zero pending scroll");
                    }
                    h5.f770d = true;
                    float f7 = h5.f774h + f6;
                    h5.f774h = f7;
                    if (Math.abs(f7) > 0.5f) {
                        float f8 = h5.f774h;
                        int iRound = Math.round(f8);
                        D.w wVarA = ((D.w) h5.f772f.getValue()).a(iRound, !h5.f768b);
                        if (wVarA == null || (wVar = h5.f769c) == null) {
                            wVar2 = wVarA;
                            if (wVar2 == null) {
                                h5.f(wVar2, h5.f768b, true);
                                h5.f787v.setValue(c3137a);
                                h5.j(f8 - h5.f774h, wVar2);
                            } else {
                                I0.H h6 = h5.f777k;
                                if (h6 != null) {
                                    h6.i();
                                }
                                h5.j(f8 - h5.f774h, h5.i());
                            }
                        } else {
                            D.w wVarA2 = wVar.a(iRound, true);
                            if (wVarA2 != null) {
                                h5.f769c = wVarA2;
                                wVar2 = wVarA;
                            }
                            if (wVar2 == null) {
                            }
                        }
                    }
                    if (Math.abs(h5.f774h) > 0.5f) {
                        f6 -= h5.f774h;
                        h5.f774h = 0.0f;
                    }
                    f = f6;
                }
                return Float.valueOf(-f);
            case 5:
                return Integer.valueOf(((E.y) obj2).c(((Integer) obj).intValue()));
            case 6:
                float f9 = -((Float) obj).floatValue();
                E.D d6 = (E.D) obj2;
                if ((f9 >= 0.0f || d6.c()) && (f9 <= 0.0f || d6.b())) {
                    if (Math.abs(d6.f970g) > 0.5f) {
                        A.b.c("entered drag with non-zero pending scroll");
                    }
                    float f10 = d6.f970g + f9;
                    d6.f970g = f10;
                    if (Math.abs(f10) > 0.5f) {
                        float f11 = d6.f970g;
                        int iD0 = L4.a.d0(f11);
                        E.r rVarA = ((E.r) d6.f968e.getValue()).a(iD0, !d6.f965b);
                        if (rVarA == null || (rVar = d6.f966c) == null) {
                            rVar2 = rVarA;
                            if (rVar2 == null) {
                                d6.f(rVar2, d6.f965b, true);
                                d6.f980r.setValue(c3137a);
                                d6.h(f11 - d6.f970g, rVar2);
                            } else {
                                I0.H h7 = d6.f973j;
                                if (h7 != null) {
                                    h7.i();
                                }
                                d6.h(f11 - d6.f970g, d6.g());
                            }
                        } else {
                            E.r rVarA2 = rVar.a(iD0, true);
                            if (rVarA2 != null) {
                                d6.f966c = rVarA2;
                                rVar2 = rVarA;
                            }
                            if (rVar2 == null) {
                            }
                        }
                    }
                    if (Math.abs(d6.f970g) > 0.5f) {
                        f9 -= d6.f970g;
                        d6.f970g = 0.0f;
                    }
                    f = f9;
                }
                return Float.valueOf(-f);
            case 7:
                return new C0168w((C0169x) obj2, i7);
            case 8:
                return new C0168w((F.L) obj2, i6);
            case 9:
                SaveableStateRegistry saveableStateRegistry = (SaveableStateRegistry) obj2;
                return Boolean.valueOf(saveableStateRegistry != null ? saveableStateRegistry.canBeSaved(obj) : true);
            case 10:
                float fFloatValue = ((Float) obj).floatValue();
                G.S s6 = (G.S) obj2;
                int iQ = s6.f1723b.q();
                C0227b c0227b = s6.f1723b;
                c0227b.f1705s.setIntValue(c0227b.k(c0227b.l() + L4.a.d0(iQ != 0 ? fFloatValue / c0227b.q() : 0.0f)));
                return c3137a;
            case 11:
                C2309f c2309f = (C2309f) obj;
                Boolean boolValueOf = c2309f.f19444a.isToggle() ? Boolean.valueOf(c2309f.f19444a.getToggleValue()) : null;
                if (boolValueOf != null) {
                    S0.a aVar = boolValueOf.booleanValue() ? S0.a.f6131a : S0.a.f6132b;
                    Q4.m[] mVarArr = Q0.y.f5862a;
                    Q0.z zVar = Q0.w.f5828J;
                    Q4.m mVar = Q0.y.f5862a[25];
                    ((Q0.A) obj2).g(zVar, aVar);
                    z6 = true;
                }
                return Boolean.valueOf(z6);
            case 12:
                ((Q0.A) obj).g(V.M.f6988c, new V.L(K.X.f3760a, ((InterfaceC0619m) obj2).a(), V.K.f6979b, true));
                return c3137a;
            case 13:
                float fFloatValue2 = ((Float) obj).floatValue();
                K.P0 p02 = (K.P0) obj2;
                MutableFloatState mutableFloatState = p02.f3721a;
                float floatValue = mutableFloatState.getFloatValue() + fFloatValue2;
                MutableFloatState mutableFloatState2 = p02.f3722b;
                if (floatValue > mutableFloatState2.getFloatValue()) {
                    fFloatValue2 = mutableFloatState2.getFloatValue() - mutableFloatState.getFloatValue();
                } else if (floatValue < 0.0f) {
                    fFloatValue2 = -mutableFloatState.getFloatValue();
                }
                mutableFloatState.setFloatValue(mutableFloatState.getFloatValue() + fFloatValue2);
                return Float.valueOf(fFloatValue2);
            case 14:
                String key = (String) obj;
                kotlin.jvm.internal.o.h(key, "key");
                ((C0358f0) obj2).a("https://www.youtube.com/watch?v=".concat(key));
                return c3137a;
            case 15:
                C0691l3 setSettings = (C0691l3) obj;
                kotlin.jvm.internal.o.h(setSettings, "$this$setSettings");
                return C0691l3.a(setSettings, ((a3.b0) obj2).f10620a, null, 5);
            case 16:
                ((MutableFloatState) obj2).setFloatValue(L4.a.u(((Float) obj).floatValue(), 0.0f, 100.0f));
                return c3137a;
            case 17:
                InterfaceC2866e interfaceC2866e = (InterfaceC2866e) obj;
                InterfaceC2712s interfaceC2712sC = interfaceC2866e.a0().c();
                Drawable drawable = (Drawable) obj2;
                drawable.setBounds(0, 0, (int) Float.intBitsToFloat((int) (interfaceC2866e.c() >> 32)), (int) Float.intBitsToFloat((int) (interfaceC2866e.c() & 4294967295L)));
                drawable.draw(AbstractC2697c.a(interfaceC2712sC));
                return c3137a;
            case 18:
                Q.c cVar = (Q.c) obj2;
                cVar.f5693c.invoke((M.a) obj, AbstractC0303l.h(cVar, AndroidCompositionLocals_androidKt.f11154b));
                return c3137a;
            case 19:
                ((J4.c) obj).invoke((M.a) obj2);
                return c3137a;
            case 20:
                I0.I0 i02 = (I0.I0) obj;
                if (!(i02 instanceof Q.a)) {
                    throw new IllegalStateException("TextContextMenuDataNode.TraverseKey key must only be attached to instances of TextContextMenuDataNode.");
                }
                ((V) obj2).invoke(((Q.a) i02).f5691a);
                return Boolean.TRUE;
            case 21:
                return new C0168w((R.d) obj2, 6);
            case 22:
                ((T.y) obj2).a((InterfaceC0866g) obj);
                return c3137a;
            case 23:
                C0124z c0124z = (C0124z) obj;
                long j4 = c0124z.f646c;
                C0109j c0109j = (C0109j) obj2;
                V.i0 i0Var = (V.i0) c0109j.f608d;
                if (i0Var.m() && i0Var.p().f9136a.f6510b.length() != 0 && (c0464l0 = i0Var.f7084d) != null && c0464l0.d() != null) {
                    c0109j.j(i0Var.p(), j4, false, V.B.f6937d);
                    objArr = 1;
                }
                if (objArr != 0) {
                    c0124z.a();
                }
                return c3137a;
            case 24:
                X0.T t6 = (X0.T) obj;
                return ((C0809w) obj2).a(new X0.T(null, t6.f8464b, t6.f8465c, t6.f8466d, t6.f8467e)).getValue();
            case 25:
                float fFloatValue3 = ((Float) obj).floatValue();
                x2 x2Var = ((C0897f0) ((y2) obj2).f10353o).f9856a;
                x2Var.b(x2Var.f10328c.getFloatValue() + fFloatValue3);
                return c3137a;
            case 26:
                return Boolean.valueOf(kotlin.jvm.internal.o.c(((C0900g0) obj).f9905a, (I1) obj2));
            case 27:
                C0594e c0594e = (C0594e) obj;
                InterfaceC0591b interfaceC0591b = (InterfaceC0591b) c0594e.f6503a;
                T0.M m6 = (T0.M) obj2;
                if (interfaceC0591b instanceof C0601l) {
                    C0601l c0601l = (C0601l) interfaceC0591b;
                    if (c0601l.f6526b == null) {
                        return C0594e.a(c0594e, new C0601l(c0601l.f6525a, m6), 0, 14);
                    }
                }
                if (!(interfaceC0591b instanceof C0600k)) {
                    return c0594e;
                }
                C0600k c0600k = (C0600k) interfaceC0591b;
                return c0600k.f6524b == null ? C0594e.a(c0594e, new C0600k(c0600k.f6523a, m6), 0, 14) : c0594e;
            case 28:
                C0636a3 it = (C0636a3) obj;
                kotlin.jvm.internal.o.h(it, "it");
                return Boolean.valueOf(AbstractC0978q.c(it, (a3.Y) obj2));
            default:
                D.A LazyColumn = (D.A) obj;
                kotlin.jvm.internal.o.h(LazyColumn, "$this$LazyColumn");
                X2.l lVar = (X2.l) obj2;
                ((D.l) LazyColumn).s(null, null, ComposableLambdaKt.composableLambdaInstance(-1912210820, true, new a3.q0(lVar, i7)));
                ((D.l) LazyColumn).s(null, null, ComposableLambdaKt.composableLambdaInstance(-1601196699, true, new a3.q0(lVar, c6 == true ? 1 : 0)));
                ((D.l) LazyColumn).s(null, null, ComposableLambdaKt.composableLambdaInstance(-1188290492, true, new a3.q0(lVar, i6)));
                return c3137a;
        }
    }

    public /* synthetic */ V(Object obj, int i6) {
        this.f200a = i6;
        this.f201b = obj;
    }
}
