package F1;

import android.window.OnBackInvokedDispatcher;
import androidx.compose.runtime.State;
import androidx.lifecycle.EnumC1107p;
import androidx.lifecycle.InterfaceC1111u;
import androidx.lifecycle.InterfaceC1113w;
import androidx.media3.exoplayer.ExoPlayer;
import d.AbstractActivityC1833l;
import d.C1818B;
import j3.C2359k;
import java.util.concurrent.atomic.AtomicBoolean;

/* JADX INFO: renamed from: F1.i, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0180i implements InterfaceC1111u {

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

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

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

    public /* synthetic */ C0180i(int i6, Object obj, Object obj2) {
        this.f1444a = i6;
        this.f1445b = obj;
        this.f1446c = obj2;
    }

    @Override // androidx.lifecycle.InterfaceC1111u
    public final void a(InterfaceC1113w interfaceC1113w, EnumC1107p enumC1107p) {
        ExoPlayer exoPlayer;
        switch (this.f1444a) {
            case 0:
                C0182k c0182k = (C0182k) this.f1445b;
                c0182k.getClass();
                if (enumC1107p == EnumC1107p.ON_DESTROY) {
                    c0182k.a((InterfaceC0183l) this.f1446c);
                }
                break;
            case 1:
                if (enumC1107p == EnumC1107p.ON_STOP) {
                    ((a3.a0) this.f1445b).b();
                    ((J4.a) ((State) this.f1446c).getValue()).invoke();
                }
                break;
            case 2:
                if (enumC1107p == EnumC1107p.ON_CREATE) {
                    OnBackInvokedDispatcher onBackInvokedDispatcherA = B1.b.a((AbstractActivityC1833l) this.f1446c);
                    C1818B c1818b = (C1818B) this.f1445b;
                    c1818b.f14460e = onBackInvokedDispatcherA;
                    c1818b.d(c1818b.f14462g);
                }
                break;
            case 3:
                if (enumC1107p == EnumC1107p.ON_PAUSE && (exoPlayer = (ExoPlayer) ((State) this.f1445b).getValue()) != null) {
                    ((AtomicBoolean) this.f1446c).set(exoPlayer.getPlayWhenReady());
                    exoPlayer.setPlayWhenReady(false);
                    break;
                }
                break;
            default:
                if (enumC1107p == EnumC1107p.ON_RESUME && ((C2359k) this.f1445b).f19585i) {
                    ((J4.a) this.f1446c).invoke();
                    break;
                }
                break;
        }
    }
}
