	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_BotAllocateClient           ## -- Begin function SV_BotAllocateClient
	.p2align	4, 0x90
_SV_BotAllocateClient:                  ## @SV_BotAllocateClient
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_svs@GOTPCREL(%rip), %r15
	movq	8(%r15), %r14
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.4:
	movq	_CS_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%r14)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	addq	$32, %r14
	cmpl	%ebx, %ecx
	jne	LBB0_5
## %bb.7:
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movl	$-1, %eax
	cmpl	%ecx, %ebx
	je	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	callq	_SV_GentityNum
	movq	%rax, 24(%r14)
	movl	%ebx, (%rax)
	movq	_CS_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	_NA_BOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	$16384, 8(%r14)                 ## imm = 0x4000
	movl	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_svs,16,3                       ## @svs
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_CS_FREE,8,3                    ## @CS_FREE
	.comm	_CS_ACTIVE,8,3                  ## @CS_ACTIVE
	.comm	_NA_BOT,4,2                     ## @NA_BOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_BotAllocateClient           ; -- Begin function SV_BotAllocateClient
	.p2align	2
_SV_BotAllocateClient:                  ; @SV_BotAllocateClient
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _svs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _svs@GOTPAGEOFF]
	ldr	x20, [x21, #8]
Lloh2:
	adrp	x8, _sv_maxclients@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sv_maxclients@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w19, #0
Lloh5:
	adrp	x9, _CS_FREE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CS_FREE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20]
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	add	x20, x20, #32
	cmp	w8, w19
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w19, #0
LBB0_5:
	cmp	w19, w8
	b.ne	LBB0_7
LBB0_6:
	mov	w19, #-1
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_SV_GentityNum
	str	x0, [x20, #24]
	str	w19, [x0]
Lloh8:
	adrp	x8, _CS_ACTIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CS_ACTIVE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	w8, [x21]
	str	w8, [x20, #16]
Lloh11:
	adrp	x8, _NA_BOT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NA_BOT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	w9, #16384
	stp	w9, w8, [x20, #8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_svs,16,3                       ; @svs
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_CS_FREE,8,3                    ; @CS_FREE
	.comm	_CS_ACTIVE,8,3                  ; @CS_ACTIVE
	.comm	_NA_BOT,4,2                     ; @NA_BOT
.subsections_via_symbols
