	.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), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_CON_DISCONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_SVF_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	shlq	$2, %rcx
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r10, 8(%rdx,%rsi,4)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r9d, (%r8,%rsi)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%edi, %edi
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, (%rdx,%rsi,4)
	je	LBB0_7
	jmp	LBB0_8
LBB0_9:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_maxclients,4,2               ## @g_maxclients
	.comm	_level,8,3                      ## @level
	.comm	_CON_DISCONNECTED,8,3           ## @CON_DISCONNECTED
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
.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	x8, _g_maxclients@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_maxclients@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, #0
Lloh3:
	adrp	x10, _level@GOTPAGE
Lloh4:
	ldr	x10, [x10, _level@GOTPAGEOFF]
Lloh5:
	ldr	x13, [x10]
Lloh6:
	adrp	x10, _CON_DISCONNECTED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CON_DISCONNECTED@GOTPAGEOFF]
Lloh8:
	adrp	x11, _g_entities@GOTPAGE
Lloh9:
	ldr	x11, [x11, _g_entities@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _SVF_BOT@GOTPAGE
Lloh13:
	ldr	x12, [x12, _SVF_BOT@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	add	x13, x13, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x13, x13, #16
	add	x11, x11, #4
	subs	x9, x9, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cmp	x14, x10
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x11]
	tst	w12, w14
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w0, #31, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w14, [x13, #-8]
	cmp	w14, w0
	b.eq	LBB0_2
	b	LBB0_3
LBB0_8:
	mov	x0, x8
	ret
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_maxclients,4,2               ; @g_maxclients
	.comm	_level,8,3                      ; @level
	.comm	_CON_DISCONNECTED,8,3           ; @CON_DISCONNECTED
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
.subsections_via_symbols
