	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SetConfigstring             ## -- Begin function SV_SetConfigstring
	.p2align	4, 0x90
_SV_SetConfigstring:                    ## @SV_SetConfigstring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_MAX_CONFIGSTRINGS@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jg	LBB0_3
LBB0_2:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_Com_Error
LBB0_3:
	testq	%r15, %r15
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%r15, %rbx
	movq	_sv@GOTPCREL(%rip), %r12
	movq	16(%r12), %rax
	movslq	%r14d, %r15
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	16(%r12), %rax
	movl	(%rax,%r15,4), %edi
	callq	_Z_Free
	movq	%rbx, %rdi
	callq	_CopyString
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	_SS_GAME@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	cmpq	(%rax), %rcx
	je	LBB0_6
## %bb.5:
	cmpq	$0, 8(%r12)
	je	LBB0_16
LBB0_6:
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.7:
	movq	_svs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	xorl	%r13d, %r13d
	movq	_CS_ACTIVE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_SV_SendConfigstring
	movq	_sv_maxclients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%r13d
	addq	$24, %rbx
	cmpl	(%rax), %r13d
	jge	LBB0_16
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpq	(%r12), %rcx
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_CS_PRIMED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, (%rdx,%r15,4)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_CS_SERVERINFO@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_SVF_NOSERVERINFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_15
	jmp	LBB0_14
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CONFIGSTRINGS,4,2          ## @MAX_CONFIGSTRINGS
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SV_SetConfigstring: bad index %i"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_sv,24,3                        ## @sv
	.comm	_SS_GAME,8,3                    ## @SS_GAME
	.comm	_svs,8,3                        ## @svs
	.comm	_sv_maxclients,8,3              ## @sv_maxclients
	.comm	_CS_ACTIVE,8,3                  ## @CS_ACTIVE
	.comm	_CS_PRIMED,8,3                  ## @CS_PRIMED
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_CS_SERVERINFO,4,2              ## @CS_SERVERINFO
	.comm	_SVF_NOSERVERINFO,4,2           ## @SVF_NOSERVERINFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SetConfigstring             ; -- Begin function SV_SetConfigstring
	.p2align	2
_SV_SetConfigstring:                    ; @SV_SetConfigstring
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MAX_CONFIGSTRINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CONFIGSTRINGS@GOTPAGEOFF]
Lloh2:
	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, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x20, #0
	csel	x20, x8, x20, eq
Lloh10:
	adrp	x22, _sv@GOTPAGE
Lloh11:
	ldr	x22, [x22, _sv@GOTPAGEOFF]
	ldr	x8, [x22, #16]
	ldr	w1, [x8, w19, sxtw #2]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.4:
	sxtw	x21, w19
	ldr	x8, [x22, #16]
	lsl	x23, x21, #2
	ldr	w0, [x8, x23]
	bl	_Z_Free
	mov	x0, x20
	bl	_CopyString
	ldr	x8, [x22, #16]
	str	w0, [x8, x23]
Lloh12:
	adrp	x8, _SS_GAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SS_GAME@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldp	x9, x10, [x22]
	cmp	x9, x8
	ccmp	x10, #0, #0, ne
	b.eq	LBB0_15
; %bb.5:
Lloh15:
	adrp	x22, _sv_maxclients@GOTPAGE
Lloh16:
	ldr	x22, [x22, _sv_maxclients@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.6:
	mov	w23, #0
Lloh17:
	adrp	x9, _svs@GOTPAGE
Lloh18:
	ldr	x9, [x9, _svs@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x9]
Lloh20:
	adrp	x24, _CS_ACTIVE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _CS_ACTIVE@GOTPAGEOFF]
Lloh22:
	adrp	x25, _CS_PRIMED@GOTPAGE
Lloh23:
	ldr	x25, [x25, _CS_PRIMED@GOTPAGEOFF]
Lloh24:
	adrp	x26, _qtrue@GOTPAGE
Lloh25:
	ldr	x26, [x26, _qtrue@GOTPAGEOFF]
Lloh26:
	adrp	x27, _CS_SERVERINFO@GOTPAGE
Lloh27:
	ldr	x27, [x27, _CS_SERVERINFO@GOTPAGEOFF]
Lloh28:
	adrp	x28, _SVF_NOSERVERINFO@GOTPAGE
Lloh29:
	ldr	x28, [x28, _SVF_NOSERVERINFO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_SV_SendConfigstring
	ldr	x8, [x22]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w23, w23, #1
	add	x20, x20, #24
	ldr	w9, [x8]
	cmp	w23, w9
	b.ge	LBB0_15
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x26]
	ldr	x10, [x20, #16]
	str	w9, [x10, x21, lsl #2]
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x27]
	cmp	w9, w19
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x9]
	ldr	w10, [x28]
	tst	w10, w9
	b.ne	LBB0_8
	b	LBB0_7
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CONFIGSTRINGS,4,2          ; @MAX_CONFIGSTRINGS
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SV_SetConfigstring: bad index %i"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_sv,24,3                        ; @sv
	.comm	_SS_GAME,8,3                    ; @SS_GAME
	.comm	_svs,8,3                        ; @svs
	.comm	_sv_maxclients,8,3              ; @sv_maxclients
	.comm	_CS_ACTIVE,8,3                  ; @CS_ACTIVE
	.comm	_CS_PRIMED,8,3                  ; @CS_PRIMED
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_CS_SERVERINFO,4,2              ; @CS_SERVERINFO
	.comm	_SVF_NOSERVERINFO,4,2           ; @SVF_NOSERVERINFO
.subsections_via_symbols
