	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_NewDir_f                    ## -- Begin function FS_NewDir_f
	.p2align	4, 0x90
_FS_NewDir_f:                           ## @FS_NewDir_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	$1, %eax
	jg	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rdi
	leaq	-28(%rbp), %rcx
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	callq	_FS_ListFilteredFiles
	movq	%rax, %r15
	movl	-28(%rbp), %esi
	movq	%rax, %rdi
	callq	_FS_SortFileList
	movl	-28(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.2:
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	_FS_ConvertPath
	movq	(%r15,%rbx,8), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_Com_Printf
	incq	%rbx
	movslq	-28(%rbp), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	L_.str.5(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_Com_Printf
	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: fdir <filter>\n"

L_.str.1:                               ## @.str.1
	.asciz	"example: fdir *q3dm*.bsp\n"

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

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

	.comm	_qfalse,4,2                     ## @qfalse
L_.str.4:                               ## @.str.4
	.asciz	"%s\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d files listed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_NewDir_f                    ; -- Begin function FS_NewDir_f
	.p2align	2
_FS_NewDir_f:                           ; @FS_NewDir_f
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_Com_Printf
LBB0_2:
	mov	w0, #1
	bl	_Cmd_Argv
	mov	x19, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Com_Printf
Lloh6:
	adrp	x8, _qfalse@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x3, sp, #12
	mov	x1, x0
	mov	x2, x19
	bl	_FS_ListFilteredFiles
	mov	x19, x0
	ldr	w1, [sp, #12]
	bl	_FS_SortFileList
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
Lloh11:
	adrp	x20, l_.str.4@PAGE
Lloh12:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #3
	ldr	x0, [x19, x22]
	bl	_FS_ConvertPath
	ldr	x8, [x19, x22]
	str	x8, [sp]
	mov	x0, x20
	bl	_Com_Printf
	add	x21, x21, #1
	ldrsw	x8, [sp, #12]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_Printf
	mov	x0, x19
	bl	_FS_FreeFileList
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: fdir <filter>\n"

l_.str.1:                               ; @.str.1
	.asciz	"example: fdir *q3dm*.bsp\n"

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

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

	.comm	_qfalse,4,2                     ; @qfalse
l_.str.4:                               ; @.str.4
	.asciz	"%s\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d files listed\n"

.subsections_via_symbols
