package kotlinx.coroutines;

/* JADX INFO: compiled from: DispatchedTask.kt */
/* JADX INFO: loaded from: classes.dex */
public abstract class z0<T> extends kotlinx.coroutines.q2.i {

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f1175f;

    public z0(int i2) {
        this.f1175f = i2;
    }

    public void a(Object obj, Throwable th) {
    }

    public abstract h.u.d<T> b();

    public Throwable d(Object obj) {
        b0 b0Var = obj instanceof b0 ? (b0) obj : null;
        if (b0Var == null) {
            return null;
        }
        return b0Var.a;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public <T> T f(Object obj) {
        return obj;
    }

    public final void i(Throwable th, Throwable th2) {
        if (th == null && th2 == null) {
            return;
        }
        if (th != null && th2 != null) {
            h.b.a(th, th2);
        }
        if (th == null) {
            th = th2;
        }
        h.x.d.k.b(th);
        k0.a(b().getContext(), new q0("Fatal exception in coroutines machinery for " + this + ". Please read KDoc to 'handleFatalException' method and report this incident to maintainers", th));
    }

    public abstract Object j();

    /* JADX WARN: Removed duplicated region for block: B:41:0x00a9 A[Catch: all -> 0x00d6, DONT_GENERATE, TRY_LEAVE, TryCatch #1 {all -> 0x00d6, blocks: (B:13:0x0019, B:15:0x0030, B:39:0x00a3, B:41:0x00a9, B:49:0x00cc, B:52:0x00d5, B:51:0x00d2, B:18:0x0036, B:20:0x0044, B:22:0x004c, B:25:0x0058, B:27:0x005e, B:29:0x006d, B:32:0x0072, B:33:0x0079, B:37:0x009f, B:35:0x0086, B:36:0x0093), top: B:62:0x0019, inners: #3 }] */
    @Override // java.lang.Runnable
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void run() {
        /*
            Method dump skipped, instruction units count: 244
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: kotlinx.coroutines.z0.run():void");
    }
}
