u.smali

.class public final Lcom/masala/share/proto/u;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/masala/share/proto/u$b;,
        Lcom/masala/share/proto/u$a;
    }
.end annotation


# static fields
.field public static final a:Lcom/masala/share/proto/u;

.field private static b:Lcom/masala/share/proto/h;

.field private static final c:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList<",
            "Ljava/lang/Runnable;",
            ">;"
        }
    .end annotation
.end field

.field private static final d:Lcom/masala/share/proto/m;

.field private static final e:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/masala/share/proto/u$b;",
            ">;"
        }
    .end annotation
.end field

.field private static final f:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet<",
            "Lcom/masala/share/proto/u$a;",
            ">;"
        }
    .end annotation
.end field

.field private static g:Z


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

    .line 29
    new-instance v0, Lcom/masala/share/proto/u;

    invoke-direct {v0}, Lcom/masala/share/proto/u;-><init>()V

    sput-object v0, Lcom/masala/share/proto/u;->a:Lcom/masala/share/proto/u;

    .line 39
    new-instance v0, Ljava/util/LinkedList;

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

    sput-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    .line 40
    new-instance v0, Lcom/masala/share/proto/m;

    invoke-direct {v0}, Lcom/masala/share/proto/m;-><init>()V

    sput-object v0, Lcom/masala/share/proto/u;->d:Lcom/masala/share/proto/m;

    .line 41
    new-instance v0, Ljava/util/ArrayList;

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

    sput-object v0, Lcom/masala/share/proto/u;->e:Ljava/util/ArrayList;

    .line 42
    new-instance v0, Ljava/util/HashSet;

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

    sput-object v0, Lcom/masala/share/proto/u;->f:Ljava/util/HashSet;

    return-void
.end method

.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static final a()V
    .registers 4

    const-string v0, "YYGlobals"

    const-string v1, "init"

    .line 46
    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 47
    sget-object v0, Lcom/masala/share/proto/u;->d:Lcom/masala/share/proto/m;

    .line 2029
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object v1

    iget-object v2, v0, Lcom/masala/share/proto/m;->b:Lcom/masala/share/eventbus/c$a;

    const-string v3, "linkd_conn_change"

    filled-new-array {v3}, [Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v2, v3}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;[Ljava/lang/String;)V

    .line 2032
    invoke-static {}, Lcom/imo/android/imoim/filetransfer/l;->a()Lcom/imo/android/imoim/filetransfer/l;

    move-result-object v1

    new-instance v2, Lcom/masala/share/proto/m$1;

    invoke-direct {v2, v0}, Lcom/masala/share/proto/m$1;-><init>(Lcom/masala/share/proto/m;)V

    .line 2088
    iput-object v2, v1, Lcom/imo/android/imoim/filetransfer/l;->f:Lcom/imo/android/imoim/filetransfer/l$a;

    const-string v0, ":YYGlobals:init"

    .line 48
    invoke-static {v0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V

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

    move-result-object v0

    check-cast v0, Lkotlin/c/e;

    invoke-static {v0}, Lkotlinx/coroutines/ag;->a(Lkotlin/c/e;)Lkotlinx/coroutines/af;

    move-result-object v0

    new-instance v1, Lcom/masala/share/proto/u$e;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Lcom/masala/share/proto/u$e;-><init>(Lkotlin/c/c;)V

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

    const/4 v3, 0x3

    invoke-static {v0, v2, v2, v1, v3}, Lkotlinx/coroutines/e;->a(Lkotlinx/coroutines/af;Lkotlin/c/e;Lkotlinx/coroutines/ah;Lkotlin/f/a/m;I)Lkotlinx/coroutines/br;

    .line 62
    invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V

    return-void
.end method

.method public static final synthetic a(Lcom/masala/share/proto/h;)V
    .registers 1

    .line 29
    sput-object p0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    return-void
.end method

.method public static final a(Lcom/masala/share/proto/u$a;)V
    .registers 2

    const-string v0, "listener"

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

    .line 130
    sget-object v0, Lcom/masala/share/proto/u;->f:Ljava/util/HashSet;

    invoke-virtual {v0, p0}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public static final a(Lcom/masala/share/proto/u$b;)V
    .registers 2

    const-string v0, "l"

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

    .line 107
    sget-object v0, Lcom/masala/share/proto/u;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_12

    .line 108
    sget-object v0, Lcom/masala/share/proto/u;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_12
    return-void
.end method

.method public static final a(Ljava/lang/Runnable;)Z
    .registers 2

    const-string v0, "runnable"

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

    .line 84
    invoke-static {}, Lcom/masala/share/proto/u;->b()Z

    move-result v0

    if-eqz v0, :cond_10

    .line 85
    invoke-interface {p0}, Ljava/lang/Runnable;->run()V

    const/4 p0, 0x1

    return p0

    .line 88
    :cond_10
    sget-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    invoke-virtual {v0, p0}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    const/4 p0, 0x0

    return p0
.end method

.method public static final a(Z)Z
    .registers 2

    .line 139
    sput-boolean p0, Lcom/masala/share/proto/u;->g:Z

    .line 140
    invoke-static {}, Lcom/masala/share/proto/u;->b()Z

    move-result v0

    if-eqz v0, :cond_11

    .line 141
    sget-object v0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    if-eqz v0, :cond_f

    invoke-interface {v0, p0}, Lcom/masala/share/proto/h;->b(Z)V

    :cond_f
    const/4 p0, 0x1

    return p0

    :cond_11
    const/4 p0, 0x0

    return p0
.end method

.method public static final b(Lcom/masala/share/proto/u$b;)V
    .registers 2

    const-string v0, "l"

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

    .line 114
    sget-object v0, Lcom/masala/share/proto/u;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public static final b(Ljava/lang/Runnable;)V
    .registers 2

    if-nez p0, :cond_3

    return-void

    .line 98
    :cond_3
    sget-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    invoke-virtual {v0, p0}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public static final b()Z
    .registers 1

    .line 67
    sget-object v0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    if-eqz v0, :cond_6

    const/4 v0, 0x1

    return v0

    :cond_6
    const/4 v0, 0x0

    return v0
.end method

.method public static final c()Lcom/masala/share/proto/h;
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/masala/share/proto/YYServiceUnboundException;
        }
    .end annotation

    .line 73
    sget-object v0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    if-eqz v0, :cond_a

    if-nez v0, :cond_9

    .line 76
    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_9
    return-object v0

    .line 74
    :cond_a
    new-instance v0, Lcom/masala/share/proto/YYServiceUnboundException;

    const-string v1, "YYClient is not bound yet"

    invoke-direct {v0, v1}, Lcom/masala/share/proto/YYServiceUnboundException;-><init>(Ljava/lang/String;)V

    check-cast v0, Ljava/lang/Throwable;

    throw v0
