	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_GetFileList                 ## -- Begin function FS_GetFileList
	.p2align	4, 0x90
_FS_GetFileList:                        ## @FS_GetFileList
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movb	$0, (%rdx)
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_FS_ListFiles
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %ecx
	addl	$2, %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r14d
	incl	%r14d
	addl	%eax, %r12d
	incl	%r12d
	movq	(%r15,%rbx,8), %rsi
	movq	%r13, %rdi
	callq	_strcpy
	movslq	%r14d, %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	addq	%rax, %r13
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_7:
	movq	%r13, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FS_GetModList                  ## TAILCALL
LBB0_5:
	movl	%ebx, -44(%rbp)
LBB0_6:
	movq	%r15, %rdi
	callq	_FS_FreeFileList
	movl	-44(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$modlist"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_GetFileList                 ; -- Begin function FS_GetFileList
	.p2align	2
_FS_GetFileList:                        ; @FS_GetFileList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	strb	wzr, [x2]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Q_stricmp
	cbz	x0, LBB0_5
; %bb.1:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_FS_ListFiles
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, x22, lsl #3]
	bl	_strlen
	add	w24, w0, #1
	add	w23, w24, w23
	add	w8, w23, #1
	cmp	w8, w19
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21, x22, lsl #3]
	mov	x0, x20
	bl	_strcpy
	add	x20, x20, w24, sxtw
	add	x22, x22, #1
	ldrsw	x8, [sp, #12]
	cmp	x22, x8
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	add	sp, sp, #80
	b	_FS_GetModList
LBB0_6:
	str	w22, [sp, #12]
LBB0_7:
	mov	x0, x21
	bl	_FS_FreeFileList
	ldr	w0, [sp, #12]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$modlist"

.subsections_via_symbols
