	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_ChangeMaxClients            ## -- Begin function SV_ChangeMaxClients
	.p2align	4, 0x90
_SV_ChangeMaxClients:                   ## @SV_ChangeMaxClients
	.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	_sv_maxclients@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.2:
	movq	_svs@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movq	_CS_CONNECTED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, %r12d
	jne	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
LBB0_11:
	testb	$1, %r12b
	je	LBB0_13
## %bb.12:
	movslq	%ebx, %rsi
	cmpq	%rsi, %rdx
	movl	%esi, %ebx
	cmovgl	%edx, %ebx
	cmpq	%rcx, (%rax,%rdx,8)
	cmovll	%esi, %ebx
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
LBB0_13:
	leal	1(%rbx), %r14d
	movl	%r14d, %edi
	callq	_SV_BoundMaxClients
	movq	(%r15), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_33
## %bb.14:
	leal	(,%r14,8), %edi
	callq	_Hunk_AllocateTempMemory
	movq	%rax, %r12
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	js	LBB0_20
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %rsi
	xorl	%r15d, %r15d
	movq	_svs@GOTPCREL(%rip), %r14
	movq	_CS_CONNECTED@GOTPCREL(%rip), %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%r12,%r15), %rdi
	xorl	%esi, %esi
	movq	%r12, %r13
	movq	%rdx, %r12
	movl	$8, %edx
	callq	_Com_Memset
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r13, %r12
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	$8, %r15
	cmpq	%r15, %rsi
	je	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r15), %rax
	cmpq	(%rdx), %rax
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, (%r12,%r15)
	jmp	LBB0_19
LBB0_20:
	movq	_svs@GOTPCREL(%rip), %r13
	movq	8(%r13), %rdi
	callq	_Z_Free
	movq	_sv_maxclients@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	shll	$3, %edi
	callq	_Z_Malloc
	movq	%rax, 8(%r13)
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_Com_Memset
	testl	%ebx, %ebx
	js	LBB0_32
## %bb.21:
	movq	8(%r13), %rax
	je	LBB0_22
## %bb.23:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx def $rdx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	movq	_CS_CONNECTED@GOTPCREL(%rip), %rsi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rcx,8), %rdi
	cmpq	(%rsi), %rdi
	jl	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rdi, (%rax,%rcx,8)
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	8(%r12,%rcx,8), %rdi
	cmpq	(%rsi), %rdi
	jl	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rdi, 8(%rax,%rcx,8)
	jmp	LBB0_28
LBB0_4:
	movl	%r12d, %r8d
	andl	$-2, %r8d
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, 8(%rax,%rdx,8)
	cmovgel	%edi, %ebx
	addq	$2, %rdx
	cmpq	%r8, %rdx
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rsi
	movl	%edx, %edi
	cmpq	%rsi, %rdx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rcx, (%rax,%rdx,8)
	cmovgel	%edi, %ebx
	movslq	%ebx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rdx), %edi
	jmp	LBB0_10
LBB0_22:
	xorl	%ecx, %ecx
LBB0_29:
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_32
## %bb.30:
	movq	(%r12,%rcx,8), %rdx
	movq	_CS_CONNECTED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jl	LBB0_32
## %bb.31:
	movq	%rdx, (%rax,%rcx,8)
LBB0_32:
	movq	%r12, %rdi
	callq	_Hunk_FreeTempMemory
	movq	_com_dedicated@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	movq	_PACKET_BACKUP@GOTPCREL(%rip), %rsi
	imull	(%rsi), %ecx
	shll	$8, %edx
	shll	$6, %ecx
	cmpq	$0, (%rax)
	cmovel	%edx, %ecx
	movl	%ecx, (%r13)
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_svs,16,3                       ## @svs
	.comm	_CS_CONNECTED,8,3               ## @CS_CONNECTED
	.comm	_com_dedicated,8,3              ## @com_dedicated
	.comm	_PACKET_BACKUP,4,2              ## @PACKET_BACKUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_ChangeMaxClients            ; -- Begin function SV_ChangeMaxClients
	.p2align	2
_SV_ChangeMaxClients:                   ; @SV_ChangeMaxClients
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, _sv_maxclients@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w19, [x8]
Lloh2:
	adrp	x21, _svs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _svs@GOTPAGEOFF]
Lloh4:
	adrp	x23, _CS_CONNECTED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CS_CONNECTED@GOTPAGEOFF]
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	mov	w24, #0
	ldr	x9, [x21, #8]
	ldr	x10, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	cmp	x8, w24, sxtw
	ccmp	x11, x10, #8, gt
	csel	w24, w8, w24, ge
	add	x8, x8, #1
	cmp	x19, x8
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w24, #0
LBB0_4:
	add	w20, w24, #1
	mov	x0, x20
	bl	_SV_BoundMaxClients
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_36
; %bb.5:
	lsl	w0, w20, #3
	bl	_Hunk_AllocateTempMemory
	mov	x19, x0
	tbnz	w24, #31, LBB0_11
; %bb.6:
	mov	x25, #0
	lsl	x26, x20, #3
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x19, x25
	mov	w1, #0
	mov	w2, #8
	bl	_Com_Memset
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #8
	cmp	x26, x25
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x25]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [x19, x25]
	b	LBB0_8
