	.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	%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	_uiInfo@GOTPCREL(%rip), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_14
## %bb.1:
	movq	_qfalse@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_ui_netSource@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	_AS_FAVORITES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.2:
	movq	_AS_LOCAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_trap_LAN_GetServerCount
	cmpq	%r14, %rbx
	jne	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_6
LBB0_4:
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movq	_qfalse@GOTPCREL(%rip), %r14
LBB0_7:
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jge	LBB0_9
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r13), %rdi
	callq	_trap_LAN_UpdateVisiblePings
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$1000, %eax                     ## imm = 0x3E8
	addq	(%r15), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_13
LBB0_11:
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.12:
	movl	$2, %edi
	callq	_UI_BuildServerDisplayList
	xorl	%eax, %eax
	callq	_UI_StopServerRefresh
LBB0_13:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_BuildServerDisplayList      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_uiInfo,24,3                    ## @uiInfo
	.comm	_ui_netSource,8,3               ## @ui_netSource
	.comm	_AS_FAVORITES,8,3               ## @AS_FAVORITES
	.comm	_AS_LOCAL,8,3                   ## @AS_LOCAL
	.comm	_qtrue,4,2                      ## @qtrue
	.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	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	x21, _uiInfo@GOTPAGE
Lloh1:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x20, _qfalse@GOTPAGE
Lloh3:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ui_netSource@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ui_netSource@GOTPAGEOFF]
	ldr	w22, [x20]
	ldr	x19, [x23]
Lloh6:
	adrp	x8, _AS_FAVORITES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AS_FAVORITES@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _AS_LOCAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AS_LOCAL@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	mov	x0, x19
	bl	_trap_LAN_GetServerCount
Lloh12:
	adrp	x8, _qtrue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	cmp	x19, x24
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, w22, eq
	b	LBB0_5
LBB0_4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, w22, lt
LBB0_5:
	ldp	x8, x9, [x21]
	cmp	x8, x9
	ccmp	w22, #0, #4, lt
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [x23]
	bl	_trap_LAN_UpdateVisiblePings
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x21]
	add	x8, x8, #1000
	str	x8, [x21, #8]
	b	LBB0_11
LBB0_8:
	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
LBB0_9:
	cbnz	w22, LBB0_11
; %bb.10:
	mov	w0, #2
	bl	_UI_BuildServerDisplayList
	bl	_UI_StopServerRefresh
LBB0_11:
	ldr	w0, [x20]
	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
	b	_UI_BuildServerDisplayList
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_uiInfo,24,3                    ; @uiInfo
	.comm	_ui_netSource,8,3               ; @ui_netSource
	.comm	_AS_FAVORITES,8,3               ; @AS_FAVORITES
	.comm	_AS_LOCAL,8,3                   ; @AS_LOCAL
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_UI_DoServerRefresh
.subsections_via_symbols
