	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_DoServerRefresh
_UI_DoServerRefresh:                    ## @UI_DoServerRefresh
	.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	_uiInfo@GOTPCREL(%rip), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_16
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_ui_netSource@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %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_5
	jmp	LBB0_6
LBB0_4:
	movq	_AS_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_trap_LAN_GetServerCount
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_8
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	callq	_UI_SourceForLAN
	movl	%eax, %edi
	callq	_trap_LAN_UpdateVisiblePings
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1000, %eax                     ## imm = 0x3E8
LBB0_14:
	addq	(%rbx), %rax
	movq	%rax, 8(%rbx)
LBB0_15:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_BuildServerDisplayList      ## TAILCALL
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.12:
	movq	(%r15), %rax
	movq	_UIAS_LOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	_EXEC_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_trap_Cmd_ExecuteText
	movl	$5000, %eax                     ## imm = 0x1388
	jmp	LBB0_14
LBB0_11:
	movl	$2, %edi
	callq	_UI_BuildServerDisplayList
	xorl	%eax, %eax
	callq	_UI_StopServerRefresh
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_uiInfo,24,3                    ## @uiInfo
	.comm	_ui_netSource,8,3               ## @ui_netSource
	.comm	_UIAS_FAVORITES,8,3             ## @UIAS_FAVORITES
	.comm	_UIAS_LOCAL,8,3                 ## @UIAS_LOCAL
	.comm	_AS_LOCAL,4,2                   ## @AS_LOCAL
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_AS_GLOBAL,4,2                  ## @AS_GLOBAL
	.comm	_EXEC_NOW,4,2                   ## @EXEC_NOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"localservers\n"

	.no_dead_strip	_UI_DoServerRefresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DoServerRefresh
_UI_DoServerRefresh:                    ; @UI_DoServerRefresh
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _uiInfo@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_10
; %bb.1:
Lloh2:
	adrp	x19, _qfalse@GOTPAGE
Lloh3:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
Lloh4:
	adrp	x21, _ui_netSource@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ui_netSource@GOTPAGEOFF]
	ldr	w22, [x19]
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _UIAS_FAVORITES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh9:
	adrp	x9, _UIAS_LOCAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UIAS_LOCAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _AS_LOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AS_LOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_trap_LAN_GetServerCount
Lloh15:
	adrp	x8, _qtrue@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, w22, eq
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _AS_GLOBAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AS_GLOBAL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_trap_LAN_GetServerCount
Lloh21:
	adrp	x8, _qtrue@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, w22, lt
LBB0_5:
	ldp	x8, x9, [x20]
	cmp	x8, x9
	ccmp	w22, #0, #4, lt
	b.ne	LBB0_10
; %bb.6:
	bl	_UI_SourceForLAN
	bl	_trap_LAN_UpdateVisiblePings
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x20]
	add	x8, x8, #1000
LBB0_8:
	str	x8, [x20, #8]
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_UI_BuildServerDisplayList
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	cbz	w22, LBB0_14
; %bb.12:
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _UIAS_LOCAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _UIAS_LOCAL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.13:
Lloh27:
	adrp	x8, _EXEC_NOW@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EXEC_NOW@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_trap_Cmd_ExecuteText
	ldr	x8, [x20]
	mov	w9, #5000
	add	x8, x8, x9
	b	LBB0_8
LBB0_14:
	mov	w0, #2
	bl	_UI_BuildServerDisplayList
	bl	_UI_StopServerRefresh
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_uiInfo,24,3                    ; @uiInfo
	.comm	_ui_netSource,8,3               ; @ui_netSource
	.comm	_UIAS_FAVORITES,8,3             ; @UIAS_FAVORITES
	.comm	_UIAS_LOCAL,8,3                 ; @UIAS_LOCAL
	.comm	_AS_LOCAL,4,2                   ; @AS_LOCAL
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_AS_GLOBAL,4,2                  ; @AS_GLOBAL
	.comm	_EXEC_NOW,4,2                   ; @EXEC_NOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"localservers\n"

	.no_dead_strip	_UI_DoServerRefresh
.subsections_via_symbols
