b.smali

.class public final Lsh/b;
.super Ljava/lang/Object;
.source "ChatReadyFlow.kt"

# interfaces
.implements Lsh/j;


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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lsh/j<",
        "Lcom/shopee/protocol/ResponseCommon;",
        ">;"
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\u0018\u0000 \u00122\u0008\u0012\u0004\u0012\u00020\u00020\u0001:\u0002\u0011\u0012B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0002\u0010\u0005J\u001c\u0010\u0007\u001a\u00020\u00082\u0012\u0010\t\u001a\u000e\u0012\n\u0008\u0001\u0012\u0006\u0012\u0002\u0008\u00030\u00010\nH\u0016J\u0017\u0010\u000b\u001a\u0008\u0012\u0004\u0012\u00020\u00020\u0001H\u0097@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u000cJ\u0011\u0010\r\u001a\u00020\u0002H\u0082@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u000cJ\u0008\u0010\u000e\u001a\u00020\u0002H\u0016J\u0008\u0010\u000f\u001a\u00020\u0008H\u0016J\u0008\u0010\u0010\u001a\u00020\u0008H\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0002X\u0082.\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\u0008\u0019\u00a8\u0006\u0013"
    }
    d2 = {
        "Lcom/shopee/foody/driver/login/flow/ChatReadyFlow;",
        "Lcom/shopee/foody/driver/login/flow/IFlow;",
        "Lcom/shopee/protocol/ResponseCommon;",
        "inputs",
        "Lcom/shopee/foody/driver/login/flow/ChatReadyParams;",
        "(Lcom/shopee/foody/driver/login/flow/ChatReadyParams;)V",
        "result",
        "conflict",
        "",
        "clz",
        "Ljava/lang/Class;",
        "fire",
        "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;",
        "fireImpl",
        "getValue",
        "isSuccess",
        "isTimeout",
        "ChatReadyListener",
        "Companion",
        "driver_indonesiaRelease"
    }
    k = 0x1
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public a:Lcom/shopee/protocol/ResponseCommon;

.field public final b:Lsh/c;


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

    new-instance v0, Lsh/b$b;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lsh/b$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V

    return-void
.end method

.method public constructor <init>(Lsh/c;)V
    .registers 2

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

    iput-object p1, p0, Lsh/b;->b:Lsh/c;

    return-void
.end method

.method public static final synthetic a(Lsh/b;)Lsh/c;
    .registers 1

    iget-object p0, p0, Lsh/b;->b:Lsh/c;

    return-object p0
.end method


