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.ProfileViewModel;
import w4.C3137A;

/* JADX INFO: renamed from: V2.f0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0658f0 implements J4.f {

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ androidx.lifecycle.b0 f7754b;

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

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

    public /* synthetic */ C0658f0(androidx.lifecycle.b0 b0Var, Object obj, State state, int i6) {
        this.f7753a = i6;
        this.f7754b = b0Var;
        this.f7755c = obj;
        this.f7756d = state;
    }

    @Override // J4.f
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        C3137A c3137a = C3137A.f25453a;
        State state = this.f7756d;
        Object obj4 = this.f7755c;
        androidx.lifecycle.b0 b0Var = this.f7754b;
        switch (this.f7753a) {
            case 0:
                String name = (String) obj;
                boolean zBooleanValue = ((Boolean) obj2).booleanValue();
                String str = (String) obj3;
                kotlin.jvm.internal.o.h(name, "name");
                q.F0 f0 = AbstractC0693m0.f7892a;
                A0 a02 = ((C0745z0) state.getValue()).f8199a;
                if (a02 != null) {
                    ((ProfileViewModel) b0Var).addProfile((Context) obj4, a02, name, zBooleanValue, str);
                }
                break;
            default:
                String subUrl = (String) obj;
                String fid = (String) obj2;
                String languageCode = (String) obj3;
                kotlin.jvm.internal.o.h(subUrl, "subUrl");
                kotlin.jvm.internal.o.h(fid, "fid");
                kotlin.jvm.internal.o.h(languageCode, "languageCode");
                ((PlayerViewModel) b0Var).setExternalSubtitle(subUrl, fid);
                ((MutableState) obj4).setValue(languageCode);
                ((MutableState) state).setValue(d3.D.f15042a);
                break;
        }
        return c3137a;
    }
}
