	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_CopyLump                    ## -- Begin function Q2_CopyLump
	.p2align	4, 0x90
_Q2_CopyLump:                           ## @Q2_CopyLump
	.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, %r13d
	movl	%edx, %ecx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	movq	_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdx
	movl	(%rax,%rdx,8), %r15d
	movslq	4(%rax,%rdx,8), %rbx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Error
LBB0_2:
	cmpl	%r13d, %r12d
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_Error
LBB0_4:
	shlq	$2, %rbx
	movq	_header@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_header,8,3                     ## @header
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LoadBSPFile: odd lump size"

L_.str.1:                               ## @.str.1
	.asciz	"Q2_LoadBSPFile: exceeded max size for lump %d size %d > maxsize %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_CopyLump                    ; -- Begin function Q2_CopyLump
	.p2align	2
_Q2_CopyLump:                           ; @Q2_CopyLump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x3
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _header@GOTPAGE
Lloh1:
	ldr	x24, [x24, _header@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	add	x8, x8, w0, sxtw #3
	ldp	w21, w25, [x8]
                                        ; kill: def $w25 killed $w25 def $x25
	sxtw	x25, w25
	sdiv	w20, w21, w2
	msub	w8, w20, w2, w21
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_2:
	cmp	w20, w23
	b.le	LBB0_4
; %bb.3:
	stp	x20, x23, [sp, #8]
	str	x22, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_4:
	ldr	x8, [x24]
	add	x1, x8, x25, lsl #2
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_header,8,3                     ; @header
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadBSPFile: odd lump size"

l_.str.1:                               ; @.str.1
	.asciz	"Q2_LoadBSPFile: exceeded max size for lump %d size %d > maxsize %d\n"

.subsections_via_symbols
