package androidx.navigation;

import F.C0168w;
import android.os.Bundle;
import androidx.compose.runtime.State;
import e.C1947a;
import g.AbstractC2055i;
import g.C2054h;
import h.AbstractC2068b;
import java.util.ArrayList;
import java.util.List;
import w4.C3137A;

/* JADX INFO: renamed from: androidx.navigation.q, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1142q extends kotlin.jvm.internal.p implements J4.c {

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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1142q(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, int i6) {
        super(1);
        this.f12786a = i6;
        this.f12787b = obj;
        this.f12788c = obj2;
        this.f12789d = obj3;
        this.f12790e = obj4;
        this.f12791f = obj5;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        List listSubList;
        switch (this.f12786a) {
            case 0:
                C1137l entry = (C1137l) obj;
                kotlin.jvm.internal.o.h(entry, "entry");
                ((kotlin.jvm.internal.y) this.f12787b).f20130a = true;
                ArrayList arrayList = (ArrayList) this.f12788c;
                int iIndexOf = arrayList.indexOf(entry);
                if (iIndexOf != -1) {
                    kotlin.jvm.internal.A a6 = (kotlin.jvm.internal.A) this.f12789d;
                    int i6 = iIndexOf + 1;
                    listSubList = arrayList.subList(a6.f20113a, i6);
                    a6.f20113a = i6;
                } else {
                    listSubList = x4.y.f26065a;
                }
                ((H) this.f12790e).a(entry.f12757b, (Bundle) this.f12791f, entry, listSubList);
                return C3137A.f25453a;
            case 1:
                K1.b bVar = new K1.b((State) this.f12791f, 25);
                C2054h c2054hD = ((AbstractC2055i) this.f12788c).d((String) this.f12789d, (AbstractC2068b) this.f12790e, bVar);
                C1947a c1947a = (C1947a) this.f12787b;
                c1947a.f16228a = c2054hD;
                return new C0168w(c1947a, 8);
            default:
                l1.y yVar = (l1.y) this.f12787b;
                yVar.f20236j.addView(yVar, yVar.f20237k);
                yVar.g((J4.a) this.f12788c, (l1.C) this.f12789d, (String) this.f12790e, (h1.m) this.f12791f);
                return new C0168w(yVar, 13);
        }
    }
}
