package d3;

import V4.InterfaceC0765i0;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import androidx.compose.runtime.internal.ComposableLambdaKt;
import androidx.media3.exoplayer.ExoPlayer;
import com.debridstream.tv.screens.SearchRecommendationsViewModel;
import h3.AbstractC2115g0;
import h3.C2105e2;
import h3.G2;
import h3.T2;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import w4.C3137A;

/* JADX INFO: renamed from: d3.w0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C1934w0 implements J4.c {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ V4.C f16143b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ State f16144c;

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ Object f16149k;
    public final /* synthetic */ Object l;

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

    public /* synthetic */ C1934w0(MutableState mutableState, ExoPlayer exoPlayer, AtomicBoolean atomicBoolean, MutableState mutableState2, MutableState mutableState3, MutableState mutableState4, MutableState mutableState5, V4.C c6, MutableState mutableState6) {
        this.f16144c = mutableState;
        this.l = exoPlayer;
        this.f16150m = atomicBoolean;
        this.f16145d = mutableState2;
        this.f16146e = mutableState3;
        this.f16147f = mutableState4;
        this.f16148j = mutableState5;
        this.f16143b = c6;
        this.f16149k = mutableState6;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f16142a) {
            case 0:
                float fFloatValue = ((Float) obj).floatValue();
                MutableState mutableState = (MutableState) this.f16144c;
                if (((Number) mutableState.getValue()).longValue() > 0) {
                    ExoPlayer exoPlayer = (ExoPlayer) this.l;
                    MutableState mutableState2 = (MutableState) this.f16145d;
                    AtomicBoolean atomicBoolean = (AtomicBoolean) this.f16150m;
                    MutableState mutableState3 = (MutableState) this.f16146e;
                    MutableState mutableState4 = (MutableState) this.f16147f;
                    MutableState mutableState5 = (MutableState) this.f16148j;
                    v2.H(exoPlayer, atomicBoolean, mutableState, mutableState2, mutableState3, mutableState4, mutableState5);
                    long jX = L4.a.x((long) (((Number) mutableState.getValue()).longValue() * fFloatValue), 0L, ((Number) mutableState.getValue()).longValue());
                    mutableState2.setValue(Long.valueOf(jX));
                    MutableState mutableState6 = (MutableState) this.f16149k;
                    InterfaceC0765i0 interfaceC0765i0 = (InterfaceC0765i0) mutableState6.getValue();
                    if (interfaceC0765i0 != null) {
                        interfaceC0765i0.cancel(null);
                    }
                    mutableState6.setValue(V4.E.y(this.f16143b, null, null, new V1(jX, mutableState, exoPlayer, atomicBoolean, mutableState4, mutableState2, mutableState5, mutableState3, mutableState6, null), 3));
                }
                break;
            default:
                E.v LazyVerticalGrid = (E.v) obj;
                kotlin.jvm.internal.o.h(LazyVerticalGrid, "$this$LazyVerticalGrid");
                State state = this.f16144c;
                List list = ((C2105e2) state.getValue()).f17893c;
                ((E.j) LazyVerticalGrid).s(list.size(), new K.U(22, new a5.t(11), list), new M2.W(list, 19), ComposableLambdaKt.composableLambdaInstance(-1942245546, true, new G2(list, (Map) this.f16145d, (J4.a) this.f16146e, this.f16143b, state, (n0.x) this.f16147f, (n0.x) this.f16148j, (D.H) this.f16149k, (SearchRecommendationsViewModel) this.l, (J4.c) this.f16150m)));
                if (((C2105e2) state.getValue()).f17895e) {
                    E.v.c(LazyVerticalGrid, T2.X, AbstractC2115g0.f17940b, 1);
                }
                break;
        }
        return C3137A.f25453a;
    }

    public /* synthetic */ C1934w0(State state, Map map, J4.a aVar, V4.C c6, n0.x xVar, n0.x xVar2, D.H h5, SearchRecommendationsViewModel searchRecommendationsViewModel, J4.c cVar) {
        this.f16144c = state;
        this.f16145d = map;
        this.f16146e = aVar;
        this.f16143b = c6;
        this.f16147f = xVar;
        this.f16148j = xVar2;
        this.f16149k = h5;
        this.l = searchRecommendationsViewModel;
        this.f16150m = cVar;
    }
}
