a$d.smali

.class public final Lsg/bigo/sdk/c/a$d;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/sdk/c/b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lsg/bigo/sdk/c/a;-><init>(Llive/sg/bigo/sdk/network/g/a$c;)V
.end annotation

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


# instance fields
.field volatile a:Z


# direct methods
.method constructor <init>()V
    .registers 2

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

    const/4 v0, 0x1

    .line 41
    iput-boolean v0, p0, Lsg/bigo/sdk/c/a$d;->a:Z

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/Class;Lsg/bigo/sdk/d/c;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T::",
            "Lsg/bigo/sdk/d/b;",
            ">(",
            "Ljava/lang/Class<",
            "TT;>;",
            "Lsg/bigo/sdk/d/c<",
            "TT;>;)V"
        }
    .end annotation

    const-string v0, "serviceInterface"

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

    const-string v0, "creator"

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

    .line 44
    const-class v0, Lsg/bigo/sdk/c/a;

    monitor-enter v0

    .line 45
    :try_start_d
    iget-boolean v1, p0, Lsg/bigo/sdk/c/a$d;->a:Z

    if-nez v1, :cond_1d

    .line 48
    invoke-static {}, Lsg/bigo/sdk/c/a;->c()Lsg/bigo/sdk/d/d;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, p1, p2, v2}, Lsg/bigo/sdk/d/d;->a(Ljava/lang/Class;Lsg/bigo/sdk/d/c;Z)V

    .line 49
    sget-object p1, Lkotlin/w;->a:Lkotlin/w;
    :try_end_1b
    .catchall {:try_start_d .. :try_end_1b} :catchall_27

    .line 44
    monitor-exit v0

    return-void

    .line 46
    :cond_1d
    :try_start_1d
    new-instance p1, Ljava/lang/RuntimeException;

    const-string p2, "you should not reg after create"

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

    check-cast p1, Ljava/lang/Throwable;

    throw p1
    :try_end_27
    .catchall {:try_start_1d .. :try_end_27} :catchall_27

    :catchall_27
    move-exception p1

    .line 44
    monitor-exit v0

    throw p1
.end method