apkfuckery/com.discord/smali/a/b$a.smali

168 lines
3.3 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final La/b$a;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "BoltsExecutors.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/util/concurrent/Executor;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = La/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "a"
.end annotation
# instance fields
2019-02-17 02:24:41 +00:00
.field private bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/lang/ThreadLocal;
invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V
2019-02-17 02:24:41 +00:00
iput-object v0, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
return-void
.end method
.method synthetic constructor <init>(B)V
.locals 0
invoke-direct {p0}, La/b$a;-><init>()V
return-void
.end method
.method private s()I
.locals 3
2019-02-17 02:24:41 +00:00
iget-object v0, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
if-nez v0, :cond_0
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
:cond_0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
add-int/lit8 v0, v0, -0x1
if-nez v0, :cond_1
2019-02-17 02:24:41 +00:00
iget-object v1, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
invoke-virtual {v1}, Ljava/lang/ThreadLocal;->remove()V
goto :goto_0
:cond_1
2019-02-17 02:24:41 +00:00
iget-object v1, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
:goto_0
return v0
.end method
# virtual methods
.method public final execute(Ljava/lang/Runnable;)V
.locals 3
2019-02-17 02:24:41 +00:00
iget-object v0, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Integer;
if-nez v0, :cond_0
const/4 v0, 0x0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
:cond_0
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
move-result v0
add-int/lit8 v0, v0, 0x1
2019-02-17 02:24:41 +00:00
iget-object v1, p0, La/b$a;->bg:Ljava/lang/ThreadLocal;
2019-02-04 20:08:30 +00:00
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V
const/16 v1, 0xf
if-gt v0, v1, :cond_1
:try_start_0
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
goto :goto_0
:cond_1
invoke-static {}, La/b;->q()Ljava/util/concurrent/ExecutorService;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
invoke-direct {p0}, La/b$a;->s()I
return-void
2019-02-04 20:29:01 +00:00
:catchall_0
move-exception p1
2019-02-04 20:08:30 +00:00
invoke-direct {p0}, La/b$a;->s()I
throw p1
.end method