	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckBotSpawn                ## -- Begin function G_CheckBotSpawn
	.p2align	4, 0x90
_G_CheckBotSpawn:                       ## @G_CheckBotSpawn
	.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
	subq	$24, %rsp
	.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_INFO_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%eax, %eax
	callq	_G_CheckMinimumPlayers
	movq	_BOT_SPAWN_QUEUE_DEPTH@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.1:
	movl	$8, %ebx
	xorl	%r15d, %r15d
	movq	_botSpawnQueue@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	-8(%rax,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_level@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%rbx), %edi
	callq	_ClientBegin
	movq	(%r14), %rax
	movq	$0, -8(%rax,%rbx)
	movq	_g_gametype@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%rbx), %edi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_trap_GetUserinfo
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_PlayerIntroSound
	jmp	LBB0_6
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_VALUE,4,2             ## @MAX_INFO_VALUE
	.comm	_BOT_SPAWN_QUEUE_DEPTH,4,2      ## @BOT_SPAWN_QUEUE_DEPTH
	.comm	_botSpawnQueue,8,3              ## @botSpawnQueue
	.comm	_level,8,3                      ## @level
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"model"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckBotSpawn                ; -- Begin function G_CheckBotSpawn
	.p2align	2
_G_CheckBotSpawn:                       ; @G_CheckBotSpawn
	.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
	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, #-88]
Lloh3:
	adrp	x8, _MAX_INFO_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_G_CheckMinimumPlayers
Lloh8:
	adrp	x22, _BOT_SPAWN_QUEUE_DEPTH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _BOT_SPAWN_QUEUE_DEPTH@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh10:
	adrp	x25, _botSpawnQueue@GOTPAGE
Lloh11:
	ldr	x25, [x25, _botSpawnQueue@GOTPAGEOFF]
Lloh12:
	adrp	x26, _level@GOTPAGE
Lloh13:
	ldr	x26, [x26, _level@GOTPAGEOFF]
Lloh14:
	adrp	x27, _g_gametype@GOTPAGE
Lloh15:
	ldr	x27, [x27, _g_gametype@GOTPAGEOFF]
Lloh16:
	adrp	x28, _GT_SINGLE_PLAYER@GOTPAGE
Lloh17:
	ldr	x28, [x28, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str@PAGE
Lloh19:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x8, x23]
	ldr	x10, [x26]
	cmp	x9, #0
	ccmp	x9, x10, #0, ne
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	bl	_ClientBegin
	ldr	x8, [x25]
	str	xzr, [x8, x23]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23
	ldr	w0, [x8, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_trap_GetUserinfo
	mov	x0, x20
	mov	x1, x21
	bl	_Info_ValueForKey
	bl	_PlayerIntroSound
	b	LBB0_2
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #80
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_VALUE,4,2             ; @MAX_INFO_VALUE
	.comm	_BOT_SPAWN_QUEUE_DEPTH,4,2      ; @BOT_SPAWN_QUEUE_DEPTH
	.comm	_botSpawnQueue,8,3              ; @botSpawnQueue
	.comm	_level,8,3                      ; @level
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"model"

.subsections_via_symbols
