	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_Dir_f                       ## -- Begin function FS_Dir_f
	.p2align	4, 0x90
_FS_Dir_f:                              ## @FS_Dir_f
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_Cmd_Argc
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_Cmd_Argc
	cmpl	$4, %eax
	jl	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_Cmd_Argc
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %r14
	cmpl	$2, %ebx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_5
LBB0_4:
	movl	$2, %edi
	callq	_Cmd_Argv
	movq	%rax, %rbx
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_Com_Printf
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FS_ListFiles
	movq	%rax, %r15
	cmpl	$0, -28(%rbp)
	jle	LBB0_8
## %bb.6:
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	incq	%rbx
	movslq	-28(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_FS_FreeFileList
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: dir <directory> [extension]\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"Directory of %s %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"---------------\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_Dir_f                       ; -- Begin function FS_Dir_f
	.p2align	2
_FS_Dir_f:                              ; @FS_Dir_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	bl	_Cmd_Argc
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	bl	_Cmd_Argc
	cmp	w0, #4
	b.lt	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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
	add	sp, sp, #80
	b	_Com_Printf
LBB0_3:
	bl	_Cmd_Argc
	mov	x20, x0
	mov	w0, #1
	bl	_Cmd_Argv
	mov	x19, x0
	cmp	w20, #2
	b.ne	LBB0_5
; %bb.4:
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	w0, #2
	bl	_Cmd_Argv
	mov	x20, x0
LBB0_6:
	stp	x19, x20, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_Printf
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Com_Printf
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x20
	bl	_FS_ListFiles
	mov	x19, x0
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
Lloh8:
	adrp	x20, l_.str.4@PAGE
Lloh9:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x21, lsl #3]
	str	x8, [sp]
	mov	x0, x20
	bl	_Com_Printf
	add	x21, x21, #1
	ldrsw	x8, [sp, #28]
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_FS_FreeFileList
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: dir <directory> [extension]\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"Directory of %s %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"---------------\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s\n"

.subsections_via_symbols
