package d3;

import V4.InterfaceC0765i0;
import androidx.compose.runtime.DisposableEffectResult;
import androidx.compose.runtime.MutableState;

/* JADX INFO: loaded from: classes.dex */
public final class l2 implements DisposableEffectResult {

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

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

    public /* synthetic */ l2(MutableState mutableState, int i6) {
        this.f15800a = i6;
        this.f15801b = mutableState;
    }

    @Override // androidx.compose.runtime.DisposableEffectResult
    public final void dispose() {
        switch (this.f15800a) {
            case 0:
                InterfaceC0765i0 interfaceC0765i0 = (InterfaceC0765i0) this.f15801b.getValue();
                if (interfaceC0765i0 != null) {
                    interfaceC0765i0.cancel(null);
                }
                break;
            default:
                MutableState mutableState = this.f15801b;
                P p6 = (P) mutableState.getValue();
                if (p6 != null) {
                    p6.c();
                }
                mutableState.setValue(null);
                break;
        }
    }
}
