.class public final Ls9/e;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static final a:Lf/o;

.field public static final b:Lf/o;


# direct methods
.method public static constructor <clinit>()V
    .registers 2

    new-instance v0, Lf/o;

    const-string v1, "UNDEFINED"

    invoke-direct {v0, v1}, Lf/o;-><init>(Ljava/lang/String;)V

    sput-object v0, Ls9/e;->a:Lf/o;

    new-instance v0, Lf/o;

    const-string v1, "REUSABLE_CLAIMED"

    invoke-direct {v0, v1}, Lf/o;-><init>(Ljava/lang/String;)V

    sput-object v0, Ls9/e;->b:Lf/o;

    return-void
.end method

.method public static final a(Lb9/d;Ljava/lang/Object;Lh9/b;)V
    .registers 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Lb9/d<",
            "-TT;>;",
            "Ljava/lang/Object;",
            "Lh9/b<",
            "-",
            "Ljava/lang/Throwable;",
            "Ly8/k;",
            ">;)V"
        }
    .end annotation

    instance-of v0, p0, Ls9/d;

    if-eqz v0, :cond_b6

    check-cast p0, Ls9/d;

    invoke-static {p1, p2}, Ln/a;->h(Ljava/lang/Object;Lh9/b;)Ljava/lang/Object;

    move-result-object p2

    iget-object v0, p0, Ls9/d;->u:Lq9/u;

    invoke-virtual {p0}, Ls9/d;->getContext()Lb9/f;

    move-result-object v1

    invoke-virtual {v0, v1}, Lq9/u;->Z(Lb9/f;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_26

    iput-object p2, p0, Ls9/d;->w:Ljava/lang/Object;

    iput v1, p0, Lq9/d0;->t:I

    iget-object p1, p0, Ls9/d;->u:Lq9/u;

    invoke-virtual {p0}, Ls9/d;->getContext()Lb9/f;

    move-result-object p2

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

    goto/16 :goto_b9

    :cond_26
    sget-object v0, Lq9/j1;->a:Lq9/j1;

    invoke-static {}, Lq9/j1;->a()Lq9/i0;

    move-result-object v0

    invoke-virtual {v0}, Lq9/i0;->e0()Z

    move-result v2

    if-eqz v2, :cond_3b

    iput-object p2, p0, Ls9/d;->w:Ljava/lang/Object;

    iput v1, p0, Lq9/d0;->t:I

    invoke-virtual {v0, p0}, Lq9/i0;->c0(Lq9/d0;)V

    goto/16 :goto_b9

    :cond_3b
    invoke-virtual {v0, v1}, Lq9/i0;->d0(Z)V

    const/4 v2, 0x0

    :try_start_3f
    invoke-virtual {p0}, Ls9/d;->getContext()Lb9/f;

    move-result-object v3

    sget-object v4, Lq9/t0$b;->r:Lq9/t0$b;

    invoke-interface {v3, v4}, Lb9/f;->get(Lb9/f$b;)Lb9/f$a;

    move-result-object v3

    check-cast v3, Lq9/t0;

    if-eqz v3, :cond_6b

    invoke-interface {v3}, Lq9/t0;->b()Z

    move-result v4

    if-nez v4, :cond_6b

    invoke-interface {v3}, Lq9/t0;->I()Ljava/util/concurrent/CancellationException;

    move-result-object v3

    .line 1
    instance-of v4, p2, Lq9/q;

    if-eqz v4, :cond_62

    check-cast p2, Lq9/q;

    iget-object p2, p2, Lq9/q;->b:Lh9/b;

    invoke-interface {p2, v3}, Lh9/b;->f(Ljava/lang/Object;)Ljava/lang/Object;

    .line 2
    :cond_62
    invoke-static {v3}, Le/h;->d(Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object p2

    invoke-interface {p0, p2}, Lb9/d;->g(Ljava/lang/Object;)V

    move p2, v1

    goto :goto_6c

    :cond_6b
    const/4 p2, 0x0

    :goto_6c
    if-nez p2, :cond_a2

    iget-object p2, p0, Ls9/d;->v:Lb9/d;

    iget-object v3, p0, Ls9/d;->x:Ljava/lang/Object;

    invoke-interface {p2}, Lb9/d;->getContext()Lb9/f;

    move-result-object v4

    invoke-static {v4, v3}, Ls9/p;->b(Lb9/f;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    sget-object v5, Ls9/p;->a:Lf/o;

    if-eq v3, v5, :cond_83

    invoke-static {p2, v4, v3}, Lq9/s;->a(Lb9/d;Lb9/f;Ljava/lang/Object;)Lq9/l1;

    move-result-object p2
    :try_end_82
    .catchall {:try_start_3f .. :try_end_82} :catchall_a9

    goto :goto_84

    :cond_83
    move-object p2, v2

    :goto_84
    :try_start_84
    iget-object v5, p0, Ls9/d;->v:Lb9/d;

    invoke-interface {v5, p1}, Lb9/d;->g(Ljava/lang/Object;)V
    :try_end_89
    .catchall {:try_start_84 .. :try_end_89} :catchall_95

    if-eqz p2, :cond_91

    :try_start_8b
    invoke-virtual {p2}, Lq9/l1;->S()Z

    move-result p1

    if-eqz p1, :cond_a2

    :cond_91
    invoke-static {v4, v3}, Ls9/p;->a(Lb9/f;Ljava/lang/Object;)V

    goto :goto_a2

    :catchall_95
    move-exception p1

    if-eqz p2, :cond_9e

    invoke-virtual {p2}, Lq9/l1;->S()Z

    move-result p2

    if-eqz p2, :cond_a1

    :cond_9e
    invoke-static {v4, v3}, Ls9/p;->a(Lb9/f;Ljava/lang/Object;)V

    :cond_a1
    throw p1

    :cond_a2
    :goto_a2
    invoke-virtual {v0}, Lq9/i0;->f0()Z

    move-result p1
    :try_end_a6
    .catchall {:try_start_8b .. :try_end_a6} :catchall_a9

    if-nez p1, :cond_a2

    goto :goto_ad

    :catchall_a9
    move-exception p1

    :try_start_aa
    invoke-virtual {p0, p1, v2}, Lq9/d0;->e(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
    :try_end_ad
    .catchall {:try_start_aa .. :try_end_ad} :catchall_b1

    :goto_ad
    invoke-virtual {v0, v1}, Lq9/i0;->a0(Z)V

    goto :goto_b9

    :catchall_b1
    move-exception p0

    invoke-virtual {v0, v1}, Lq9/i0;->a0(Z)V

    throw p0

    :cond_b6
    invoke-interface {p0, p1}, Lb9/d;->g(Ljava/lang/Object;)V

    :goto_b9
    return-void
.end method

.method public static synthetic b(Lb9/d;Ljava/lang/Object;Lh9/b;I)V
    .registers 4

    const/4 p2, 0x0

    invoke-static {p0, p1, p2}, Ls9/e;->a(Lb9/d;Ljava/lang/Object;Lh9/b;)V

    return-void
.end method
