apkfuckery/com.discord/smali/com/esotericsoftware/b/b.smali

641 lines
16 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public abstract Lcom/esotericsoftware/b/b;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "ConstructorAccess.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
2019-03-14 20:04:00 +00:00
.field BN:Z
2019-02-04 20:08:30 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static i(Ljava/lang/Class;)Lcom/esotericsoftware/b/b;
.locals 20
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Class<",
"TT;>;)",
"Lcom/esotericsoftware/b/b<",
"TT;>;"
}
.end annotation
move-object/from16 v1, p0
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getEnclosingClass()Ljava/lang/Class;
move-result-object v0
const/4 v2, 0x0
const/4 v3, 0x1
if-eqz v0, :cond_0
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->isMemberClass()Z
move-result v4
if-eqz v4, :cond_0
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getModifiers()I
move-result v4
invoke-static {v4}, Ljava/lang/reflect/Modifier;->isStatic(I)Z
move-result v4
if-nez v4, :cond_0
const/4 v4, 0x1
goto :goto_0
:cond_0
const/4 v4, 0x0
:goto_0
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v5
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v7, "ConstructorAccess"
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v6
const-string v7, "java."
invoke-virtual {v6, v7}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result v7
if-eqz v7, :cond_1
const-string v7, "reflectasm."
invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v6
invoke-virtual {v7, v6}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
:cond_1
invoke-static/range {p0 .. p0}, Lcom/esotericsoftware/b/a;->g(Ljava/lang/Class;)Lcom/esotericsoftware/b/a;
move-result-object v7
:try_start_0
invoke-virtual {v7, v6}, Lcom/esotericsoftware/b/a;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
2019-02-04 20:29:01 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
2019-02-04 20:29:01 +00:00
goto/16 :goto_5
2019-02-04 20:08:30 +00:00
:catch_0
monitor-enter v7
:try_start_1
invoke-virtual {v7, v6}, Lcom/esotericsoftware/b/a;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
2019-02-04 20:29:01 +00:00
move-result-object v0
2019-02-04 20:08:30 +00:00
:try_end_1
.catch Ljava/lang/ClassNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
2019-02-04 20:29:01 +00:00
goto/16 :goto_4
2019-02-04 20:08:30 +00:00
:catchall_0
move-exception v0
2019-02-04 20:29:01 +00:00
goto/16 :goto_7
2019-02-04 20:08:30 +00:00
:catch_1
const/16 v8, 0x2f
const/16 v9, 0x2e
:try_start_2
invoke-virtual {v6, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object v13
invoke-virtual {v5, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object v5
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
const/4 v10, 0x0
if-nez v4, :cond_3
:try_start_3
invoke-virtual {v1, v10}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/reflect/Constructor;->getModifiers()I
move-result v0
:try_end_3
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPrivate(I)Z
move-result v8
if-nez v8, :cond_2
move-object v8, v10
2019-02-04 20:29:01 +00:00
goto :goto_1
2019-02-04 20:08:30 +00:00
:cond_2
new-instance v0, Ljava/lang/RuntimeException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Class cannot be created (the no-arg constructor is private): "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
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 v1
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
:catch_2
move-exception v0
new-instance v2, Ljava/lang/RuntimeException;
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "Class cannot be created (missing no-arg constructor): "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
:cond_3
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v10
invoke-virtual {v10, v9, v8}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object v10
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_0
:try_start_5
new-array v8, v3, [Ljava/lang/Class;
aput-object v0, v8, v2
invoke-virtual {v1, v8}, Ljava/lang/Class;->getDeclaredConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/reflect/Constructor;->getModifiers()I
move-result v0
:try_end_5
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4
.catchall {:try_start_5 .. :try_end_5} :catchall_0
:try_start_6
invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPrivate(I)Z
move-result v8
if-nez v8, :cond_8
2019-02-04 20:29:01 +00:00
move-object v8, v10
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_1
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/reflect/Modifier;->isPublic(I)Z
move-result v0
if-eqz v0, :cond_4
const-string v0, "com/esotericsoftware/reflectasm/PublicConstructorAccess"
2019-02-04 20:29:01 +00:00
goto :goto_2
2019-02-04 20:08:30 +00:00
:cond_4
const-string v0, "com/esotericsoftware/reflectasm/ConstructorAccess"
2019-02-04 20:29:01 +00:00
:goto_2
2019-02-17 02:24:41 +00:00
new-instance v9, Lorg/a/a/h;
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
invoke-direct {v9, v2}, Lorg/a/a/h;-><init>(I)V
2019-02-04 20:08:30 +00:00
const v11, 0x3002d
const/16 v12, 0x21
const/4 v14, 0x0
const/16 v16, 0x0
move-object v10, v9
move-object v15, v0
2019-02-17 02:24:41 +00:00
invoke-virtual/range {v10 .. v16}, Lorg/a/a/h;->a(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/4 v15, 0x1
const-string v16, "<init>"
const-string v17, "()V"
const/16 v18, 0x0
const/16 v19, 0x0
move-object v14, v9
2019-02-17 02:24:41 +00:00
invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t;
2019-02-04 20:08:30 +00:00
move-result-object v10
const/16 v11, 0x19
2019-02-21 02:16:48 +00:00
invoke-virtual {v10, v11, v2}, Lorg/a/a/t;->aj(II)V
2019-02-04 20:08:30 +00:00
const-string v2, "<init>"
const-string v12, "()V"
const/16 v13, 0xb7
2019-02-17 02:24:41 +00:00
invoke-virtual {v10, v13, v0, v2, v12}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/16 v0, 0xb1
2019-02-21 02:16:48 +00:00
invoke-virtual {v10, v0}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v10, v3, v3}, Lorg/a/a/t;->al(II)V
2019-02-04 20:08:30 +00:00
const/4 v15, 0x1
const-string v16, "newInstance"
const-string v17, "()Ljava/lang/Object;"
const/16 v18, 0x0
const/16 v19, 0x0
move-object v14, v9
2019-02-17 02:24:41 +00:00
invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t;
2019-02-04 20:08:30 +00:00
move-result-object v0
const/16 v2, 0xbb
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/16 v10, 0x59
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const-string v12, "<init>"
const-string v14, "()V"
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v13, v5, v12, v14}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/16 v12, 0xb0
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v12}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const/4 v15, 0x2
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v15, v3}, Lorg/a/a/t;->al(II)V
2019-02-04 20:08:30 +00:00
const/4 v0, 0x1
const-string v16, "newInstance"
const-string v17, "(Ljava/lang/Object;)Ljava/lang/Object;"
const/16 v18, 0x0
const/16 v19, 0x0
move-object v14, v9
move v15, v0
2019-02-17 02:24:41 +00:00
invoke-virtual/range {v14 .. v19}, Lorg/a/a/h;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lorg/a/a/t;
2019-02-04 20:08:30 +00:00
move-result-object v0
if-eqz v8, :cond_5
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v11, v3}, Lorg/a/a/t;->aj(II)V
2019-02-04 20:08:30 +00:00
const/16 v2, 0xc0
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v2, v8}, Lorg/a/a/t;->i(ILjava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const/16 v2, 0xb6
const-string v3, "java/lang/Object"
const-string v10, "getClass"
const-string v11, "()Ljava/lang/Class;"
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v2, v3, v10, v11}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/16 v2, 0x57
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v2}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const-string v2, "<init>"
new-instance v3, Ljava/lang/StringBuilder;
const-string v10, "(L"
invoke-direct {v3, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v8, ";)V"
invoke-virtual {v3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v13, v5, v2, v3}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v12}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const/4 v2, 0x4
const/4 v3, 0x2
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v2, v3}, Lorg/a/a/t;->al(II)V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
goto :goto_3
2019-02-04 20:08:30 +00:00
:cond_5
const/4 v3, 0x2
const-string v5, "java/lang/UnsupportedOperationException"
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v2, v5}, Lorg/a/a/t;->i(ILjava/lang/String;)V
2019-02-04 20:08:30 +00:00
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v10}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const-string v2, "Not an inner class."
2019-03-08 06:19:26 +00:00
invoke-virtual {v0, v2}, Lorg/a/a/t;->bv(Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
const-string v2, "java/lang/UnsupportedOperationException"
const-string v5, "<init>"
const-string v8, "(Ljava/lang/String;)V"
2019-02-17 02:24:41 +00:00
invoke-virtual {v0, v13, v2, v5, v8}, Lorg/a/a/t;->b(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
2019-02-04 20:08:30 +00:00
const/16 v2, 0xbf
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v2}, Lorg/a/a/t;->dG(I)V
2019-02-04 20:08:30 +00:00
const/4 v2, 0x3
2019-02-21 02:16:48 +00:00
invoke-virtual {v0, v2, v3}, Lorg/a/a/t;->al(II)V
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
:goto_3
2019-02-17 02:24:41 +00:00
invoke-virtual {v9}, Lorg/a/a/h;->toByteArray()[B
2019-02-04 20:08:30 +00:00
move-result-object v0
invoke-virtual {v7, v6, v0}, Lcom/esotericsoftware/b/a;->a(Ljava/lang/String;[B)Ljava/lang/Class;
move-result-object v0
2019-02-04 20:29:01 +00:00
:goto_4
2019-02-04 20:08:30 +00:00
monitor-exit v7
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
2019-02-04 20:29:01 +00:00
:goto_5
2019-02-04 20:08:30 +00:00
:try_start_7
2019-02-04 20:29:01 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result-object v2
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
check-cast v2, Lcom/esotericsoftware/b/b;
2019-02-04 20:08:30 +00:00
:try_end_7
.catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_7} :catch_3
2019-02-04 20:29:01 +00:00
instance-of v3, v2, Lcom/esotericsoftware/b/e;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v3, :cond_7
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
invoke-static {v1, v0}, Lcom/esotericsoftware/b/a;->a(Ljava/lang/Class;Ljava/lang/Class;)Z
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-result v0
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-nez v0, :cond_7
2019-02-04 20:08:30 +00:00
new-instance v0, Ljava/lang/RuntimeException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
if-nez v4, :cond_6
const-string v3, "Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): "
2019-02-04 20:29:01 +00:00
goto :goto_6
2019-02-04 20:08:30 +00:00
:cond_6
const-string v3, "Non-static member class cannot be created (the enclosing class constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): "
2019-02-04 20:29:01 +00:00
:goto_6
2019-02-04 20:08:30 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
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 v1
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
:cond_7
2019-03-14 20:04:00 +00:00
iput-boolean v4, v2, Lcom/esotericsoftware/b/b;->BN:Z
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
return-object v2
2019-02-04 20:08:30 +00:00
:catch_3
move-exception v0
new-instance v1, Ljava/lang/RuntimeException;
invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v2
const-string v3, "Exception constructing constructor access class: "
invoke-virtual {v3, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
:cond_8
:try_start_8
new-instance v0, Ljava/lang/RuntimeException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "Non-static member class cannot be created (the enclosing class constructor is private): "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
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 v1
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw v0
:catch_4
move-exception v0
new-instance v2, Ljava/lang/RuntimeException;
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "Non-static member class cannot be created (missing enclosing class constructor): "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual/range {p0 .. p0}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v2
2019-02-04 20:29:01 +00:00
:goto_7
2019-02-04 20:08:30 +00:00
monitor-exit v7
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_0
throw v0
.end method
# virtual methods
.method public abstract newInstance()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.end method