apkfuckery/com.discord/smali_classes2/y/u/c$b$a.smali
2020-05-17 12:40:10 +00:00

188 lines
3.7 KiB
Smali

.class public final Ly/u/c$b$a;
.super Ly/u/c$a;
.source "FileTreeWalk.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ly/u/c$b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "a"
.end annotation
# instance fields
.field public b:Z
.field public c:[Ljava/io/File;
.field public d:I
.field public e:Z
.field public final synthetic f:Ly/u/c$b;
# direct methods
.method public constructor <init>(Ly/u/c$b;Ljava/io/File;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/File;",
")V"
}
.end annotation
if-eqz p2, :cond_0
iput-object p1, p0, Ly/u/c$b$a;->f:Ly/u/c$b;
invoke-direct {p0, p2}, Ly/u/c$a;-><init>(Ljava/io/File;)V
return-void
:cond_0
const-string p1, "rootDir"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
# virtual methods
.method public step()Ljava/io/File;
.locals 7
iget-boolean v0, p0, Ly/u/c$b$a;->e:Z
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_2
iget-object v0, p0, Ly/u/c$b$a;->c:[Ljava/io/File;
if-nez v0, :cond_2
iget-object v0, p0, Ly/u/c$b$a;->f:Ly/u/c$b;
iget-object v0, v0, Ly/u/c$b;->g:Ly/u/c;
iget-object v0, v0, Ly/u/c;->c:Lkotlin/jvm/functions/Function1;
if-eqz v0, :cond_0
iget-object v3, p0, Ly/u/c$c;->a:Ljava/io/File;
invoke-interface {v0, v3}, 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 v2
:cond_0
iget-object v0, p0, Ly/u/c$c;->a:Ljava/io/File;
invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;
move-result-object v0
iput-object v0, p0, Ly/u/c$b$a;->c:[Ljava/io/File;
iget-object v0, p0, Ly/u/c$b$a;->c:[Ljava/io/File;
if-nez v0, :cond_2
iget-object v0, p0, Ly/u/c$b$a;->f:Ly/u/c$b;
iget-object v0, v0, Ly/u/c$b;->g:Ly/u/c;
iget-object v0, v0, Ly/u/c;->e:Lkotlin/jvm/functions/Function2;
if-eqz v0, :cond_1
iget-object v3, p0, Ly/u/c$c;->a:Ljava/io/File;
new-instance v4, Ly/u/a;
const/4 v5, 0x2
const-string v6, "Cannot list files in a directory"
invoke-direct {v4, v3, v2, v6, v5}, Ly/u/a;-><init>(Ljava/io/File;Ljava/io/File;Ljava/lang/String;I)V
invoke-interface {v0, v3, v4}, Lkotlin/jvm/functions/Function2;->invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlin/Unit;
:cond_1
iput-boolean v1, p0, Ly/u/c$b$a;->e:Z
:cond_2
iget-object v0, p0, Ly/u/c$b$a;->c:[Ljava/io/File;
if-eqz v0, :cond_3
iget v3, p0, Ly/u/c$b$a;->d:I
array-length v4, v0
if-ge v3, v4, :cond_3
add-int/lit8 v1, v3, 0x1
iput v1, p0, Ly/u/c$b$a;->d:I
aget-object v0, v0, v3
return-object v0
:cond_3
iget-boolean v0, p0, Ly/u/c$b$a;->b:Z
if-nez v0, :cond_4
iput-boolean v1, p0, Ly/u/c$b$a;->b:Z
iget-object v0, p0, Ly/u/c$c;->a:Ljava/io/File;
return-object v0
:cond_4
iget-object v0, p0, Ly/u/c$b$a;->f:Ly/u/c$b;
iget-object v0, v0, Ly/u/c$b;->g:Ly/u/c;
iget-object v0, v0, Ly/u/c;->d:Lkotlin/jvm/functions/Function1;
if-eqz v0, :cond_5
iget-object v1, p0, Ly/u/c$c;->a:Ljava/io/File;
invoke-interface {v0, v1}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lkotlin/Unit;
:cond_5
return-object v2
.end method