m.smali

.class public Lbb/m;
.super Lbb/y0;
.source "SourceFile"

# interfaces
.implements Lbb/l;
.implements Lbb/u2;
.implements Lna/e;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lbb/y0<",
        "TT;>;",
        "Lbb/l<",
        "TT;>;",
        "Lna/e;",
        "Lbb/u2;"
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
.end annotation


# static fields
.field private static final f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field

.field private static final g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field

.field private static final h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field


# instance fields
.field private volatile _decisionAndIndex:I

.field private volatile _parentHandle:Ljava/lang/Object;

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

.field private final d:Lkotlin/coroutines/d;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/coroutines/d<",
            "TT;>;"
        }
    .end annotation

    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field

.field private final e:Lkotlin/coroutines/CoroutineContext;
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation
.end field


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

    const-string v0, "_decisionAndIndex"

    const-class v1, Lbb/m;

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

    move-result-object v0

    sput-object v0, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const-string v0, "_state"

    const-class v2, Ljava/lang/Object;

    invoke-static {v1, v2, v0}, 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, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    const-string v0, "_parentHandle"

    invoke-static {v1, v2, v0}, 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, Lbb/m;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    return-void
.end method

.method public constructor <init>(Lkotlin/coroutines/d;I)V
    .registers 4
    .param p1    # Lkotlin/coroutines/d;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/coroutines/d<",
            "-TT;>;I)V"
        }
    .end annotation

    invoke-direct {p0, p2}, Lbb/y0;-><init>(I)V

    iput-object p1, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    invoke-static {}, Lbb/q0;->a()Z

    move-result v0

    if-eqz v0, :cond_1a

    const/4 v0, -0x1

    if-eq p2, v0, :cond_10

    const/4 p2, 0x1

    goto :goto_11

    :cond_10
    const/4 p2, 0x0

    :goto_11
    if-eqz p2, :cond_14

    goto :goto_1a

    :cond_14
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    :cond_1a
    :goto_1a
    invoke-interface {p1}, Lkotlin/coroutines/d;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object p1

    iput-object p1, p0, Lbb/m;->e:Lkotlin/coroutines/CoroutineContext;

    const p1, 0x1fffffff

    iput p1, p0, Lbb/m;->_decisionAndIndex:I

    sget-object p1, Lbb/d;->a:Lbb/d;

    iput-object p1, p0, Lbb/m;->_state:Ljava/lang/Object;

    return-void
.end method

.method private final C()Ljava/lang/String;
    .registers 3

    invoke-virtual {p0}, Lbb/m;->B()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lbb/j2;

    if-eqz v1, :cond_b

    const-string v0, "Active"

    goto :goto_14

    :cond_b
    instance-of v0, v0, Lbb/p;

    if-eqz v0, :cond_12

    const-string v0, "Cancelled"

    goto :goto_14

    :cond_12
    const-string v0, "Completed"

    :goto_14
    return-object v0
.end method

