	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ArenaServers_DoRefresh
_ArenaServers_DoRefresh:                ## @ArenaServers_DoRefresh
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_uis@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	_g_arenaservers@GOTPCREL(%rip), %r13
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rcx
	jge	LBB0_10
## %bb.1:
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_UIAS_LOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_AS_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trap_LAN_GetServerCount
	testq	%rax, %rax
	je	LBB0_47
LBB0_4:
	xorl	%eax, %eax
	callq	_ArenaServers_SourceForLAN
	movl	%eax, %edi
	callq	_trap_LAN_GetServerCount
	testq	%rax, %rax
	jns	LBB0_5
	jmp	LBB0_47
LBB0_10:
	movq	_UIAS_LOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.11:
	movq	_AS_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trap_LAN_GetServerCount
	testq	%rax, %rax
	je	LBB0_12
LBB0_5:
	movq	(%r12), %rax
	cmpq	8(%r13), %rax
	jl	LBB0_47
## %bb.6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	addq	$10, %rax
	movq	%rax, 8(%r13)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ArenaServers_MaxPing
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_MAX_PINGREQUESTS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jg	LBB0_7
LBB0_28:
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_30
## %bb.29:
	movq	_g_arenaservers@GOTPCREL(%rip), %rdx
	movq	24(%rdx), %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_trap_LAN_GetPingInfo
	movq	%rbx, %rcx
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rbx
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %edx
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	_ArenaServers_Insert
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	movq	48(%rax), %rax
	shlq	$4, %r12
	movq	(%rax,%r12), %rax
	movb	$0, (%rax)
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r14d, %edi
	callq	_trap_LAN_ClearPing
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movl	(%r13), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_28
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movq	%r15, %rsi
	leaq	-52(%rbp), %rcx
	callq	_trap_LAN_GetPing
	cmpb	$0, (%r15)
	je	LBB0_27
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	movq	48(%rax), %rax
	movq	(%rax,%rbx), %rsi
	movq	%r15, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	incq	%r12
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	cmpl	%eax, %r12d
	jge	LBB0_26
	jmp	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rbx
	cmpl	%eax, %r12d
	jge	LBB0_26
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %eax
	movl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_uis@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_g_arenaservers@GOTPCREL(%rip), %rcx
	movq	48(%rcx), %rcx
	movq	%r12, %rdx
	shlq	$4, %rdx
	subl	8(%rcx,%rdx), %eax
	movl	%eax, -52(%rbp)
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_27
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx)
	movl	%eax, -52(%rbp)
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_Info_SetValueForKey
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_Info_SetValueForKey
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_30:
	xorl	%eax, %eax
	callq	_ArenaServers_SourceForLAN
	movl	%eax, %edi
	callq	_trap_LAN_GetServerCount
	movl	(%r13), %ecx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	_g_arenaservers@GOTPCREL(%rip), %rdx
LBB0_31:
	movq	%rax, 16(%rdx)
	testl	%ecx, %ecx
	jle	LBB0_44
## %bb.32:
	movq	_g_arenaservers@GOTPCREL(%rip), %rcx
	cmpq	%rax, 32(%rcx)
	jae	LBB0_44
## %bb.33:
	xorl	%r12d, %r12d
LBB0_34:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
	xorl	%eax, %eax
	callq	_trap_LAN_GetPingQueueCount
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_44
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_44
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	_g_arenaservers@GOTPCREL(%rip), %rax
	movq	48(%rax), %rax
	shlq	$4, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_34 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rbx), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=2
	addq	$16, %rbx
	cmpq	%rbx, %rcx
	jne	LBB0_37
	jmp	LBB0_44
LBB0_39:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	_g_arenaservers@GOTPCREL(%rip), %r14
	movq	32(%r14), %rax
	movq	40(%r14), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	%r15, %rdi
	callq	_strcpy
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_34 Depth=1
	xorl	%eax, %eax
	callq	_ArenaServers_SourceForLAN
	movq	_g_arenaservers@GOTPCREL(%rip), %r14
	movq	32(%r14), %rsi
	movq	_MAX_ADDRESSLENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_trap_LAN_GetServerAddressString
