	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadQuakeFile                  ## -- Begin function LoadQuakeFile
	.p2align	4, 0x90
_LoadQuakeFile:                         ## @LoadQuakeFile
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_unzOpen
	movq	%rax, %r15
	movl	(%rax), %eax
	leaq	12(%rbx), %r13
	movl	%eax, 12(%rbx)
	movq	%r13, %rdi
	callq	_unzOpenCurrentFile
	movl	(%rbx), %r12d
	leal	1(%r12), %edi
	callq	_GetMemory
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_unzReadCurrentFile
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_unzCloseCurrentFile
	movq	%r15, %rdi
	callq	_unzClose
	jmp	LBB0_7
LBB0_2:
	movl	8(%rbx), %edi
	callq	_SafeOpenRead
	movq	%rax, %r15
	movl	4(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_fseek
LBB0_4:
	movl	(%rbx), %r12d
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_Q_filelength
	movl	%eax, %r12d
LBB0_6:
	leal	1(%r12), %edi
	callq	_GetMemory
	movq	%rax, %rbx
	movslq	%r12d, %rdx
	movb	$0, (%rax,%rdx)
	movq	%r15, %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SafeRead
	movq	%r15, %rdi
	callq	_fclose
LBB0_7:
	movq	%rbx, (%r14)
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadQuakeFile                  ; -- Begin function LoadQuakeFile
	.p2align	2
_LoadQuakeFile:                         ; @LoadQuakeFile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_unzOpen
	mov	x21, x0
	ldr	w8, [x0]
	mov	x23, x20
	str	w8, [x23, #12]!
	mov	x0, x23
	bl	_unzOpenCurrentFile
	ldr	w20, [x20]
	add	w0, w20, #1
	bl	_GetMemory
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_unzReadCurrentFile
	mov	x20, x0
	mov	x0, x23
	bl	_unzCloseCurrentFile
	mov	x0, x21
	bl	_unzClose
	b	LBB0_7
LBB0_2:
	ldr	w0, [x20, #8]
	bl	_SafeOpenRead
	mov	x21, x0
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_fseek
LBB0_4:
	ldr	w20, [x20]
	cbnz	w20, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_Q_filelength
	mov	x20, x0
LBB0_6:
	add	w0, w20, #1
	bl	_GetMemory
	mov	x22, x0
	strb	wzr, [x0, w20, sxtw]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_SafeRead
	mov	x0, x21
	bl	_fclose
LBB0_7:
	str	x22, [x19]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
