granularity level: instruction
.class public final La/b;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/util/concurrent/ThreadFactory;
.field public final synthetic a:I
.field public final b:Ljava/io/Serializable;
.field public final c:Ljava/lang/Object;
.method public constructor <init>(Ljava/lang/String;)V
.locals 1
const/4 v0, 0x1
iput v0, p0, La/b;->a:I
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
invoke-static {}, Ljava/util/concurrent/Executors;->defaultThreadFactory()Ljava/util/concurrent/ThreadFactory;
move-result-object v0
iput-object v0, p0, La/b;->c:Ljava/lang/Object;
iput-object p1, p0, La/b;->b:Ljava/io/Serializable;
return-void
.end method
.method public final newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
.locals 3
iget v0, p0, La/b;->a:I
const/4 v1, 0x0
packed-switch v0, :pswitch_data_0
goto :goto_0
:pswitch_0
new-instance v0, Ljava/lang/Thread;
invoke-direct {v0, p1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V
const/4 p1, 0x1
new-array p1, p1, [Ljava/lang/Object;
iget-object v2, p0, La/b;->b:Ljava/io/Serializable;
check-cast v2, Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, p1, v1
const-string v1, "arch_disk_io_%d"
invoke-static {v1, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {v0, p1}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
return-object v0
:goto_0
iget-object v0, p0, La/b;->c:Ljava/lang/Object;
check-cast v0, Ljava/util/concurrent/ThreadFactory;
new-instance v2, Ll/q;
invoke-direct {v2, p1, v1}, Ll/q;-><init>(Ljava/lang/Runnable;I)V
invoke-interface {v0, v2}, Ljava/util/concurrent/ThreadFactory;->newThread(Ljava/lang/Runnable;)Ljava/lang/Thread;
move-result-object p1
iget-object v0, p0, La/b;->b:Ljava/io/Serializable;
check-cast v0, Ljava/lang/String;
invoke-virtual {p1, v0}, Ljava/lang/Thread;->setName(Ljava/lang/String;)V
return-object p1
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
.end packed-switch
.end method