e$e.smali

.class public final Llh/e$e;
.super Lkotlin/coroutines/jvm/internal/SuspendLambda;
.source "LocationRepoRealImpl.kt"

# interfaces
.implements Lkotlin/jvm/functions/Function2;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llh/e;->a(Lkotlinx/coroutines/channels/Channel;Lgh/j;[Llh/b;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/coroutines/jvm/internal/SuspendLambda;",
        "Lkotlin/jvm/functions/Function2<",
        "Lkotlinx/coroutines/CoroutineScope;",
        "Lkotlin/coroutines/Continuation<",
        "-",
        "Lkotlin/Unit;",
        ">;",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation

.annotation runtime Lkotlin/Metadata;
    bv = {
        0x1,
        0x0,
        0x3
    }
    d1 = {
        "\u0000\u0012\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0008\u0003\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u008a@\u00a2\u0006\u0004\u0008\u0003\u0010\u0004\u00a8\u0006\u0005"
    }
    d2 = {
        "<anonymous>",
        "",
        "Lkotlinx/coroutines/CoroutineScope;",
        "invoke",
        "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;",
        "com/shopee/foody/driver/location/repository/LocationRepoRealImpl$parallelSingleFetchJobs$1$1"
    }
    k = 0x3
    mv = {
        0x1,
        0x1,
        0x10
    }
.end annotation


# instance fields
.field public a:Lkotlinx/coroutines/CoroutineScope;

.field public b:Ljava/lang/Object;

.field public c:Ljava/lang/Object;

.field public d:I

.field public final synthetic e:Llh/b;

.field public final synthetic f:Lkotlinx/coroutines/channels/Channel;

.field public final synthetic g:Lgh/j;


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

    return-void
.end method

.method public constructor <init>(Llh/b;Lkotlin/coroutines/Continuation;Lkotlinx/coroutines/channels/Channel;Lgh/j;)V
    .registers 5

    iput-object p1, p0, Llh/e$e;->e:Llh/b;

    iput-object p3, p0, Llh/e$e;->f:Lkotlinx/coroutines/channels/Channel;

    iput-object p4, p0, Llh/e$e;->g:Lgh/j;

    const/4 p1, 0x2

    invoke-direct {p0, p1, p2}, Lkotlin/coroutines/jvm/internal/SuspendLambda;-><init>(ILkotlin/coroutines/Continuation;)V

    return-void
.end method


# virtual methods
.method public final create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Object;",
            "Lkotlin/coroutines/Continuation<",
            "*>;)",
            "Lkotlin/coroutines/Continuation<",
            "Lkotlin/Unit;",
            ">;"
        }
    .end annotation

    new-instance v0, Llh/e$e;

    iget-object v1, p0, Llh/e$e;->e:Llh/b;

    iget-object v2, p0, Llh/e$e;->f:Lkotlinx/coroutines/channels/Channel;

    iget-object v3, p0, Llh/e$e;->g:Lgh/j;

    invoke-direct {v0, v1, p2, v2, v3}, Llh/e$e;-><init>(Llh/b;Lkotlin/coroutines/Continuation;Lkotlinx/coroutines/channels/Channel;Lgh/j;)V

    check-cast p1, Lkotlinx/coroutines/CoroutineScope;

    iput-object p1, v0, Llh/e$e;->a:Lkotlinx/coroutines/CoroutineScope;

    return-object v0
.end method

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

    check-cast p2, Lkotlin/coroutines/Continuation;

    invoke-virtual {p0, p1, p2}, Llh/e$e;->create(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;

    move-result-object p1

    check-cast p1, Llh/e$e;

    sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;

    invoke-virtual {p1, p2}, Llh/e$e;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method public final invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 12

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

    move-result-object v0

    iget v1, p0, Llh/e$e;->d:I

    const/4 v2, 0x2

    const/4 v3, 0x1

    const-string v4, "LocationRepoRealImpl"

    if-eqz v1, :cond_2c

    if-eq v1, v3, :cond_20

    if-ne v1, v2, :cond_18

    iget-object v0, p0, Llh/e$e;->b:Ljava/lang/Object;

    check-cast v0, Lkotlinx/coroutines/CoroutineScope;

    :try_start_14
    invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
    :try_end_17
    .catch Lkotlinx/coroutines/channels/ClosedSendChannelException; {:try_start_14 .. :try_end_17} :catch_70

    goto :goto_7b

    :cond_18
    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_20
    iget-object v1, p0, Llh/e$e;->c:Ljava/lang/Object;

    check-cast v1, Lkotlinx/coroutines/channels/Channel;

    iget-object v3, p0, Llh/e$e;->b:Ljava/lang/Object;

    check-cast v3, Lkotlinx/coroutines/CoroutineScope;

    :try_start_28
    invoke-static {p1}, Lkotlin/ResultKt;->throwOnFailure(Ljava/lang/Object;)V
    :try_end_2b
    .catch Lkotlinx/coroutines/channels/ClosedSendChannelException; {:try_start_28 .. :try_end_2b} :catch_70

    goto :goto_65

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

    iget-object p1, p0, Llh/e$e;->a:Lkotlinx/coroutines/CoroutineScope;

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

    new-instance v5, Llh/e$e$a;

    invoke-direct {v5, p0}, Llh/e$e$a;-><init>(Llh/e$e;)V

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

    iget-object v1, p0, Llh/e$e;->f:Lkotlinx/coroutines/channels/Channel;

    invoke-interface {v1}, Lkotlinx/coroutines/channels/SendChannel;->isClosedForSend()Z

    move-result v1

    if-eqz v1, :cond_4d

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

    sget-object v0, Llh/f;->a:Llh/f;

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

    sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;

    return-object p1

    :cond_4d
    :try_start_4d
    iget-object v1, p0, Llh/e$e;->f:Lkotlinx/coroutines/channels/Channel;

    iget-object v5, p0, Llh/e$e;->e:Llh/b;

    iget-object v6, p0, Llh/e$e;->g:Lgh/j;

    const-wide/16 v7, 0x1388

    iput-object p1, p0, Llh/e$e;->b:Ljava/lang/Object;

    iput-object v1, p0, Llh/e$e;->c:Ljava/lang/Object;

    iput v3, p0, Llh/e$e;->d:I

    invoke-interface {v5, v6, v7, v8, p0}, Llh/b;->a(Lgh/j;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object v3

    if-ne v3, v0, :cond_62

    return-object v0

    :cond_62
    move-object v9, v3

    move-object v3, p1

    move-object p1, v9

    :goto_65
    iput-object v3, p0, Llh/e$e;->b:Ljava/lang/Object;

    iput v2, p0, Llh/e$e;->d:I

    invoke-interface {v1, p1, p0}, Lkotlinx/coroutines/channels/SendChannel;->send(Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;

    move-result-object p1
    :try_end_6d
    .catch Lkotlinx/coroutines/channels/ClosedSendChannelException; {:try_start_4d .. :try_end_6d} :catch_70

    if-ne p1, v0, :cond_7b

    return-object v0

    :catch_70
    move-exception p1

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

    new-instance v1, Llh/e$e$b;

    invoke-direct {v1, p1}, Llh/e$e$b;-><init>(Lkotlinx/coroutines/channels/ClosedSendChannelException;)V

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

    :cond_7b
    :goto_7b
    sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;

    return-object p1
.end method