	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_BotFreeClient               ## -- Begin function SV_BotFreeClient
	.p2align	4, 0x90
_SV_BotFreeClient:                      ## @SV_BotFreeClient
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_3
LBB0_2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_Com_Error
LBB0_3:
	movq	_svs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movq	_CS_FREE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%edx, 16(%rax,%rcx,8)
	movq	8(%rax,%rcx,8), %rdx
	movq	$0, (%rdx)
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SVF_BOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_BotFreeClient: bad clientNum: %i"

	.comm	_svs,8,3                        ## @svs
	.comm	_CS_FREE,4,2                    ## @CS_FREE
	.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	_SV_BotFreeClient               ; -- Begin function SV_BotFreeClient
	.p2align	2
_SV_BotFreeClient:                      ; @SV_BotFreeClient
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _sv_maxclients@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sv_maxclients@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, w19
	b.gt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_Com_Error
LBB0_3:
Lloh8:
	adrp	x8, _svs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _svs@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _CS_FREE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CS_FREE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	w10, #24
	smaddl	x8, w19, w10, x8
	str	w9, [x8, #16]
	ldp	x8, x9, [x8]
	str	xzr, [x9]
	cbz	x8, LBB0_5
; %bb.4:
Lloh14:
	adrp	x9, _SVF_BOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SVF_BOT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_BotFreeClient: bad clientNum: %i"

	.comm	_svs,8,3                        ; @svs
	.comm	_CS_FREE,4,2                    ; @CS_FREE
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
.subsections_via_symbols
