	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetEntityOrigins               ## -- Begin function SetEntityOrigins
	.p2align	4, 0x90
_SetEntityOrigins:                      ## @SetEntityOrigins
	.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	_num_entities@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_num_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	leaq	(,%r14,4), %r13
	movq	_entities@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_ValueForKey
	cmpb	$42, (%rax)
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	%rax, %rdi
	callq	_atoi
	movq	_dmodels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movslq	%eax, %r12
	cmpl	$0, (%r15,%r12,8)
	movq	_qtrue@GOTPCREL(%rip), %rdi
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_entitySurface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdi), %edx
	movslq	4(%r15,%r12,8), %rsi
	addq	%rcx, %rsi
	movl	%edx, (%rax,%rsi,4)
	incq	%rcx
	cmpl	(%r15,%r12,8), %ecx
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_ValueForKey
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_GetVectorForKey
	cmpl	$0, (%r15,%r12,8)
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_surfaceOrigin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	4(%r15,%r12,8), %rcx
	addq	%rbx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_VectorCopy
	incq	%rbx
	cmpl	(%r15,%r12,8), %ebx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_entities,4,2               ## @num_entities
	.comm	_entities,8,3                   ## @entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"model"

	.comm	_dmodels,8,3                    ## @dmodels
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_entitySurface,8,3              ## @entitySurface
L_.str.1:                               ## @.str.1
	.asciz	"origin"

	.comm	_surfaceOrigin,8,3              ## @surfaceOrigin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetEntityOrigins               ; -- Begin function SetEntityOrigins
	.p2align	2
_SetEntityOrigins:                      ; @SetEntityOrigins
	.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
Lloh0:
	adrp	x22, _num_entities@GOTPAGE
Lloh1:
	ldr	x22, [x22, _num_entities@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _entities@GOTPAGE
Lloh3:
	ldr	x24, [x24, _entities@GOTPAGEOFF]
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
Lloh6:
	adrp	x27, _qtrue@GOTPAGE
Lloh7:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
Lloh8:
	adrp	x28, _surfaceOrigin@GOTPAGE
Lloh9:
	ldr	x28, [x28, _surfaceOrigin@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x24]
	add	x21, x8, x23, lsl #2
	mov	x0, x21
	mov	x1, x19
	bl	_ValueForKey
	ldrb	w8, [x0]
	cmp	w8, #42
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
Lloh10:
	adrp	x8, _dmodels@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dmodels@GOTPAGEOFF]
Lloh12:
	ldr	x25, [x8]
	sxtw	x20, w0
	add	x26, x25, w0, sxtw #3
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
Lloh13:
	adrp	x9, _entitySurface@GOTPAGE
Lloh14:
	ldr	x9, [x9, _entitySurface@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x10, x25, x20, lsl #3
	add	x10, x10, #4
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x27]
	ldrsw	x12, [x10]
	add	x12, x8, x12
	str	w11, [x9, x12, lsl #2]
	ldr	w11, [x26]
	add	x8, x8, #1
	cmp	w8, w11
	b.lt	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ValueForKey
	ldrb	w8, [x0]
	cbz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GetVectorForKey
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	add	x8, x25, x20, lsl #3
	add	x20, x8, #4
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	ldrsw	x9, [x20]
	add	x9, x21, x9
	ldr	w1, [x8, x9, lsl #2]
	bl	_VectorCopy
	ldr	w8, [x26]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_10
	b	LBB0_2
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_num_entities,4,2               ; @num_entities
	.comm	_entities,8,3                   ; @entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"model"

	.comm	_dmodels,8,3                    ; @dmodels
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_entitySurface,8,3              ; @entitySurface
l_.str.1:                               ; @.str.1
	.asciz	"origin"

	.comm	_surfaceOrigin,8,3              ; @surfaceOrigin
.subsections_via_symbols
