	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_GetModList                  ## -- Begin function FS_GetModList
	.p2align	4, 0x90
_FS_GetModList:                         ## @FS_GetModList
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -156(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INSTALL_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -192(%rbp)                ## 8-byte Spill
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_fs_basepath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	_fs_homepath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_fs_steampath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	_fs_gogpath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_fs_temporarypath@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movb	$0, (%rbx)
	leaq	-96(%rbp), %rdi
	callq	_ARRAY_LEN
	xorl	%ecx, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_qtrue@GOTPCREL(%rip), %r12
	leaq	-220(%rbp), %r13
	leaq	-96(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp,%rbx,8), %rdi
	movq	(%r12), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_Sys_ListFiles
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_Sys_ConcatenateFileLists
	movq	%rax, %r15
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_LEN
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, %rdi
	callq	_Sys_CountFileList
	testl	%eax, %eax
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jle	LBB0_33
## %bb.5:
	movl	%eax, %r12d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
                                        ## implicit-def: $r13d
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	-136(%rbp), %r12                ## 8-byte Reload
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%r12, %rcx
	je	LBB0_33
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	movq	(%r15,%rcx,8), %rdx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r12
	movq	(%r15,%rbx,8), %rdi
	movq	%rdx, %r14
	movq	%rdx, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	movq	%r12, %rcx
	cmpq	%rbx, %r12
	movq	%r14, %rdx
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %rcx
	movq	%r14, %rdx
	movq	%rax, %r14
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-136(%rbp), %r12                ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%r14, %r14
	jne	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	_com_basegame@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	%rdx, %rdi
	movq	%rdx, %rbx
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_Q_stricmpn
	testq	%rax, %rax
	je	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	leaq	-96(%rbp), %rdi
	callq	_ARRAY_LEN
	testl	%eax, %eax
	jle	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movq	-96(%rbp,%rbx,8), %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	callq	_FS_BuildOSPath
	movq	%rax, %rbx
	movl	$0, -100(%rbp)
	movl	$0, -104(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %r14
	movq	(%r14), %r8
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	leaq	-104(%rbp), %rcx
	callq	_Sys_ListFiles
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movq	(%r14), %r8
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	leaq	-100(%rbp), %rcx
	callq	_Sys_ListFiles
	movq	%rax, %r15
	cmpl	$0, -100(%rbp)
	leaq	L_.str.4(%rip), %r12
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r15,%r14,8), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_FS_IsExt
	cmpq	$1, %rax
	sbbl	$-1, %r13d
	incq	%r14
	movslq	-100(%rbp), %rax
	cmpq	%rax, %r14
	jl	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	callq	_Sys_FreeFileList
	movq	%r15, %rdi
	callq	_Sys_FreeFileList
	cmpl	$0, -104(%rbp)
	jg	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=2
	testl	%r13d, %r13d
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	leaq	-96(%rbp), %rdi
	callq	_ARRAY_LEN
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_18
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r13d, %r13d
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -104(%rbp)
	jg	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r12, %rdi
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	movq	-200(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_FS_GetModDescription
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	-168(%rbp), %rcx                ## 8-byte Reload
	addl	%ebx, %ecx
	incl	%ecx
	leal	(%r15,%rcx), %eax
	addl	$3, %eax
	cmpl	-156(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	incl	%r15d
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rcx, %r12
	callq	_strcpy
	movslq	%ebx, %rbx
	addq	-152(%rbp), %rbx                ## 8-byte Folded Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movslq	%r15d, %rax
	addq	%rax, %rbx
	addl	%eax, %r12d
	movq	%r12, -168(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_30
LBB0_28:
	movq	-144(%rbp), %r15                ## 8-byte Reload
LBB0_33:
	movq	%r15, %rdi
	callq	_Sys_FreeFileList
	movq	-184(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movq	-120(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INSTALL_PATH,4,2           ## @MAX_INSTALL_PATH
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_fs_basepath,8,3                ## @fs_basepath
	.comm	_fs_homepath,8,3                ## @fs_homepath
	.comm	_fs_steampath,8,3               ## @fs_steampath
	.comm	_fs_gogpath,8,3                 ## @fs_gogpath
	.comm	_fs_temporarypath,8,3           ## @fs_temporarypath
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_com_basegame,8,3               ## @com_basegame
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

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

L_.str.2:                               ## @.str.2
	.asciz	".pk3"

L_.str.3:                               ## @.str.3
	.asciz	"/"

L_.str.4:                               ## @.str.4
	.asciz	".pk3dir"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_GetModList                  ; -- Begin function FS_GetModList
	.p2align	2
_FS_GetModList:                         ; @FS_GetModList
	.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, #128
	stur	w1, [x29, #-180]                ; 4-byte Folded Spill
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-200]                ; 8-byte Folded Spill
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	x8, _MAX_INSTALL_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INSTALL_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	stur	x12, [x29, #-192]               ; 8-byte Folded Spill
	add	x9, x12, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh8:
	adrp	x8, _qfalse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh10:
	ldr	x24, [x8]
Lloh11:
	adrp	x8, _fs_basepath@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fs_basepath@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
Lloh14:
	adrp	x8, _fs_homepath@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fs_homepath@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stur	x8, [x29, #-120]
Lloh17:
	adrp	x8, _fs_steampath@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fs_steampath@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
Lloh20:
	adrp	x8, _fs_gogpath@GOTPAGE
Lloh21:
	ldr	x8, [x8, _fs_gogpath@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh23:
	adrp	x8, _fs_temporarypath@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fs_temporarypath@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	strb	wzr, [x0]
	sub	x19, x29, #128
	sub	x0, x29, #128
	bl	_ARRAY_LEN
Lloh26:
	adrp	x25, _qtrue@GOTPAGE
Lloh27:
	ldr	x25, [x25, _qtrue@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x20, lsl #3]
	ldr	x4, [x25]
	sub	x3, x29, #140
	mov	x1, #0
	mov	x2, #0
	bl	_Sys_ListFiles
	mov	x1, x0
	mov	x0, x23
	bl	_Sys_ConcatenateFileLists
	mov	x23, x0
	add	x20, x20, #1
	sub	x0, x29, #128
	bl	_ARRAY_LEN
	cmp	x20, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	mov	x0, x23
	bl	_Sys_CountFileList
	cmp	w0, #1
	b.lt	LBB0_30
; %bb.5:
	stur	x22, [x29, #-208]               ; 8-byte Folded Spill
	stur	x21, [x29, #-176]               ; 8-byte Folded Spill
	mov	x27, #0
	stur	xzr, [x29, #-160]               ; 8-byte Folded Spill
Lloh28:
	adrp	x21, _com_basegame@GOTPAGE
Lloh29:
	ldr	x21, [x21, _com_basegame@GOTPAGEOFF]
	mov	w22, w0
                                        ; implicit-def: $w28
Lloh30:
	adrp	x19, l_.str.4@PAGE
Lloh31:
	add	x19, x19, l_.str.4@PAGEOFF
	stur	x22, [x29, #-168]               ; 8-byte Folded Spill
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
Lloh32:
	adrp	x8, _qtrue@GOTPAGE
Lloh33:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh34:
	ldr	x24, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	x24, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	cmp	x27, x22
	b.eq	LBB0_31
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_19 Depth 3
	ldr	x25, [x23, x27, lsl #3]
	cbz	x27, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
Lloh35:
	adrp	x8, _qfalse@GOTPAGE
Lloh36:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh37:
	ldr	x24, [x8]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x23, x20, lsl #3]
	mov	x1, x25
	bl	_Q_stricmp
	cbz	x0, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x20, x20, #1
	cmp	x27, x20
	b.ne	LBB0_11
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8]
	mov	x0, x25
	bl	_Q_stricmp
	cbz	x0, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_Q_stricmpn
	cbz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	stur	x24, [x29, #-152]               ; 8-byte Folded Spill
	sub	x0, x29, #128
	bl	_ARRAY_LEN
	cmp	w0, #1
	b.lt	LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x22, #0
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_19 Depth 3
	sub	x8, x29, #128
	ldr	x0, [x8, x22, lsl #3]
	mov	x1, x25
Lloh40:
	adrp	x2, l_.str.1@PAGE
Lloh41:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_FS_BuildOSPath
	mov	x24, x0
	stur	xzr, [x29, #-136]
Lloh42:
	adrp	x21, _qfalse@GOTPAGE
Lloh43:
	ldr	x21, [x21, _qfalse@GOTPAGEOFF]
	ldr	x4, [x21]
	sub	x3, x29, #132
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_Sys_ListFiles
	mov	x20, x0
	ldr	x4, [x21]
	sub	x3, x29, #136
	mov	x0, x24
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_Sys_ListFiles
	mov	x24, x0
	ldur	w8, [x29, #-136]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	x26, #0
	mov	w28, #0
LBB0_19:                                ;   Parent Loop BB0_9 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x21, [x24, x26, lsl #3]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_FS_IsExt
	cmp	x0, #0
	cinc	w28, w28, ne
	add	x26, x26, #1
	ldursw	x8, [x29, #-136]
	cmp	x26, x8
	b.lt	LBB0_19
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	w28, #0
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=2
	mov	x0, x20
	bl	_Sys_FreeFileList
	mov	x0, x24
	bl	_Sys_FreeFileList
	ldur	w8, [x29, #-132]
	cmp	w8, #0
	b.gt	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	cbnz	w28, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x22, x22, #1
	sub	x0, x29, #128
	bl	_ARRAY_LEN
	cmp	x22, w0, sxtw
	b.lt	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w28, #0
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	ldur	w8, [x29, #-132]
	cmp	w8, #0
	b.gt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w28, #1
	b.lt	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_strlen
	add	w20, w0, #1
	mov	x0, x25
	ldur	x24, [x29, #-208]               ; 8-byte Folded Reload
	mov	x1, x24
	ldur	x2, [x29, #-192]                ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_FS_GetModDescription
	mov	x0, x24
	bl	_strlen
	add	w21, w0, #1
	ldur	w8, [x29, #-160]                ; 4-byte Folded Reload
	add	w8, w20, w8
	add	w10, w8, w21
	add	w8, w10, #2
	ldur	w9, [x29, #-180]                ; 4-byte Folded Reload
	cmp	w8, w9
	b.ge	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
	stur	w10, [x29, #-160]               ; 4-byte Folded Spill
	ldur	x22, [x29, #-176]               ; 8-byte Folded Reload
	mov	x0, x22
	mov	x1, x25
	bl	_strcpy
	add	x20, x22, w20, sxtw
	mov	x0, x20
	mov	x1, x24
	bl	_strcpy
	add	x8, x20, w21, sxtw
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	ldur	w8, [x29, #-156]                ; 4-byte Folded Reload
	add	w8, w8, #1
	stur	w8, [x29, #-156]                ; 4-byte Folded Spill
LBB0_29:                                ;   in Loop: Header=BB0_9 Depth=1
	ldur	x24, [x29, #-152]               ; 8-byte Folded Reload
Lloh48:
	adrp	x21, _com_basegame@GOTPAGE
Lloh49:
	ldr	x21, [x21, _com_basegame@GOTPAGEOFF]
	ldur	x22, [x29, #-168]               ; 8-byte Folded Reload
	b	LBB0_8
LBB0_30:
	stur	wzr, [x29, #-156]               ; 4-byte Folded Spill
LBB0_31:
	mov	x0, x23
	bl	_Sys_FreeFileList
	ldur	x8, [x29, #-200]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	ldur	w0, [x29, #-156]                ; 4-byte Folded Reload
	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_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INSTALL_PATH,4,2           ; @MAX_INSTALL_PATH
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_fs_basepath,8,3                ; @fs_basepath
	.comm	_fs_homepath,8,3                ; @fs_homepath
	.comm	_fs_steampath,8,3               ; @fs_steampath
	.comm	_fs_gogpath,8,3                 ; @fs_gogpath
	.comm	_fs_temporarypath,8,3           ; @fs_temporarypath
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_com_basegame,8,3               ; @com_basegame
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

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

l_.str.2:                               ; @.str.2
	.asciz	".pk3"

l_.str.3:                               ; @.str.3
	.asciz	"/"

l_.str.4:                               ; @.str.4
	.asciz	".pk3dir"

.subsections_via_symbols
