apkfuckery/com.discord/smali/e/a/b/f0.smali
2020-04-30 02:48:06 +02:00

245 lines
5.4 KiB
Smali

.class public final Le/a/b/f0;
.super Ljava/lang/Object;
.source "NativeLoader.kt"
# static fields
.field public static final a:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public static final b:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public static c:Z
.field public static final d:Le/a/b/f0;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Le/a/b/f0;
invoke-direct {v0}, Le/a/b/f0;-><init>()V
sput-object v0, Le/a/b/f0;->d:Le/a/b/f0;
const-string v0, "dsti"
invoke-static {v0}, Le/o/a/j/a;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object v0
sput-object v0, Le/a/b/f0;->a:Ljava/util/List;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
sput-object v0, Le/a/b/f0;->b:Ljava/util/List;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final declared-synchronized a(Lcom/discord/utilities/logging/Logger;)V
.locals 10
monitor-enter p0
:try_start_0
const-string v0, "logger"
if-eqz p1, :cond_3
sget-boolean v0, Le/a/b/f0;->c:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_0
monitor-exit p0
return-void
:cond_0
:try_start_1
sget-object v0, Le/a/b/f0;->a:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:try_start_2
invoke-static {v1}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
sget-object v2, Le/a/b/f0;->b:Ljava/util/List;
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-string v4, "NativeLoader"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "loaded lib: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
const/4 v6, 0x0
const/4 v7, 0x4
const/4 v8, 0x0
move-object v3, p1
invoke-static/range {v3 .. v8}, Lcom/discord/utilities/logging/Logger;->d$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;ILjava/lang/Object;)V
:try_end_2
.catch Ljava/lang/Error; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
goto :goto_0
:catch_0
move-exception v2
move-object v6, v2
:try_start_3
const-string v4, "NativeLoader"
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Failed to load lib: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v5
const/4 v7, 0x0
const/16 v8, 0x8
const/4 v9, 0x0
move-object v3, p1
invoke-static/range {v3 .. v9}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
goto :goto_0
:cond_1
sget-object v0, Le/a/b/f0;->b:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
sget-object v1, Le/a/b/f0;->a:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-eq v0, v1, :cond_2
const-string v3, "NativeLoader"
const-string v4, "Failed to load all native libs"
const/4 v5, 0x0
const/4 v6, 0x0
const/16 v7, 0xc
const/4 v8, 0x0
move-object v2, p1
invoke-static/range {v2 .. v8}, Lcom/discord/utilities/logging/Logger;->e$default(Lcom/discord/utilities/logging/Logger;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/Map;ILjava/lang/Object;)V
goto :goto_1
:cond_2
const/4 p1, 0x1
sput-boolean p1, Le/a/b/f0;->c:Z
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:goto_1
monitor-exit p0
return-void
:cond_3
:try_start_4
invoke-static {v0}, Lx/u/b/j;->a(Ljava/lang/String;)V
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
const/4 p1, 0x0
throw p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method