	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindQuakeFilesInZip            ## -- Begin function FindQuakeFilesInZip
	.p2align	4, 0x90
_FindQuakeFilesInZip:                   ## @FindQuakeFilesInZip
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_unzOpen
	movq	%rax, %rbx
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	callq	_unzGetGlobalInfo
	movq	_UNZ_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_unzGoToFirstFile
	xorl	%r15d, %r15d
	cmpl	$0, -56(%rbp)
	jle	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %r14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_unzGoToNextFile
	incl	%r15d
	movq	%r14, %r12
	cmpl	-56(%rbp), %r15d
	jge	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_unzGetCurrentFileInfo
	addq	$16, %rsp
	movq	_UNZ_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ConvertPath
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_FileFilter
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$48, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	44(%r14), %edi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_strcpy
	movl	40(%r14), %edi
	movq	%r13, %rsi
	callq	_strcpy
	movl	36(%r14), %edi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_strcpy
	movl	$1, (%r14)
	movq	%r14, %rdi
	addq	$32, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	$0, 24(%r14)
	movl	-72(%rbp), %eax
	movl	%eax, 20(%r14)
	movq	%r13, %rdi
	callq	_QuakeFileType
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	testq	%r12, %r12
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, 8(%r12)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_14:
	movq	%rbx, %rdi
	callq	_unzClose
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_15:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_UNZ_OK,4,2                     ## @UNZ_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindQuakeFilesInZip            ; -- Begin function FindQuakeFilesInZip
	.p2align	2
_FindQuakeFilesInZip:                   ; @FindQuakeFilesInZip
	.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, #32
	mov	x19, x1
	mov	x20, x0
	mov	x25, sp
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_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	bl	_unzOpen
	mov	x22, x0
	sub	x1, x29, #96
	bl	_unzGetGlobalInfo
Lloh8:
	adrp	x28, _UNZ_OK@GOTPAGE
Lloh9:
	ldr	x28, [x28, _UNZ_OK@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.1:
	stur	x25, [x29, #-112]               ; 8-byte Folded Spill
	mov	x0, x22
	bl	_unzGoToFirstFile
	ldur	w8, [x29, #-96]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x27, #0
	mov	x24, #0
	mov	w25, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_unzGoToNextFile
	add	w25, w25, #1
	ldur	w8, [x29, #-96]
	mov	x27, x26
	cmp	w25, w8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #104
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_unzGetCurrentFileInfo
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_ConvertPath
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_FileFilter
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #48
	bl	_malloc
	mov	x26, x0
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	w0, [x26, #44]
	mov	x1, x20
	bl	_strcpy
	ldr	w0, [x26, #40]
	mov	x1, x20
	bl	_strcpy
	ldr	w0, [x26, #36]
	mov	x1, x23
	bl	_strcpy
	mov	w8, #1
	str	w8, [x26]
	add	x0, x26, #32
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	str	xzr, [x26, #24]
	ldur	w8, [x29, #-104]
	str	w8, [x26, #20]
	mov	x0, x23
	bl	_QuakeFileType
	str	w0, [x26, #16]
	str	xzr, [x26, #8]
	cbz	x27, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	x26, [x27, #8]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x26
	b	LBB0_4
LBB0_12:
	mov	x24, #0
	b	LBB0_15
LBB0_13:
	mov	x24, #0
LBB0_14:
	mov	x0, x22
	bl	_unzClose
	ldur	x25, [x29, #-112]               ; 8-byte Folded Reload
LBB0_15:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x24
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_UNZ_OK,4,2                     ; @UNZ_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

.subsections_via_symbols
