apkfuckery/com.discord/smali_classes2/k0/g.smali

152 lines
3 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lk0/g;
2020-07-23 01:06:17 +00:00
.super Ljava/lang/Object;
2020-07-25 00:57:58 +00:00
.source "Lazy.kt"
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
# interfaces
.implements Lkotlin/Lazy;
.implements Ljava/io/Serializable;
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lkotlin/Lazy<",
"TT;>;",
"Ljava/io/Serializable;"
}
.end annotation
# instance fields
.field public _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
2020-07-20 19:00:44 +00:00
2020-07-25 00:57:58 +00:00
# direct methods
2020-09-08 08:16:32 +00:00
.method public constructor <init>(Lkotlin/jvm/functions/Function0;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/functions/Function0<",
"+TT;>;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-20 19:00:44 +00:00
2020-09-08 08:16:32 +00:00
iput-object p1, p0, Lk0/g;->initializer:Lkotlin/jvm/functions/Function0;
2020-07-20 19:00:44 +00:00
2020-09-08 08:16:32 +00:00
sget-object p1, Lk0/f;->a:Lk0/f;
2020-07-20 19:00:44 +00:00
2020-09-08 08:16:32 +00:00
iput-object p1, p0, Lk0/g;->_value:Ljava/lang/Object;
2020-07-20 19:00:44 +00:00
2020-07-23 01:06:17 +00:00
return-void
.end method
2020-07-20 19:00:44 +00:00
2020-09-08 08:16:32 +00:00
.method private final writeReplace()Ljava/lang/Object;
.locals 2
2020-07-20 19:00:44 +00:00
2020-09-08 08:16:32 +00:00
new-instance v0, Lk0/a;
2020-05-17 12:40:10 +00:00
2020-09-08 08:16:32 +00:00
invoke-virtual {p0}, Lk0/g;->getValue()Ljava/lang/Object;
move-result-object v1
invoke-direct {v0, v1}, Lk0/a;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public getValue()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Lk0/g;->_value:Ljava/lang/Object;
sget-object v1, Lk0/f;->a:Lk0/f;
if-ne v0, v1, :cond_1
iget-object v0, p0, Lk0/g;->initializer:Lkotlin/jvm/functions/Function0;
const/4 v1, 0x0
if-eqz v0, :cond_0
invoke-interface {v0}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Lk0/g;->_value:Ljava/lang/Object;
iput-object v1, p0, Lk0/g;->initializer:Lkotlin/jvm/functions/Function0;
goto :goto_0
:cond_0
invoke-static {}, Lk0/n/c/h;->throwNpe()V
throw v1
:cond_1
:goto_0
iget-object v0, p0, Lk0/g;->_value:Ljava/lang/Object;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
iget-object v0, p0, Lk0/g;->_value:Ljava/lang/Object;
sget-object v1, Lk0/f;->a:Lk0/f;
if-eq v0, v1, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_1
invoke-virtual {p0}, Lk0/g;->getValue()Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
goto :goto_1
:cond_1
const-string v0, "Lazy value not initialized yet."
:goto_1
return-object v0
2020-05-17 12:40:10 +00:00
.end method