	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function FindQuakeFilesWithPakFilter
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_FindQuakeFilesWithPakFilter
	.p2align	4, 0x90
_FindQuakeFilesWithPakFilter:           ## @FindQuakeFilesWithPakFilter
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__MAX_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_18
## %bb.1:
	cmpb	$0, (%r12)
	je	LBB0_18
## %bb.2:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rcx
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_glob
	cmpl	$0, -64(%rbp)
	jle	LBB0_25
## %bb.3:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$-4, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %r15
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	-64(%rbp), %rax
	cmpq	%rax, %r13
	jge	LBB0_25
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	-56(%rbp), %rax
	movq	(%rax,%r13,8), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strcpy
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	callq	_stat
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -72(%rbp)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_strcpy
	movq	__MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_AppendPathSeperator
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcat
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_FindQuakeFilesWithPakFilter
	movq	%rax, %rcx
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 24(%r12)
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r12
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_StringContains
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_strlen
	addq	-112(%rbp), %rax                ## 8-byte Folded Reload
	cmpq	%rax, %r14
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_FindQuakeFilesInPak
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_FindQuakeFilesInZip
	testq	%rax, %rax
	je	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rcx
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 24(%r12)
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r12
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_18:
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_glob
	cmpl	$0, -64(%rbp)
	jle	LBB0_25
## %bb.19:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movslq	-64(%rbp), %rax
	movq	%r15, %r14
	movq	%rbx, %r13
	cmpq	%rax, %r12
	jge	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r12,8), %rsi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strcpy
	movl	$56, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_Error
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	%r15, %rdi
	callq	_QuakeFileType
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	%rbx, %r15
	testq	%r13, %r13
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, 24(%r13)
	movq	%r14, %r15
	jmp	LBB0_24
LBB0_25:
	leaq	-64(%rbp), %rdi
	callq	_globfree
	movq	-104(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__MAX_PATH,4,2                  ## @_MAX_PATH
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".pk3"

L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

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

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindQuakeFilesWithPakFilter    ; -- Begin function FindQuakeFilesWithPakFilter
	.p2align	2
_FindQuakeFilesWithPakFilter:           ; @FindQuakeFilesWithPakFilter
	.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, #48
	mov	x20, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 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	x27, __MAX_PATH@GOTPAGE
Lloh4:
	ldr	x27, [x27, __MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w8, [x27]
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	cbz	x0, LBB0_17
; %bb.1:
	ldrb	w8, [x21]
	cbz	w8, LBB0_17
; %bb.2:
	sub	x3, x29, #104
	mov	x0, x21
	mov	w1, #0
	mov	x2, #0
	bl	_glob
	ldur	w8, [x29, #-104]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.3:
	mov	x28, #0
	mov	x23, #0
	mov	x26, #0
	sub	x8, x22, #4
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh9:
	adrp	x24, _S_IFDIR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _S_IFDIR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	ldursw	x8, [x29, #-104]
	cmp	x28, x8
	b.ge	LBB0_25
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldur	x8, [x29, #-96]
	ldr	x1, [x8, x28, lsl #3]
	mov	x0, x22
	bl	_strcpy
	sub	x1, x29, #112
	mov	x0, x22
	bl	_stat
	ldur	w8, [x29, #-112]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
	ldr	w1, [x27]
	mov	x0, x19
	bl	_AppendPathSeperator
	mov	x0, x19
	mov	x1, x20
	bl	_strcat
	mov	x0, #0
	mov	x1, x19
	bl	_FindQuakeFilesWithPakFilter
	mov	x1, x0
	cbz	x26, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x26, #24]
	mov	x1, x23
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x0
	ldr	x0, [x0, #24]
	cbnz	x0, LBB0_9
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_StringContains
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	mov	x0, x22
	bl	_strlen
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	add	x8, x8, x0
	cmp	x25, x8
	b.eq	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_FindQuakeFilesInPak
	cbnz	x0, LBB0_14
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_FindQuakeFilesInZip
	cbz	x0, LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	cbz	x26, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x26, #24]
	mov	x1, x23
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x0
	ldr	x0, [x0, #24]
	cbnz	x0, LBB0_16
	b	LBB0_4
LBB0_17:
	sub	x3, x29, #104
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_glob
	ldur	w8, [x29, #-104]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.18:
	mov	x24, #0
	mov	x25, #0
	mov	x26, #0
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh15:
	adrp	x21, l_.str.2@PAGE
Lloh16:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x24, #1
	ldursw	x8, [x29, #-104]
	mov	x25, x23
	mov	x26, x22
	cmp	x24, x8
	b.ge	LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	x1, [x8, x24, lsl #3]
	mov	x0, x19
	bl	_strcpy
	mov	w0, #56
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	bl	_Error
LBB0_22:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x22
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	x0, [x22]
	mov	x1, x21
	bl	_strcpy
	ldr	x0, [x22, #8]
	mov	x1, x19
	bl	_strcpy
	ldr	x0, [x22, #16]
	mov	x1, x19
	bl	_strcpy
	stp	xzr, xzr, [x22, #40]
	mov	x0, x19
	bl	_QuakeFileType
	str	w0, [x22, #32]
	str	xzr, [x22, #24]
	mov	x23, x22
	cbz	x26, LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x22, [x26, #24]
	mov	x23, x25
	b	LBB0_19
LBB0_24:
	mov	x23, #0
LBB0_25:
	sub	x0, x29, #104
	bl	_globfree
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x23
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__MAX_PATH,4,2                  ; @_MAX_PATH
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".pk3"

l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

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

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
.subsections_via_symbols
