package g.a;

/* JADX INFO: compiled from: DispatchedTask.kt */
/* JADX INFO: loaded from: classes.dex */
public abstract class v0<T> extends g.a.p2.h {

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

    public v0(int i2) {
        this.f4160g = i2;
    }

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

    public abstract f.w.d<T> c();

    public Throwable d(Object obj) {
        t tVar = obj instanceof t ? (t) obj : null;
        if (tVar != null) {
            return tVar.a;
        }
        return null;
    }

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

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

    public abstract Object h();

    /* 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: g.a.v0.run():void");
    }
}
