	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnGEntityFromSpawnVars    ## -- Begin function G_SpawnGEntityFromSpawnVars
	.p2align	4, 0x90
_G_SpawnGEntityFromSpawnVars:           ## @G_SpawnGEntityFromSpawnVars
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_G_Spawn
	movq	%rax, %r15
	movl	$0, -28(%rbp)
	movq	_level@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movq	%r15, %rdx
	callq	_G_ParseField
	incq	%rbx
	movl	%ebx, -28(%rbp)
	cmpl	(%r14), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_g_gametype@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.9(%rip), %rdi
	leaq	L_.str.10(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_G_SpawnInt
	cmpl	$0, -28(%rbp)
	jne	LBB0_16
## %bb.5:
	movq	(%r14), %rax
LBB0_6:
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_7
## %bb.8:
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.11(%rip), %rdi
LBB0_9:
	leaq	L_.str.10(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_G_SpawnInt
	cmpl	$0, -28(%rbp)
	jne	LBB0_16
## %bb.10:
	leaq	L_.str.13(%rip), %rdi
	leaq	L_.str.10(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_G_SpawnInt
	cmpl	$0, -28(%rbp)
	je	LBB0_11
LBB0_16:
	movq	%r15, %rdi
	callq	_G_FreeEntity
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.14(%rip), %rdi
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	_G_SpawnString
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	(%r14), %rax
	movq	_GT_FFA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_15
## %bb.13:
	movq	_GT_MAX_GAME_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_15
## %bb.14:
	leaq	_reltable.G_SpawnGEntityFromSpawnVars(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	movq	-40(%rbp), %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movl	4(%r15), %edi
	movl	8(%r15), %esi
	callq	_VectorCopy
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_VectorCopy
	movq	%r15, %rdi
	callq	_G_CallSpawn
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.G_SpawnGEntityFromSpawnVars
_reltable.G_SpawnGEntityFromSpawnVars:
	.long	L_.str-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.1-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.2-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.3-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.4-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.5-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.6-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.7-_reltable.G_SpawnGEntityFromSpawnVars
	.long	L_.str.8-_reltable.G_SpawnGEntityFromSpawnVars

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffa"

L_.str.1:                               ## @.str.1
	.asciz	"tournament"

L_.str.2:                               ## @.str.2
	.asciz	"single"

L_.str.3:                               ## @.str.3
	.asciz	"team"

L_.str.4:                               ## @.str.4
	.asciz	"ctf"

L_.str.5:                               ## @.str.5
	.asciz	"oneflag"

L_.str.6:                               ## @.str.6
	.asciz	"obelisk"

L_.str.7:                               ## @.str.7
	.asciz	"harvester"

L_.str.8:                               ## @.str.8
	.asciz	"teamtournament"

	.comm	_level,16,3                     ## @level
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
L_.str.9:                               ## @.str.9
	.asciz	"notsingle"

L_.str.10:                              ## @.str.10
	.asciz	"0"

	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
L_.str.11:                              ## @.str.11
	.asciz	"notteam"

L_.str.12:                              ## @.str.12
	.asciz	"notfree"

L_.str.13:                              ## @.str.13
	.asciz	"notq3a"

L_.str.14:                              ## @.str.14
	.asciz	"gametype"

	.comm	_GT_FFA,8,3                     ## @GT_FFA
	.comm	_GT_MAX_GAME_TYPE,8,3           ## @GT_MAX_GAME_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SpawnGEntityFromSpawnVars    ; -- Begin function G_SpawnGEntityFromSpawnVars
	.p2align	2
_G_SpawnGEntityFromSpawnVars:           ; @G_SpawnGEntityFromSpawnVars
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_G_Spawn
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x20, _level@GOTPAGE
Lloh1:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	ldp	w0, w1, [x8]
	mov	x2, x19
	bl	_G_ParseField
	add	x21, x21, #1
	str	w21, [sp, #12]
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x20, _g_gametype@GOTPAGE
Lloh3:
	ldr	x20, [x20, _g_gametype@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _GT_SINGLE_PLAYER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x0, l_.str.9@PAGE
Lloh8:
	add	x0, x0, l_.str.9@PAGEOFF
Lloh9:
	adrp	x1, l_.str.10@PAGE
Lloh10:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnInt
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_11
; %bb.5:
	ldr	x8, [x20]
LBB0_6:
Lloh11:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.7:
Lloh14:
	adrp	x0, l_.str.12@PAGE
Lloh15:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x0, l_.str.11@PAGE
Lloh17:
	add	x0, x0, l_.str.11@PAGEOFF
LBB0_9:
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnInt
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh20:
	adrp	x0, l_.str.13@PAGE
Lloh21:
	add	x0, x0, l_.str.13@PAGEOFF
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnInt
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_G_FreeEntity
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh24:
	adrp	x0, l_.str.14@PAGE
Lloh25:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x2, sp
	mov	x1, #0
	bl	_G_SpawnString
	cbz	x0, LBB0_17
; %bb.14:
	ldr	x8, [x20]
Lloh26:
	adrp	x9, _GT_FFA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GT_FFA@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_17
; %bb.15:
Lloh29:
	adrp	x9, _GT_MAX_GAME_TYPE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GT_MAX_GAME_TYPE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_17
; %bb.16:
Lloh32:
	adrp	x9, _G_SpawnGEntityFromSpawnVars.gametypeNames@PAGE
Lloh33:
	add	x9, x9, _G_SpawnGEntityFromSpawnVars.gametypeNames@PAGEOFF
	ldr	x1, [x9, x8, lsl #3]
	ldr	x0, [sp]
	bl	_strstr
	cbz	x0, LBB0_11
LBB0_17:
	ldp	w0, w1, [x19, #4]
	bl	_VectorCopy
	ldp	w1, w0, [x19]
	bl	_VectorCopy
	mov	x0, x19
	bl	_G_CallSpawn
	cbnz	w0, LBB0_12
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @G_SpawnGEntityFromSpawnVars.gametypeNames
_G_SpawnGEntityFromSpawnVars.gametypeNames:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffa"

l_.str.1:                               ; @.str.1
	.asciz	"tournament"

l_.str.2:                               ; @.str.2
	.asciz	"single"

l_.str.3:                               ; @.str.3
	.asciz	"team"

l_.str.4:                               ; @.str.4
	.asciz	"ctf"

l_.str.5:                               ; @.str.5
	.asciz	"oneflag"

l_.str.6:                               ; @.str.6
	.asciz	"obelisk"

l_.str.7:                               ; @.str.7
	.asciz	"harvester"

l_.str.8:                               ; @.str.8
	.asciz	"teamtournament"

	.comm	_level,16,3                     ; @level
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
l_.str.9:                               ; @.str.9
	.asciz	"notsingle"

l_.str.10:                              ; @.str.10
	.asciz	"0"

	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
l_.str.11:                              ; @.str.11
	.asciz	"notteam"

l_.str.12:                              ; @.str.12
	.asciz	"notfree"

l_.str.13:                              ; @.str.13
	.asciz	"notq3a"

l_.str.14:                              ; @.str.14
	.asciz	"gametype"

	.comm	_GT_FFA,8,3                     ; @GT_FFA
	.comm	_GT_MAX_GAME_TYPE,8,3           ; @GT_MAX_GAME_TYPE
.subsections_via_symbols
