	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_dirlist
_draw_dirlist:                          ## @draw_dirlist
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$1, %edi
	callq	_menu_draw_begin
	movq	_rom_loaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_menu_screen@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	movl	$77040, %edx                    ## imm = 0x12CF0
	xorl	%ecx, %ecx
	callq	_menu_darken_bg
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_menu_screen@GOTPCREL(%rip), %rax
	movl	$77040, %edi                    ## imm = 0x12CF0
	addq	(%rax), %rdi
	movq	%rdi, %rsi
	movl	$2568, %edx                     ## imm = 0xA08
	xorl	%ecx, %ecx
	callq	_menu_darken_bg
	movl	$10, %eax
	subl	%r15d, %eax
	js	LBB0_4
## %bb.3:
	addl	%eax, %eax
	leal	(%rax,%rax,4), %esi
	movl	$14, %edi
	movq	%r12, %rdx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$51, %r8d
	callq	_smalltext_out16_lim
LBB0_4:
	cmpl	$2, %r14d
	jl	LBB0_14
## %bb.5:
	movl	$12, %r12d
	subl	%r15d, %r12d
	decl	%r14d
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	%r14, %r13
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r14
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	addl	%r14d, %ebx
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$23, %ebx
	ja	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %r13
	movq	8(%r15,%r14,8), %rax
	movq	(%rax), %rcx
	movq	_DT_DIR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %ebx
	movl	$14, %edi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	movl	$65526, %ecx                    ## imm = 0xFFF6
	movl	$1, %r8d
	callq	_smalltext_out16_lim
	movq	8(%r15,%r14,8), %rax
	movq	8(%rax), %rdx
	movl	$20, %edi
	movl	%ebx, %esi
	movl	$65526, %ecx                    ## imm = 0xFFF6
	movl	$50, %r8d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax), %rdi
	callq	_file2color
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %esi
	movq	8(%r15,%r14,8), %rcx
	movq	8(%rcx), %rdx
	movzwl	%ax, %ecx
	movl	$14, %edi
	movl	$51, %r8d
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	callq	_smalltext_out16_lim
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.1(%rip), %rdx
	movl	$5, %edi
	movl	$120, %esi
	callq	_text_out16
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_draw_end                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rom_loaded,4,2                 ## @rom_loaded
	.comm	_menu_screen,8,3                ## @menu_screen
	.comm	_DT_DIR,8,3                     ## @DT_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	">"

	.no_dead_strip	_draw_dirlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_dirlist
_draw_dirlist:                          ; @draw_dirlist
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	w0, #1
	bl	_menu_draw_begin
Lloh0:
	adrp	x8, _rom_loaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rom_loaded@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _menu_screen@GOTPAGE
Lloh4:
	ldr	x23, [x23, _menu_screen@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x23]
	mov	x1, x0
	mov	w2, #11504
	movk	w2, #1, lsl #16
	mov	w3, #0
	bl	_menu_darken_bg
LBB0_2:
	ldr	x8, [x23]
	add	x8, x8, #18, lsl #12            ; =73728
	add	x0, x8, #3312
	mov	x1, x0
	mov	w2, #2568
	mov	w3, #0
	bl	_menu_darken_bg
	mov	w8, #10
	subs	w8, w8, w21
	b.mi	LBB0_4
; %bb.3:
	add	w8, w8, w8, lsl #2
	lsl	w1, w8, #1
	mov	w0, #14
	mov	x2, x22
	mov	w3, #65535
	mov	w4, #51
	bl	_smalltext_out16_lim
LBB0_4:
	cmp	w20, #2
	b.lt	LBB0_13
; %bb.5:
	mov	x22, #0
	mov	w8, #12
	sub	w23, w8, w21
	sub	w24, w20, #1
Lloh5:
	adrp	x25, _DT_DIR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _DT_DIR@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x22, x24
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	adds	w21, w23, w22
	b.mi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w21, #23
	b.hi	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19, x22, lsl #3]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w21, w21, lsl #2
	lsl	w21, w8, #1
	mov	w0, #14
	mov	x1, x21
	mov	x2, x20
	mov	w3, #65526
	mov	w4, #1
	bl	_smalltext_out16_lim
	ldr	x8, [x19, x22, lsl #3]
	ldr	x2, [x8, #8]
	mov	w0, #20
	mov	x1, x21
	mov	w3, #65526
	mov	w4, #50
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x8, #8]
	bl	_file2color
	mov	x3, x0
	add	w8, w21, w21, lsl #2
	lsl	w1, w8, #1
	ldr	x8, [x19, x22, lsl #3]
	ldr	x2, [x8, #8]
	mov	w0, #14
	mov	w4, #51
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_smalltext_out16_lim
	cmp	x22, x24
	b.ne	LBB0_7
LBB0_13:
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #5
	mov	w1, #120
	bl	_text_out16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_menu_draw_end
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_rom_loaded,4,2                 ; @rom_loaded
	.comm	_menu_screen,8,3                ; @menu_screen
	.comm	_DT_DIR,8,3                     ; @DT_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	">"

	.no_dead_strip	_draw_dirlist
.subsections_via_symbols
