package D;

import G0.p0;
import androidx.compose.runtime.MutableState;
import java.util.ArrayList;
import java.util.List;
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 f887a;

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

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

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

    public /* synthetic */ v(MutableState mutableState, ArrayList arrayList, List list, boolean z6, int i6) {
        this.f887a = i6;
        this.f888b = mutableState;
        this.f889c = arrayList;
        this.f890d = list;
    }

    /* JADX WARN: Type inference failed for: r1v0, types: [java.lang.Object, java.util.Collection, java.util.List] */
    /* JADX WARN: Type inference failed for: r1v1, types: [java.lang.Object, java.util.Collection, java.util.List] */
    @Override // J4.c
    public final Object invoke(Object obj) {
        p0 p0Var = (p0) obj;
        switch (this.f887a) {
            case 0:
                ArrayList arrayList = this.f889c;
                ?? r12 = this.f890d;
                p0Var.f1991a = true;
                int size = arrayList.size();
                for (int i6 = 0; i6 < size; i6++) {
                    ((x) arrayList.get(i6)).j(p0Var);
                }
                int size2 = r12.size();
                for (int i7 = 0; i7 < size2; i7++) {
                    ((x) r12.get(i7)).j(p0Var);
                }
                p0Var.f1991a = false;
                this.f888b.getValue();
                break;
            default:
                ArrayList arrayList2 = this.f889c;
                ?? r13 = this.f890d;
                p0Var.f1991a = true;
                int size3 = arrayList2.size();
                for (int i8 = 0; i8 < size3; i8++) {
                    ((E.s) arrayList2.get(i8)).j(p0Var);
                }
                int size4 = r13.size();
                for (int i9 = 0; i9 < size4; i9++) {
                    ((E.s) r13.get(i9)).j(p0Var);
                }
                p0Var.f1991a = false;
                this.f888b.getValue();
                break;
        }
        return C3137A.f25453a;
    }
}