LBB0_42:                                ##   in Loop: Header=BB0_34 Depth=1
	movq	48(%r14), %rax
	movq	(%rax,%rbx), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	_uis@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	48(%r14), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movq	_EXEC_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_va
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_trap_Cmd_ExecuteText
	movq	16(%r14), %rax
	movq	32(%r14), %rcx
	incq	%rcx
	movq	%rcx, 32(%r14)
	incl	%r12d
	cmpl	(%r13), %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_34 Depth=1
	cmpq	%rax, %rcx
	jb	LBB0_34
LBB0_44:
	xorl	%eax, %eax
	callq	_trap_LAN_GetPingQueueCount
	testl	%eax, %eax
	je	LBB0_45
## %bb.46:
	xorl	%eax, %eax
	callq	_ArenaServers_UpdateMenu
	jmp	LBB0_47
LBB0_45:
	xorl	%eax, %eax
	callq	_ArenaServers_StopRefresh
	jmp	LBB0_47
LBB0_12:
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_trap_Cmd_ExecuteText
	movl	$5000, %eax                     ## imm = 0x1388
	addq	(%r12), %rax
	movq	%rax, (%r13)
LBB0_47:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_49
## %bb.48:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ADDRESSLENGTH,4,2          ## @MAX_ADDRESSLENGTH
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
	.comm	_uis,8,3                        ## @uis
	.comm	_g_arenaservers,56,3            ## @g_arenaservers
	.comm	_g_servertype,8,3               ## @g_servertype
	.comm	_UIAS_FAVORITES,8,3             ## @UIAS_FAVORITES
	.comm	_UIAS_LOCAL,8,3                 ## @UIAS_LOCAL
	.comm	_AS_LOCAL,4,2                   ## @AS_LOCAL
	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"localservers\n"

	.comm	_MAX_PINGREQUESTS,4,2           ## @MAX_PINGREQUESTS
L_.str.1:                               ## @.str.1
	.asciz	"hostname"

L_.str.2:                               ## @.str.2
	.asciz	"game"

L_.str.3:                               ## @.str.3
	.asciz	"???"

	.comm	_EXEC_NOW,4,2                   ## @EXEC_NOW
L_.str.4:                               ## @.str.4
	.asciz	"ping %s\n"

	.no_dead_strip	_ArenaServers_DoRefresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ArenaServers_DoRefresh
