	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CountBotPlayers              ## -- Begin function G_CountBotPlayers
	.p2align	4, 0x90
_G_CountBotPlayers:                     ## @G_CountBotPlayers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_g_maxclients@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.5:
	movq	_level@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rcx
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	movq	_g_entities@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movq	_SVF_BOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r11
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%eax
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %r11
	je	LBB0_2
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, 16(%rcx,%rdx)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rcx,%rdx), %rsi
	testl	%r9d, (%r8,%rsi,4)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%edi, %edi
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edi, (%rcx,%rdx)
	je	LBB0_10
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	movq	_BOT_SPAWN_QUEUE_DEPTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.3:
	movq	_botSpawnQueue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_level@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	cmpl	$1, %r8d
	jne	LBB0_12
## %bb.4:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_12:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdi,8), %rcx
	movq	8(%rsi,%rdi,8), %rdx
	testq	%rcx, %rcx
	setne	%r11b
	cmpq	%r10, %rcx
	setle	%cl
	andb	%r11b, %cl
	movzbl	%cl, %ecx
	addl	%eax, %ecx
	testq	%rdx, %rdx
	setne	%al
	cmpq	%r10, %rdx
	setle	%dl
	andb	%al, %dl
	movzbl	%dl, %eax
	addl	%ecx, %eax
	addq	$2, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_13
LBB0_14:
	testb	$1, %r8b
	je	LBB0_16
## %bb.15:
	movq	(%rsi,%rdi,8), %rcx
	testq	%rcx, %rcx
	setne	%dl
	cmpq	%r10, %rcx
	setle	%cl
	andb	%dl, %cl
	movzbl	%cl, %ecx
	addl	%ecx, %eax
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_level,16,3                     ## @level
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_BOT_SPAWN_QUEUE_DEPTH,4,2      ## @BOT_SPAWN_QUEUE_DEPTH
	.comm	_botSpawnQueue,8,3              ## @botSpawnQueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CountBotPlayers              ; -- Begin function G_CountBotPlayers
	.p2align	2
_G_CountBotPlayers:                     ; @G_CountBotPlayers
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _g_maxclients@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_maxclients@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _level@GOTPAGE
Lloh4:
	ldr	x11, [x11, _level@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x14, [x11, #8]
Lloh5:
	adrp	x10, _CON_CONNECTED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CON_CONNECTED@GOTPAGEOFF]
Lloh7:
	adrp	x12, _g_entities@GOTPAGE
Lloh8:
	ldr	x12, [x12, _g_entities@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	ldr	x12, [x12]
Lloh11:
	adrp	x13, _SVF_BOT@GOTPAGE
Lloh12:
	ldr	x13, [x13, _SVF_BOT@GOTPAGEOFF]
Lloh13:
	ldr	w13, [x13]
	add	x14, x14, #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x14, x14, #24
	subs	x9, x9, #1
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x14]
	cmp	x15, x10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x15, [x14, #-8]
	ldr	w15, [x12, x15, lsl #2]
	tst	w13, w15
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w15, [x14, #-16]
	cmp	w15, w8
	b.eq	LBB0_2
	b	LBB0_3
LBB0_8:
	mov	w0, #0
LBB0_9:
Lloh14:
	adrp	x8, _BOT_SPAWN_QUEUE_DEPTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BOT_SPAWN_QUEUE_DEPTH@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.10:
Lloh17:
	adrp	x8, _botSpawnQueue@GOTPAGE
Lloh18:
	ldr	x8, [x8, _botSpawnQueue@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x8]
	ldr	x8, [x11]
	cmp	w9, #8
	b.hs	LBB0_12
; %bb.11:
	mov	x11, #0
	b	LBB0_15
LBB0_12:
	movi	d0, #0000000000000000
	mov.s	v0[0], w0
	dup.2d	v2, x8
	and	x11, x9, #0xfffffff8
	movi.2d	v1, #0000000000000000
	add	x12, x10, #32
	mov	x13, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	cmeq.2d	v17, v5, #0
	cmeq.2d	v18, v6, #0
	cmeq.2d	v19, v7, #0
	cmeq.2d	v20, v16, #0
	cmge.2d	v5, v2, v5
	cmge.2d	v6, v2, v6
	cmge.2d	v7, v2, v7
	cmge.2d	v16, v2, v16
	bic.16b	v5, v5, v17
	xtn.2s	v5, v5
	bic.16b	v6, v6, v18
	xtn.2s	v6, v6
	bic.16b	v7, v7, v19
	xtn.2s	v7, v7
	bic.16b	v16, v16, v20
	xtn.2s	v16, v16
	sub.2s	v0, v0, v5
	sub.2s	v1, v1, v6
	sub.2s	v3, v3, v7
	sub.2s	v4, v4, v16
	subs	x13, x13, #8
	b.ne	LBB0_13
; %bb.14:
	add.2s	v0, v1, v0
	add.2s	v0, v3, v0
	add.2s	v0, v4, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x11, x9
	b.eq	LBB0_17
LBB0_15:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, #0
	ccmp	x11, x8, #0, ne
	cinc	w0, w0, le
	subs	x9, x9, #1
	b.ne	LBB0_16
LBB0_17:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_level,16,3                     ; @level
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_BOT_SPAWN_QUEUE_DEPTH,4,2      ; @BOT_SPAWN_QUEUE_DEPTH
	.comm	_botSpawnQueue,8,3              ; @botSpawnQueue
.subsections_via_symbols
