	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_MoveBrushesToWorld          ## -- Begin function Q2_MoveBrushesToWorld
	.p2align	4, 0x90
_Q2_MoveBrushesToWorld:                 ## @Q2_MoveBrushesToWorld
	.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	%rdi, %r13
	movslq	(%rdi), %rbx
	movq	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %r14
	leal	(,%rbx,8), %r12d
	movl	%r12d, %edi
	callq	_GetMemory
	movq	%rax, %r15
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%r13), %rsi
	shlq	$3, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movq	%r14, %r13
	shlq	$3, %r13
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	leaq	(%rsi,%rbx,8), %rdi
	movq	_nummapbrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%r14d, %edx
	subl	%ebx, %edx
	shll	$3, %edx
	callq	_memmove
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	%ebx, (%rax)
	movq	_num_entities@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_3
## %bb.1:
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ebx, 4(%rax,%rdx,8)
	incq	%rdx
	movslq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_FreeMemory
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_entities,8,3                   ## @entities
	.comm	_mapbrushes,8,3                 ## @mapbrushes
	.comm	_nummapbrushes,4,2              ## @nummapbrushes
	.comm	_num_entities,4,2               ## @num_entities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_MoveBrushesToWorld          ; -- Begin function Q2_MoveBrushesToWorld
	.p2align	2
_Q2_MoveBrushesToWorld:                 ; @Q2_MoveBrushesToWorld
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldrsw	x22, [x0]
Lloh0:
	adrp	x23, _entities@GOTPAGE
Lloh1:
	ldr	x23, [x23, _entities@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrsw	x24, [x8]
	lsl	w21, w22, #3
	mov	x0, x21
	bl	_GetMemory
	mov	x20, x0
Lloh2:
	adrp	x25, _mapbrushes@GOTPAGE
Lloh3:
	ldr	x25, [x25, _mapbrushes@GOTPAGEOFF]
	ldr	x8, [x25]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #3
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x25]
	lsl	x26, x24, #3
	add	x1, x8, x26
	add	x0, x1, x22, lsl #3
Lloh4:
	adrp	x8, _nummapbrushes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nummapbrushes@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w9, w24, w22
	sub	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x8, [x25]
	add	x0, x8, x26
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x9, [x23]
	ldr	w8, [x9]
	add	w8, w8, w22
	str	w8, [x9]
Lloh7:
	adrp	x8, _num_entities@GOTPAGE
Lloh8:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #2
	b.lt	LBB0_3
; %bb.1:
	add	x9, x9, #12
	mov	w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	add	w11, w11, w22
	str	w11, [x9], #8
	add	x10, x10, #1
	ldrsw	x11, [x8]
	cmp	x10, x11
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_FreeMemory
	str	wzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_entities,8,3                   ; @entities
	.comm	_mapbrushes,8,3                 ; @mapbrushes
	.comm	_nummapbrushes,4,2              ; @nummapbrushes
	.comm	_num_entities,4,2               ; @num_entities
.subsections_via_symbols
