	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Q3R_ConvertBSPData
_Q3R_ConvertBSPData:                    ## @Q3R_ConvertBSPData
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_q3r_numbrushsides@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_q3_numbrushsides@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	shll	$2, %edi
	callq	_GetMemory
	movq	_q3_dbrushsides@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	movq	_q3r_dbrushsides@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx,%rdx,8), %esi
	movl	%esi, 4(%rax,%rdx,8)
	movl	(%rcx,%rdx,8), %esi
	movl	%esi, (%rax,%rdx,8)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	_q3r_numDrawVerts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_q3_numDrawVerts@GOTPCREL(%rip), %r14
	movl	%edi, (%r14)
	shll	$2, %edi
	callq	_GetMemory
	movq	_q3_drawVerts@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	movq	_q3r_drawVerts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	$32, %edx
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r8,%rdx), %r10
	movq	(%r8,%rdx), %rbx
	movq	-8(%rax,%rdx), %rcx
	movq	(%rax,%rdx), %rsi
	movl	(%rbx), %edi
	movl	%edi, (%rsi)
	movl	(%r10), %edi
	movl	%edi, (%rcx)
	movl	4(%rbx), %edi
	movl	%edi, 4(%rsi)
	movl	4(%r10), %edi
	movl	%edi, 4(%rcx)
	movl	8(%rbx), %edi
	movl	%edi, 8(%rsi)
	movl	8(%r10), %esi
	movl	%esi, 8(%rcx)
	movq	-16(%r8,%rdx), %rcx
	movq	-16(%rax,%rdx), %rsi
	movl	(%rcx), %edi
	movl	%edi, (%rsi)
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movq	-24(%r8,%rdx), %rcx
	movq	(%rcx), %rcx
	movq	-24(%rax,%rdx), %rsi
	movl	(%rcx), %edi
	movl	%edi, (%rsi)
	movl	4(%rcx), %ecx
	movl	%ecx, 4(%rsi)
	movq	-32(%r8,%rdx), %rcx
	movq	(%rcx), %rcx
	movq	-32(%rax,%rdx), %rsi
	movl	(%rcx), %edi
	movl	%edi, (%rsi)
	movl	4(%rcx), %edi
	movl	%edi, 4(%rsi)
	movl	8(%rcx), %edi
	movl	%edi, 8(%rsi)
	movl	12(%rcx), %ecx
	movl	%ecx, 12(%rsi)
	incq	%r9
	movslq	(%r14), %rcx
	addq	$40, %rdx
	cmpq	%rcx, %r9
	jl	LBB0_5
LBB0_6:
	movq	_q3r_numDrawSurfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_q3_numDrawSurfaces@GOTPCREL(%rip), %r14
	movl	%edi, (%r14)
	shll	$2, %edi
	callq	_GetMemory
	movq	_q3_drawSurfaces@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.7:
	movq	_q3r_drawSurfaces@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$72, %rcx
	addq	$68, %rax
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %esi
	movl	%esi, (%rax)
	movl	-4(%rcx), %esi
	movl	%esi, -4(%rax)
	movl	-8(%rcx), %esi
	movl	%esi, -8(%rax)
	movups	-24(%rcx), %xmm0
	movups	%xmm0, -24(%rax)
	movq	-32(%rcx), %rsi
	movl	(%rsi), %esi
	movl	%esi, -28(%rax)
	movq	-40(%rcx), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi), %edi
	movl	%edi, -32(%rax)
	movl	4(%rsi), %esi
	movl	%esi, -36(%rax)
	movl	-44(%rcx), %esi
	movl	%esi, -40(%rax)
	movl	-48(%rcx), %esi
	movl	%esi, -44(%rax)
	movq	-64(%rcx), %rsi
	movq	-56(%rcx), %r9
	movq	-60(%rax), %rbx
	movq	-52(%rax), %r11
	movq	(%rsi), %rdi
	movq	8(%rsi), %r10
	movq	(%rbx), %rdx
	movq	8(%rbx), %r15
	movq	16(%rsi), %r12
	movq	16(%rbx), %rbx
	movl	(%r9), %esi
	movl	%esi, (%r11)
	movl	(%rdi), %esi
	movl	%esi, (%rdx)
	movl	(%r10), %esi
	movl	%esi, (%r15)
	movl	(%r12), %esi
	movl	%esi, (%rbx)
	movl	4(%r9), %esi
	movl	%esi, 4(%r11)
	movl	4(%rdi), %esi
	movl	%esi, 4(%rdx)
	movl	4(%r10), %esi
	movl	%esi, 4(%r15)
	movl	4(%r12), %esi
	movl	%esi, 4(%rbx)
	movl	8(%r9), %esi
	movl	%esi, 8(%r11)
	movl	8(%rdi), %esi
	movl	%esi, 8(%rdx)
	movl	8(%r10), %edx
	movl	%edx, 8(%r15)
	movl	8(%r12), %edx
	movl	%edx, 8(%rbx)
	movl	-68(%rcx), %edx
	movl	%edx, -64(%rax)
	movl	-72(%rcx), %edx
	movl	%edx, -68(%rax)
	incq	%r8
	movslq	(%r14), %rdx
	addq	$80, %rcx
	addq	$72, %rax
	cmpq	%rdx, %r8
	jl	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_q3r_numbrushsides,4,2          ## @q3r_numbrushsides
	.comm	_q3_numbrushsides,4,2           ## @q3_numbrushsides
	.comm	_q3_dbrushsides,8,3             ## @q3_dbrushsides
	.comm	_q3r_dbrushsides,8,3            ## @q3r_dbrushsides
	.comm	_q3r_numDrawVerts,4,2           ## @q3r_numDrawVerts
	.comm	_q3_numDrawVerts,4,2            ## @q3_numDrawVerts
	.comm	_q3_drawVerts,8,3               ## @q3_drawVerts
	.comm	_q3r_drawVerts,8,3              ## @q3r_drawVerts
	.comm	_q3r_numDrawSurfaces,4,2        ## @q3r_numDrawSurfaces
	.comm	_q3_numDrawSurfaces,4,2         ## @q3_numDrawSurfaces
	.comm	_q3_drawSurfaces,8,3            ## @q3_drawSurfaces
	.comm	_q3r_drawSurfaces,8,3           ## @q3r_drawSurfaces
	.no_dead_strip	_Q3R_ConvertBSPData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Q3R_ConvertBSPData