.method private final E()Lbb/c1;
    .registers 8

    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object v0

    sget-object v1, Lbb/v1;->C:Lbb/v1$b;

    invoke-interface {v0, v1}, Lkotlin/coroutines/CoroutineContext;->b(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$Element;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lbb/v1;

    const/4 v0, 0x0

    if-nez v1, :cond_11

    return-object v0

    :cond_11
    const/4 v2, 0x1

    const/4 v3, 0x0

    new-instance v4, Lbb/q;

    invoke-direct {v4, p0}, Lbb/q;-><init>(Lbb/m;)V

    const/4 v5, 0x2

    const/4 v6, 0x0

    invoke-static/range {v1 .. v6}, Lbb/v1$a;->c(Lbb/v1;ZZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lbb/c1;

    move-result-object v1

    sget-object v2, Lbb/m;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v2, p0, v0, v1}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    return-object v1
.end method

.method private final F(Ljava/lang/Object;)V
    .registers 23

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    invoke-static {}, Lbb/q0;->a()Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_20

    instance-of v2, v1, Lbb/j;

    if-nez v2, :cond_16

    instance-of v2, v1, Lfb/h0;

    if-eqz v2, :cond_14

    goto :goto_16

    :cond_14
    const/4 v2, 0x0

    goto :goto_17

    :cond_16
    :goto_16
    const/4 v2, 0x1

    :goto_17
    if-eqz v2, :cond_1a

    goto :goto_20

    :cond_1a
    new-instance v1, Ljava/lang/AssertionError;

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

    throw v1

    :cond_20
    :goto_20
    sget-object v2, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    :cond_22
    :goto_22
    invoke-virtual {v2, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v12

    instance-of v4, v12, Lbb/d;

    if-eqz v4, :cond_33

    sget-object v4, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v4, v0, v12, v1}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_22

    return-void

    :cond_33
    instance-of v4, v12, Lbb/j;

    if-eqz v4, :cond_39

    const/4 v4, 0x1

    goto :goto_3b

    :cond_39
    instance-of v4, v12, Lfb/h0;

    :goto_3b
    if-eqz v4, :cond_41

    invoke-direct {v0, v1, v12}, Lbb/m;->J(Ljava/lang/Object;Ljava/lang/Object;)V

    goto :goto_22

    :cond_41
    instance-of v4, v12, Lbb/z;

    if-eqz v4, :cond_73

    move-object v2, v12

    check-cast v2, Lbb/z;

    invoke-virtual {v2}, Lbb/z;->b()Z

    move-result v3

    if-nez v3, :cond_51

    invoke-direct {v0, v1, v12}, Lbb/m;->J(Ljava/lang/Object;Ljava/lang/Object;)V

    :cond_51
    instance-of v3, v12, Lbb/p;

    if-eqz v3, :cond_72

    const/4 v3, 0x0

    if-eqz v4, :cond_59

    goto :goto_5a

    :cond_59
    move-object v2, v3

    :goto_5a
    if-eqz v2, :cond_5e

    iget-object v3, v2, Lbb/z;->a:Ljava/lang/Throwable;

    :cond_5e
    instance-of v2, v1, Lbb/j;

    if-eqz v2, :cond_68

    check-cast v1, Lbb/j;

    invoke-virtual {v0, v1, v3}, Lbb/m;->m(Lbb/j;Ljava/lang/Throwable;)V

    goto :goto_72

    :cond_68
    const-string v2, "null cannot be cast to non-null type kotlinx.coroutines.internal.Segment<*>"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v1, Lfb/h0;

    invoke-direct {v0, v1, v3}, Lbb/m;->o(Lfb/h0;Ljava/lang/Throwable;)V

    :cond_72
    :goto_72
    return-void

    :cond_73
    instance-of v4, v12, Lbb/y;

    const-string v5, "null cannot be cast to non-null type kotlinx.coroutines.CancelHandler"

    if-eqz v4, :cond_b2

    move-object v13, v12

    check-cast v13, Lbb/y;

    iget-object v4, v13, Lbb/y;->b:Lbb/j;

    if-eqz v4, :cond_83

    invoke-direct {v0, v1, v12}, Lbb/m;->J(Ljava/lang/Object;Ljava/lang/Object;)V

    :cond_83
    instance-of v4, v1, Lfb/h0;

    if-eqz v4, :cond_88

    return-void

    :cond_88
    invoke-static {v1, v5}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/String;)V

    move-object v15, v1

    check-cast v15, Lbb/j;

    invoke-virtual {v13}, Lbb/y;->c()Z

    move-result v4

    if-eqz v4, :cond_9a

    iget-object v1, v13, Lbb/y;->e:Ljava/lang/Throwable;

    invoke-virtual {v0, v15, v1}, Lbb/m;->m(Lbb/j;Ljava/lang/Throwable;)V

    return-void

    :cond_9a
    const/4 v14, 0x0

    const/16 v16, 0x0

    const/16 v17, 0x0

    const/16 v18, 0x0

    const/16 v19, 0x1d

    const/16 v20, 0x0

    invoke-static/range {v13 .. v20}, Lbb/y;->b(Lbb/y;Ljava/lang/Object;Lbb/j;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;ILjava/lang/Object;)Lbb/y;

    move-result-object v4

    sget-object v5, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v5, v0, v12, v4}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_22

    return-void

    :cond_b2
    instance-of v4, v1, Lfb/h0;

    if-eqz v4, :cond_b7

    return-void

    :cond_b7
    invoke-static {v1, v5}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/String;)V

    move-object v6, v1

    check-cast v6, Lbb/j;

    new-instance v13, Lbb/y;

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/16 v10, 0x1c

    const/4 v11, 0x0

    move-object v4, v13

    move-object v5, v12

    invoke-direct/range {v4 .. v11}, Lbb/y;-><init>(Ljava/lang/Object;Lbb/j;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V

    sget-object v4, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v4, v0, v12, v13}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_22

    return-void
.end method

.method private final H()Z
    .registers 3

    iget v0, p0, Lbb/y0;->c:I

    invoke-static {v0}, Lbb/z0;->c(I)Z

    move-result v0

    if-eqz v0, :cond_19

    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    const-string v1, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation<*>"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Lfb/l;

    invoke-virtual {v0}, Lfb/l;->o()Z

    move-result v0

    if-eqz v0, :cond_19

    const/4 v0, 0x1

    goto :goto_1a

    :cond_19
    const/4 v0, 0x0

    :goto_1a
    return v0
.end method

.method private final I(Lkotlin/jvm/functions/Function1;)Lbb/j;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)",
            "Lbb/j;"
        }
    .end annotation

    instance-of v0, p1, Lbb/j;

    if-eqz v0, :cond_7

    check-cast p1, Lbb/j;

    goto :goto_d

    :cond_7
    new-instance v0, Lbb/s1;

    invoke-direct {v0, p1}, Lbb/s1;-><init>(Lkotlin/jvm/functions/Function1;)V

    move-object p1, v0

    :goto_d
    return-object p1