# virtual methods
.method public a(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    .registers 6
    .annotation build Landroidx/annotation/AnyThread;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/coroutines/Continuation<",
            "-",
            "Lsh/j<",
            "Lcom/shopee/protocol/ResponseCommon;",
            ">;>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    instance-of v0, p1, Lsh/b$c;

    if-eqz v0, :cond_13

    move-object v0, p1

    check-cast v0, Lsh/b$c;

    iget v1, v0, Lsh/b$c;->b:I

    const/high16 v2, -0x80000000

    and-int v3, v1, v2

    if-eqz v3, :cond_13

    sub-int/2addr v1, v2

    iput v1, v0, Lsh/b$c;->b:I

    goto :goto_18

    :cond_13
    new-instance v0, Lsh/b$c;

    invoke-direct {v0, p0, p1}, Lsh/b$c;-><init>(Lsh/b;Lkotlin/coroutines/Continuation;)V

    :goto_18
    iget-object p1, v0, Lsh/b$c;->a:Ljava/lang/Object;

    invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;

    move-result-object v1

    iget v2, v0, Lsh/b$c;->b:I

    const/4 v3, 0x1

    if-eqz v2, :cond_41

    if-ne v2, v3, :cond_39

    iget-object v1, v0, Lsh/b$c;->g:Ljava/lang/Object;

    check-cast v1, Lsh/b;

    iget-object v2, v0, Lsh/b$c;->f:Ljava/lang/Object;

    check-cast v2, Lsh/b;

    iget-object v2, v0, Lsh/b$c;->e:Ljava/lang/Object;

    check-cast v2, Lsh/b;

    iget-object v0, v0, Lsh/b$c;->d:Ljava/lang/Object;

    check-cast v0, Lsh/b;

    invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V

    goto :goto_57

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

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

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

    throw p1

    :cond_41
    invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V

    iput-object p0, v0, Lsh/b$c;->d:Ljava/lang/Object;

    iput-object p0, v0, Lsh/b$c;->e:Ljava/lang/Object;

    iput-object p0, v0, Lsh/b$c;->f:Ljava/lang/Object;

    iput-object p0, v0, Lsh/b$c;->g:Ljava/lang/Object;

    iput v3, v0, Lsh/b$c;->b:I

    invoke-virtual {p0, v0}, Lsh/b;->b(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object p1

    if-ne p1, v1, :cond_55

    return-object v1

    :cond_55
    move-object v1, p0

    move-object v2, v1

    :goto_57
    check-cast p1, Lcom/shopee/protocol/ResponseCommon;

    iput-object p1, v1, Lsh/b;->a:Lcom/shopee/protocol/ResponseCommon;

    return-object v2
.end method

.method public a(Ljava/lang/Class;)Z
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "+",
            "Lsh/j<",
            "*>;>;)Z"
        }
    .end annotation

    const/4 p1, 0x0

    return p1
.end method

.method public final synthetic b(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/coroutines/Continuation<",
            "-",
            "Lcom/shopee/protocol/ResponseCommon;",
            ">;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    invoke-static {}, Lbd/a;->b()Z

    move-result v0

    const/4 v1, -0x1

    const-string v2, "ChatReadyFlow"

    const/4 v3, 0x0

    if-nez v0, :cond_2c

    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object v0, Lsh/b$e;->a:Lsh/b$e;

    invoke-virtual {p1, v2, v0}, Lqa/d$a;->e(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    new-instance p1, Lcom/shopee/protocol/ResponseCommon;

    const/4 v5, 0x0

    sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->TIMEOUT:Lcom/garena/tcpcore/exception/TCPError;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    invoke-static {v0}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-static {v1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v7

    const/4 v8, 0x0

    invoke-static {v3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v9

    move-object v4, p1

    invoke-direct/range {v4 .. v9}, Lcom/shopee/protocol/ResponseCommon;-><init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Integer;)V

    return-object p1

    :cond_2c
    sget-object v0, Lfc/a;->o:Lfc/a;

    invoke-virtual {v0}, Lfc/a;->g()Z

    move-result v0

    if-nez v0, :cond_56

    sget-object p1, Lqa/d;->e:Lqa/d$a;

    sget-object v0, Lsh/b$f;->a:Lsh/b$f;

    invoke-virtual {p1, v2, v0}, Lqa/d$a;->e(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    new-instance p1, Lcom/shopee/protocol/ResponseCommon;

    const/4 v5, 0x0

    sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->UNKNOWN:Lcom/garena/tcpcore/exception/TCPError;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    invoke-static {v0}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-static {v1}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v7

    const/4 v8, 0x0

    invoke-static {v3}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v9

    move-object v4, p1

    invoke-direct/range {v4 .. v9}, Lcom/shopee/protocol/ResponseCommon;-><init>(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Long;Ljava/lang/Integer;)V

    return-object p1

    :cond_56
    new-instance v0, Lkotlin/coroutines/SafeContinuation;

    invoke-static {p1}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsJvmKt;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;

    move-result-object v1

    invoke-direct {v0, v1}, Lkotlin/coroutines/SafeContinuation;-><init>(Lkotlin/coroutines/Continuation;)V

    new-instance v1, Lan/b;

    sget-object v4, Lkg/a;->d:Lkg/a;

    invoke-virtual {v4}, Lkg/a;->b()Landroidx/lifecycle/MutableLiveData;

    move-result-object v4

    invoke-virtual {v4}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    iget-object v5, p0, Lsh/b;->b:Lsh/c;

    invoke-virtual {v5}, Lsh/c;->a()Z

    move-result v5

    iget-object v6, p0, Lsh/b;->b:Lsh/c;

    invoke-virtual {v6}, Lsh/c;->b()Z

    move-result v6

    const/4 v7, 0x1

    new-array v8, v7, [Ljava/lang/Integer;

    invoke-static {v7}, Lkotlin/coroutines/jvm/internal/Boxing;->boxInt(I)Ljava/lang/Integer;

    move-result-object v7

    aput-object v7, v8, v3

    invoke-static {v8}, Lkotlin/collections/CollectionsKt__CollectionsKt;->arrayListOf([Ljava/lang/Object;)Ljava/util/ArrayList;

    move-result-object v7

    invoke-direct {v1, v4, v5, v6, v7}, Lan/b;-><init>(Ljava/lang/Long;ZZLjava/util/List;)V

    sget-object v4, Lsc/a;->d:Lsc/a;

    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v6, "CHAT_READY : noNeedChat:"

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

    iget-object v6, p0, Lsh/b;->b:Lsh/c;

    invoke-virtual {v6}, Lsh/c;->a()Z

    move-result v6

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

    const-string v6, " noNeedNoti:"

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

    iget-object v6, p0, Lsh/b;->b:Lsh/c;

    invoke-virtual {v6}, Lsh/c;->b()Z

    move-result v6

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

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

    move-result-object v5

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v4, v5, v3}, Lsc/a;->a(Ljava/lang/String;[Ljava/lang/Object;)V

    new-instance v3, Lsh/b$a;

    invoke-direct {v3, v1, v0}, Lsh/b$a;-><init>(Lan/b;Lkotlin/coroutines/Continuation;)V

    invoke-virtual {v1, v3}, Lmc/b;->a(Lrc/a;)V

    sget-object v3, Lqa/d;->e:Lqa/d$a;

    new-instance v4, Lsh/b$d;

    invoke-direct {v4, v1, p0}, Lsh/b$d;-><init>(Lan/b;Lsh/b;)V

    invoke-virtual {v3, v2, v4}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V

    invoke-virtual {v0}, Lkotlin/coroutines/SafeContinuation;->getOrThrow()Ljava/lang/Object;

    move-result-object v0

    invoke-static {}, Lkotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt;->getCOROUTINE_SUSPENDED()Ljava/lang/Object;

    move-result-object v1

    if-ne v0, v1, :cond_d4

    invoke-static {p1}, Lkotlin/coroutines/jvm/internal/DebugProbesKt;->probeCoroutineSuspended(Lkotlin/coroutines/Continuation;)V

    :cond_d4
    return-object v0
.end method

.method public getValue()Lcom/shopee/protocol/ResponseCommon;
    .registers 3

    iget-object v0, p0, Lsh/b;->a:Lcom/shopee/protocol/ResponseCommon;

    if-nez v0, :cond_9

    const-string v1, "result"

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

    :cond_9
    return-object v0
.end method

.method public bridge synthetic getValue()Ljava/lang/Object;
    .registers 2

    invoke-virtual {p0}, Lsh/b;->getValue()Lcom/shopee/protocol/ResponseCommon;

    move-result-object v0

    return-object v0
.end method

.method public i()Z
    .registers 4

    sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->TIMEOUT:Lcom/garena/tcpcore/exception/TCPError;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    iget-object v1, p0, Lsh/b;->a:Lcom/shopee/protocol/ResponseCommon;

    if-nez v1, :cond_f

    const-string v2, "result"

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

    :cond_f
    iget-object v1, v1, Lcom/shopee/protocol/ResponseCommon;->errcode:Ljava/lang/Integer;

    if-nez v1, :cond_14

    goto :goto_1c

    :cond_14
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_1c

    const/4 v0, 0x1

    goto :goto_1d

    :cond_1c
    :goto_1c
    const/4 v0, 0x0

    :goto_1d
    return v0
.end method

.method public j()Z
    .registers 4

    sget-object v0, Lcom/garena/tcpcore/exception/TCPError;->NONE:Lcom/garena/tcpcore/exception/TCPError;

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    iget-object v1, p0, Lsh/b;->a:Lcom/shopee/protocol/ResponseCommon;

    if-nez v1, :cond_f

    const-string v2, "result"

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

    :cond_f
    iget-object v1, v1, Lcom/shopee/protocol/ResponseCommon;->errcode:Ljava/lang/Integer;

    if-nez v1, :cond_14

    goto :goto_1c

    :cond_14
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_1c

    const/4 v0, 0x1

    goto :goto_1d

    :cond_1c
    :goto_1c
    const/4 v0, 0x0

    :goto_1d
    return v0
.end method