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

200 lines
4.3 KiB
Smali
Raw Normal View History

2020-11-14 03:19:56 +00:00
.class public Lg0/w;
2020-11-13 19:18:44 +00:00
.super Ljava/lang/Object;
.source "Platform.java"
2020-11-12 02:11:44 +00:00
# annotations
2020-11-13 19:18:44 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
2020-11-12 02:11:44 +00:00
value = {
2020-11-14 03:19:56 +00:00
Lg0/w$a;
2020-11-12 02:11:44 +00:00
}
.end annotation
2020-11-13 19:18:44 +00:00
# static fields
2020-11-14 03:19:56 +00:00
.field public static final c:Lg0/w;
2020-11-13 19:18:44 +00:00
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-13 19:18:44 +00:00
.field public final a:Z
.field public final b:Ljava/lang/reflect/Constructor;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/reflect/Constructor<",
"Ljava/lang/invoke/MethodHandles$Lookup;",
">;"
}
.end annotation
.end field
2020-11-12 02:11:44 +00:00
# direct methods
2020-11-13 19:18:44 +00:00
.method public static constructor <clinit>()V
.locals 2
const-string v0, "java.vm.name"
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "Dalvik"
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
2020-11-14 03:19:56 +00:00
new-instance v0, Lg0/w$a;
2020-11-13 19:18:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0}, Lg0/w$a;-><init>()V
2020-11-13 19:18:44 +00:00
goto :goto_0
:cond_0
2020-11-14 03:19:56 +00:00
new-instance v0, Lg0/w;
2020-11-13 19:18:44 +00:00
const/4 v1, 0x1
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v1}, Lg0/w;-><init>(Z)V
2020-11-13 19:18:44 +00:00
:goto_0
2020-11-14 03:19:56 +00:00
sput-object v0, Lg0/w;->c:Lg0/w;
2020-11-13 19:18:44 +00:00
return-void
.end method
.method public constructor <init>(Z)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-11-14 03:19:56 +00:00
iput-boolean p1, p0, Lg0/w;->a:Z
2020-11-13 19:18:44 +00:00
const/4 v0, 0x0
if-eqz p1, :cond_0
:try_start_0
const-class p1, Ljava/lang/invoke/MethodHandles$Lookup;
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Class;
const/4 v2, 0x0
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const-class v3, Ljava/lang/Class;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
aput-object v3, v1, v2
sget-object v2, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
const/4 v3, 0x1
aput-object v2, v1, v3
invoke-virtual {p1, v1}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
invoke-virtual {v0, v3}, Ljava/lang/reflect/Constructor;->setAccessible(Z)V
:try_end_0
.catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
:cond_0
2020-11-14 03:19:56 +00:00
iput-object v0, p0, Lg0/w;->b:Ljava/lang/reflect/Constructor;
2020-11-12 02:11:44 +00:00
return-void
.end method
# virtual methods
2020-11-13 19:18:44 +00:00
.method public a()Ljava/util/concurrent/Executor;
.locals 1
const/4 v0, 0x0
return-object v0
.end method
.method public varargs b(Ljava/lang/reflect/Method;Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
.locals 4
2020-11-13 19:18:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/reflect/Method;",
"Ljava/lang/Class<",
"*>;",
"Ljava/lang/Object;",
"[",
"Ljava/lang/Object;",
")",
"Ljava/lang/Object;"
}
.end annotation
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Throws;
value = {
2020-11-13 19:18:44 +00:00
Ljava/lang/Throwable;
2020-11-12 02:11:44 +00:00
}
.end annotation
2020-11-13 19:18:44 +00:00
.annotation build Lorg/codehaus/mojo/animal_sniffer/IgnoreJRERequirement;
.end annotation
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-object v0, p0, Lg0/w;->b:Ljava/lang/reflect/Constructor;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v1, 0x2
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
new-array v1, v1, [Ljava/lang/Object;
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v2, 0x0
aput-object p2, v1, v2
const/4 v2, 0x1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
const/4 v3, -0x1
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
2020-11-12 02:11:44 +00:00
move-result-object v3
2020-11-13 19:18:44 +00:00
aput-object v3, v1, v2
2020-11-12 02:11:44 +00:00
2020-11-13 19:18:44 +00:00
invoke-virtual {v0, v1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/invoke/MethodHandles$Lookup;
2020-11-12 02:11:44 +00:00
goto :goto_0
2020-11-13 19:18:44 +00:00
:cond_0
invoke-static {}, Ljava/lang/invoke/MethodHandles;->lookup()Ljava/lang/invoke/MethodHandles$Lookup;
move-result-object v0
:goto_0
invoke-virtual {v0, p1, p2}, Ljava/lang/invoke/MethodHandles$Lookup;->unreflectSpecial(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
move-result-object p1
invoke-virtual {p1, p3}, Ljava/lang/invoke/MethodHandle;->bindTo(Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
move-result-object p1
invoke-virtual {p1, p4}, Ljava/lang/invoke/MethodHandle;->invokeWithArguments([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
2020-11-12 02:11:44 +00:00
.end method