apkfuckery/com.discord/smali_classes2/w/k.smali

211 lines
3.9 KiB
Smali
Raw Normal View History

2020-02-20 19:33:18 +00:00
.class public final Lw/k;
2019-12-21 01:41:59 +00:00
.super Ljava/lang/Object;
.source "LazyJVM.kt"
# interfaces
.implements Lkotlin/Lazy;
.implements Ljava/io/Serializable;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"<T:",
"Ljava/lang/Object;",
">",
2019-07-24 11:27:29 +00:00
"Ljava/lang/Object;",
2019-12-21 01:41:59 +00:00
"Lkotlin/Lazy<",
"TT;>;",
"Ljava/io/Serializable;"
2019-07-24 11:27:29 +00:00
}
.end annotation
# instance fields
2019-12-21 01:41:59 +00:00
.field public volatile _value:Ljava/lang/Object;
.field public initializer:Lkotlin/jvm/functions/Function0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/jvm/functions/Function0<",
"+TT;>;"
}
.end annotation
.end field
.field public final lock:Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-21 01:41:59 +00:00
.method public synthetic constructor <init>(Lkotlin/jvm/functions/Function0;Ljava/lang/Object;I)V
.locals 1
and-int/lit8 p3, p3, 0x2
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
if-eqz p3, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
move-object p2, v0
:cond_0
if-eqz p1, :cond_2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lw/k;->initializer:Lkotlin/jvm/functions/Function0;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
sget-object p1, Lw/m;->a:Lw/m;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
iput-object p1, p0, Lw/k;->_value:Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
if-eqz p2, :cond_1
goto :goto_0
:cond_1
move-object p2, p0
:goto_0
2020-02-20 19:33:18 +00:00
iput-object p2, p0, Lw/k;->lock:Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
return-void
2019-12-21 01:41:59 +00:00
:cond_2
const-string p1, "initializer"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
throw v0
.end method
.method private final writeReplace()Ljava/lang/Object;
.locals 2
2020-02-20 19:33:18 +00:00
new-instance v0, Lw/b;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lw/k;->getValue()Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
move-result-object v1
2020-02-20 19:33:18 +00:00
invoke-direct {v0, v1}, Lw/b;-><init>(Ljava/lang/Object;)V
2019-12-21 01:41:59 +00:00
return-object v0
2019-07-24 11:27:29 +00:00
.end method
# virtual methods
2019-12-21 01:41:59 +00:00
.method public getValue()Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Signature;
2019-07-24 11:27:29 +00:00
value = {
2019-12-21 01:41:59 +00:00
"()TT;"
2019-07-24 11:27:29 +00:00
}
.end annotation
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lw/k;->_value:Ljava/lang/Object;
2019-12-18 09:41:56 +00:00
2020-02-20 19:33:18 +00:00
sget-object v1, Lw/m;->a:Lw/m;
2019-12-21 01:41:59 +00:00
if-eq v0, v1, :cond_0
return-object v0
2019-07-24 11:27:29 +00:00
2019-12-18 09:41:56 +00:00
:cond_0
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lw/k;->lock:Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
monitor-enter v0
:try_start_0
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lw/k;->_value:Ljava/lang/Object;
2019-12-18 09:41:56 +00:00
2020-02-20 19:33:18 +00:00
sget-object v2, Lw/m;->a:Lw/m;
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
if-eq v1, v2, :cond_1
goto :goto_0
:cond_1
2020-02-20 19:33:18 +00:00
iget-object v1, p0, Lw/k;->initializer:Lkotlin/jvm/functions/Function0;
2019-12-21 01:41:59 +00:00
const/4 v2, 0x0
if-eqz v1, :cond_2
invoke-interface {v1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v1
2020-02-20 19:33:18 +00:00
iput-object v1, p0, Lw/k;->_value:Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
iput-object v2, p0, Lw/k;->initializer:Lkotlin/jvm/functions/Function0;
2019-12-21 01:41:59 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-12-18 09:41:56 +00:00
2019-12-20 07:00:35 +00:00
:goto_0
2019-12-21 01:41:59 +00:00
monitor-exit v0
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
return-object v1
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
:cond_2
:try_start_1
2020-02-20 19:33:18 +00:00
invoke-static {}, Lw/u/b/j;->throwNpe()V
2019-12-21 01:41:59 +00:00
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
throw v2
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
:catchall_0
move-exception v1
2019-12-18 09:41:56 +00:00
2019-12-21 01:41:59 +00:00
monitor-exit v0
throw v1
.end method
.method public isInitialized()Z
.locals 2
2020-02-20 19:33:18 +00:00
iget-object v0, p0, Lw/k;->_value:Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
sget-object v1, Lw/m;->a:Lw/m;
2019-12-21 01:41:59 +00:00
if-eq v0, v1, :cond_0
const/4 v0, 0x1
2019-12-18 09:41:56 +00:00
goto :goto_0
2019-12-21 01:41:59 +00:00
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lw/k;->isInitialized()Z
2019-12-21 01:41:59 +00:00
move-result v0
if-eqz v0, :cond_0
2020-02-20 19:33:18 +00:00
invoke-virtual {p0}, Lw/k;->getValue()Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
move-result-object v0
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
const-string v0, "Lazy value not initialized yet."
:goto_0
return-object v0
2019-07-24 11:27:29 +00:00
.end method