	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnEntitiesFromString      ## -- Begin function G_SpawnEntitiesFromString
	.p2align	4, 0x90
_G_SpawnEntitiesFromString:             ## @G_SpawnEntitiesFromString
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SPAWN_VARS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_level@GOTPCREL(%rip), %r14
	movl	%eax, 20(%r14)
	movl	$0, (%r14)
	xorl	%eax, %eax
	callq	_G_ParseSpawnVars
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_G_Error
LBB0_2:
	xorl	%eax, %eax
	callq	_SP_worldspawn
	xorl	%eax, %eax
	callq	_G_ParseSpawnVars
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	leaq	24(%r14), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_G_SpawnGEntityFromSpawnVars
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_G_ParseSpawnVars
	testq	%rax, %rax
	je	LBB0_18
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rcx
	movl	16(%r14), %edi
	cmpl	$1, %r8d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r14), %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rax
	movl	(%rax), %esi
	subl	%edi, %esi
	movl	%esi, (%rbx,%rdx,8)
	movl	4(%rax), %eax
	subl	%edi, %eax
	movl	%eax, 4(%rbx,%rdx,8)
	movq	8(%rcx,%rdx,8), %rax
	movl	(%rax), %esi
	subl	%edi, %esi
	movl	%esi, 8(%rbx,%rdx,8)
	movl	4(%rax), %eax
	subl	%edi, %eax
	movl	%eax, 12(%rbx,%rdx,8)
	addq	$2, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r8b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx,%rdx,8), %rax
	movl	(%rax), %ecx
	subl	%edi, %ecx
	movl	%ecx, (%rbx,%rdx,8)
	movl	4(%rax), %eax
	subl	%edi, %eax
	movl	%eax, 4(%rbx,%rdx,8)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_dmlab_update_spawn_vars
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r14)
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,8), %edx
	addl	16(%r14), %edx
	movq	(%rax,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movl	4(%rbx,%rcx,8), %edx
	addl	16(%r14), %edx
	movl	%edx, 4(%rsi)
	incq	%rcx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	callq	_dmlab_make_extra_entities
	testl	%eax, %eax
	jle	LBB0_24
## %bb.19:
	movl	%eax, %r15d
	leaq	24(%r14), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_G_SpawnGEntityFromSpawnVars
	incl	%r13d
	cmpl	%r15d, %r13d
	je	LBB0_24
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movl	$0, (%r14)
	movq	$0, 24(%r14)
	movl	16(%r14), %esi
	movl	%r13d, %edi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_dmlab_read_extra_entity
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	8(%r14), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,8), %edx
	addl	16(%r14), %edx
	movq	(%rax,%rcx,8), %rsi
	movl	%edx, (%rsi)
	movl	4(%rbx,%rcx,8), %edx
	addl	16(%r14), %edx
	movl	%edx, 4(%rsi)
	incq	%rcx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_22
	jmp	LBB0_23
LBB0_24:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SPAWN_VARS,4,2             ## @MAX_SPAWN_VARS
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_level,32,3                     ## @level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SpawnEntities: no entities"

	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnEntitiesFromString      ; -- Begin function G_SpawnEntitiesFromString
	.p2align	2
_G_SpawnEntitiesFromString:             ; @G_SpawnEntitiesFromString
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_SPAWN_VARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SPAWN_VARS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _qtrue@GOTPAGE
Lloh9:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x20, _level@GOTPAGE
Lloh12:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	str	w8, [x20, #20]
	str	wzr, [x20]
	bl	_G_ParseSpawnVars
	cbnz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_Error
LBB0_2:
	bl	_SP_worldspawn
	bl	_G_ParseSpawnVars
	cbz	x0, LBB0_14
; %bb.3:
	add	x21, x19, #4
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_G_SpawnGEntityFromSpawnVars
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_G_ParseSpawnVars
	cbz	x0, LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x20, #8]
	ldr	w0, [x20, #16]
	mov	x10, x21
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9], #8
	ldr	w12, [x11]
	sub	w12, w12, w0
	stur	w12, [x10, #-4]
	ldr	w11, [x11, #4]
	sub	w11, w11, w0
	str	w11, [x10], #8
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #16]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x20, #24
	mov	x2, x19
	mov	x3, x20
	bl	_dmlab_update_spawn_vars
	cbz	w0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	mov	x10, x21
LBB0_13:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x20, #16]
	ldur	w12, [x10, #-4]
	add	w11, w12, w11
	ldr	x12, [x9, x8, lsl #3]
	str	w11, [x12]
	ldr	w11, [x20, #16]
	ldr	w13, [x10], #8
	add	w11, w13, w11
	str	w11, [x12, #4]
	add	x8, x8, #1
	ldrsw	x11, [x20]
	cmp	x8, x11
	b.lt	LBB0_13
	b	LBB0_4
LBB0_14:
	bl	_dmlab_make_extra_entities
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.15:
	mov	x21, x0
	mov	w22, #0
	add	x23, x19, #4
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_G_SpawnGEntityFromSpawnVars
	add	w22, w22, #1
	cmp	w22, w21
	b.eq	LBB0_20
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	str	wzr, [x20]
	mov	x2, x20
	str	xzr, [x2, #24]!
	ldr	w1, [x20, #16]
	mov	x0, x22
	mov	x3, x19
	mov	x4, x20
	bl	_dmlab_read_extra_entity
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x8, #0
	ldr	x9, [x20, #8]
	mov	x10, x23
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x20, #16]
	ldur	w12, [x10, #-4]
	add	w11, w12, w11
	ldr	x12, [x9, x8, lsl #3]
	str	w11, [x12]
	ldr	w11, [x20, #16]
	ldr	w13, [x10], #8
	add	w11, w13, w11
	str	w11, [x12, #4]
	add	x8, x8, #1
	ldrsw	x11, [x20]
	cmp	x8, x11
	b.lt	LBB0_19
	b	LBB0_16
LBB0_20:
Lloh15:
	adrp	x8, _qfalse@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #48
	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
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SPAWN_VARS,4,2             ; @MAX_SPAWN_VARS
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_level,32,3                     ; @level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SpawnEntities: no entities"

	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
