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

200 lines
4.3 KiB
Smali
Raw Normal View History

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