package androidx.navigation;

import android.content.Context;
import android.content.ContextWrapper;
import w4.C3137A;

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final C1127b f12736b = new C1127b(1, 0);

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final C1127b f12737c = new C1127b(1, 1);

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final C1127b f12738d = new C1127b(1, 2);

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final C1127b f12739e = new C1127b(1, 3);

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public static final C1127b f12740f = new C1127b(1, 4);

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public static final C1127b f12741j = new C1127b(1, 5);

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public static final C1127b f12742k = new C1127b(1, 6);
    public static final C1127b l = new C1127b(1, 7);

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public static final C1127b f12743m = new C1127b(1, 8);

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ C1127b(int i6, int i7) {
        super(i6);
        this.f12744a = i7;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f12744a) {
            case 0:
                Context it = (Context) obj;
                kotlin.jvm.internal.o.h(it, "it");
                if (it instanceof ContextWrapper) {
                    return ((ContextWrapper) it).getBaseContext();
                }
                return null;
            case 1:
                Context it2 = (Context) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                if (it2 instanceof ContextWrapper) {
                    return ((ContextWrapper) it2).getBaseContext();
                }
                return null;
            case 2:
                L navOptions = (L) obj;
                kotlin.jvm.internal.o.h(navOptions, "$this$navOptions");
                navOptions.f12709c = true;
                return C3137A.f25453a;
            case 3:
                B destination = (B) obj;
                kotlin.jvm.internal.o.h(destination, "destination");
                E e6 = destination.f12640b;
                if (e6 == null || e6.f12657n != destination.f12644f) {
                    return null;
                }
                return e6;
            case 4:
                B destination2 = (B) obj;
                kotlin.jvm.internal.o.h(destination2, "destination");
                E e7 = destination2.f12640b;
                if (e7 == null || e7.f12657n != destination2.f12644f) {
                    return null;
                }
                return e7;
            case 5:
                B it3 = (B) obj;
                kotlin.jvm.internal.o.h(it3, "it");
                return Integer.valueOf(it3.f12644f);
            case 6:
                B it4 = (B) obj;
                kotlin.jvm.internal.o.h(it4, "it");
                return it4.f12640b;
            case 7:
                B it5 = (B) obj;
                kotlin.jvm.internal.o.h(it5, "it");
                if (!(it5 instanceof E)) {
                    return null;
                }
                E e8 = (E) it5;
                return e8.l(e8.f12657n, e8, false, null);
            default:
                L navOptions2 = (L) obj;
                kotlin.jvm.internal.o.h(navOptions2, "$this$navOptions");
                navOptions2.f12708b = true;
                return C3137A.f25453a;
        }
    }
}
