package V2;

import android.content.Context;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import com.debridstream.tv.PlayerViewModel;
import com.debridstream.tv.data.home.HomeMetaItem;
import com.debridstream.tv.screens.VideoDetailsViewModel;
import java.util.ArrayList;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class P implements J4.c {

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ Object f7474k;
    public final /* synthetic */ Object l;

    public /* synthetic */ P(V4.C c6, Context context, boolean z6, PlayerViewModel playerViewModel, androidx.navigation.H h5, VideoDetailsViewModel videoDetailsViewModel, String str, State state) {
        this.f7469c = c6;
        this.f7470d = context;
        this.f7468b = z6;
        this.f7471e = playerViewModel;
        this.f7472f = h5;
        this.f7473j = videoDetailsViewModel;
        this.f7474k = str;
        this.l = state;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:9:0x0036  */
    @Override // J4.c
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke(Object obj) {
        boolean z6;
        C3137A c3137a = C3137A.f25453a;
        Object obj2 = this.f7470d;
        Object obj3 = this.l;
        Object obj4 = this.f7474k;
        Object obj5 = this.f7473j;
        Object obj6 = this.f7472f;
        Object obj7 = this.f7469c;
        Object obj8 = this.f7471e;
        switch (this.f7467a) {
            case 0:
                HomeMetaItem item = (HomeMetaItem) obj;
                kotlin.jvm.internal.o.h(item, "item");
                V4.E.y((V4.C) obj7, null, null, new Q((Context) obj2, item, this.f7468b, (PlayerViewModel) obj8, (androidx.navigation.H) obj6, (VideoDetailsViewModel) obj5, (String) obj4, (State) obj3, null), 3);
                break;
            default:
                n0.q focusProperties = (n0.q) obj;
                kotlin.jvm.internal.o.h(focusProperties, "$this$focusProperties");
                if (this.f7468b) {
                    ConcurrentHashMap concurrentHashMap = h3.Q0.f17204a;
                    z6 = ((Boolean) ((MutableState) obj8).getValue()).booleanValue();
                }
                focusProperties.f(z6);
                ArrayList arrayList = (ArrayList) obj6;
                n0.x xVar = (n0.x) obj5;
                n0.x xVar2 = (n0.x) obj4;
                Map map = (Map) obj3;
                String str = ((R2) obj7).f7513a;
                focusProperties.e(h3.Q0.s(arrayList, xVar, xVar2, map, str));
                focusProperties.g(h3.Q0.r(arrayList, xVar, xVar2, map, str));
                n0.x xVar3 = (n0.x) obj2;
                focusProperties.i(xVar3);
                focusProperties.b(xVar3);
                break;
        }
        return c3137a;
    }

    public /* synthetic */ P(boolean z6, R2 r22, n0.x xVar, MutableState mutableState, ArrayList arrayList, n0.x xVar2, n0.x xVar3, Map map) {
        this.f7468b = z6;
        this.f7469c = r22;
        this.f7470d = xVar;
        this.f7471e = mutableState;
        this.f7472f = arrayList;
        this.f7473j = xVar2;
        this.f7474k = xVar3;
        this.l = map;
    }
}