LBB0_11:
	ldr	x0, [x21, #8]
	bl	_Z_Free
	ldr	x8, [x22]
	ldr	w8, [x8]
	lsl	w0, w8, #3
	bl	_Z_Malloc
	str	x0, [x21, #8]
	ldr	x8, [x22]
	ldr	w8, [x8]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_Com_Memset
	tbnz	w24, #31, LBB0_35
; %bb.12:
	ldr	x8, [x21, #8]
	cmp	w20, #8
	b.hs	LBB0_14
; %bb.13:
	mov	x9, #0
	b	LBB0_37
LBB0_14:
	mov	x9, #0
	lsl	x10, x20, #3
	add	x11, x19, x10
	add	x12, x23, #8
	cmp	x8, x12
	add	x12, x8, x10
	ccmp	x12, x23, #0, lo
	cset	w10, hi
	cmp	x19, x12
	ccmp	x8, x11, #2, lo
	b.lo	LBB0_37
; %bb.15:
	tbnz	w10, #0, LBB0_37
; %bb.16:
	and	x9, x20, #0xfffffff8
	ld1r.2d	{ v0 }, [x23]
	add	x10, x19, #32
	add	x11, x8, #32
	mov	x12, x9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x10, x10, #64
	add	x11, x11, #64
	subs	x12, x12, #8
	b.eq	LBB0_34
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q4, [x10, #-32]
	ldp	q3, q1, [x10]
	ldr	d2, [x23]
	cmge.2d	v6, v5, v0
	xtn.2s	v6, v6
	fmov	w13, s6
	tbz	w13, #0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	stur	d5, [x11, #-32]
LBB0_20:                                ;   in Loop: Header=BB0_18 Depth=1
	mov.s	w13, v6[1]
	tbz	w13, #0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x13, x11, #24
	st1.d	{ v5 }[1], [x13]
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	cmge.2d	v5, v4, v0
	xtn.2s	v5, v5
	fmov	w13, s5
	tbz	w13, #0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	stur	d4, [x11, #-16]
LBB0_24:                                ;   in Loop: Header=BB0_18 Depth=1
	mov.s	w13, v5[1]
	tbz	w13, #0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x13, x11, #8
	st1.d	{ v4 }[1], [x13]
LBB0_26:                                ;   in Loop: Header=BB0_18 Depth=1
	cmge.2d	v4, v3, v0
	xtn.2s	v4, v4
	fmov	w13, s4
	tbz	w13, #0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_18 Depth=1
	str	d3, [x11]
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
	mov.s	w13, v4[1]
	tbz	w13, #0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x13, x11, #8
	st1.d	{ v3 }[1], [x13]
LBB0_30:                                ;   in Loop: Header=BB0_18 Depth=1
	dup.2d	v2, v2[0]
	cmge.2d	v2, v1, v2
	xtn.2s	v2, v2
	fmov	w13, s2
	tbz	w13, #0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=1
	str	d1, [x11, #16]
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	mov.s	w13, v2[1]
	tbz	w13, #0, LBB0_17
; %bb.33:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x13, x11, #24
	st1.d	{ v1 }[1], [x13]
	b	LBB0_17
LBB0_34:
	cmp	x9, x20
	b.ne	LBB0_37
LBB0_35:
	mov	x0, x19
	bl	_Hunk_FreeTempMemory
Lloh6:
	adrp	x8, _com_dedicated@GOTPAGE
Lloh7:
	ldr	x8, [x8, _com_dedicated@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	w9, [x9]
	lsl	w10, w9, #8
Lloh9:
	adrp	x11, _PACKET_BACKUP@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PACKET_BACKUP@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	mul	w9, w9, w11
	lsl	w9, w9, #6
	cmp	x8, #0
	csel	w8, w10, w9, eq
	str	w8, [x21]
LBB0_36:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_37:
	lsl	x10, x9, #3
	add	x8, x8, x10
	add	x10, x19, x10
	sub	x9, x20, x9
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x8, x8, #8
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_35
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x23]
	cmp	x11, x12
	b.lt	LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	str	x11, [x8]
	b	LBB0_38
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_svs,16,3                       ; @svs
	.comm	_CS_CONNECTED,8,3               ; @CS_CONNECTED
	.comm	_com_dedicated,8,3              ; @com_dedicated
	.comm	_PACKET_BACKUP,4,2              ; @PACKET_BACKUP
.subsections_via_symbols
