	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FileSelector
_FileSelector:                          ## @FileSelector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILENAME_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	leal	2(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	%rax, %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	movl	%r15d, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	testl	%r15d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.1:
	cmpb	$0, (%r13)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_54
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
LBB0_5:
	callq	_strcpy
	cmpb	$0, (%r14)
	jne	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_GetCurrentDir
LBB0_7:
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	incq	-88(%rbp)                       ## 8-byte Folded Spill
	movq	-112(%rbp), %rax                ## 8-byte Reload
	decl	%eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%r13, -104(%rbp)                ## 8-byte Spill
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_42 Depth 2
                                        ##     Child Loop BB0_46 Depth 2
	callq	_TitleScreen
	xorl	%eax, %eax
	callq	_PLATFORM_DisplayScreen
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_GetDirectory
	movq	_n_filenames@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	xorl	%eax, %eax
	callq	_FilenamesFree
	movq	%rsp, %r15
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_Util_splitpath
	movq	%r15, %rsp
	cmpb	$0, (%r14)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_GetCurrentDir
	movq	%r14, %rdi
	callq	_GetDirectory
	movq	_n_filenames@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_60
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %eax
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	cmpb	$0, (%rsi)
	je	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_filenames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	incq	%rbx
	movq	_n_filenames@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jl	LBB0_16
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r13d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%rsp, %r15
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_Util_splitpath
	movq	%rbx, %rdi
	callq	_Util_direxists
	testq	%rax, %rax
	je	LBB0_33
## %bb.20:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movb	$91, (%rdi)
	movl	$93, %esi
	callq	_strcatchr
	movl	$9, %eax
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%r15, %rsp
	cmpl	$10, %eax
	jne	LBB0_39