_ArenaServers_DoRefresh:                ; @ArenaServers_DoRefresh
	.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
	sub	sp, sp, #32
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _MAX_ADDRESSLENGTH@GOTPAGE
Lloh4:
	ldr	x27, [x27, _MAX_ADDRESSLENGTH@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x26, _MAX_INFO_STRING@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MAX_INFO_STRING@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh11:
	adrp	x22, _uis@GOTPAGE
Lloh12:
	ldr	x22, [x22, _uis@GOTPAGEOFF]
Lloh13:
	adrp	x28, _g_arenaservers@GOTPAGE
Lloh14:
	ldr	x28, [x28, _g_arenaservers@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x10, [x28]
Lloh15:
	adrp	x8, _g_servertype@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x9, x10
	b.ge	LBB0_5
; %bb.1:
Lloh18:
	adrp	x9, _UIAS_FAVORITES@GOTPAGE
Lloh19:
	ldr	x9, [x9, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
Lloh21:
	adrp	x9, _UIAS_LOCAL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _UIAS_LOCAL@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh24:
	adrp	x8, _AS_LOCAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AS_LOCAL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_trap_LAN_GetServerCount
	cbz	x0, LBB0_45
LBB0_4:
	bl	_ArenaServers_SourceForLAN
	bl	_trap_LAN_GetServerCount
	tbz	x0, #63, LBB0_7
	b	LBB0_45
LBB0_5:
Lloh27:
	adrp	x9, _UIAS_LOCAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _UIAS_LOCAL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh30:
	adrp	x8, _AS_LOCAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AS_LOCAL@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_trap_LAN_GetServerCount
	cbz	x0, LBB0_47
LBB0_7:
	ldr	x8, [x22]
	ldr	x9, [x28, #8]
	cmp	x8, x9
	b.lt	LBB0_45
; %bb.8:
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
	add	x8, x8, #10
	str	x8, [x28, #8]
	bl	_ArenaServers_MaxPing
Lloh33:
	adrp	x25, _MAX_PINGREQUESTS@GOTPAGE
Lloh34:
	ldr	x25, [x25, _MAX_PINGREQUESTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.9:
	mov	x21, x0
	mov	w22, #0
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x20
	bl	_trap_LAN_GetPingInfo
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	w2, [x29, #-92]
	mov	x0, x19
	mov	x1, x20
	bl	_ArenaServers_Insert
	ldr	x8, [x28, #48]
	mov	w9, w24
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	strb	wzr, [x8]
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x22
	bl	_trap_LAN_ClearPing
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	cmp	w22, w8
	b.ge	LBB0_27
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	w2, [x27]
	sub	x3, x29, #92
	mov	x0, x22
	mov	x1, x19
	bl	_trap_LAN_GetPing
	ldrb	w8, [x19]
	cbz	w8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x23, #0
	mov	x24, #0
LBB0_17:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28, #48]
	ldr	x1, [x8, x23]
	mov	x0, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	add	x24, x24, #1
	ldrsw	x8, [x25]
	add	x23, x23, #16
	cmp	x24, x8
	b.lt	LBB0_17
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w24, #0
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w24, w8
	b.ge	LBB0_12
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25]
	cmp	w24, w8
	b.ge	LBB0_12
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x29, #-92]
	cbnz	w8, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh35:
	adrp	x8, _uis@GOTPAGE
Lloh36:
	ldr	x8, [x8, _uis@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	x9, [x28, #48]
	add	x9, x9, w24, uxtw #4
	ldr	w9, [x9, #8]
	sub	w8, w8, w9
	cmp	w8, w21
	stur	w8, [x29, #-92]
	b.lt	LBB0_13
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	cmp	w8, w21
	b.le	LBB0_10
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=1
	strb	wzr, [x20]
	stur	w21, [x29, #-92]
Lloh38:
	adrp	x8, _g_servertype@GOTPAGE
Lloh39:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
Lloh41:
	adrp	x9, _UIAS_FAVORITES@GOTPAGE
Lloh42:
	ldr	x9, [x9, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x20
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_Info_SetValueForKey
	mov	x0, x20
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh48:
	adrp	x2, l_.str.3@PAGE
Lloh49:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_Info_SetValueForKey
	b	LBB0_11
LBB0_27:
Lloh50:
	adrp	x9, _g_servertype@GOTPAGE
Lloh51:
	ldr	x9, [x9, _g_servertype@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
Lloh53:
	adrp	x10, _UIAS_FAVORITES@GOTPAGE
Lloh54:
	ldr	x10, [x10, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh55:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_29
; %bb.28:
	ldr	x0, [x28, #24]
	b	LBB0_30
LBB0_29:
	bl	_ArenaServers_SourceForLAN
	bl	_trap_LAN_GetServerCount
	ldr	w8, [x25]
LBB0_30:
	str	x0, [x28, #16]
	ldr	x9, [x28, #32]
	cmp	w8, #1
	ccmp	x9, x0, #2, ge
	b.lo	LBB0_33
LBB0_31:
	bl	_trap_LAN_GetPingQueueCount
	cbz	w0, LBB0_43
; %bb.32:
	bl	_ArenaServers_UpdateMenu
	b	LBB0_44
LBB0_33:
	mov	w22, #0
Lloh56:
	adrp	x24, _EXEC_NOW@GOTPAGE
Lloh57:
	ldr	x24, [x24, _EXEC_NOW@GOTPAGEOFF]
Lloh58:
	adrp	x20, l_.str.4@PAGE
Lloh59:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_34:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_36 Depth 2
	bl	_trap_LAN_GetPingQueueCount
	ldr	w9, [x25]
	cmp	w0, w9
	ccmp	w9, #1, #8, lt
	b.lt	LBB0_31
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x21, #0
	ldr	x8, [x28, #48]
	lsl	x9, x9, #4
LBB0_36:                                ;   Parent Loop BB0_34 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x8, x21]
	ldrb	w10, [x10]
	cbz	w10, LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=2
	add	x21, x21, #16
	cmp	x9, x21
	b.ne	LBB0_36
	b	LBB0_31
LBB0_38:                                ;   in Loop: Header=BB0_34 Depth=1
Lloh60:
	adrp	x8, _g_servertype@GOTPAGE
Lloh61:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
Lloh63:
	adrp	x9, _UIAS_FAVORITES@GOTPAGE
Lloh64:
	ldr	x9, [x9, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_34 Depth=1
	ldp	x9, x8, [x28, #32]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_strcpy
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_34 Depth=1
	bl	_ArenaServers_SourceForLAN
	ldr	x1, [x28, #32]
	ldr	w3, [x27]
	mov	x2, x19
	bl	_trap_LAN_GetServerAddressString
LBB0_41:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	x8, [x28, #48]
	ldr	x0, [x8, x21]
	mov	x1, x19
	bl	_strcpy
Lloh66:
	adrp	x8, _uis@GOTPAGE
Lloh67:
	ldr	x8, [x8, _uis@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	ldr	x9, [x28, #48]
	add	x9, x9, x21
	str	w8, [x9, #8]
	ldr	w21, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_va
	mov	x1, x0
	mov	x0, x21
	bl	_trap_Cmd_ExecuteText
	ldr	x8, [x28, #32]
	add	x8, x8, #1
	str	x8, [x28, #32]
	add	w22, w22, #1
	ldr	w9, [x25]
	cmp	w22, w9
	b.ge	LBB0_31
; %bb.42:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	x9, [x28, #16]
	cmp	x8, x9
	b.lo	LBB0_34
	b	LBB0_31
LBB0_43:
	bl	_ArenaServers_StopRefresh
LBB0_44:
	ldur	x21, [x29, #-104]               ; 8-byte Folded Reload
LBB0_45:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_48
; %bb.46:
	sub	sp, x29, #80
	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
LBB0_47:
Lloh72:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
Lloh75:
	adrp	x1, l_.str@PAGE
Lloh76:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trap_Cmd_ExecuteText
	ldr	x8, [x22]
	mov	w9, #5000
	add	x8, x8, x9
	str	x8, [x28]
	b	LBB0_45
LBB0_48:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ADDRESSLENGTH,4,2          ; @MAX_ADDRESSLENGTH
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
	.comm	_uis,8,3                        ; @uis
	.comm	_g_arenaservers,56,3            ; @g_arenaservers
	.comm	_g_servertype,8,3               ; @g_servertype
	.comm	_UIAS_FAVORITES,8,3             ; @UIAS_FAVORITES
	.comm	_UIAS_LOCAL,8,3                 ; @UIAS_LOCAL
	.comm	_AS_LOCAL,4,2                   ; @AS_LOCAL
	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"localservers\n"

	.comm	_MAX_PINGREQUESTS,4,2           ; @MAX_PINGREQUESTS
l_.str.1:                               ; @.str.1
	.asciz	"hostname"

l_.str.2:                               ; @.str.2
	.asciz	"game"

l_.str.3:                               ; @.str.3
	.asciz	"???"

	.comm	_EXEC_NOW,4,2                   ; @EXEC_NOW
l_.str.4:                               ; @.str.4
	.asciz	"ping %s\n"

	.no_dead_strip	_ArenaServers_DoRefresh
.subsections_via_symbols