.end method

.method private final J(Ljava/lang/Object;Ljava/lang/Object;)V
    .registers 6

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "It\'s prohibited to register multiple handlers, tried to register "

    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;

    const-string p1, ", already has "

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

    invoke-virtual {v1, p2}, 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-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
.end method

.method private final O(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            "I",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)V"
        }
    .end annotation

    sget-object v0, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    instance-of v2, v1, Lbb/j2;

    if-eqz v2, :cond_25

    move-object v4, v1

    check-cast v4, Lbb/j2;

    const/4 v8, 0x0

    move-object v3, p0

    move-object v5, p1

    move v6, p2

    move-object v7, p3

    invoke-direct/range {v3 .. v8}, Lbb/m;->Q(Lbb/j2;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    sget-object v3, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v3, p0, v1, v2}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-direct {p0}, Lbb/m;->t()V

    invoke-direct {p0, p2}, Lbb/m;->w(I)V

    return-void

    :cond_25
    instance-of p2, v1, Lbb/p;

    if-eqz p2, :cond_39

    check-cast v1, Lbb/p;

    invoke-virtual {v1}, Lbb/p;->c()Z

    move-result p2

    if-eqz p2, :cond_39

    if-eqz p3, :cond_38

    iget-object p1, v1, Lbb/z;->a:Ljava/lang/Throwable;

    invoke-virtual {p0, p3, p1}, Lbb/m;->n(Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;)V

    :cond_38
    return-void

    :cond_39
    invoke-direct {p0, p1}, Lbb/m;->l(Ljava/lang/Object;)Ljava/lang/Void;

    new-instance p1, Lka/e;

    invoke-direct {p1}, Lka/e;-><init>()V

    goto :goto_43

    :goto_42
    throw p1

    :goto_43
    goto :goto_42
.end method

