apkfuckery/com.discord/smali_classes2/i0/m/a$b$c.smali

224 lines
4.5 KiB
Smali
Raw Normal View History

2020-07-14 22:43:59 +00:00
.class public final Li0/m/a$b$c;
.super Li0/m/a$a;
2020-05-17 12:40:10 +00:00
.source "FileTreeWalk.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-07-14 22:43:59 +00:00
value = Li0/m/a$b;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "c"
.end annotation
# instance fields
.field public b:Z
.field public c:[Ljava/io/File;
.field public d:I
2020-07-14 22:43:59 +00:00
.field public final synthetic e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-14 22:43:59 +00:00
.method public constructor <init>(Li0/m/a$b;Ljava/io/File;)V
2020-05-17 12:40:10 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/File;",
")V"
}
.end annotation
if-eqz p2, :cond_0
2020-07-14 22:43:59 +00:00
iput-object p1, p0, Li0/m/a$b$c;->e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
invoke-direct {p0, p2}, Li0/m/a$a;-><init>(Ljava/io/File;)V
2020-05-17 12:40:10 +00:00
return-void
:cond_0
const-string p1, "rootDir"
2020-07-14 22:43:59 +00:00
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public step()Ljava/io/File;
2020-07-08 16:44:49 +00:00
.locals 7
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-boolean v0, p0, Li0/m/a$b$c;->b:Z
2020-05-17 12:40:10 +00:00
const/4 v1, 0x0
if-nez v0, :cond_1
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a$b;->g:Li0/m/a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a;->c:Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_0
2020-07-14 22:43:59 +00:00
iget-object v2, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, v2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-nez v0, :cond_0
return-object v1
:cond_0
const/4 v0, 0x1
2020-07-14 22:43:59 +00:00
iput-boolean v0, p0, Li0/m/a$b$c;->b:Z
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
return-object v0
:cond_1
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->c:[Ljava/io/File;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_4
2020-07-14 22:43:59 +00:00
iget v2, p0, Li0/m/a$b$c;->d:I
2020-05-17 12:40:10 +00:00
array-length v0, v0
if-ge v2, v0, :cond_2
goto :goto_0
:cond_2
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a$b;->g:Li0/m/a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a;->d:Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_3
2020-07-14 22:43:59 +00:00
iget-object v2, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, v2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlin/Unit;
:cond_3
return-object v1
:cond_4
:goto_0
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->c:[Ljava/io/File;
2020-05-17 12:40:10 +00:00
if-nez v0, :cond_8
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object v0
2020-07-14 22:43:59 +00:00
iput-object v0, p0, Li0/m/a$b$c;->c:[Ljava/io/File;
2020-05-17 12:40:10 +00:00
if-nez v0, :cond_5
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a$b;->g:Li0/m/a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a;->e:Lkotlin/jvm/functions/Function2;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_5
2020-07-14 22:43:59 +00:00
iget-object v2, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-07-08 16:44:49 +00:00
new-instance v3, Lkotlin/io/AccessDeniedException;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v4, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v5, 0x2
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-string v6, "Cannot list files in a directory"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v3, v4, v1, v6, v5}, Lkotlin/io/AccessDeniedException;-><init>(Ljava/io/File;Ljava/io/File;Ljava/lang/String;I)V
2020-05-17 12:40:10 +00:00
invoke-interface {v0, v2, v3}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlin/Unit;
:cond_5
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->c:[Ljava/io/File;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_6
array-length v0, v0
if-nez v0, :cond_8
:cond_6
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->e:Li0/m/a$b;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a$b;->g:Li0/m/a;
2020-05-17 12:40:10 +00:00
2020-07-14 22:43:59 +00:00
iget-object v0, v0, Li0/m/a;->d:Lkotlin/jvm/functions/Function1;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_7
2020-07-14 22:43:59 +00:00
iget-object v2, p0, Li0/m/a$c;->a:Ljava/io/File;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, v2}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlin/Unit;
:cond_7
return-object v1
:cond_8
2020-07-14 22:43:59 +00:00
iget-object v0, p0, Li0/m/a$b$c;->c:[Ljava/io/File;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_9
2020-07-14 22:43:59 +00:00
iget v1, p0, Li0/m/a$b$c;->d:I
2020-05-17 12:40:10 +00:00
add-int/lit8 v2, v1, 0x1
2020-07-14 22:43:59 +00:00
iput v2, p0, Li0/m/a$b$c;->d:I
2020-05-17 12:40:10 +00:00
aget-object v0, v0, v1
return-object v0
:cond_9
2020-07-14 22:43:59 +00:00
invoke-static {}, Li0/n/c/h;->throwNpe()V
2020-05-17 12:40:10 +00:00
throw v1
.end method