apkfuckery/com.discord/smali_classes2/n/a/y.smali

132 lines
3.5 KiB
Smali
Raw Normal View History

2019-12-20 07:00:35 +00:00
.class public final Ln/a/y;
2019-10-03 02:31:26 +00:00
.super Ljava/lang/Object;
.source "CoroutineExceptionHandlerImpl.kt"
2019-07-24 11:27:29 +00:00
# static fields
2019-12-06 03:29:40 +00:00
.field public static final a:Ljava/util/List;
2019-10-03 02:31:26 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lkotlinx/coroutines/CoroutineExceptionHandler;",
">;"
}
.end annotation
.end field
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-07-24 11:27:29 +00:00
.locals 2
2019-10-03 02:31:26 +00:00
const-class v0, Lkotlinx/coroutines/CoroutineExceptionHandler;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-virtual {v0}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-static {v0, v1}, Ljava/util/ServiceLoader;->load(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
const-string v1, "ServiceLoader.load(servi\u2026serviceClass.classLoader)"
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
invoke-static {v0}, Lm/q/l;->toList(Ljava/lang/Iterable;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
sput-object v0, Ln/a/y;->a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
return-void
.end method
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
.method public static final a(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
.locals 4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
sget-object v0, Ln/a/y;->a:Ljava/util/List;
2019-10-03 02:31:26 +00:00
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v0
2019-07-24 11:27:29 +00:00
:goto_0
2019-10-03 02:31:26 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result v1
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
const-string v2, "currentThread"
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
if-eqz v1, :cond_0
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
check-cast v1, Lkotlinx/coroutines/CoroutineExceptionHandler;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
:try_start_0
invoke-interface {v1, p0, p1}, Lkotlinx/coroutines/CoroutineExceptionHandler;->handleException(Lkotlin/coroutines/CoroutineContext;Ljava/lang/Throwable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
:catchall_0
move-exception v1
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-20 07:00:35 +00:00
invoke-static {v3, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-virtual {v3}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p1, v1}, Le/k/a/b/e/p/g;->a(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
move-result-object v1
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
invoke-interface {v2, v3, v1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
2019-07-24 11:27:29 +00:00
2019-10-03 02:31:26 +00:00
goto :goto_0
:cond_0
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object p0
2019-12-20 07:00:35 +00:00
invoke-static {p0, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-03 02:31:26 +00:00
invoke-virtual {p0}, Ljava/lang/Thread;->getUncaughtExceptionHandler()Ljava/lang/Thread$UncaughtExceptionHandler;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-10-03 02:31:26 +00:00
invoke-interface {v0, p0, p1}, Ljava/lang/Thread$UncaughtExceptionHandler;->uncaughtException(Ljava/lang/Thread;Ljava/lang/Throwable;)V
return-void
2019-12-06 03:29:40 +00:00
:cond_1
const-string p0, "exception"
2019-12-20 07:00:35 +00:00
invoke-static {p0}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_2
const-string p0, "context"
2019-12-20 07:00:35 +00:00
invoke-static {p0}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
2019-07-24 11:27:29 +00:00
.end method