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

220 lines
5.5 KiB
Smali
Raw Normal View History

2020-09-22 07:09:10 +00:00
.class public final Lg0/n;
2020-09-02 04:07:20 +00:00
.super Ljava/lang/Object;
2020-11-09 19:03:49 +00:00
.source "KotlinExtensions.kt"
# interfaces
.implements Lg0/f;
2020-07-23 01:06:17 +00:00
2020-11-09 00:01:03 +00:00
# annotations
2020-11-09 19:03:49 +00:00
.annotation system Ldalvik/annotation/Signature;
2020-11-09 00:01:03 +00:00
value = {
2020-11-09 19:03:49 +00:00
"Ljava/lang/Object;",
"Lg0/f<",
"TT;>;"
2020-11-09 00:01:03 +00:00
}
.end annotation
2020-09-16 21:45:36 +00:00
# instance fields
2020-11-09 19:03:49 +00:00
.field public final synthetic a:Lz/a/f;
2020-09-02 04:07:20 +00:00
2020-09-16 23:45:23 +00:00
# direct methods
2020-11-09 19:03:49 +00:00
.method public constructor <init>(Lz/a/f;)V
2020-11-09 00:01:03 +00:00
.locals 0
2020-07-23 01:06:17 +00:00
2020-11-09 19:03:49 +00:00
iput-object p1, p0, Lg0/n;->a:Lz/a/f;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-09 19:21:20 +00:00
2020-11-05 20:51:11 +00:00
return-void
.end method
2020-09-09 19:21:20 +00:00
2020-11-09 00:01:03 +00:00
# virtual methods
2020-11-09 19:03:49 +00:00
.method public a(Lg0/d;Ljava/lang/Throwable;)V
.locals 1
2020-11-09 00:01:03 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-09 19:03:49 +00:00
"(",
"Lg0/d<",
"TT;>;",
"Ljava/lang/Throwable;",
")V"
2020-11-09 00:01:03 +00:00
}
.end annotation
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
const-string v0, "call"
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
const-string p1, "t"
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, p1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
iget-object p1, p0, Lg0/n;->a:Lz/a/f;
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
return-void
2020-11-09 00:01:03 +00:00
.end method
2020-11-09 19:03:49 +00:00
.method public b(Lg0/d;Lg0/b0;)V
.locals 3
2020-11-09 00:01:03 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-11-09 19:03:49 +00:00
"(",
"Lg0/d<",
"TT;>;",
"Lg0/b0<",
"TT;>;)V"
2020-11-09 00:01:03 +00:00
}
.end annotation
2020-11-09 19:03:49 +00:00
const-string v0, "call"
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
const-string v0, "response"
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, v0}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p2}, Lg0/b0;->a()Z
2020-07-23 01:06:17 +00:00
2020-11-09 19:03:49 +00:00
move-result v0
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
if-eqz v0, :cond_3
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
iget-object p2, p2, Lg0/b0;->b:Ljava/lang/Object;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
if-nez p2, :cond_2
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1}, Lg0/d;->g()Lc0/b0;
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
const-class p2, Lg0/k;
2020-09-09 19:21:20 +00:00
2020-11-09 00:01:03 +00:00
const/4 v0, 0x0
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p1, :cond_1
2020-09-09 19:21:20 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "type"
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2, v1}, Ly/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
iget-object p1, p1, Lc0/b0;->f:Ljava/util/Map;
2020-09-16 21:45:36 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-09-16 21:45:36 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p2, p1}, Ljava/lang/Class;->cast(Ljava/lang/Object;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
if-eqz p1, :cond_0
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
const-string p2, "call.request().tag(Invocation::class.java)!!"
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, p2}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
check-cast p1, Lg0/k;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
iget-object p1, p1, Lg0/k;->a:Ljava/lang/reflect/Method;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
new-instance p2, Lkotlin/KotlinNullPointerException;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
new-instance v0, Ljava/lang/StringBuilder;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "Response from "
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
const-string v1, "method"
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p1, v1}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getDeclaringClass()Ljava/lang/Class;
2020-09-16 23:45:23 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
const-string v2, "method.declaringClass"
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v1, v2}, Ly/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
move-result-object v1
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
const/16 v1, 0x2e
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
const-string p1, " was null but response body type was declared as non-null"
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p1
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {p2, p1}, Lkotlin/KotlinNullPointerException;-><init>(Ljava/lang/String;)V
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
iget-object p1, p0, Lg0/n;->a:Lz/a/f;
2020-10-05 23:18:16 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {p2}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-09-02 04:07:20 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-09-16 21:45:36 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)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
2020-11-09 00:01:03 +00:00
:cond_0
2020-11-09 19:03:49 +00:00
invoke-static {}, Ly/n/c/j;->throwNpe()V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
throw v0
2020-11-09 00:01:03 +00:00
:cond_1
2020-11-09 19:03:49 +00:00
throw v0
2020-11-09 00:01:03 +00:00
:cond_2
2020-11-09 19:03:49 +00:00
iget-object p1, p0, Lg0/n;->a:Lz/a/f;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
goto :goto_0
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
:cond_3
iget-object p1, p0, Lg0/n;->a:Lz/a/f;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
new-instance v0, Lretrofit2/HttpException;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-direct {v0, p2}, Lretrofit2/HttpException;-><init>(Lg0/b0;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-static {v0}, Lf/h/a/f/f/n/f;->createFailure(Ljava/lang/Throwable;)Ljava/lang/Object;
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
move-result-object p2
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
invoke-interface {p1, p2}, Lkotlin/coroutines/Continuation;->resumeWith(Ljava/lang/Object;)V
2020-11-09 00:01:03 +00:00
2020-11-09 19:03:49 +00:00
:goto_0
return-void
2020-07-23 01:06:17 +00:00
.end method