package V2;

import android.content.Context;
import androidx.compose.runtime.State;
import com.debridstream.tv.ProfileViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class H extends C4.j implements J4.e {

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public H(Context context, ProfileViewModel profileViewModel, State state, A4.d dVar) {
        super(2, dVar);
        this.f7340a = context;
        this.f7341b = profileViewModel;
        this.f7342c = state;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new H(this.f7340a, this.f7341b, this.f7342c, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        H h5 = (H) create((V4.C) obj, (A4.d) obj2);
        C3137A c3137a = C3137A.f25453a;
        h5.invokeSuspend(c3137a);
        return c3137a;
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        AbstractC2467b.l(obj);
        q.F0 f0 = AbstractC0693m0.f7892a;
        State state = this.f7342c;
        boolean z6 = ((C0745z0) state.getValue()).f8201c;
        Context context = this.f7340a;
        this.f7341b.setProfiles(context, ((C0745z0) state.getValue()).f8200b, ((C0745z0) state.getValue()).f8202d, (!z6 || ((C0745z0) state.getValue()).f8199a == null) ? null : z3.a(context));
        return C3137A.f25453a;
    }
}