LBB0_22:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_ClearScreen
	movq	%r14, %rdi
	callq	_TitleScreen
	movl	$154, %edi
	movl	$148, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$39, %r8d
	movl	$23, %r9d
	callq	_Box
	movq	_n_filenames@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_filenames@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r13d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leaq	-96(%rbp), %rbx
	pushq	%rbx
	pushq	-136(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	pushq	$18
	pushq	$2
	pushq	$1
	pushq	$2
	pushq	$20
	pushq	$0
	callq	_Select
	addq	$80, %rsp
	cmpl	$-2, %eax
	je	LBB0_40
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_51
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movl	-96(%rbp), %eax
	movq	_UI_USER_DELETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_UI_USER_TOGGLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_53
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_filenames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %r12
	cmpb	$91, (%r12)
	jne	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_FILENAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movb	$0, (%r15)
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r12, %rdi
	movl	$93, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_38
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=2
	movb	$0, (%rax)
	incq	%r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_Util_catpath
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_55
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_FILENAME_MAX@GOTPCREL(%rip), %r12
	jmp	LBB0_22
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=2
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %esi
	callq	_BasicUIMessage
	movl	$10, %eax
	jmp	LBB0_21
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_Util_splitpath
	movb	$91, (%r15)
	movq	%r15, %rdi
	movl	$93, %esi
	callq	_strcatchr
LBB0_35:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%rbx, %rdi
	callq	_Util_direxists
	testq	%rax, %rax
	movq	_FILENAME_MAX@GOTPCREL(%rip), %r12
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movl	$9, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_37:                                ##   in Loop: Header=BB0_22 Depth=2
	leaq	L_.str.5(%rip), %rdi
	movl	$1, %esi
	callq	_BasicUIMessage
	movl	$10, %eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_38:                                ##   in Loop: Header=BB0_22 Depth=2
	movl	$10, %eax
	movq	_FILENAME_MAX@GOTPCREL(%rip), %r12
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$9, %eax
	je	LBB0_50
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -112(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_49
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_42:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=2
	incq	%r15
	addq	-128(%rbp), %rbx                ## 8-byte Folded Reload
	cmpq	%r15, -120(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_42
## %bb.44:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
LBB0_45:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %r12d
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r12d
	cmpl	-120(%rbp), %r12d               ## 4-byte Folded Reload
	movl	$0, %eax
	cmovgel	%eax, %r12d
	movslq	%r12d, %rbx
	imulq	-128(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	callq	_Util_direxists
	testq	%rax, %rax
	jne	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=2
	cmpl	%r15d, %r12d
	jne	LBB0_46
	jmp	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
LBB0_49:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
	movq	_FILENAME_MAX@GOTPCREL(%rip), %r12
LBB0_50:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_FilenamesFree
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_51:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	jmp	LBB0_57
LBB0_52:
                                        ## implicit-def: $eax
	jmp	LBB0_58
LBB0_53:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcpy
	jmp	LBB0_56
LBB0_54:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rcx, %rdx
	callq	_Util_splitpath
	cmpb	$0, (%r14)
	jne	LBB0_7
	jmp	LBB0_6
LBB0_55:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_Util_catpath
LBB0_56:
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_57:
	xorl	%eax, %eax
	callq	_FilenamesFree
	movl	(%rbx), %eax
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_61
## %bb.59:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	xorl	%eax, %eax
	callq	_FilenamesFree
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %esi
	callq	_BasicUIMessage
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_58
LBB0_61:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILENAME_MAX,4,2               ## @FILENAME_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"            Please wait...            "

	.comm	_n_filenames,4,2                ## @n_filenames
L_.str.1:                               ## @.str.1
	.asciz	"No files inside directory"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_filenames,8,3                  ## @filenames
L_.str.2:                               ## @.str.2
	.asciz	"Space: select current directory"

	.comm	_UI_USER_DELETE,4,2             ## @UI_USER_DELETE
L_.str.3:                               ## @.str.3
	.asciz	"Cannot enter parent directory"

	.comm	_UI_USER_TOGGLE,4,2             ## @UI_USER_TOGGLE
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.4:                               ## @.str.4
	.asciz	"[..]"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot enter selected directory"

	.comm	_NCOLUMNS,4,2                   ## @NCOLUMNS
	.comm	_NROWS,4,2                      ## @NROWS
	.no_dead_strip	_FileSelector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FileSelector
_FileSelector:                          ; @FileSelector
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	stur	x2, [x29, #-128]                ; 8-byte Folded Spill
	stur	w1, [x29, #-96]                 ; 4-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x20, _FILENAME_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FILENAME_MAX@GOTPAGEOFF]
	ldr	w12, [x20]
	mov	x9, x12
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x12, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	stur	x12, [x29, #-104]               ; 8-byte Folded Spill
	add	w8, w12, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	strb	wzr, [x25]
	mov	w8, w3
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	stur	w3, [x29, #-132]                ; 4-byte Folded Spill
	subs	w8, w3, #1
	stur	w8, [x29, #-148]                ; 4-byte Folded Spill
	b.lt	LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x24
	ldur	x1, [x29, #-128]                ; 8-byte Folded Reload
	bl	_strcpy
	b	LBB0_6
LBB0_3:
	ldur	w8, [x29, #-96]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x24
	mov	x1, x19
	bl	_strcpy
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_Util_splitpath
LBB0_6:
	stur	x19, [x29, #-144]               ; 8-byte Folded Spill
	ldrb	w8, [x24]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x24
	bl	_GetCurrentDir
LBB0_8:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	cmp	w9, #0
	csel	x28, x8, xzr, ne
	add	x8, x25, #1
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
Lloh13:
	adrp	x22, _n_filenames@GOTPAGE
Lloh14:
	ldr	x22, [x22, _n_filenames@GOTPAGEOFF]
Lloh15:
	adrp	x26, _FALSE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	sub	x23, x29, #92
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_40 Depth 2
                                        ;     Child Loop BB0_44 Depth 2
	mov	x0, x19
	bl	_TitleScreen
	bl	_PLATFORM_DisplayScreen
LBB0_10:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_GetDirectory
	ldr	w8, [x22]
	cmp	w8, #0
	b.gt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	bl	_FilenamesFree
	mov	x21, sp
	ldr	w8, [x20]
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	mov	x0, x19
	mov	x1, x24
	bl	_strcpy
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
	bl	_Util_splitpath
	mov	sp, x21
	ldrb	w8, [x24]
	cbnz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_GetCurrentDir
	mov	x0, x24
	bl	_GetDirectory
	ldr	w8, [x22]
	tbz	w8, #31, LBB0_14
	b	LBB0_58
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #1
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w9, [x25]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #0
Lloh19:
	adrp	x19, _filenames@GOTPAGE
Lloh20:
	ldr	x19, [x19, _filenames@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, #0
Lloh21:
	adrp	x19, _filenames@GOTPAGE
Lloh22:
	ldr	x19, [x19, _filenames@GOTPAGEOFF]
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x0, [x8, x27, lsl #3]
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x22]
	cmp	x27, x8
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w27, #0
	b	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x24
	mov	x1, x19
	ldur	x2, [x29, #-120]                ; 8-byte Folded Reload
	bl	_Util_splitpath
	mov	w8, #91
	strb	w8, [x25]
	mov	x0, x25
	mov	w1, #93
	bl	_strcatchr
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	bl	_Util_direxists
	cbnz	x0, LBB0_49
; %bb.22:                               ;   in Loop: Header=BB0_24 Depth=2
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x28, x26
	mov	x26, x23
	sub	x23, x29, #92
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	w1, #1
	bl	_BasicUIMessage
Lloh25:
	adrp	x19, _filenames@GOTPAGE
Lloh26:
	ldr	x19, [x19, _filenames@GOTPAGEOFF]
	mov	sp, x21
LBB0_24:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_ClearScreen
	mov	x0, x24
	bl	_TitleScreen
	mov	w0, #154
	mov	w1, #148
	mov	w2, #0
	mov	w3, #1
	mov	w4, #39
	mov	w5, #23
	bl	_Box
	ldr	w1, [x22]
	ldr	x2, [x19]
	ldr	w8, [x26]
	sub	sp, sp, #48
	stp	x28, x23, [sp, #24]
	str	w8, [sp, #16]
	mov	x8, #2
	movk	x8, #18, lsl #32
	str	x8, [sp, #8]
	mov	x8, #2
	movk	x8, #1, lsl #32
	str	x8, [sp]
	mov	x0, x27
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	w7, #20
	bl	_Select
	add	sp, sp, #48
	cmn	w0, #2
	b.eq	LBB0_38
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x27, x0
	tbnz	w0, #31, LBB0_55
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	ldur	w8, [x29, #-92]
Lloh27:
	adrp	x9, _UI_USER_DELETE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _UI_USER_DELETE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x21, sp
	ldr	w8, [x20]
	mov	x9, x8
Lloh30:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh31:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	mov	x0, x24
	mov	x1, x19
	ldur	x2, [x29, #-120]                ; 8-byte Folded Reload
	bl	_Util_splitpath
	mov	x0, x19
	bl	_Util_direxists
	cbnz	x0, LBB0_47
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=2
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_29:                                ;   in Loop: Header=BB0_24 Depth=2
	ldur	w9, [x29, #-96]                 ; 4-byte Folded Reload
	cbz	w9, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_24 Depth=2
Lloh34:
	adrp	x9, _UI_USER_TOGGLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _UI_USER_TOGGLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_52
LBB0_31:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x23, x26
	mov	x26, x28
	ldr	x8, [x19]
	ldr	x28, [x8, w27, uxtw #3]
	ldrb	w8, [x28]
	cmp	w8, #91
	b.ne	LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x21, sp
	ldr	w8, [x20]
	mov	x9, x8
Lloh37:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh38:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	strb	wzr, [x25]
	mov	x0, x28
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.33:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x28
	mov	w1, #93
	bl	_strrchr
	cbz	x0, LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=2
	strb	wzr, [x0]
	add	x2, x28, #1
	mov	x0, x19
	mov	x1, x24
	bl	_Util_catpath
	b	LBB0_21
LBB0_35:                                ;   in Loop: Header=BB0_24 Depth=2
	ldur	w8, [x29, #-96]                 ; 4-byte Folded Reload
	cbz	w8, LBB0_53
; %bb.36:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x28, x26
	mov	x26, x23
	sub	x23, x29, #92
	b	LBB0_24
LBB0_37:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x28, x26
	mov	x26, x23
Lloh41:
	adrp	x19, _filenames@GOTPAGE
Lloh42:
	ldr	x19, [x19, _filenames@GOTPAGEOFF]
	sub	x23, x29, #92
	mov	sp, x21
	b	LBB0_24
LBB0_38:                                ;   in Loop: Header=BB0_9 Depth=1
	ldur	w8, [x29, #-132]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.39:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, #0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
LBB0_40:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_43
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=2
	add	x21, x21, #1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	add	x19, x19, x8
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x8, x21
	b.ne	LBB0_40
; %bb.42:                               ;   in Loop: Header=BB0_9 Depth=1
	ldur	w21, [x29, #-148]               ; 4-byte Folded Reload
LBB0_43:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x21
LBB0_44:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w27, #1
	ldp	x9, x10, [x29, #-112]           ; 16-byte Folded Reload
	cmp	w8, w9
	csinc	w27, wzr, w27, ge
	sxtw	x8, w27
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	madd	x19, x8, x10, x9
	mov	x0, x19
	bl	_Util_direxists
	cbnz	x0, LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=2
	cmp	w27, w21
	b.ne	LBB0_44
LBB0_46:                                ;   in Loop: Header=BB0_9 Depth=1
	strb	wzr, [x25]
	b	LBB0_51
LBB0_47:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_strcpy
	mov	w8, #91
	strb	w8, [x25]
	mov	x0, x25
	mov	w1, #93
	bl	_strcatchr
	b	LBB0_50
LBB0_48:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_strcpy
	strb	wzr, [x25]
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_strcpy
	mov	x28, x26
	mov	x26, x23
	sub	x23, x29, #92
LBB0_50:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	sp, x21
LBB0_51:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh43:
	adrp	x19, l_.str@PAGE
Lloh44:
	add	x19, x19, l_.str@PAGEOFF
	bl	_FilenamesFree
	b	LBB0_9
LBB0_52:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	mov	x1, x24
	bl	_strcpy
	b	LBB0_54
LBB0_53:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x28
	bl	_Util_catpath
LBB0_54:
Lloh45:
	adrp	x26, _TRUE@GOTPAGE
Lloh46:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
LBB0_55:
	bl	_FilenamesFree
LBB0_56:
	ldr	w0, [x26]
	ldur	x8, [x29, #-88]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_59
; %bb.57:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_58:
	bl	_FilenamesFree
Lloh50:
	adrp	x0, l_.str.1@PAGE
Lloh51:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #1
	bl	_BasicUIMessage
	b	LBB0_56
LBB0_59:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_FILENAME_MAX,4,2               ; @FILENAME_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"            Please wait...            "

	.comm	_n_filenames,4,2                ; @n_filenames
l_.str.1:                               ; @.str.1
	.asciz	"No files inside directory"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_filenames,8,3                  ; @filenames
l_.str.2:                               ; @.str.2
	.asciz	"Space: select current directory"

	.comm	_UI_USER_DELETE,4,2             ; @UI_USER_DELETE
l_.str.3:                               ; @.str.3
	.asciz	"Cannot enter parent directory"

	.comm	_UI_USER_TOGGLE,4,2             ; @UI_USER_TOGGLE
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.4:                               ; @.str.4
	.asciz	"[..]"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot enter selected directory"

	.comm	_NCOLUMNS,4,2                   ; @NCOLUMNS
	.comm	_NROWS,4,2                      ; @NROWS
	.no_dead_strip	_FileSelector
.subsections_via_symbols