.end method

.method public static final d()Lcom/masala/share/proto/m;
    .registers 1

    .line 80
    sget-object v0, Lcom/masala/share/proto/u;->d:Lcom/masala/share/proto/m;

    return-object v0
.end method

.method public static final e()Z
    .registers 1

    .line 134
    sget-boolean v0, Lcom/masala/share/proto/u;->g:Z

    return v0
.end method

.method public static final synthetic f()V
    .registers 2

    const-string v0, ":YYGlobals:doAfterBoundUI"

    .line 2150
    invoke-static {v0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V

    .line 3118
    new-instance v0, Ljava/util/ArrayList;

    sget-object v1, Lcom/masala/share/proto/u;->e:Ljava/util/ArrayList;

    check-cast v1, Ljava/util/Collection;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 3119
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_22

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

    move-result-object v1

    check-cast v1, Lcom/masala/share/proto/u$b;

    .line 3120
    invoke-interface {v1}, Lcom/masala/share/proto/u$b;->m()V

    goto :goto_12

    .line 2152
    :cond_22
    :goto_22
    sget-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    check-cast v0, Ljava/util/Collection;

    invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_3f

    .line 2153
    sget-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->getFirst()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    .line 2154
    sget-object v0, Lcom/masala/share/proto/u;->c:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeFirst()Ljava/lang/Object;

    goto :goto_22

    .line 2156
    :cond_3f
    invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V

    return-void
.end method

.method public static final synthetic g()V
    .registers 3

    const-string v0, ":YYGlobals:doAfterBoundBg"

    .line 3161
    invoke-static {v0}, Landroidx/core/os/TraceCompat;->beginSection(Ljava/lang/String;)V

    .line 3163
    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/masala/share/utils/j;->c(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 3164
    move-object v1, v0

    check-cast v1, Ljava/lang/CharSequence;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_26

    const/4 v1, 0x0

    .line 4019
    :try_start_17
    invoke-static {}, Lcom/masala/share/proto/u;->c()Lcom/masala/share/proto/h;

    move-result-object v2

    invoke-interface {v2}, Lcom/masala/share/proto/h;->b()Lcom/masala/share/proto/b/h;

    move-result-object v1
    :try_end_1f
    .catch Lcom/masala/share/proto/YYServiceUnboundException; {:try_start_17 .. :try_end_1f} :catch_20

    goto :goto_21

    :catch_20
    nop

    :goto_21
    if-eqz v1, :cond_26

    .line 4026
    invoke-interface {v1, v0}, Lcom/masala/share/proto/i;->a(Ljava/lang/String;)V

    .line 3167
    :cond_26
    sget-object v0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    if-eqz v0, :cond_36

    invoke-interface {v0}, Lcom/masala/share/proto/h;->b()Lcom/masala/share/proto/b/h;

    move-result-object v0

    if-eqz v0, :cond_36

    sget-object v1, Lcom/masala/share/proto/u$c;->a:Lcom/masala/share/proto/u$c;

    check-cast v1, Lcom/masala/share/proto/c;

    .line 4289
    iput-object v1, v0, Lcom/masala/share/proto/b/h;->a:Lcom/masala/share/proto/c;

    .line 3175
    :cond_36
    sget-object v0, Lcom/masala/share/proto/u;->b:Lcom/masala/share/proto/h;

    if-eqz v0, :cond_44

    new-instance v1, Lcom/masala/share/proto/u$d;

    invoke-direct {v1}, Lcom/masala/share/proto/u$d;-><init>()V

    check-cast v1, Lsg/bigo/sdk/blivestat/IBLiveStatisSender;

    invoke-interface {v0, v1}, Lcom/masala/share/proto/h;->a(Lsg/bigo/sdk/blivestat/IBLiveStatisSender;)V

    .line 3200
    :cond_44
    invoke-static {}, Landroidx/core/os/TraceCompat;->endSection()V

    return-void
.end method

.method public static final synthetic h()Ljava/util/HashSet;
    .registers 1

    .line 29
    sget-object v0, Lcom/masala/share/proto/u;->f:Ljava/util/HashSet;

    return-object v0
.end method