package h3;

import D.InterfaceC0133d;
import android.content.Context;
import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.MutableIntState;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import i0.C2252p;
import i0.InterfaceC2255s;
import java.util.List;
import java.util.Map;
import java.util.Set;
import w4.C3137A;

/* JADX INFO: renamed from: h3.n1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2158n1 implements J4.g {

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ D.H f18213k;
    public final /* synthetic */ String l;

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

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ J4.c f18215n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final /* synthetic */ a3.J f18216o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final /* synthetic */ String f18217p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final /* synthetic */ X2.g f18218q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ boolean f18219r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ String f18220s;

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

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final /* synthetic */ boolean f18222u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ Context f18223v;

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

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

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

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

    public C2158n1(List list, float f6, Set set, int i6, Map map, List list2, n0.x xVar, D.H h5, String str, MutableIntState mutableIntState, J4.c cVar, a3.J j4, String str2, X2.g gVar, boolean z6, String str3, V4.C c6, boolean z7, Context context, State state, int i7, MutableState mutableState, MutableState mutableState2) {
        this.f18206a = list;
        this.f18207b = f6;
        this.f18208c = set;
        this.f18209d = i6;
        this.f18210e = map;
        this.f18211f = list2;
        this.f18212j = xVar;
        this.f18213k = h5;
        this.l = str;
        this.f18214m = mutableIntState;
        this.f18215n = cVar;
        this.f18216o = j4;
        this.f18217p = str2;
        this.f18218q = gVar;
        this.f18219r = z6;
        this.f18220s = str3;
        this.f18221t = c6;
        this.f18222u = z7;
        this.f18223v = context;
        this.f18224w = state;
        this.f18225x = i7;
        this.f18226y = mutableState;
        this.f18227z = mutableState2;
    }

    @Override // J4.g
    public final Object invoke(Object obj, Object obj2, Object obj3, Object obj4) {
        int i6;
        X2.i iVar;
        MutableIntState mutableIntState;
        boolean z6;
        Set set;
        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)");
            }
            X2.i iVar2 = (X2.i) this.f18206a.get(iIntValue);
            composer.startReplaceGroup(-1263503332);
            InterfaceC2255s interfaceC2255sH = B.U0.h(C2252p.f18820a, this.f18207b);
            Context context = i3.M.f18897a;
            J.f fVar = AbstractC2211w1.f18642a;
            MutableIntState mutableIntState2 = this.f18214m;
            int intValue = mutableIntState2.getIntValue();
            if (intValue < 1) {
                intValue = 1;
            }
            int i7 = iVar2.f8597e;
            if (i7 < 1) {
                i7 = 1;
            }
            int i8 = this.f18209d;
            String strG = i3.M.g(i8, intValue, i7);
            Set set2 = this.f18208c;
            boolean zContains = set2.contains(strG);
            int intValue2 = mutableIntState2.getIntValue();
            if (intValue2 < 1) {
                intValue2 = 1;
            }
            int i9 = iVar2.f8597e;
            boolean zContains2 = set2.contains(i3.M.g(i8, intValue2, i9 >= 1 ? i9 : 1));
            boolean zE = AbstractC2211w1.e(this.f18226y);
            n0.x xVar = (n0.x) this.f18210e.get(Integer.valueOf(iVar2.f8593a));
            List list = this.f18211f;
            n0.x xVar2 = !list.isEmpty() ? this.f18212j : null;
            D.H h5 = list.isEmpty() ? null : this.f18213k;
            composer.startReplaceGroup(-1010548515);
            boolean zChanged = composer.changed(mutableIntState2) | composer.changed(iVar2) | composer.changedInstance(this.f18215n) | composer.changed(this.f18216o) | composer.changed(this.f18217p) | composer.changedInstance(this.f18218q) | composer.changed(this.f18219r) | composer.changed(this.f18220s);
            Object objRememberedValue = composer.rememberedValue();
            if (zChanged || objRememberedValue == Composer.Companion.getEmpty()) {
                iVar = iVar2;
                mutableIntState = mutableIntState2;
                z6 = zContains2;
                set = set2;
                C2140k1 c2140k1 = new C2140k1(iVar, this.f18215n, this.f18216o, this.f18226y, mutableIntState, this.f18217p, this.f18218q, this.f18219r, this.f18220s);
                composer.updateRememberedValue(c2140k1);
                objRememberedValue = c2140k1;
            } else {
                z6 = zContains2;
                set = set2;
                mutableIntState = mutableIntState2;
                iVar = iVar2;
            }
            J4.a aVar = (J4.a) objRememberedValue;
            composer.endReplaceGroup();
            composer.startReplaceGroup(-1010486376);
            boolean zChangedInstance = composer.changedInstance(set) | composer.changedInstance(this.f18221t) | composer.changed(mutableIntState) | composer.changed(iVar) | composer.changed(i8) | composer.changed(this.f18222u);
            Context context2 = this.f18223v;
            boolean zChangedInstance2 = zChangedInstance | composer.changedInstance(context2);
            State state = this.f18224w;
            boolean zChanged2 = zChangedInstance2 | composer.changed(state);
            Object objRememberedValue2 = composer.rememberedValue();
            if (zChanged2 || objRememberedValue2 == Composer.Companion.getEmpty()) {
                X2.i iVar3 = iVar;
                objRememberedValue2 = new C2152m1(this.f18221t, iVar3, this.f18208c, this.f18209d, this.f18222u, mutableIntState, context2, state);
                iVar = iVar3;
                composer.updateRememberedValue(objRememberedValue2);
            }
            J4.a aVar2 = (J4.a) objRememberedValue2;
            composer.endReplaceGroup();
            composer.startReplaceGroup(-1010382053);
            boolean zChanged3 = composer.changed(iVar);
            Object objRememberedValue3 = composer.rememberedValue();
            if (zChanged3 || objRememberedValue3 == Composer.Companion.getEmpty()) {
                objRememberedValue3 = new K.U(17, iVar, this.f18227z);
                composer.updateRememberedValue(objRememberedValue3);
            }
            composer.endReplaceGroup();
            AbstractC2211w1.a(interfaceC2255sH, iVar, this.l, zContains, zE, aVar, aVar2, z6, xVar, xVar2, h5, this.f18225x, (J4.c) objRememberedValue3, composer, 0, 0);
            composer.endReplaceGroup();
            if (ComposerKt.isTraceInProgress()) {
                ComposerKt.traceEventEnd();
            }
        } else {
            composer.skipToGroupEnd();
        }
        return C3137A.f25453a;
    }
}
