CyBearHomeViewModel$k.smali

.class final Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;
.super Lkotlin/c/b/a/j;
.source "SourceFile"

# interfaces
.implements Lkotlin/f/a/m;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;
.end annotation

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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lkotlin/c/b/a/j;",
        "Lkotlin/f/a/m<",
        "Lkotlinx/coroutines/af;",
        "Lkotlin/c/c<",
        "-",
        "Lkotlin/w;",
        ">;",
        "Ljava/lang/Object;",
        ">;"
    }
.end annotation

.annotation runtime Lkotlin/c/b/a/f;
    b = "CyBearHomeViewModel.kt"
    c = {
        0x11c
    }
    d = "invokeSuspend"
    e = "com.imo.android.imoim.community.bearcommunity.CyBearHomeViewModel$syncActivity$1"
.end annotation


# instance fields
.field a:Ljava/lang/Object;

.field b:I

.field final synthetic c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

.field private d:Lkotlinx/coroutines/af;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;Lkotlin/c/c;)V
    .registers 3

    iput-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    const/4 p1, 0x2

    invoke-direct {p0, p1, p2}, Lkotlin/c/b/a/j;-><init>(ILkotlin/c/c;)V

    return-void
.end method


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

    const-string v0, "completion"

    invoke-static {p2, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;

    iget-object v1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    invoke-direct {v0, v1, p2}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;-><init>(Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;Lkotlin/c/c;)V

    check-cast p1, Lkotlinx/coroutines/af;

    iput-object p1, v0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->d:Lkotlinx/coroutines/af;

    return-object v0
.end method

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

    check-cast p2, Lkotlin/c/c;

    invoke-virtual {p0, p1, p2}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->create(Ljava/lang/Object;Lkotlin/c/c;)Lkotlin/c/c;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;

    sget-object p2, Lkotlin/w;->a:Lkotlin/w;

    invoke-virtual {p1, p2}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->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 7

    .line 1054
    sget-object v0, Lkotlin/c/a/a;->COROUTINE_SUSPENDED:Lkotlin/c/a/a;

    .line 283
    iget v1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->b:I

    const/4 v2, 0x1

    if-eqz v1, :cond_15

    if-ne v1, v2, :cond_d

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

    goto :goto_37

    .line 299
    :cond_d
    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

    .line 283
    :cond_15
    invoke-static {p1}, Lkotlin/o;->a(Ljava/lang/Object;)V

    iget-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->d:Lkotlinx/coroutines/af;

    .line 284
    iget-object v1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    .line 2050
    iget-object v1, v1, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;->l:Lcom/imo/android/imoim/community/community/data/a;

    .line 284
    iput-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->a:Ljava/lang/Object;

    iput v2, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->b:I

    .line 2080
    invoke-static {}, Lsg/bigo/c/a/a;->a()Lkotlinx/coroutines/aa;

    move-result-object p1

    check-cast p1, Lkotlin/c/e;

    new-instance v3, Lcom/imo/android/imoim/community/community/data/a$d;

    const/4 v4, 0x0

    invoke-direct {v3, v1, v4}, Lcom/imo/android/imoim/community/community/data/a$d;-><init>(Lcom/imo/android/imoim/community/community/data/a;Lkotlin/c/c;)V

    check-cast v3, Lkotlin/f/a/m;

    .line 3001
    invoke-static {p1, v3, p0}, Lkotlinx/coroutines/g;->a(Lkotlin/c/e;Lkotlin/f/a/m;Lkotlin/c/c;)Ljava/lang/Object;

    move-result-object p1

    if-ne p1, v0, :cond_37

    return-object v0

    .line 283
    :cond_37
    :goto_37
    check-cast p1, Lcom/imo/android/imoim/managers/br;

    .line 286
    instance-of v0, p1, Lcom/imo/android/imoim/managers/br$b;

    const/4 v1, 0x0

    if-eqz v0, :cond_6c

    .line 287
    check-cast p1, Lcom/imo/android/imoim/managers/br$b;

    .line 3008
    iget-object p1, p1, Lcom/imo/android/imoim/managers/br$b;->a:Ljava/lang/Object;

    .line 287
    check-cast p1, Ljava/util/List;

    if-eqz p1, :cond_5d

    check-cast p1, Ljava/lang/Iterable;

    .line 443
    invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v0, 0x0

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

    move-result v3

    if-eqz v3, :cond_5e

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

    move-result-object v3

    check-cast v3, Lcom/imo/android/imoim/community/community/data/bean/f;

    .line 3021
    iget v3, v3, Lcom/imo/android/imoim/community/community/data/bean/f;->b:I

    add-int/2addr v0, v3

    goto :goto_4d

    :cond_5d
    const/4 v0, 0x0

    .line 290
    :cond_5e
    iget-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    invoke-static {p1}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;->g(Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;)Landroidx/lifecycle/MutableLiveData;

    move-result-object p1

    .line 3032
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    .line 290
    invoke-virtual {p1, v3}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    goto :goto_6d

    :cond_6c
    const/4 v0, 0x0

    .line 292
    :goto_6d
    iget-object p1, p0, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel$k;->c:Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;

    const/4 v3, 0x2

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

    const-string v4, "msg_num"

    aput-object v4, v3, v1

    .line 296
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v2

    const-string v0, "01301001"

    const-string v1, "102"

    .line 292
    invoke-virtual {p1, v0, v1, v3}, Lcom/imo/android/imoim/community/bearcommunity/CyBearHomeViewModel;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V

    .line 299
    sget-object p1, Lkotlin/w;->a:Lkotlin/w;

    return-object p1
.end method