package o;

import android.os.CancellationSignal;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.zk, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C3121zk implements CancellationSignal.OnCancelListener {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;

    public /* synthetic */ C3121zk(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override // android.os.CancellationSignal.OnCancelListener
    public final void onCancel() {
        switch (this.a) {
            case 0:
                ((C2058oa0) this.b).c(null);
                break;
            default:
                C2066oe0 c2066oe0 = (C2066oe0) this.b;
                if (c2066oe0 != null) {
                    MK mk = c2066oe0.d;
                    if (mk != null) {
                        mk.e(Ue0.b);
                    }
                    MK mk2 = c2066oe0.d;
                    if (mk2 != null) {
                        mk2.f(Ue0.b);
                        break;
                    }
                }
                break;
        }
    }
}
