package d3;

import D.InterfaceC0133d;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.MutableState;
import androidx.media3.exoplayer.ExoPlayer;
import i0.C2252p;
import i0.InterfaceC2255s;
import java.util.List;
import n0.AbstractC2603d;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class j2 implements J4.g {

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

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

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ n0.x f15721j;

    public j2(List list, int i6, ExoPlayer exoPlayer, List list2, List list3, MutableState mutableState, n0.x xVar) {
        this.f15715a = list;
        this.f15716b = i6;
        this.f15717c = exoPlayer;
        this.f15718d = list2;
        this.f15719e = list3;
        this.f15720f = mutableState;
        this.f15721j = xVar;
    }

    @Override // J4.g
    public final Object invoke(Object obj, Object obj2, Object obj3, Object obj4) {
        int i6;
        boolean z6;
        boolean z7;
        int i7;
        InterfaceC0133d interfaceC0133d = (InterfaceC0133d) obj;
        int iIntValue = ((Number) obj2).intValue();
        Composer composer = (Composer) obj3;
        int iIntValue2 = ((Number) obj4).intValue();
        if ((iIntValue2 & 6) == 0) {
            i6 = (composer.changed(interfaceC0133d) ? 4 : 2) | iIntValue2;
        } else {
            i6 = iIntValue2;
        }
        if ((iIntValue2 & 48) == 0) {
            i6 |= composer.changed(iIntValue) ? 32 : 16;
        }
        if (composer.shouldExecute((i6 & 147) != 146, i6 & 1)) {
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventStart(2039820996, i6, -1, "androidx.compose.foundation.lazy.itemsIndexed.<anonymous> (LazyDsl.kt:214)");
            }
            C c6 = (C) this.f15715a.get(iIntValue);
            composer.startReplaceGroup(1258892829);
            String str = c6.f15033c;
            if (this.f15716b == iIntValue) {
                z7 = false;
                z6 = true;
            } else {
                z6 = false;
                z7 = false;
            }
            p0.W w6 = v2.Y;
            boolean z8 = z6;
            long j4 = v2.f16087b0;
            composer.startReplaceGroup(40627217);
            ExoPlayer exoPlayer = this.f15717c;
            boolean zChangedInstance = composer.changedInstance(exoPlayer);
            List list = this.f15718d;
            int i8 = (i6 & 112) ^ 48;
            boolean zChangedInstance2 = zChangedInstance | composer.changedInstance(list) | (((i8 <= 32 || !composer.changed(iIntValue)) && (i6 & 48) != 32) ? z7 : true);
            Object objRememberedValue = composer.rememberedValue();
            if (zChangedInstance2 || objRememberedValue == Composer.Companion.getEmpty()) {
                i7 = i8;
                M1 m12 = new M1(iIntValue, 0, exoPlayer, list, this.f15720f);
                composer.updateRememberedValue(m12);
                objRememberedValue = m12;
            } else {
                i7 = i8;
            }
            J4.a aVar = (J4.a) objRememberedValue;
            composer.endReplaceGroup();
            C2252p c2252p = C2252p.f18820a;
            List list2 = this.f15719e;
            InterfaceC2255s interfaceC2255sK = AbstractC2603d.k(c2252p, (n0.x) list2.get(iIntValue));
            composer.startReplaceGroup(40645789);
            boolean zChangedInstance3 = composer.changedInstance(list2) | (((i7 <= 32 || !composer.changed(iIntValue)) && (i6 & 48) != 32) ? z7 : true) | composer.changedInstance(list);
            Object objRememberedValue2 = composer.rememberedValue();
            if (zChangedInstance3 || objRememberedValue2 == Composer.Companion.getEmpty()) {
                objRememberedValue2 = new G1(iIntValue, this.f15721j, list2, list);
                composer.updateRememberedValue(objRememberedValue2);
            }
            composer.endReplaceGroup();
            v2.m(str, null, null, z8, false, null, w6, j4, aVar, AbstractC2603d.i(interfaceC2255sK, (J4.c) objRememberedValue2), composer, 113271168, 0, 98);
            composer.endReplaceGroup();
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composer.skipToGroupEnd();
        }
        return C3137A.f25453a;
    }
}
