package M2;

import android.content.Context;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.State;
import com.debridstream.tv.data.home.HomeMetaItem;
import w4.C3137A;

/* JADX INFO: renamed from: M2.u, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0549u implements J4.a {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ V4.C f4963c;

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ State f4968k;

    public /* synthetic */ C0549u(HomeMetaItem homeMetaItem, boolean z6, V4.C c6, MutableState mutableState, Context context, boolean z7, State state) {
        this.f4966f = homeMetaItem;
        this.f4962b = z6;
        this.f4963c = c6;
        this.f4964d = mutableState;
        this.f4965e = context;
        this.f4967j = z7;
        this.f4968k = state;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.a
    public final Object invoke() {
        C3137A c3137a = C3137A.f25453a;
        V4.C c6 = this.f4963c;
        switch (this.f4961a) {
            case 0:
                HomeMetaItem homeMetaItem = this.f4966f;
                if (homeMetaItem != null) {
                    float f6 = B.f4217a;
                    MutableState mutableState = this.f4964d;
                    Boolean bool = (Boolean) mutableState.getValue();
                    boolean zBooleanValue = bool != null ? bool.booleanValue() : this.f4962b;
                    boolean z6 = !zBooleanValue;
                    mutableState.setValue(Boolean.valueOf(z6));
                    V4.E.y(c6, null, null, new C0551v(z6, this.f4965e, homeMetaItem, this.f4967j, zBooleanValue, this.f4968k, mutableState, null), 3);
                }
                break;
            default:
                boolean z7 = this.f4962b;
                Boolean boolValueOf = Boolean.valueOf(!z7);
                float f7 = AbstractC0535o0.f4860g;
                MutableState mutableState2 = this.f4964d;
                mutableState2.setValue(boolValueOf);
                V4.E.y(c6, null, null, new C0517i0(z7, this.f4965e, this.f4966f, this.f4967j, this.f4968k, mutableState2, null), 3);
                break;
        }
        return c3137a;
    }

    public /* synthetic */ C0549u(boolean z6, V4.C c6, MutableState mutableState, Context context, HomeMetaItem homeMetaItem, boolean z7, State state) {
        this.f4962b = z6;
        this.f4963c = c6;
        this.f4964d = mutableState;
        this.f4965e = context;
        this.f4966f = homeMetaItem;
        this.f4967j = z7;
        this.f4968k = state;
    }
}
