package d;

import android.content.res.Resources;
import android.view.View;
import com.debridstream.tv.R;

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

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

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

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

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

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

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

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f14467a) {
            case 0:
                Resources resources = (Resources) obj;
                kotlin.jvm.internal.o.h(resources, "resources");
                return Boolean.valueOf((resources.getConfiguration().uiMode & 48) == 32);
            case 1:
                kotlin.jvm.internal.o.h((Resources) obj, "<anonymous parameter 0>");
                return Boolean.TRUE;
            case 2:
                View it = (View) obj;
                kotlin.jvm.internal.o.h(it, "it");
                Object parent = it.getParent();
                if (parent instanceof View) {
                    return (View) parent;
                }
                return null;
            default:
                View it2 = (View) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                Object tag = it2.getTag(R.id.view_tree_on_back_pressed_dispatcher_owner);
                if (tag instanceof InterfaceC1819C) {
                    return (InterfaceC1819C) tag;
                }
                return null;
        }
    }
}
