	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Favorites_Add                  ## -- Begin function Favorites_Add
	.p2align	4, 0x90
_Favorites_Add:                         ## @Favorites_Add
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-304(%rbp), %rsi
	movl	$128, %edx
	callq	_trap_Cvar_VariableStringBuffer
	cmpb	$0, -304(%rbp)
	je	LBB0_7
## %bb.1:
	movq	_MAX_FAVORITESERVERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	leaq	L_.str.1(%rip), %r14
	leaq	-176(%rbp), %r15
	leaq	-304(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_va
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	$128, %edx
	callq	_trap_Cvar_VariableStringBuffer
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-176(%rbp), %eax
	addb	$-48, %al
	testl	%r13d, %r13d
	movl	%ebx, %ecx
	cmovnel	%r13d, %ecx
	cmpb	$10, %al
	cmovael	%ecx, %r13d
	movq	_MAX_FAVORITESERVERS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_3
## %bb.5:
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	callq	_va
	leaq	-304(%rbp), %rsi
	movq	%rax, %rdi
	callq	_trap_Cvar_Set
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cl_currentServerAddress"

	.comm	_MAX_FAVORITESERVERS,4,2        ## @MAX_FAVORITESERVERS
L_.str.1:                               ## @.str.1
	.asciz	"server%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Favorites_Add                  ; -- Begin function Favorites_Add
	.p2align	2
_Favorites_Add:                         ; @Favorites_Add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	w2, #128
	bl	_trap_Cvar_VariableStringBuffer
	ldrb	w8, [sp, #8]
Lloh5:
	adrp	x22, _MAX_FAVORITESERVERS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MAX_FAVORITESERVERS@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, #0
	ccmp	w9, #1, #8, ne
	b.lt	LBB0_6
; %bb.1:
	mov	w19, #0
	mov	w20, #0
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x21
	mov	x1, x20
	bl	_va
	add	x1, sp, #136
	mov	w2, #128
	bl	_trap_Cvar_VariableStringBuffer
	add	x0, sp, #8
	add	x1, sp, #136
	bl	_Q_stricmp
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #136]
	sub	w8, w8, #48
	cmp	w19, #0
	ccmp	w8, #10, #0, eq
	csel	w19, w19, w20, lo
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_2
; %bb.4:
	cbz	w19, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_va
	add	x1, sp, #8
	bl	_trap_Cvar_Set
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cl_currentServerAddress"

	.comm	_MAX_FAVORITESERVERS,4,2        ; @MAX_FAVORITESERVERS
l_.str.1:                               ; @.str.1
	.asciz	"server%d"

.subsections_via_symbols
