package o;

import java.util.concurrent.CancellationException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.bK, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0802bK implements Q10, InterfaceC2937xn {
    public final InterfaceC2747vn l;
    public final SC m;
    public final C0168Gm n;

    /* renamed from: o, reason: collision with root package name */
    public C2058oa0 f455o;

    public C0802bK(InterfaceC2747vn interfaceC2747vn, SC sc) {
        this.l = interfaceC2747vn;
        this.m = sc;
        this.n = C80.e(interfaceC2747vn.M(interfaceC2747vn.m(C0503Tk.m) != null ? this : C0281Kv.l));
    }

    @Override // o.InterfaceC2747vn
    public final InterfaceC2747vn M(InterfaceC2747vn interfaceC2747vn) {
        return AbstractC2798wI.t(this, interfaceC2747vn);
    }

    @Override // o.InterfaceC2747vn
    public final Object R(Object obj, SC sc) {
        return sc.f(obj, this);
    }

    @Override // o.Q10
    public final void a() {
        C2058oa0 c2058oa0 = this.f455o;
        if (c2058oa0 != null) {
            CancellationException cancellationException = new CancellationException("Old job was still running!");
            cancellationException.initCause(null);
            c2058oa0.c(cancellationException);
        }
        this.f455o = AbstractC1692kh0.C(this.n, null, this.m, 3);
    }

    @Override // o.Q10
    public final void e() {
        C2058oa0 c2058oa0 = this.f455o;
        if (c2058oa0 != null) {
            c2058oa0.C(new FB(1));
        }
        this.f455o = null;
    }

    @Override // o.InterfaceC2937xn
    public final void g(Throwable th, InterfaceC2747vn interfaceC2747vn) throws Throwable {
        C0503Tk c0503Tk = (C0503Tk) interfaceC2747vn.m(C0503Tk.m);
        if (c0503Tk != null) {
            C80.Z(th, new C2590u5(4, c0503Tk, this));
        }
        InterfaceC2937xn interfaceC2937xn = (InterfaceC2937xn) this.l.m(C0669Zu.E);
        if (interfaceC2937xn == null) {
            throw th;
        }
        interfaceC2937xn.g(th, interfaceC2747vn);
    }

    @Override // o.InterfaceC2557tn
    public final InterfaceC2652un getKey() {
        return C0669Zu.E;
    }

    @Override // o.Q10
    public final void h() {
        C2058oa0 c2058oa0 = this.f455o;
        if (c2058oa0 != null) {
            c2058oa0.C(new FB(1));
        }
        this.f455o = null;
    }

    @Override // o.InterfaceC2747vn
    public final InterfaceC2747vn l(InterfaceC2652un interfaceC2652un) {
        return IJ.y(this, interfaceC2652un);
    }

    @Override // o.InterfaceC2747vn
    public final InterfaceC2557tn m(InterfaceC2652un interfaceC2652un) {
        return IJ.m(this, interfaceC2652un);
    }
}