_Q3R_ConvertBSPData:                    ; @Q3R_ConvertBSPData
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _q3r_numbrushsides@GOTPAGE
Lloh1:
	ldr	x8, [x8, _q3r_numbrushsides@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _q3_numbrushsides@GOTPAGE
Lloh4:
	ldr	x19, [x19, _q3_numbrushsides@GOTPAGEOFF]
	str	w8, [x19]
	lsl	w0, w8, #2
	bl	_GetMemory
Lloh5:
	adrp	x8, _q3_dbrushsides@GOTPAGE
Lloh6:
	ldr	x8, [x8, _q3_dbrushsides@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
Lloh8:
	adrp	x9, _q3r_dbrushsides@GOTPAGE
Lloh9:
	ldr	x9, [x9, _q3r_dbrushsides@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldr	d0, [x9, x10]
	str	d0, [x0, x10]
	add	x8, x8, #1
	ldrsw	x10, [x19]
	cmp	x8, x10
	b.lt	LBB0_2
LBB0_3:
Lloh11:
	adrp	x8, _q3r_numDrawVerts@GOTPAGE
Lloh12:
	ldr	x8, [x8, _q3r_numDrawVerts@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x19, _q3_numDrawVerts@GOTPAGE
Lloh15:
	ldr	x19, [x19, _q3_numDrawVerts@GOTPAGEOFF]
	str	w8, [x19]
	lsl	w0, w8, #2
	bl	_GetMemory
Lloh16:
	adrp	x8, _q3_drawVerts@GOTPAGE
Lloh17:
	ldr	x8, [x8, _q3_drawVerts@GOTPAGEOFF]
Lloh18:
	str	x0, [x8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
Lloh19:
	adrp	x9, _q3r_drawVerts@GOTPAGE
Lloh20:
	ldr	x9, [x9, _q3r_drawVerts@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x9, x9, #16
	add	x10, x0, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, #16]
	ldr	x12, [x10, #16]
	ldr	w13, [x11]
	str	w13, [x12]
	ldp	x14, x13, [x9]
	ldr	w15, [x13]
	ldp	x17, x16, [x10]
	str	w15, [x16]
	ldr	w15, [x11, #4]
	str	w15, [x12, #4]
	ldr	w15, [x13, #4]
	str	w15, [x16, #4]
	ldr	w11, [x11, #8]
	str	w11, [x12, #8]
	ldr	w11, [x13, #8]
	str	w11, [x16, #8]
	ldr	w11, [x14]
	str	w11, [x17]
	ldr	w11, [x14, #4]
	str	w11, [x17, #4]
	ldp	x12, x11, [x9, #-16]
	ldr	x11, [x11]
	ldp	x15, x13, [x10, #-16]
	ldr	w14, [x11]
	str	w14, [x13]
	ldr	w11, [x11, #4]
	str	w11, [x13, #4]
	ldr	x11, [x12]
	ldr	w12, [x11]
	str	w12, [x15]
	ldr	w12, [x11, #4]
	str	w12, [x15, #4]
	ldr	w12, [x11, #8]
	str	w12, [x15, #8]
	ldr	w11, [x11, #12]
	str	w11, [x15, #12]
	add	x8, x8, #1
	ldrsw	x11, [x19]
	add	x9, x9, #40
	add	x10, x10, #40
	cmp	x8, x11
	b.lt	LBB0_5
LBB0_6:
Lloh22:
	adrp	x8, _q3r_numDrawSurfaces@GOTPAGE
Lloh23:
	ldr	x8, [x8, _q3r_numDrawSurfaces@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x19, _q3_numDrawSurfaces@GOTPAGE
Lloh26:
	ldr	x19, [x19, _q3_numDrawSurfaces@GOTPAGEOFF]
	str	w8, [x19]
	lsl	w0, w8, #2
	bl	_GetMemory
Lloh27:
	adrp	x8, _q3_drawSurfaces@GOTPAGE
Lloh28:
	ldr	x8, [x8, _q3_drawSurfaces@GOTPAGEOFF]
Lloh29:
	str	x0, [x8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x8, #0
Lloh30:
	adrp	x9, _q3r_drawSurfaces@GOTPAGE
Lloh31:
	ldr	x9, [x9, _q3r_drawSurfaces@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x9, x9, #72
	add	x10, x0, #36
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	str	w11, [x10, #32]
	ldur	d0, [x9, #-8]
	str	d0, [x10, #24]
	ldur	q0, [x9, #-24]
	stur	q0, [x10, #8]
	ldp	x12, x11, [x9, #-40]
	ldr	w11, [x11]
	str	w11, [x10, #4]
	ldr	x11, [x12]
	ldr	w12, [x11]
	str	w12, [x10]
	ldr	w11, [x11, #4]
	stur	w11, [x10, #-4]
	ldur	d0, [x9, #-48]
	stur	d0, [x10, #-12]
	ldur	x11, [x10, #-20]
	ldp	x13, x12, [x9, #-64]
	ldur	x14, [x10, #-28]
	ldp	x15, x16, [x13]
	ldp	x17, x0, [x14]
	ldr	x13, [x13, #16]
	ldr	x14, [x14, #16]
	ldr	w1, [x12]
	str	w1, [x11]
	ldr	w1, [x15]
	str	w1, [x17]
	ldr	w1, [x16]
	str	w1, [x0]
	ldr	w1, [x13]
	str	w1, [x14]
	ldr	w1, [x12, #4]
	str	w1, [x11, #4]
	ldr	w1, [x15, #4]
	str	w1, [x17, #4]
	ldr	w1, [x16, #4]
	str	w1, [x0, #4]
	ldr	w1, [x13, #4]
	str	w1, [x14, #4]
	ldr	w12, [x12, #8]
	str	w12, [x11, #8]
	ldr	w11, [x15, #8]
	str	w11, [x17, #8]
	ldr	w11, [x16, #8]
	str	w11, [x0, #8]
	ldr	w11, [x13, #8]
	str	w11, [x14, #8]
	ldur	d0, [x9, #-72]
	stur	d0, [x10, #-36]
	add	x8, x8, #1
	ldrsw	x11, [x19]
	add	x9, x9, #80
	add	x10, x10, #72
	cmp	x8, x11
	b.lt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_q3r_numbrushsides,4,2          ; @q3r_numbrushsides
	.comm	_q3_numbrushsides,4,2           ; @q3_numbrushsides
	.comm	_q3_dbrushsides,8,3             ; @q3_dbrushsides
	.comm	_q3r_dbrushsides,8,3            ; @q3r_dbrushsides
	.comm	_q3r_numDrawVerts,4,2           ; @q3r_numDrawVerts
	.comm	_q3_numDrawVerts,4,2            ; @q3_numDrawVerts
	.comm	_q3_drawVerts,8,3               ; @q3_drawVerts
	.comm	_q3r_drawVerts,8,3              ; @q3r_drawVerts
	.comm	_q3r_numDrawSurfaces,4,2        ; @q3r_numDrawSurfaces
	.comm	_q3_numDrawSurfaces,4,2         ; @q3_numDrawSurfaces
	.comm	_q3_drawSurfaces,8,3            ; @q3_drawSurfaces
	.comm	_q3r_drawSurfaces,8,3           ; @q3r_drawSurfaces
	.no_dead_strip	_Q3R_ConvertBSPData
.subsections_via_symbols
