	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ArenaServers_Remove
_ArenaServers_Remove:                   ## @ArenaServers_Remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_arenaservers@GOTPCREL(%rip), %r15
	cmpl	$0, 40(%r15)
	je	LBB0_16
## %bb.1:
	movq	32(%r15), %rax
	movq	48(%r15), %rcx
	movq	(%rcx,%rax,8), %r14
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%r14), %esi
	movl	(%rax,%rbx,4), %edi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$-4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movl	(%r15), %eax
	leal	-1(%rax), %ecx
	cmpl	%ebx, %ecx
	jle	LBB0_6
## %bb.5:
	movq	24(%r15), %rdi
	subq	%r12, %rdi
	leaq	4(%rdi), %rsi
	notl	%ebx
	addl	%eax, %ebx
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, %edx
	callq	_memcpy
	movl	(%r15), %ecx
	decl	%ecx
LBB0_6:
	movl	%ecx, (%r15)
	movslq	%ecx, %rdi
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_8:
	movq	_g_numfavoriteservers@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	movq	_g_favoriteserverlist@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leal	-4(,%rax,4), %edx
	xorl	%edi, %edi
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rsi
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdi
	addq	$4, %rsi
	addl	$-4, %edx
	cmpq	%rdi, %rax
	jne	LBB0_10
	jmp	LBB0_15
LBB0_11:
	decl	%eax
	cmpl	%edi, %eax
	jle	LBB0_13
## %bb.12:
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_memcpy
	movl	(%rbx), %eax
	movq	(%r12), %rcx
	decl	%eax
LBB0_13:
	movl	%eax, (%rbx)
	cltq
	leaq	(%rcx,%rax,4), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_15:
	movslq	(%r15), %rax
	movq	%rax, 8(%r15)
	movq	%rax, 16(%r15)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_arenaservers,56,3            ## @g_arenaservers
	.comm	_MAX_ADDRESSLENGTH,4,2          ## @MAX_ADDRESSLENGTH
	.comm	_g_numfavoriteservers,4,2       ## @g_numfavoriteservers
	.comm	_g_favoriteserverlist,8,3       ## @g_favoriteserverlist
	.no_dead_strip	_ArenaServers_Remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ArenaServers_Remove
_ArenaServers_Remove:                   ; @ArenaServers_Remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _g_arenaservers@GOTPAGE
Lloh1:
	ldr	x20, [x20, _g_arenaservers@GOTPAGEOFF]
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_16
; %bb.1:
	ldr	x8, [x20, #48]
	ldr	x9, [x20, #32]
	ldr	x19, [x8, x9, lsl #3]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x22, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w1, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_Q_stricmp
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	sub	x22, x22, #4
	cmp	x21, x8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20]
	sub	w9, w8, #1
Lloh2:
	adrp	x23, _MAX_ADDRESSLENGTH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAX_ADDRESSLENGTH@GOTPAGEOFF]
	cmp	w9, w21
	b.le	LBB0_7
; %bb.6:
	ldr	x9, [x20, #24]
	sub	x0, x9, x22
	add	x1, x0, #4
	mvn	w9, w21
	add	w8, w9, w8
	ldr	w9, [x23]
	mul	w2, w9, w8
	bl	_memcpy
	ldr	w8, [x20]
	sub	w9, w8, #1
LBB0_7:
	str	w9, [x20]
	ldr	x8, [x20, #24]
	add	x0, x8, w9, sxtw #2
	ldr	w2, [x23]
	mov	w1, #0
	bl	_memset
LBB0_8:
Lloh4:
	adrp	x21, _g_numfavoriteservers@GOTPAGE
Lloh5:
	ldr	x21, [x21, _g_numfavoriteservers@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.9:
	mov	w11, #0
	mov	x10, #0
Lloh6:
	adrp	x22, _g_favoriteserverlist@GOTPAGE
Lloh7:
	ldr	x22, [x22, _g_favoriteserverlist@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x12, x8, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x13, x9, x10
	cmp	x13, x19
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #4
	add	w11, w11, #1
	cmp	x12, x10
	b.ne	LBB0_10
	b	LBB0_15
LBB0_12:
	sub	w12, w8, #1
	cmp	w12, w11
	b.le	LBB0_14
; %bb.13:
	add	x9, x9, x10
	add	x1, x9, #4
	lsl	w8, w8, #2
	sub	w8, w8, w10
	sub	w2, w8, #4
	mov	x0, x19
	bl	_memcpy
	ldr	w8, [x21]
	ldr	x9, [x22]
	sub	w12, w8, #1
LBB0_14:
	str	w12, [x21]
	add	x0, x9, w12, sxtw #2
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_15:
	ldrsw	x8, [x20]
	stp	x8, x8, [x20, #8]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_g_arenaservers,56,3            ; @g_arenaservers
	.comm	_MAX_ADDRESSLENGTH,4,2          ; @MAX_ADDRESSLENGTH
	.comm	_g_numfavoriteservers,4,2       ; @g_numfavoriteservers
	.comm	_g_favoriteserverlist,8,3       ; @g_favoriteserverlist
	.no_dead_strip	_ArenaServers_Remove
.subsections_via_symbols
