.class public Lq9/y0;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lq9/t0;
.implements Lq9/l;
.implements Lq9/f1;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lq9/y0$b;,
        Lq9/y0$a;
    }
.end annotation


# static fields
.field public static final synthetic r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;


# instance fields
.field private volatile synthetic _parentHandle:Ljava/lang/Object;

.field private volatile synthetic _state:Ljava/lang/Object;


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

    const-class v0, Lq9/y0;

    const-class v1, Ljava/lang/Object;

    const-string v2, "_state"

    invoke-static {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    move-result-object v0

    sput-object v0, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    return-void
.end method

.method public constructor <init>(Z)V
    .registers 2

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

    if-eqz p1, :cond_8

    sget-object p1, Lq9/z0;->g:Lq9/h0;

    goto :goto_a

    :cond_8
    sget-object p1, Lq9/z0;->f:Lq9/h0;

    :goto_a
    iput-object p1, p0, Lq9/y0;->_state:Ljava/lang/Object;

    const/4 p1, 0x0

    iput-object p1, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public A()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public final B(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 6

    :goto_0
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {p0, v0, p1}, Lq9/y0;->O(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 1
    sget-object v1, Lq9/z0;->a:Lf/o;

    if-ne v0, v1, :cond_39

    .line 2
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Job "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, " is already complete or completing, but is being completed with "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 3
    instance-of v2, p1, Lq9/p;

    const/4 v3, 0x0

    if-eqz v2, :cond_2f

    check-cast p1, Lq9/p;

    goto :goto_30

    :cond_2f
    move-object p1, v3

    :goto_30
    if-nez p1, :cond_33

    goto :goto_35

    :cond_33
    iget-object v3, p1, Lq9/p;->a:Ljava/lang/Throwable;

    .line 4
    :goto_35
    invoke-direct {v0, v1, v3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v0

    .line 5
    :cond_39
    sget-object v1, Lq9/z0;->c:Lf/o;

    if-ne v0, v1, :cond_3e

    goto :goto_0

    :cond_3e
    return-object v0
.end method

.method public C()Ljava/lang/String;
    .registers 2

    .line 1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final D(Ls9/h;)Lq9/k;
    .registers 3

    :goto_0
    invoke-virtual {p1}, Ls9/h;->k()Z

    move-result v0

    if-eqz v0, :cond_b

    invoke-virtual {p1}, Ls9/h;->j()Ls9/h;

    move-result-object p1

    goto :goto_0

    :cond_b
    :goto_b
    invoke-virtual {p1}, Ls9/h;->i()Ls9/h;

    move-result-object p1

    invoke-virtual {p1}, Ls9/h;->k()Z

    move-result v0

    if-eqz v0, :cond_16

    goto :goto_b

    :cond_16
    instance-of v0, p1, Lq9/k;

    if-eqz v0, :cond_1d

    check-cast p1, Lq9/k;

    return-object p1

    :cond_1d
    instance-of v0, p1, Lq9/c1;

    if-eqz v0, :cond_b

    const/4 p1, 0x0

    return-object p1
.end method

.method public final E(Lq9/c1;Ljava/lang/Throwable;)V
    .registers 10

    invoke-virtual {p1}, Ls9/h;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ls9/h;

    const/4 v1, 0x0

    move-object v2, v1

    :goto_8
    invoke-static {v0, p1}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_47

    instance-of v3, v0, Lq9/v0;

    if-eqz v3, :cond_42

    move-object v3, v0

    check-cast v3, Lq9/x0;

    :try_start_15
    invoke-virtual {v3, p2}, Lq9/r;->m(Ljava/lang/Throwable;)V
    :try_end_18
    .catchall {:try_start_15 .. :try_end_18} :catchall_19

    goto :goto_42

    :catchall_19
    move-exception v4

    if-nez v2, :cond_1e

    move-object v5, v1

    goto :goto_22

    :cond_1e
    invoke-static {v2, v4}, Lp/f;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V

    move-object v5, v2

    :goto_22
    if-nez v5, :cond_42

    new-instance v2, Lg1/c;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Exception in completion handler "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v3, " for "

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3, v4}, Lg1/c;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_42
    :goto_42
    invoke-virtual {v0}, Ls9/h;->i()Ls9/h;

    move-result-object v0

    goto :goto_8

    :cond_47
    if-nez v2, :cond_4a

    goto :goto_4d

    :cond_4a
    invoke-virtual {p0, v2}, Lq9/y0;->y(Ljava/lang/Throwable;)V

    :goto_4d
    invoke-virtual {p0, p2}, Lq9/y0;->h(Ljava/lang/Throwable;)Z

    return-void
.end method

.method public F(Ljava/lang/Object;)V
    .registers 2

    return-void
.end method

.method public G()V
    .registers 1

    return-void
.end method

.method public H()Ljava/util/concurrent/CancellationException;
    .registers 5

    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lq9/y0$b;

    const/4 v2, 0x0

    if-eqz v1, :cond_11

    move-object v1, v0

    check-cast v1, Lq9/y0$b;

    invoke-virtual {v1}, Lq9/y0$b;->e()Ljava/lang/Throwable;

    move-result-object v1

    goto :goto_20

    :cond_11
    instance-of v1, v0, Lq9/p;

    if-eqz v1, :cond_1b

    move-object v1, v0

    check-cast v1, Lq9/p;

    iget-object v1, v1, Lq9/p;->a:Ljava/lang/Throwable;

    goto :goto_20

    :cond_1b
    instance-of v1, v0, Lq9/p0;

    if-nez v1, :cond_39

    move-object v1, v2

    :goto_20
    instance-of v3, v1, Ljava/util/concurrent/CancellationException;

    if-eqz v3, :cond_27

    move-object v2, v1

    check-cast v2, Ljava/util/concurrent/CancellationException;

    :cond_27
    if-nez v2, :cond_38

    new-instance v2, Lq9/u0;

    invoke-virtual {p0, v0}, Lq9/y0;->M(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v3, "Parent job is "

    invoke-static {v3, v0}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0, v1, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    :cond_38
    return-object v2

    :cond_39
    const-string v1, "Cannot be cancelling child in this state: "

    invoke-static {v1, v0}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

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

    throw v1
.end method

.method public final I()Ljava/util/concurrent/CancellationException;
    .registers 5

    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lq9/y0$b;

    const-string v2, "Job is still new or active: "

    if-eqz v1, :cond_33

    check-cast v0, Lq9/y0$b;

    invoke-virtual {v0}, Lq9/y0$b;->e()Ljava/lang/Throwable;

    move-result-object v0

    if-eqz v0, :cond_25

    .line 1
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    const-string v2, " is cancelling"

    .line 2
    invoke-static {v1, v2}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lq9/y0;->N(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;

    move-result-object v0

    goto :goto_58

    :cond_25
    invoke-static {v2, p0}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

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

    throw v1

    :cond_33
    instance-of v1, v0, Lq9/p0;

    if-nez v1, :cond_59

    instance-of v1, v0, Lq9/p;

    const/4 v2, 0x0

    if-eqz v1, :cond_45

    check-cast v0, Lq9/p;

    iget-object v0, v0, Lq9/p;->a:Ljava/lang/Throwable;

    .line 3
    invoke-virtual {p0, v0, v2}, Lq9/y0;->N(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;

    move-result-object v0

    goto :goto_58

    .line 4
    :cond_45
    new-instance v0, Lq9/u0;

    .line 5
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    const-string v3, " has completed normally"

    .line 6
    invoke-static {v1, v3}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1, v2, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    :goto_58
    return-object v0

    :cond_59
    invoke-static {v2, p0}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

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

    throw v1
.end method

.method public final J(Lq9/x0;)V
    .registers 4

    new-instance v0, Lq9/c1;

    invoke-direct {v0}, Lq9/c1;-><init>()V

    .line 1
    sget-object v1, Ls9/h;->s:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->lazySet(Ljava/lang/Object;Ljava/lang/Object;)V

    sget-object v1, Ls9/h;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, v0, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->lazySet(Ljava/lang/Object;Ljava/lang/Object;)V

    :cond_f
    invoke-virtual {p1}, Ls9/h;->h()Ljava/lang/Object;

    move-result-object v1

    if-eq v1, p1, :cond_16

    goto :goto_21

    :cond_16
    sget-object v1, Ls9/h;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, p1, p1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_f

    invoke-virtual {v0, p1}, Ls9/h;->g(Ls9/h;)V

    .line 2
    :goto_21
    invoke-virtual {p1}, Ls9/h;->i()Ls9/h;

    move-result-object v0

    sget-object v1, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, p0, p1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    return-void
.end method

.method public final K(Lq9/l;)Lq9/j;
    .registers 8

    new-instance v3, Lq9/k;

    invoke-direct {v3, p1}, Lq9/k;-><init>(Lq9/l;)V

    const/4 v1, 0x1

    const/4 v2, 0x0

    const/4 v4, 0x2

    const/4 v5, 0x0

    move-object v0, p0

    invoke-static/range {v0 .. v5}, Lq9/t0$a;->a(Lq9/t0;ZZLh9/b;ILjava/lang/Object;)Lq9/f0;

    move-result-object p1

    check-cast p1, Lq9/j;

    return-object p1
.end method

.method public final L(Lq9/f1;)V
    .registers 2

    invoke-virtual {p0, p1}, Lq9/y0;->d(Ljava/lang/Object;)Z

    return-void
.end method

.method public final M(Ljava/lang/Object;)Ljava/lang/String;
    .registers 4

    instance-of v0, p1, Lq9/y0$b;

    const-string v1, "Active"

    if-eqz v0, :cond_1a

    check-cast p1, Lq9/y0$b;

    invoke-virtual {p1}, Lq9/y0$b;->f()Z

    move-result v0

    if-eqz v0, :cond_11

    const-string v1, "Cancelling"

    goto :goto_33

    :cond_11
    invoke-virtual {p1}, Lq9/y0$b;->g()Z

    move-result p1

    if-eqz p1, :cond_33

    const-string v1, "Completing"

    goto :goto_33

    :cond_1a
    instance-of v0, p1, Lq9/p0;

    if-eqz v0, :cond_2a

    check-cast p1, Lq9/p0;

    invoke-interface {p1}, Lq9/p0;->b()Z

    move-result p1

    if-eqz p1, :cond_27

    goto :goto_33

    :cond_27
    const-string v1, "New"

    goto :goto_33

    :cond_2a
    instance-of p1, p1, Lq9/p;

    if-eqz p1, :cond_31

    const-string v1, "Cancelled"

    goto :goto_33

    :cond_31
    const-string v1, "Completed"

    :cond_33
    :goto_33
    return-object v1
.end method

.method public final N(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/util/concurrent/CancellationException;
    .registers 4

    instance-of v0, p1, Ljava/util/concurrent/CancellationException;

    if-eqz v0, :cond_8

    move-object v0, p1

    check-cast v0, Ljava/util/concurrent/CancellationException;

    goto :goto_9

    :cond_8
    const/4 v0, 0x0

    :goto_9
    if-nez v0, :cond_16

    new-instance v0, Lq9/u0;

    if-nez p2, :cond_13

    .line 1
    invoke-virtual {p0}, Lq9/y0;->i()Ljava/lang/String;

    move-result-object p2

    .line 2
    :cond_13
    invoke-direct {v0, p2, p1, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    :cond_16
    return-object v0
.end method

.method public final O(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    .registers 9

    instance-of v0, p1, Lq9/p0;

    if-nez v0, :cond_7

    .line 1
    sget-object p1, Lq9/z0;->a:Lf/o;

    return-object p1

    .line 2
    :cond_7
    instance-of v0, p1, Lq9/h0;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez v0, :cond_11

    instance-of v0, p1, Lq9/x0;

    if-eqz v0, :cond_3f

    :cond_11
    instance-of v0, p1, Lq9/k;

    if-nez v0, :cond_3f

    instance-of v0, p2, Lq9/p;

    if-nez v0, :cond_3f

    check-cast p1, Lq9/p0;

    .line 3
    sget-object v0, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    .line 4
    instance-of v3, p2, Lq9/p0;

    if-eqz v3, :cond_2a

    new-instance v3, Lq9/q0;

    move-object v4, p2

    check-cast v4, Lq9/p0;

    invoke-direct {v3, v4}, Lq9/q0;-><init>(Lq9/p0;)V

    goto :goto_2b

    :cond_2a
    move-object v3, p2

    .line 5
    :goto_2b
    invoke-virtual {v0, p0, p1, v3}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_33

    move v1, v2

    goto :goto_39

    :cond_33
    invoke-virtual {p0, p2}, Lq9/y0;->F(Ljava/lang/Object;)V

    invoke-virtual {p0, p1, p2}, Lq9/y0;->l(Lq9/p0;Ljava/lang/Object;)V

    :goto_39
    if-eqz v1, :cond_3c

    return-object p2

    .line 6
    :cond_3c
    sget-object p1, Lq9/z0;->c:Lf/o;

    return-object p1

    .line 7
    :cond_3f
    check-cast p1, Lq9/p0;

    .line 8
    invoke-virtual {p0, p1}, Lq9/y0;->u(Lq9/p0;)Lq9/c1;

    move-result-object v0

    if-nez v0, :cond_4b

    .line 9
    sget-object p1, Lq9/z0;->c:Lf/o;

    goto/16 :goto_c4

    .line 10
    :cond_4b
    instance-of v3, p1, Lq9/y0$b;

    const/4 v4, 0x0

    if-eqz v3, :cond_54

    move-object v3, p1

    check-cast v3, Lq9/y0$b;

    goto :goto_55

    :cond_54
    move-object v3, v4

    :goto_55
    if-nez v3, :cond_5c

    new-instance v3, Lq9/y0$b;

    invoke-direct {v3, v0, v2, v4}, Lq9/y0$b;-><init>(Lq9/c1;ZLjava/lang/Throwable;)V

    :cond_5c
    monitor-enter v3

    :try_start_5d
    invoke-virtual {v3}, Lq9/y0$b;->g()Z

    move-result v2

    if-eqz v2, :cond_68

    .line 11
    sget-object p1, Lq9/z0;->a:Lf/o;
    :try_end_65
    .catchall {:try_start_5d .. :try_end_65} :catchall_c5

    .line 12
    :goto_65
    monitor-exit v3

    goto/16 :goto_c4

    :cond_68
    :try_start_68
    invoke-virtual {v3, v1}, Lq9/y0$b;->j(Z)V

    if-eq v3, p1, :cond_78

    sget-object v2, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v2, p0, p1, v3}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_78

    .line 13
    sget-object p1, Lq9/z0;->c:Lf/o;

    goto :goto_65

    .line 14
    :cond_78
    invoke-virtual {v3}, Lq9/y0$b;->f()Z

    move-result v2

    instance-of v5, p2, Lq9/p;

    if-eqz v5, :cond_84

    move-object v5, p2

    check-cast v5, Lq9/p;

    goto :goto_85

    :cond_84
    move-object v5, v4

    :goto_85
    if-nez v5, :cond_88

    goto :goto_8d

    :cond_88
    iget-object v5, v5, Lq9/p;->a:Ljava/lang/Throwable;

    invoke-virtual {v3, v5}, Lq9/y0$b;->a(Ljava/lang/Throwable;)V

    :goto_8d
    invoke-virtual {v3}, Lq9/y0$b;->e()Ljava/lang/Throwable;

    move-result-object v5
    :try_end_91
    .catchall {:try_start_68 .. :try_end_91} :catchall_c5

    xor-int/2addr v1, v2

    if-eqz v1, :cond_95

    goto :goto_96

    :cond_95
    move-object v5, v4

    :goto_96
    monitor-exit v3

    if-nez v5, :cond_9a

    goto :goto_9d

    :cond_9a
    invoke-virtual {p0, v0, v5}, Lq9/y0;->E(Lq9/c1;Ljava/lang/Throwable;)V

    .line 15
    :goto_9d
    instance-of v0, p1, Lq9/k;

    if-eqz v0, :cond_a5

    move-object v0, p1

    check-cast v0, Lq9/k;

    goto :goto_a6

    :cond_a5
    move-object v0, v4

    :goto_a6
    if-nez v0, :cond_b4

    invoke-interface {p1}, Lq9/p0;->d()Lq9/c1;

    move-result-object p1

    if-nez p1, :cond_af

    goto :goto_b5

    :cond_af
    invoke-virtual {p0, p1}, Lq9/y0;->D(Ls9/h;)Lq9/k;

    move-result-object v4

    goto :goto_b5

    :cond_b4
    move-object v4, v0

    :goto_b5
    if-eqz v4, :cond_c0

    .line 16
    invoke-virtual {p0, v3, v4, p2}, Lq9/y0;->Q(Lq9/y0$b;Lq9/k;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_c0

    sget-object p1, Lq9/z0;->b:Lf/o;

    goto :goto_c4

    :cond_c0
    invoke-virtual {p0, v3, p2}, Lq9/y0;->r(Lq9/y0$b;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    :goto_c4
    return-object p1

    :catchall_c5
    move-exception p1

    monitor-exit v3

    throw p1
.end method

.method public P(Ljava/util/concurrent/CancellationException;)V
    .registers 4

    if-nez p1, :cond_d

    const/4 p1, 0x0

    new-instance v0, Lq9/u0;

    .line 1
    invoke-virtual {p0}, Lq9/y0;->i()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-direct {v0, v1, p1, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    move-object p1, v0

    .line 3
    :cond_d
    invoke-virtual {p0, p1}, Lq9/y0;->d(Ljava/lang/Object;)Z

    return-void
.end method

.method public final Q(Lq9/y0$b;Lq9/k;Ljava/lang/Object;)Z
    .registers 10

    :cond_0
    iget-object v0, p2, Lq9/k;->v:Lq9/l;

    const/4 v1, 0x0

    const/4 v2, 0x0

    new-instance v3, Lq9/y0$a;

    invoke-direct {v3, p0, p1, p2, p3}, Lq9/y0$a;-><init>(Lq9/y0;Lq9/y0$b;Lq9/k;Ljava/lang/Object;)V

    const/4 v4, 0x1

    const/4 v5, 0x0

    invoke-static/range {v0 .. v5}, Lq9/t0$a;->a(Lq9/t0;ZZLh9/b;ILjava/lang/Object;)Lq9/f0;

    move-result-object v0

    sget-object v1, Lq9/d1;->r:Lq9/d1;

    if-eq v0, v1, :cond_15

    const/4 p1, 0x1

    return p1

    :cond_15
    invoke-virtual {p0, p2}, Lq9/y0;->D(Ls9/h;)Lq9/k;

    move-result-object p2

    if-nez p2, :cond_0

    const/4 p1, 0x0

    return p1
.end method

.method public final a(Ljava/lang/Object;Lq9/c1;Lq9/x0;)Z
    .registers 9

    new-instance v0, Lq9/y0$c;

    invoke-direct {v0, p3, p0, p1}, Lq9/y0$c;-><init>(Ls9/h;Lq9/y0;Ljava/lang/Object;)V

    :goto_5
    invoke-virtual {p2}, Ls9/h;->j()Ls9/h;

    move-result-object p1

    .line 1
    sget-object v1, Ls9/h;->s:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, p3, p1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->lazySet(Ljava/lang/Object;Ljava/lang/Object;)V

    sget-object v1, Ls9/h;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v1, p3, p2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->lazySet(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object p2, v0, Ls9/h$a;->c:Ls9/h;

    invoke-virtual {v1, p1, p2, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-nez v1, :cond_20

    move p1, v3

    goto :goto_29

    :cond_20
    invoke-virtual {v0, p1}, Ls9/b;->a(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    if-nez p1, :cond_28

    move p1, v4

    goto :goto_29

    :cond_28
    move p1, v2

    :goto_29
    if-eq p1, v4, :cond_2e

    if-eq p1, v2, :cond_2f

    goto :goto_5

    :cond_2e
    move v3, v4

    :cond_2f
    return v3
.end method

.method public b()Z
    .registers 3

    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lq9/p0;

    if-eqz v1, :cond_12

    check-cast v0, Lq9/p0;

    invoke-interface {v0}, Lq9/p0;->b()Z

    move-result v0

    if-eqz v0, :cond_12

    const/4 v0, 0x1

    goto :goto_13

    :cond_12
    const/4 v0, 0x0

    :goto_13
    return v0
.end method

.method public c(Ljava/lang/Object;)V
    .registers 2

    return-void
.end method

.method public final d(Ljava/lang/Object;)Z
    .registers 11

    .line 1
    sget-object v0, Lq9/z0;->a:Lf/o;

    .line 2
    invoke-virtual {p0}, Lq9/y0;->t()Z

    move-result v1

    const/4 v2, 0x2

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-eqz v1, :cond_3a

    .line 3
    :cond_b
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lq9/p0;

    if-eqz v1, :cond_33

    instance-of v1, v0, Lq9/y0$b;

    if-eqz v1, :cond_21

    move-object v1, v0

    check-cast v1, Lq9/y0$b;

    invoke-virtual {v1}, Lq9/y0$b;->g()Z

    move-result v1

    if-eqz v1, :cond_21

    goto :goto_33

    :cond_21
    new-instance v1, Lq9/p;

    invoke-virtual {p0, p1}, Lq9/y0;->n(Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object v5

    invoke-direct {v1, v5, v3, v2}, Lq9/p;-><init>(Ljava/lang/Throwable;ZI)V

    invoke-virtual {p0, v0, v1}, Lq9/y0;->O(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    .line 4
    sget-object v1, Lq9/z0;->c:Lf/o;

    if-eq v0, v1, :cond_b

    goto :goto_35

    .line 5
    :cond_33
    :goto_33
    sget-object v0, Lq9/z0;->a:Lf/o;

    .line 6
    :goto_35
    sget-object v1, Lq9/z0;->b:Lf/o;

    if-ne v0, v1, :cond_3a

    return v4

    .line 7
    :cond_3a
    sget-object v1, Lq9/z0;->a:Lf/o;

    if-ne v0, v1, :cond_e3

    const/4 v0, 0x0

    move-object v1, v0

    .line 8
    :cond_40
    :goto_40
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v5

    instance-of v6, v5, Lq9/y0$b;

    if-eqz v6, :cond_89

    monitor-enter v5

    :try_start_49
    move-object v2, v5

    check-cast v2, Lq9/y0$b;

    invoke-virtual {v2}, Lq9/y0$b;->h()Z

    move-result v2

    if-eqz v2, :cond_57

    .line 9
    sget-object p1, Lq9/z0;->d:Lf/o;
    :try_end_54
    .catchall {:try_start_49 .. :try_end_54} :catchall_86

    .line 10
    monitor-exit v5

    goto/16 :goto_e2

    :cond_57
    :try_start_57
    move-object v2, v5

    check-cast v2, Lq9/y0$b;

    invoke-virtual {v2}, Lq9/y0$b;->f()Z

    move-result v2

    if-nez p1, :cond_62

    if-nez v2, :cond_6e

    :cond_62
    if-nez v1, :cond_68

    invoke-virtual {p0, p1}, Lq9/y0;->n(Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object v1

    :cond_68
    move-object p1, v5

    check-cast p1, Lq9/y0$b;

    invoke-virtual {p1, v1}, Lq9/y0$b;->a(Ljava/lang/Throwable;)V

    :cond_6e
    move-object p1, v5

    check-cast p1, Lq9/y0$b;

    invoke-virtual {p1}, Lq9/y0$b;->e()Ljava/lang/Throwable;

    move-result-object p1
    :try_end_75
    .catchall {:try_start_57 .. :try_end_75} :catchall_86

    xor-int/lit8 v1, v2, 0x1

    if-eqz v1, :cond_7a

    move-object v0, p1

    :cond_7a
    monitor-exit v5

    if-nez v0, :cond_7e

    goto :goto_b8

    :cond_7e
    check-cast v5, Lq9/y0$b;

    .line 11
    iget-object p1, v5, Lq9/y0$b;->r:Lq9/c1;

    .line 12
    invoke-virtual {p0, p1, v0}, Lq9/y0;->E(Lq9/c1;Ljava/lang/Throwable;)V

    goto :goto_b8

    :catchall_86
    move-exception p1

    monitor-exit v5

    throw p1

    :cond_89
    instance-of v6, v5, Lq9/p0;

    if-eqz v6, :cond_e0

    if-nez v1, :cond_93

    invoke-virtual {p0, p1}, Lq9/y0;->n(Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object v1

    :cond_93
    move-object v6, v5

    check-cast v6, Lq9/p0;

    invoke-interface {v6}, Lq9/p0;->b()Z

    move-result v7

    if-eqz v7, :cond_bb

    .line 13
    invoke-virtual {p0, v6}, Lq9/y0;->u(Lq9/p0;)Lq9/c1;

    move-result-object v5

    if-nez v5, :cond_a3

    goto :goto_b0

    :cond_a3
    new-instance v7, Lq9/y0$b;

    invoke-direct {v7, v5, v3, v1}, Lq9/y0$b;-><init>(Lq9/c1;ZLjava/lang/Throwable;)V

    sget-object v8, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v8, p0, v6, v7}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_b2

    :goto_b0
    move v5, v3

    goto :goto_b6

    :cond_b2
    invoke-virtual {p0, v5, v1}, Lq9/y0;->E(Lq9/c1;Ljava/lang/Throwable;)V

    move v5, v4

    :goto_b6
    if-eqz v5, :cond_40

    .line 14
    :goto_b8
    sget-object p1, Lq9/z0;->a:Lf/o;

    goto :goto_e2

    .line 15
    :cond_bb
    new-instance v6, Lq9/p;

    invoke-direct {v6, v1, v3, v2}, Lq9/p;-><init>(Ljava/lang/Throwable;ZI)V

    invoke-virtual {p0, v5, v6}, Lq9/y0;->O(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    .line 16
    sget-object v7, Lq9/z0;->a:Lf/o;

    if-eq v6, v7, :cond_d0

    .line 17
    sget-object v5, Lq9/z0;->c:Lf/o;

    if-ne v6, v5, :cond_ce

    goto/16 :goto_40

    :cond_ce
    move-object v0, v6

    goto :goto_e3

    :cond_d0
    const-string p1, "Cannot happen in "

    .line 18
    invoke-static {p1, v5}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

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

    throw v0

    .line 19
    :cond_e0
    sget-object p1, Lq9/z0;->d:Lf/o;

    :goto_e2
    move-object v0, p1

    .line 20
    :cond_e3
    :goto_e3
    sget-object p1, Lq9/z0;->a:Lf/o;

    if-ne v0, p1, :cond_e9

    :goto_e7
    move v3, v4

    goto :goto_f7

    .line 21
    :cond_e9
    sget-object p1, Lq9/z0;->b:Lf/o;

    if-ne v0, p1, :cond_ee

    goto :goto_e7

    .line 22
    :cond_ee
    sget-object p1, Lq9/z0;->d:Lf/o;

    if-ne v0, p1, :cond_f3

    goto :goto_f7

    .line 23
    :cond_f3
    invoke-virtual {p0, v0}, Lq9/y0;->c(Ljava/lang/Object;)V

    goto :goto_e7

    :goto_f7
    return v3
.end method

.method public fold(Ljava/lang/Object;Lh9/c;)Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<R:",
            "Ljava/lang/Object;",
            ">(TR;",
            "Lh9/c<",
            "-TR;-",
            "Lb9/f$a;",
            "+TR;>;)TR;"
        }
    .end annotation

    .line 1
    invoke-static {p0, p1, p2}, Lb9/f$a$a;->a(Lb9/f$a;Ljava/lang/Object;Lh9/c;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public get(Lb9/f$b;)Lb9/f$a;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<E::",
            "Lb9/f$a;",
            ">(",
            "Lb9/f$b<",
            "TE;>;)TE;"
        }
    .end annotation

    .line 1
    invoke-static {p0, p1}, Lb9/f$a$a;->b(Lb9/f$a;Lb9/f$b;)Lb9/f$a;

    move-result-object p1

    return-object p1
.end method

.method public final getKey()Lb9/f$b;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lb9/f$b<",
            "*>;"
        }
    .end annotation

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

    return-object v0
.end method

.method public final h(Ljava/lang/Throwable;)Z
    .registers 6

    invoke-virtual {p0}, Lq9/y0;->A()Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_8

    return v1

    :cond_8
    instance-of v0, p1, Ljava/util/concurrent/CancellationException;

    .line 1
    iget-object v2, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    check-cast v2, Lq9/j;

    if-eqz v2, :cond_20

    .line 2
    sget-object v3, Lq9/d1;->r:Lq9/d1;

    if-ne v2, v3, :cond_15

    goto :goto_20

    :cond_15
    invoke-interface {v2, p1}, Lq9/j;->e(Ljava/lang/Throwable;)Z

    move-result p1

    if-nez p1, :cond_1f

    if-eqz v0, :cond_1e

    goto :goto_1f

    :cond_1e
    const/4 v1, 0x0

    :cond_1f
    :goto_1f
    return v1

    :cond_20
    :goto_20
    return v0
.end method

.method public i()Ljava/lang/String;
    .registers 2

    const-string v0, "Job was cancelled"

    return-object v0
.end method

.method public j(Ljava/lang/Throwable;)Z
    .registers 4

    instance-of v0, p1, Ljava/util/concurrent/CancellationException;

    const/4 v1, 0x1

    if-eqz v0, :cond_6

    return v1

    :cond_6
    invoke-virtual {p0, p1}, Lq9/y0;->d(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_13

    invoke-virtual {p0}, Lq9/y0;->s()Z

    move-result p1

    if-eqz p1, :cond_13

    goto :goto_14

    :cond_13
    const/4 v1, 0x0

    :goto_14
    return v1
.end method

.method public final l(Lq9/p0;Ljava/lang/Object;)V
    .registers 11

    .line 1
    iget-object v0, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    check-cast v0, Lq9/j;

    if-nez v0, :cond_7

    goto :goto_e

    .line 2
    :cond_7
    invoke-interface {v0}, Lq9/f0;->c()V

    sget-object v0, Lq9/d1;->r:Lq9/d1;

    .line 3
    iput-object v0, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    .line 4
    :goto_e
    instance-of v0, p2, Lq9/p;

    const/4 v1, 0x0

    if-eqz v0, :cond_16

    check-cast p2, Lq9/p;

    goto :goto_17

    :cond_16
    move-object p2, v1

    :goto_17
    if-nez p2, :cond_1b

    move-object p2, v1

    goto :goto_1d

    :cond_1b
    iget-object p2, p2, Lq9/p;->a:Ljava/lang/Throwable;

    :goto_1d
    instance-of v0, p1, Lq9/x0;

    const-string v2, " for "

    const-string v3, "Exception in completion handler "

    if-eqz v0, :cond_4c

    :try_start_25
    move-object v0, p1

    check-cast v0, Lq9/x0;

    invoke-virtual {v0, p2}, Lq9/r;->m(Ljava/lang/Throwable;)V
    :try_end_2b
    .catchall {:try_start_25 .. :try_end_2b} :catchall_2d

    goto/16 :goto_9b

    :catchall_2d
    move-exception p2

    new-instance v0, Lg1/c;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1, p2}, Lg1/c;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-virtual {p0, v0}, Lq9/y0;->y(Ljava/lang/Throwable;)V

    goto :goto_9b

    :cond_4c
    invoke-interface {p1}, Lq9/p0;->d()Lq9/c1;

    move-result-object p1

    if-nez p1, :cond_53

    goto :goto_9b

    .line 5
    :cond_53
    invoke-virtual {p1}, Ls9/h;->h()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ls9/h;

    move-object v4, v1

    :goto_5a
    invoke-static {v0, p1}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_95

    instance-of v5, v0, Lq9/x0;

    if-eqz v5, :cond_90

    move-object v5, v0

    check-cast v5, Lq9/x0;

    :try_start_67
    invoke-virtual {v5, p2}, Lq9/r;->m(Ljava/lang/Throwable;)V
    :try_end_6a
    .catchall {:try_start_67 .. :try_end_6a} :catchall_6b

    goto :goto_90

    :catchall_6b
    move-exception v6

    if-nez v4, :cond_70

    move-object v7, v1

    goto :goto_74

    :cond_70
    invoke-static {v4, v6}, Lp/f;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V

    move-object v7, v4

    :goto_74
    if-nez v7, :cond_90

    new-instance v4, Lg1/c;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5, v6}, Lg1/c;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_90
    :goto_90
    invoke-virtual {v0}, Ls9/h;->i()Ls9/h;

    move-result-object v0

    goto :goto_5a

    :cond_95
    if-nez v4, :cond_98

    goto :goto_9b

    :cond_98
    invoke-virtual {p0, v4}, Lq9/y0;->y(Ljava/lang/Throwable;)V

    :goto_9b
    return-void
.end method

.method public minusKey(Lb9/f$b;)Lb9/f;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lb9/f$b<",
            "*>;)",
            "Lb9/f;"
        }
    .end annotation

    .line 1
    invoke-static {p0, p1}, Lb9/f$a$a;->c(Lb9/f$a;Lb9/f$b;)Lb9/f;

    move-result-object p1

    return-object p1
.end method

.method public final n(Ljava/lang/Object;)Ljava/lang/Throwable;
    .registers 4

    if-nez p1, :cond_4

    const/4 v0, 0x1

    goto :goto_6

    :cond_4
    instance-of v0, p1, Ljava/lang/Throwable;

    :goto_6
    if-eqz v0, :cond_18

    check-cast p1, Ljava/lang/Throwable;

    if-nez p1, :cond_23

    const/4 p1, 0x0

    new-instance v0, Lq9/u0;

    .line 1
    invoke-virtual {p0}, Lq9/y0;->i()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-direct {v0, v1, p1, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    move-object p1, v0

    goto :goto_23

    :cond_18
    const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.ParentJob"

    invoke-static {p1, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    check-cast p1, Lq9/f1;

    invoke-interface {p1}, Lq9/f1;->H()Ljava/util/concurrent/CancellationException;

    move-result-object p1

    :cond_23
    :goto_23
    return-object p1
.end method

.method public plus(Lb9/f;)Lb9/f;
    .registers 2

    .line 1
    invoke-static {p0, p1}, Lb9/f$a$a;->d(Lb9/f$a;Lb9/f;)Lb9/f;

    move-result-object p1

    return-object p1
.end method

.method public final q(ZZLh9/b;)Lq9/f0;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(ZZ",
            "Lh9/b<",
            "-",
            "Ljava/lang/Throwable;",
            "Ly8/k;",
            ">;)",
            "Lq9/f0;"
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p1, :cond_14

    .line 1
    instance-of v1, p3, Lq9/v0;

    if-eqz v1, :cond_b

    move-object v1, p3

    check-cast v1, Lq9/v0;

    goto :goto_c

    :cond_b
    move-object v1, v0

    :goto_c
    if-nez v1, :cond_27

    new-instance v1, Lq9/r0;

    invoke-direct {v1, p3}, Lq9/r0;-><init>(Lh9/b;)V

    goto :goto_27

    :cond_14
    instance-of v1, p3, Lq9/x0;

    if-eqz v1, :cond_1c

    move-object v1, p3

    check-cast v1, Lq9/x0;

    goto :goto_1d

    :cond_1c
    move-object v1, v0

    :goto_1d
    if-nez v1, :cond_20

    move-object v1, v0

    :cond_20
    if-nez v1, :cond_27

    new-instance v1, Lq9/s0;

    invoke-direct {v1, p3}, Lq9/s0;-><init>(Lh9/b;)V

    .line 2
    :cond_27
    :goto_27
    iput-object p0, v1, Lq9/x0;->u:Lq9/y0;

    .line 3
    :cond_29
    :goto_29
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v2

    instance-of v3, v2, Lq9/h0;

    if-eqz v3, :cond_57

    move-object v3, v2

    check-cast v3, Lq9/h0;

    .line 4
    iget-boolean v4, v3, Lq9/h0;->r:Z

    if-eqz v4, :cond_41

    .line 5
    sget-object v3, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v3, p0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_29

    return-object v1

    .line 6
    :cond_41
    new-instance v2, Lq9/c1;

    invoke-direct {v2}, Lq9/c1;-><init>()V

    .line 7
    iget-boolean v4, v3, Lq9/h0;->r:Z

    if-eqz v4, :cond_4b

    goto :goto_51

    .line 8
    :cond_4b
    new-instance v4, Lq9/o0;

    invoke-direct {v4, v2}, Lq9/o0;-><init>(Lq9/c1;)V

    move-object v2, v4

    :goto_51
    sget-object v4, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-virtual {v4, p0, v3, v2}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    goto :goto_29

    .line 9
    :cond_57
    instance-of v3, v2, Lq9/p0;

    if-eqz v3, :cond_b0

    move-object v3, v2

    check-cast v3, Lq9/p0;

    invoke-interface {v3}, Lq9/p0;->d()Lq9/c1;

    move-result-object v3

    if-nez v3, :cond_6f

    const-string v3, "null cannot be cast to non-null type kotlinx.coroutines.JobNode"

    invoke-static {v2, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    check-cast v2, Lq9/x0;

    invoke-virtual {p0, v2}, Lq9/y0;->J(Lq9/x0;)V

    goto :goto_29

    :cond_6f
    sget-object v4, Lq9/d1;->r:Lq9/d1;

    if-eqz p1, :cond_a0

    instance-of v5, v2, Lq9/y0$b;

    if-eqz v5, :cond_a0

    monitor-enter v2

    :try_start_78
    move-object v5, v2

    check-cast v5, Lq9/y0$b;

    invoke-virtual {v5}, Lq9/y0$b;->e()Ljava/lang/Throwable;

    move-result-object v5

    if-eqz v5, :cond_8e

    instance-of v6, p3, Lq9/k;

    if-eqz v6, :cond_9b

    move-object v6, v2

    check-cast v6, Lq9/y0$b;

    invoke-virtual {v6}, Lq9/y0$b;->g()Z

    move-result v6

    if-nez v6, :cond_9b

    :cond_8e
    invoke-virtual {p0, v2, v3, v1}, Lq9/y0;->a(Ljava/lang/Object;Lq9/c1;Lq9/x0;)Z

    move-result v4
    :try_end_92
    .catchall {:try_start_78 .. :try_end_92} :catchall_9d

    if-nez v4, :cond_96

    monitor-exit v2

    goto :goto_29

    :cond_96
    if-nez v5, :cond_9a

    monitor-exit v2

    return-object v1

    :cond_9a
    move-object v4, v1

    :cond_9b
    monitor-exit v2

    goto :goto_a1

    :catchall_9d
    move-exception p1

    monitor-exit v2

    throw p1

    :cond_a0
    move-object v5, v0

    :goto_a1
    if-eqz v5, :cond_a9

    if-eqz p2, :cond_a8

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

    :cond_a8
    return-object v4

    :cond_a9
    invoke-virtual {p0, v2, v3, v1}, Lq9/y0;->a(Ljava/lang/Object;Lq9/c1;Lq9/x0;)Z

    move-result v2

    if-eqz v2, :cond_29

    return-object v1

    :cond_b0
    if-eqz p2, :cond_c2

    instance-of p1, v2, Lq9/p;

    if-eqz p1, :cond_b9

    check-cast v2, Lq9/p;

    goto :goto_ba

    :cond_b9
    move-object v2, v0

    :goto_ba
    if-nez v2, :cond_bd

    goto :goto_bf

    :cond_bd
    iget-object v0, v2, Lq9/p;->a:Ljava/lang/Throwable;

    :goto_bf
    invoke-interface {p3, v0}, Lh9/b;->f(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_c2
    sget-object p1, Lq9/d1;->r:Lq9/d1;

    return-object p1
.end method

.method public final r(Lq9/y0$b;Ljava/lang/Object;)Ljava/lang/Object;
    .registers 11

    instance-of v0, p2, Lq9/p;

    const/4 v1, 0x0

    if-eqz v0, :cond_9

    move-object v0, p2

    check-cast v0, Lq9/p;

    goto :goto_a

    :cond_9
    move-object v0, v1

    :goto_a
    if-nez v0, :cond_e

    move-object v0, v1

    goto :goto_10

    :cond_e
    iget-object v0, v0, Lq9/p;->a:Ljava/lang/Throwable;

    :goto_10
    monitor-enter p1

    :try_start_11
    invoke-virtual {p1}, Lq9/y0$b;->f()Z

    invoke-virtual {p1, v0}, Lq9/y0$b;->i(Ljava/lang/Throwable;)Ljava/util/List;

    move-result-object v2

    .line 1
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v3

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-eqz v3, :cond_31

    invoke-virtual {p1}, Lq9/y0$b;->f()Z

    move-result v3

    if-eqz v3, :cond_53

    new-instance v3, Lq9/u0;

    .line 2
    invoke-virtual {p0}, Lq9/y0;->i()Ljava/lang/String;

    move-result-object v6

    .line 3
    invoke-direct {v3, v6, v1, p0}, Lq9/u0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;Lq9/t0;)V

    move-object v1, v3

    goto :goto_53

    :cond_31
    invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_35
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_48

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    move-object v7, v6

    check-cast v7, Ljava/lang/Throwable;

    instance-of v7, v7, Ljava/util/concurrent/CancellationException;

    xor-int/2addr v7, v5

    if-eqz v7, :cond_35

    move-object v1, v6

    :cond_48
    check-cast v1, Ljava/lang/Throwable;

    if-eqz v1, :cond_4d

    goto :goto_53

    :cond_4d
    invoke-interface {v2, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Throwable;

    :cond_53
    :goto_53
    if-eqz v1, :cond_8b

    .line 4
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    if-gt v3, v5, :cond_5c

    goto :goto_8b

    :cond_5c
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    new-instance v6, Ljava/util/IdentityHashMap;

    invoke-direct {v6, v3}, Ljava/util/IdentityHashMap;-><init>(I)V

    invoke-static {v6}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set;

    move-result-object v3

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_6d
    :goto_6d
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_8b

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/Throwable;

    if-eq v6, v1, :cond_6d

    if-eq v6, v1, :cond_6d

    instance-of v7, v6, Ljava/util/concurrent/CancellationException;

    if-nez v7, :cond_6d

    invoke-interface {v3, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_6d

    invoke-static {v1, v6}, Lp/f;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
    :try_end_8a
    .catchall {:try_start_11 .. :try_end_8a} :catchall_d3

    goto :goto_6d

    .line 5
    :cond_8b
    :goto_8b
    monitor-exit p1

    if-nez v1, :cond_8f

    goto :goto_98

    :cond_8f
    if-ne v1, v0, :cond_92

    goto :goto_98

    :cond_92
    new-instance p2, Lq9/p;

    const/4 v0, 0x2

    invoke-direct {p2, v1, v4, v0}, Lq9/p;-><init>(Ljava/lang/Throwable;ZI)V

    :goto_98
    if-eqz v1, :cond_b9

    invoke-virtual {p0, v1}, Lq9/y0;->h(Ljava/lang/Throwable;)Z

    move-result v0

    if-nez v0, :cond_a9

    invoke-virtual {p0, v1}, Lq9/y0;->x(Ljava/lang/Throwable;)Z

    move-result v0

    if-eqz v0, :cond_a7

    goto :goto_a9

    :cond_a7
    move v0, v4

    goto :goto_aa

    :cond_a9
    :goto_a9
    move v0, v5

    :goto_aa
    if-eqz v0, :cond_b9

    const-string v0, "null cannot be cast to non-null type kotlinx.coroutines.CompletedExceptionally"

    invoke-static {p2, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    move-object v0, p2

    check-cast v0, Lq9/p;

    .line 6
    sget-object v1, Lq9/p;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    invoke-virtual {v1, v0, v4, v5}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->compareAndSet(Ljava/lang/Object;II)Z

    .line 7
    :cond_b9
    invoke-virtual {p0, p2}, Lq9/y0;->F(Ljava/lang/Object;)V

    sget-object v0, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    .line 8
    instance-of v1, p2, Lq9/p0;

    if-eqz v1, :cond_cb

    new-instance v1, Lq9/q0;

    move-object v2, p2

    check-cast v2, Lq9/p0;

    invoke-direct {v1, v2}, Lq9/q0;-><init>(Lq9/p0;)V

    goto :goto_cc

    :cond_cb
    move-object v1, p2

    .line 9
    :goto_cc
    invoke-virtual {v0, p0, p1, v1}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    invoke-virtual {p0, p1, p2}, Lq9/y0;->l(Lq9/p0;Ljava/lang/Object;)V

    return-object p2

    :catchall_d3
    move-exception p2

    monitor-exit p1

    throw p2
.end method

.method public s()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method

.method public final start()Z
    .registers 7

    :goto_0
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    .line 1
    instance-of v1, v0, Lq9/h0;

    const/4 v2, -0x1

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-eqz v1, :cond_1e

    move-object v1, v0

    check-cast v1, Lq9/h0;

    .line 2
    iget-boolean v1, v1, Lq9/h0;->r:Z

    if-eqz v1, :cond_13

    goto :goto_35

    .line 3
    :cond_13
    sget-object v1, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    sget-object v5, Lq9/z0;->g:Lq9/h0;

    invoke-virtual {v1, p0, v0, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_30

    goto :goto_36

    :cond_1e
    instance-of v1, v0, Lq9/o0;

    if-eqz v1, :cond_35

    sget-object v1, Lq9/y0;->r:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    move-object v5, v0

    check-cast v5, Lq9/o0;

    .line 4
    iget-object v5, v5, Lq9/o0;->r:Lq9/c1;

    .line 5
    invoke-virtual {v1, p0, v0, v5}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_30

    goto :goto_36

    :cond_30
    invoke-virtual {p0}, Lq9/y0;->G()V

    move v2, v4

    goto :goto_36

    :cond_35
    :goto_35
    move v2, v3

    :goto_36
    if-eqz v2, :cond_3c

    if-eq v2, v4, :cond_3b

    goto :goto_0

    :cond_3b
    return v4

    :cond_3c
    return v3
.end method

.method public t()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method public toString()Ljava/lang/String;
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 1
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Lq9/y0;->C()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v2, 0x7b

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {p0, v2}, Lq9/y0;->M(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v2, 0x7d

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 2
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v1, 0x40

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lp/f;->h(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final u(Lq9/p0;)Lq9/c1;
    .registers 3

    invoke-interface {p1}, Lq9/p0;->d()Lq9/c1;

    move-result-object v0

    if-nez v0, :cond_2b

    instance-of v0, p1, Lq9/h0;

    if-eqz v0, :cond_10

    new-instance v0, Lq9/c1;

    invoke-direct {v0}, Lq9/c1;-><init>()V

    goto :goto_2b

    :cond_10
    instance-of v0, p1, Lq9/x0;

    if-eqz v0, :cond_1b

    check-cast p1, Lq9/x0;

    invoke-virtual {p0, p1}, Lq9/y0;->J(Lq9/x0;)V

    const/4 v0, 0x0

    goto :goto_2b

    :cond_1b
    const-string v0, "State should have list: "

    invoke-static {v0, p1}, Lx/e;->k(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    new-instance v0, Ljava/lang/IllegalStateException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

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

    throw v0

    :cond_2b
    :goto_2b
    return-object v0
.end method

.method public final v()Lq9/j;
    .registers 2

    iget-object v0, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    check-cast v0, Lq9/j;

    return-object v0
.end method

.method public final w()Ljava/lang/Object;
    .registers 3

    :goto_0
    iget-object v0, p0, Lq9/y0;->_state:Ljava/lang/Object;

    instance-of v1, v0, Ls9/l;

    if-nez v1, :cond_7

    return-object v0

    :cond_7
    check-cast v0, Ls9/l;

    invoke-virtual {v0, p0}, Ls9/l;->a(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0
.end method

.method public x(Ljava/lang/Throwable;)Z
    .registers 2

    const/4 p1, 0x0

    return p1
.end method

.method public y(Ljava/lang/Throwable;)V
    .registers 2

    throw p1
.end method

.method public final z(Lq9/t0;)V
    .registers 3

    if-nez p1, :cond_7

    sget-object p1, Lq9/d1;->r:Lq9/d1;

    .line 1
    iput-object p1, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    return-void

    .line 2
    :cond_7
    invoke-interface {p1}, Lq9/t0;->start()Z

    invoke-interface {p1, p0}, Lq9/t0;->K(Lq9/l;)Lq9/j;

    move-result-object p1

    .line 3
    iput-object p1, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    .line 4
    invoke-virtual {p0}, Lq9/y0;->w()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lq9/p0;

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_21

    .line 5
    invoke-interface {p1}, Lq9/f0;->c()V

    sget-object p1, Lq9/d1;->r:Lq9/d1;

    .line 6
    iput-object p1, p0, Lq9/y0;->_parentHandle:Ljava/lang/Object;

    :cond_21
    return-void
.end method
