.class public final Lya/o;
.super Ljava/lang/Object;
.source ""


# direct methods
.method public static final a(Ljava/lang/Exception;Lb9/d;)Ljava/lang/Object;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Exception;",
            "Lb9/d<",
            "*>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    instance-of v0, p1, Lya/o$b;

    if-eqz v0, :cond_13

    move-object v0, p1

    check-cast v0, Lya/o$b;

    iget v1, v0, Lya/o$b;->v:I

    const/high16 v2, -0x80000000

    and-int v3, v1, v2

    if-eqz v3, :cond_13

    sub-int/2addr v1, v2

    iput v1, v0, Lya/o$b;->v:I

    goto :goto_18

    :cond_13
    new-instance v0, Lya/o$b;

    invoke-direct {v0, p1}, Lya/o$b;-><init>(Lb9/d;)V

    :goto_18
    iget-object p1, v0, Lya/o$b;->u:Ljava/lang/Object;

    sget-object v1, Lc9/a;->r:Lc9/a;

    iget v2, v0, Lya/o$b;->v:I

    const/4 v3, 0x1

    if-eqz v2, :cond_35

    if-ne v2, v3, :cond_2d

    iget-object p0, v0, Lya/o$b;->w:Ljava/lang/Object;

    check-cast p0, Ljava/lang/Exception;

    invoke-static {p1}, Le/h;->h(Ljava/lang/Object;)V

    sget-object p0, Ly8/k;->a:Ly8/k;

    return-object p0

    :cond_2d
    new-instance p0, Ljava/lang/IllegalStateException;

    const-string p1, "call to \'resume\' before \'invoke\' with coroutine"

    invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p0

    :cond_35
    invoke-static {p1}, Le/h;->h(Ljava/lang/Object;)V

    iput-object p0, v0, Lya/o$b;->w:Ljava/lang/Object;

    iput v3, v0, Lya/o$b;->v:I

    .line 1
    sget-object p1, Lq9/e0;->b:Lq9/u;

    .line 2
    invoke-interface {v0}, Lb9/d;->getContext()Lb9/f;

    move-result-object v2

    new-instance v3, Lya/o$a;

    invoke-direct {v3, v0, p0}, Lya/o$a;-><init>(Lb9/d;Ljava/lang/Exception;)V

    invoke-virtual {p1, v2, v3}, Lq9/u;->Y(Lb9/f;Ljava/lang/Runnable;)V

    const-string p0, "frame"

    .line 3
    invoke-static {v0, p0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    return-object v1
.end method