.method static synthetic P(Lbb/m;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
    .registers 6

    if-nez p5, :cond_b

    and-int/lit8 p4, p4, 0x4

    if-eqz p4, :cond_7

    const/4 p3, 0x0

    :cond_7
    invoke-direct {p0, p1, p2, p3}, Lbb/m;->O(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V

    return-void

    :cond_b
    new-instance p0, Ljava/lang/UnsupportedOperationException;

    const-string p1, "Super calls with default arguments not supported in this target, function: resumeImpl"

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

    throw p0
.end method

.method private final Q(Lbb/j2;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;Ljava/lang/Object;)Ljava/lang/Object;
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lbb/j2;",
            "Ljava/lang/Object;",
            "I",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;",
            "Ljava/lang/Object;",
            ")",
            "Ljava/lang/Object;"
        }
    .end annotation

    instance-of v0, p2, Lbb/z;

    if-eqz v0, :cond_2d

    invoke-static {}, Lbb/q0;->a()Z

    move-result p1

    const/4 p3, 0x1

    const/4 v0, 0x0

    if-eqz p1, :cond_1a

    if-nez p5, :cond_10

    const/4 p1, 0x1

    goto :goto_11

    :cond_10
    const/4 p1, 0x0

    :goto_11
    if-eqz p1, :cond_14

    goto :goto_1a

    :cond_14
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    :cond_1a
    :goto_1a
    invoke-static {}, Lbb/q0;->a()Z

    move-result p1

    if-eqz p1, :cond_55

    if-nez p4, :cond_23

    goto :goto_24

    :cond_23
    const/4 p3, 0x0

    :goto_24
    if-eqz p3, :cond_27

    goto :goto_55

    :cond_27
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    :cond_2d
    invoke-static {p3}, Lbb/z0;->b(I)Z

    move-result p3

    if-nez p3, :cond_36

    if-nez p5, :cond_36

    goto :goto_55

    :cond_36
    if-nez p4, :cond_3e

    instance-of p3, p1, Lbb/j;

    if-nez p3, :cond_3e

    if-eqz p5, :cond_55

    :cond_3e
    new-instance p3, Lbb/y;

    instance-of v0, p1, Lbb/j;

    if-eqz v0, :cond_47

    check-cast p1, Lbb/j;

    goto :goto_48

    :cond_47
    const/4 p1, 0x0

    :goto_48
    move-object v2, p1

    const/4 v5, 0x0

    const/16 v6, 0x10

    const/4 v7, 0x0

    move-object v0, p3

    move-object v1, p2

    move-object v3, p4

    move-object v4, p5

    invoke-direct/range {v0 .. v7}, Lbb/y;-><init>(Ljava/lang/Object;Lbb/j;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V

    move-object p2, p3

    :cond_55
    :goto_55
    return-object p2
.end method

.method private final R()Z
    .registers 7

    sget-object v0, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I

    move-result v1

    shr-int/lit8 v2, v1, 0x1d

    const/4 v3, 0x1

    if-eqz v2, :cond_1b

    if-ne v2, v3, :cond_f

    const/4 v0, 0x0

    return v0

    :cond_f
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Already resumed"

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

    move-result-object v1

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

    throw v0

    :cond_1b
    sget-object v2, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const v4, 0x1fffffff

    and-int/2addr v4, v1

    const/high16 v5, 0x40000000    # 2.0f

    add-int/2addr v5, v4

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

    move-result v1

    if-eqz v1, :cond_2

    return v3
.end method

.method private final S(Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lfb/k0;
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            "Ljava/lang/Object;",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)",
            "Lfb/k0;"
        }
    .end annotation

    sget-object v0, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    instance-of v2, v1, Lbb/j2;

    if-eqz v2, :cond_25

    move-object v4, v1

    check-cast v4, Lbb/j2;

    iget v6, p0, Lbb/y0;->c:I

    move-object v3, p0

    move-object v5, p1

    move-object v7, p3

    move-object v8, p2

    invoke-direct/range {v3 .. v8}, Lbb/m;->Q(Lbb/j2;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    sget-object v3, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v3, p0, v1, v2}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-direct {p0}, Lbb/m;->t()V

    sget-object p1, Lbb/n;->a:Lfb/k0;

    return-object p1

    :cond_25
    instance-of p3, v1, Lbb/y;

    const/4 v0, 0x0

    if-eqz p3, :cond_49

    if-eqz p2, :cond_49

    check-cast v1, Lbb/y;

    iget-object p3, v1, Lbb/y;->d:Ljava/lang/Object;

    if-ne p3, p2, :cond_49

    invoke-static {}, Lbb/q0;->a()Z

    move-result p2

    if-eqz p2, :cond_47

    iget-object p2, v1, Lbb/y;->a:Ljava/lang/Object;

    invoke-static {p2, p1}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_41

    goto :goto_47

    :cond_41
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    :cond_47
    :goto_47
    sget-object v0, Lbb/n;->a:Lfb/k0;

    :cond_49
    return-object v0
.end method

.method private final T()Z
    .registers 6

    sget-object v0, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I

    move-result v1

    shr-int/lit8 v2, v1, 0x1d

    if-eqz v2, :cond_1b

    const/4 v0, 0x2

    if-ne v2, v0, :cond_f

    const/4 v0, 0x0

    return v0

    :cond_f
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "Already suspended"

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

    move-result-object v1

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

    throw v0

    :cond_1b
    sget-object v2, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const v3, 0x1fffffff

    and-int/2addr v3, v1

    const/high16 v4, 0x20000000

    add-int/2addr v4, v3

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

    move-result v1

    if-eqz v1, :cond_2

    const/4 v0, 0x1

    return v0
.end method

.method private final l(Ljava/lang/Object;)Ljava/lang/Void;
    .registers 5

    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Already resumed, but proposed with update "

    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 p1

    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
.end method

.method private final o(Lfb/h0;Ljava/lang/Throwable;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lfb/h0<",
            "*>;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    sget-object v0, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I

    move-result v0

    const v1, 0x1fffffff

    and-int/2addr v0, v1

    if-eq v0, v1, :cond_e

    const/4 v1, 0x1

    goto :goto_f

    :cond_e
    const/4 v1, 0x0

    :goto_f
    if-eqz v1, :cond_38

    :try_start_11
    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object v1

    invoke-virtual {p1, v0, p2, v1}, Lfb/h0;->o(ILjava/lang/Throwable;Lkotlin/coroutines/CoroutineContext;)V
    :try_end_18
    .catchall {:try_start_11 .. :try_end_18} :catchall_19

    goto :goto_37

    :catchall_19
    move-exception p1

    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object p2

    new-instance v0, Lbb/c0;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Exception in invokeOnCancellation handler for "

    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 v1

    invoke-direct {v0, v1, p1}, Lbb/c0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-static {p2, v0}, Lbb/j0;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V

    :goto_37
    return-void

    :cond_38
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "The index for Segment.onCancellation(..) is broken"

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

    move-result-object p2

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

    throw p1
.end method

.method private final p(Ljava/lang/Throwable;)Z
    .registers 4

    invoke-direct {p0}, Lbb/m;->H()Z

    move-result v0

    if-nez v0, :cond_8

    const/4 p1, 0x0

    return p1

    :cond_8
    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    const-string v1, "null cannot be cast to non-null type kotlinx.coroutines.internal.DispatchedContinuation<*>"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->d(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v0, Lfb/l;

    invoke-virtual {v0, p1}, Lfb/l;->p(Ljava/lang/Throwable;)Z

    move-result p1

    return p1
.end method

.method private final t()V
    .registers 2

    invoke-direct {p0}, Lbb/m;->H()Z

    move-result v0

    if-nez v0, :cond_9

    invoke-virtual {p0}, Lbb/m;->s()V

    :cond_9
    return-void
.end method

.method private final w(I)V
    .registers 3

    invoke-direct {p0}, Lbb/m;->R()Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    :cond_7
    invoke-static {p0, p1}, Lbb/z0;->a(Lbb/y0;I)V

    return-void
.end method

.method private final y()Lbb/c1;
    .registers 2

    sget-object v0, Lbb/m;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

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

    move-result-object v0

    check-cast v0, Lbb/c1;

    return-object v0
.end method


# virtual methods
.method public A(Ljava/lang/Object;)V
    .registers 3
    .param p1    # Ljava/lang/Object;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    invoke-static {}, Lbb/q0;->a()Z

    move-result v0

    if-eqz v0, :cond_16

    sget-object v0, Lbb/n;->a:Lfb/k0;

    if-ne p1, v0, :cond_c

    const/4 p1, 0x1

    goto :goto_d

    :cond_c
    const/4 p1, 0x0

    :goto_d
    if-eqz p1, :cond_10

    goto :goto_16

    :cond_10
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    :cond_16
    :goto_16
    iget p1, p0, Lbb/y0;->c:I

    invoke-direct {p0, p1}, Lbb/m;->w(I)V

    return-void
.end method

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

    sget-object v0, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

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

    move-result-object v0

    return-object v0
.end method

.method public D()V
    .registers 3

    invoke-direct {p0}, Lbb/m;->E()Lbb/c1;

    move-result-object v0

    if-nez v0, :cond_7

    return-void

    :cond_7
    invoke-virtual {p0}, Lbb/m;->G()Z

    move-result v1

    if-eqz v1, :cond_17

    invoke-interface {v0}, Lbb/c1;->i()V

    sget-object v0, Lbb/m;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    sget-object v1, Lbb/i2;->a:Lbb/i2;

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

    :cond_17
    return-void
.end method

.method public G()Z
    .registers 2

    invoke-virtual {p0}, Lbb/m;->B()Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lbb/j2;

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method

.method protected K()Ljava/lang/String;
    .registers 2
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation

    const-string v0, "CancellableContinuation"

    return-object v0
.end method

.method public final L(Ljava/lang/Throwable;)V
    .registers 3
    .param p1    # Ljava/lang/Throwable;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    invoke-direct {p0, p1}, Lbb/m;->p(Ljava/lang/Throwable;)Z

    move-result v0

    if-eqz v0, :cond_7

    return-void

    :cond_7
    invoke-virtual {p0, p1}, Lbb/m;->v(Ljava/lang/Throwable;)Z

    invoke-direct {p0}, Lbb/m;->t()V

    return-void
.end method

.method public final M()V
    .registers 3

    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    instance-of v1, v0, Lfb/l;

    if-eqz v1, :cond_9

    check-cast v0, Lfb/l;

    goto :goto_a

    :cond_9
    const/4 v0, 0x0

    :goto_a
    if-eqz v0, :cond_19

    invoke-virtual {v0, p0}, Lfb/l;->t(Lbb/l;)Ljava/lang/Throwable;

    move-result-object v0

    if-nez v0, :cond_13

    goto :goto_19

    :cond_13
    invoke-virtual {p0}, Lbb/m;->s()V

    invoke-virtual {p0, v0}, Lbb/m;->v(Ljava/lang/Throwable;)Z

    :cond_19
    :goto_19
    return-void
.end method

.method public final N()Z
    .registers 6

    invoke-static {}, Lbb/q0;->a()Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_19

    iget v0, p0, Lbb/y0;->c:I

    const/4 v3, 0x2

    if-ne v0, v3, :cond_f

    const/4 v0, 0x1

    goto :goto_10

    :cond_f
    const/4 v0, 0x0

    :goto_10
    if-eqz v0, :cond_13

    goto :goto_19

    :cond_13
    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_19
    :goto_19
    invoke-static {}, Lbb/q0;->a()Z

    move-result v0

    if-eqz v0, :cond_33

    invoke-direct {p0}, Lbb/m;->y()Lbb/c1;

    move-result-object v0

    sget-object v3, Lbb/i2;->a:Lbb/i2;

    if-eq v0, v3, :cond_29

    const/4 v0, 0x1

    goto :goto_2a

    :cond_29
    const/4 v0, 0x0

    :goto_2a
    if-eqz v0, :cond_2d

    goto :goto_33

    :cond_2d
    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_33
    :goto_33
    sget-object v0, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

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

    move-result-object v3

    invoke-static {}, Lbb/q0;->a()Z

    move-result v4

    if-eqz v4, :cond_4b

    instance-of v4, v3, Lbb/j2;

    xor-int/2addr v4, v2

    if-eqz v4, :cond_45

    goto :goto_4b

    :cond_45
    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_4b
    :goto_4b
    instance-of v4, v3, Lbb/y;

    if-eqz v4, :cond_59

    check-cast v3, Lbb/y;

    iget-object v3, v3, Lbb/y;->d:Ljava/lang/Object;

    if-eqz v3, :cond_59

    invoke-virtual {p0}, Lbb/m;->s()V

    return v1

    :cond_59
    sget-object v1, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    const v3, 0x1fffffff

    invoke-virtual {v1, p0, v3}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->set(Ljava/lang/Object;I)V

    sget-object v1, Lbb/d;->a:Lbb/d;

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

    return v2
.end method

.method public a()Lkotlin/coroutines/CoroutineContext;
    .registers 2
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation

    iget-object v0, p0, Lbb/m;->e:Lkotlin/coroutines/CoroutineContext;

    return-object v0
.end method

.method public b(Ljava/lang/Object;Ljava/lang/Throwable;)V
    .registers 22
    .param p2    # Ljava/lang/Throwable;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    move-object/from16 v0, p0

    sget-object v1, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    :cond_4
    invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    instance-of v2, v10, Lbb/j2;

    if-nez v2, :cond_63

    instance-of v2, v10, Lbb/z;

    if-eqz v2, :cond_11

    return-void

    :cond_11
    instance-of v2, v10, Lbb/y;

    if-eqz v2, :cond_49

    move-object v2, v10

    check-cast v2, Lbb/y;

    invoke-virtual {v2}, Lbb/y;->c()Z

    move-result v3

    xor-int/lit8 v3, v3, 0x1

    if-eqz v3, :cond_3d

    const/4 v12, 0x0

    const/4 v13, 0x0

    const/4 v14, 0x0

    const/4 v15, 0x0

    const/16 v17, 0xf

    const/16 v18, 0x0

    move-object v11, v2

    move-object/from16 v16, p2

    invoke-static/range {v11 .. v18}, Lbb/y;->b(Lbb/y;Ljava/lang/Object;Lbb/j;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;ILjava/lang/Object;)Lbb/y;

    move-result-object v3

    sget-object v4, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v4, v0, v10, v3}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v3

    move-object/from16 v11, p2

    if-eqz v3, :cond_4

    invoke-virtual {v2, v0, v11}, Lbb/y;->d(Lbb/m;Ljava/lang/Throwable;)V

    return-void

    :cond_3d
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "Must be called at most once"

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

    move-result-object v2

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

    throw v1

    :cond_49
    move-object/from16 v11, p2

    sget-object v12, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    new-instance v13, Lbb/y;

    const/4 v4, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/16 v8, 0xe

    const/4 v9, 0x0

    move-object v2, v13

    move-object v3, v10

    move-object/from16 v7, p2

    invoke-direct/range {v2 .. v9}, Lbb/y;-><init>(Ljava/lang/Object;Lbb/j;Lkotlin/jvm/functions/Function1;Ljava/lang/Object;Ljava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V

    invoke-static {v12, v0, v10, v13}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    return-void

    :cond_63
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "Not completed"

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

    move-result-object v2

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

    goto :goto_70

    :goto_6f
    throw v1

    :goto_70
    goto :goto_6f
.end method

.method public c(Lfb/h0;I)V
    .registers 7
    .param p1    # Lfb/h0;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lfb/h0<",
            "*>;I)V"
        }
    .end annotation

    sget-object v0, Lbb/m;->f:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I

    move-result v1

    const v2, 0x1fffffff

    and-int v3, v1, v2

    if-ne v3, v2, :cond_f

    const/4 v2, 0x1

    goto :goto_10

    :cond_f
    const/4 v2, 0x0

    :goto_10
    if-eqz v2, :cond_21

    shr-int/lit8 v2, v1, 0x1d

    shl-int/lit8 v2, v2, 0x1d

    add-int/2addr v2, p2

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

    move-result v1

    if-eqz v1, :cond_2

    invoke-direct {p0, p1}, Lbb/m;->F(Ljava/lang/Object;)V

    return-void

    :cond_21
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string p2, "invokeOnCancellation should be called at most once"

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

    move-result-object p2

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

    goto :goto_2e

    :goto_2d
    throw p1

    :goto_2e
    goto :goto_2d
.end method

.method public final d()Lkotlin/coroutines/d;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lkotlin/coroutines/d<",
            "TT;>;"
        }
    .end annotation

    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation

    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    return-object v0
.end method

.method public e()Lna/e;
    .registers 3

    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    instance-of v1, v0, Lna/e;

    if-eqz v1, :cond_9

    check-cast v0, Lna/e;

    goto :goto_a

    :cond_9
    const/4 v0, 0x0

    :goto_a
    return-object v0
.end method

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

    invoke-super {p0, p1}, Lbb/y0;->f(Ljava/lang/Object;)Ljava/lang/Throwable;

    move-result-object p1

    if-eqz p1, :cond_1a

    iget-object v0, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    invoke-static {}, Lbb/q0;->d()Z

    move-result v1

    if-eqz v1, :cond_1b

    instance-of v1, v0, Lna/e;

    if-nez v1, :cond_13

    goto :goto_1b

    :cond_13
    check-cast v0, Lna/e;

    invoke-static {p1, v0}, Lfb/j0;->a(Ljava/lang/Throwable;Lna/e;)Ljava/lang/Throwable;

    move-result-object p1

    goto :goto_1b

    :cond_1a
    const/4 p1, 0x0

    :cond_1b
    :goto_1b
    return-object p1
.end method

.method public g(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Object;",
            ")TT;"
        }
    .end annotation

    instance-of v0, p1, Lbb/y;

    if-eqz v0, :cond_8

    check-cast p1, Lbb/y;

    iget-object p1, p1, Lbb/y;->a:Ljava/lang/Object;

    :cond_8
    return-object p1
.end method

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

    invoke-virtual {p0}, Lbb/m;->B()Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public j(Ljava/lang/Object;)V
    .registers 8
    .param p1    # Ljava/lang/Object;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    invoke-static {p1, p0}, Lbb/d0;->b(Ljava/lang/Object;Lbb/l;)Ljava/lang/Object;

    move-result-object v1

    iget v2, p0, Lbb/y0;->c:I

    const/4 v3, 0x0

    const/4 v4, 0x4

    const/4 v5, 0x0

    move-object v0, p0

    invoke-static/range {v0 .. v5}, Lbb/m;->P(Lbb/m;Ljava/lang/Object;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V

    return-void
.end method

.method public k(Lkotlin/jvm/functions/Function1;)V
    .registers 2
    .param p1    # Lkotlin/jvm/functions/Function1;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)V"
        }
    .end annotation

    invoke-direct {p0, p1}, Lbb/m;->I(Lkotlin/jvm/functions/Function1;)Lbb/j;

    move-result-object p1

    invoke-direct {p0, p1}, Lbb/m;->F(Ljava/lang/Object;)V

    return-void
.end method

.method public final m(Lbb/j;Ljava/lang/Throwable;)V
    .registers 6
    .param p1    # Lbb/j;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param

    :try_start_0
    invoke-virtual {p1, p2}, Lbb/k;->i(Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_0 .. :try_end_3} :catchall_4

    goto :goto_22

    :catchall_4
    move-exception p1

    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object p2

    new-instance v0, Lbb/c0;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Exception in invokeOnCancellation handler for "

    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 v1

    invoke-direct {v0, v1, p1}, Lbb/c0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-static {p2, v0}, Lbb/j0;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V

    :goto_22
    return-void
.end method

.method public final n(Lkotlin/jvm/functions/Function1;Ljava/lang/Throwable;)V
    .registers 6
    .param p1    # Lkotlin/jvm/functions/Function1;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .param p2    # Ljava/lang/Throwable;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;",
            "Ljava/lang/Throwable;",
            ")V"
        }
    .end annotation

    :try_start_0
    invoke-interface {p1, p2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3
    .catchall {:try_start_0 .. :try_end_3} :catchall_4

    goto :goto_22

    :catchall_4
    move-exception p1

    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object p2

    new-instance v0, Lbb/c0;

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Exception in resume onCancellation handler for "

    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 v1

    invoke-direct {v0, v1, p1}, Lbb/c0;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    invoke-static {p2, v0}, Lbb/j0;->a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V

    :goto_22
    return-void
.end method

.method public q()Ljava/lang/StackTraceElement;
    .registers 2

    const/4 v0, 0x0

    return-object v0
.end method

.method public r(Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;",
            "Ljava/lang/Object;",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    invoke-direct {p0, p1, p2, p3}, Lbb/m;->S(Ljava/lang/Object;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)Lfb/k0;

    move-result-object p1

    return-object p1
.end method

.method public final s()V
    .registers 3

    invoke-direct {p0}, Lbb/m;->y()Lbb/c1;

    move-result-object v0

    if-nez v0, :cond_7

    return-void

    :cond_7
    invoke-interface {v0}, Lbb/c1;->i()V

    sget-object v0, Lbb/m;->h:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    sget-object v1, Lbb/i2;->a:Lbb/i2;

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

    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 3
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation

    new-instance v0, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Lbb/m;->K()Ljava/lang/String;

    move-result-object v1

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

    const/16 v1, 0x28

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

    iget-object v1, p0, Lbb/m;->d:Lkotlin/coroutines/d;

    invoke-static {v1}, Lbb/r0;->c(Lkotlin/coroutines/d;)Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "){"

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

    invoke-direct {p0}, Lbb/m;->C()Ljava/lang/String;

    move-result-object v1

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

    const-string v1, "}@"

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

    invoke-static {p0}, Lbb/r0;->b(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 u(Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;",
            "Lkotlin/jvm/functions/Function1<",
            "-",
            "Ljava/lang/Throwable;",
            "Lkotlin/Unit;",
            ">;)V"
        }
    .end annotation

    iget v0, p0, Lbb/y0;->c:I

    invoke-direct {p0, p1, v0, p2}, Lbb/m;->O(Ljava/lang/Object;ILkotlin/jvm/functions/Function1;)V

    return-void
.end method

.method public v(Ljava/lang/Throwable;)Z
    .registers 8

    sget-object v0, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    :cond_2
    invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    instance-of v2, v1, Lbb/j2;

    const/4 v3, 0x0

    if-nez v2, :cond_c

    return v3

    :cond_c
    new-instance v2, Lbb/p;

    instance-of v4, v1, Lbb/j;

    const/4 v5, 0x1

    if-nez v4, :cond_17

    instance-of v4, v1, Lfb/h0;

    if-eqz v4, :cond_18

    :cond_17
    const/4 v3, 0x1

    :cond_18
    invoke-direct {v2, p0, p1, v3}, Lbb/p;-><init>(Lkotlin/coroutines/d;Ljava/lang/Throwable;Z)V

    sget-object v3, Lbb/m;->g:Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;

    invoke-static {v3, p0, v1, v2}, Landroidx/concurrent/futures/b;->a(Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    move-object v0, v1

    check-cast v0, Lbb/j2;

    instance-of v2, v0, Lbb/j;

    if-eqz v2, :cond_30

    check-cast v1, Lbb/j;

    invoke-virtual {p0, v1, p1}, Lbb/m;->m(Lbb/j;Ljava/lang/Throwable;)V

    goto :goto_39

    :cond_30
    instance-of v0, v0, Lfb/h0;

    if-eqz v0, :cond_39

    check-cast v1, Lfb/h0;

    invoke-direct {p0, v1, p1}, Lbb/m;->o(Lfb/h0;Ljava/lang/Throwable;)V

    :cond_39
    :goto_39
    invoke-direct {p0}, Lbb/m;->t()V

    iget p1, p0, Lbb/y0;->c:I

    invoke-direct {p0, p1}, Lbb/m;->w(I)V

    return v5
.end method

.method public x(Lbb/v1;)Ljava/lang/Throwable;
    .registers 2
    .param p1    # Lbb/v1;
        .annotation build Lorg/jetbrains/annotations/NotNull;
        .end annotation
    .end param
    .annotation build Lorg/jetbrains/annotations/NotNull;
    .end annotation

    invoke-interface {p1}, Lbb/v1;->n()Ljava/util/concurrent/CancellationException;

    move-result-object p1

    return-object p1
.end method

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

    invoke-direct {p0}, Lbb/m;->H()Z

    move-result v0

    invoke-direct {p0}, Lbb/m;->T()Z

    move-result v1

    if-eqz v1, :cond_1d

    invoke-direct {p0}, Lbb/m;->y()Lbb/c1;

    move-result-object v1

    if-nez v1, :cond_13

    invoke-direct {p0}, Lbb/m;->E()Lbb/c1;

    :cond_13
    if-eqz v0, :cond_18

    invoke-virtual {p0}, Lbb/m;->M()V

    :cond_18
    invoke-static {}, Lma/b;->c()Ljava/lang/Object;

    move-result-object v0

    return-object v0

    :cond_1d
    if-eqz v0, :cond_22

    invoke-virtual {p0}, Lbb/m;->M()V

    :cond_22
    invoke-virtual {p0}, Lbb/m;->B()Ljava/lang/Object;

    move-result-object v0

    instance-of v1, v0, Lbb/z;

    if-eqz v1, :cond_39

    check-cast v0, Lbb/z;

    iget-object v0, v0, Lbb/z;->a:Ljava/lang/Throwable;

    invoke-static {}, Lbb/q0;->d()Z

    move-result v1

    if-eqz v1, :cond_38

    invoke-static {v0, p0}, Lfb/j0;->a(Ljava/lang/Throwable;Lna/e;)Ljava/lang/Throwable;

    move-result-object v0

    :cond_38
    throw v0

    :cond_39
    iget v1, p0, Lbb/y0;->c:I

    invoke-static {v1}, Lbb/z0;->b(I)Z

    move-result v1

    if-eqz v1, :cond_67

    invoke-virtual {p0}, Lbb/m;->a()Lkotlin/coroutines/CoroutineContext;

    move-result-object v1

    sget-object v2, Lbb/v1;->C:Lbb/v1$b;

    invoke-interface {v1, v2}, Lkotlin/coroutines/CoroutineContext;->b(Lkotlin/coroutines/CoroutineContext$b;)Lkotlin/coroutines/CoroutineContext$Element;

    move-result-object v1

    check-cast v1, Lbb/v1;

    if-eqz v1, :cond_67

    invoke-interface {v1}, Lbb/v1;->c()Z

    move-result v2

    if-nez v2, :cond_67

    invoke-interface {v1}, Lbb/v1;->n()Ljava/util/concurrent/CancellationException;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lbb/m;->b(Ljava/lang/Object;Ljava/lang/Throwable;)V

    invoke-static {}, Lbb/q0;->d()Z

    move-result v0

    if-eqz v0, :cond_66

    invoke-static {v1, p0}, Lfb/j0;->a(Ljava/lang/Throwable;Lna/e;)Ljava/lang/Throwable;

    move-result-object v1

    :cond_66
    throw v1

    :cond_67
    invoke-virtual {p0, v0}, Lbb/m;->g(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method