	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_StartServerRefresh
_UI_StartServerRefresh:                 ## @UI_StartServerRefresh
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	-56(%rbp), %rdi
	callq	_trap_RealTime
	movq	_ui_netSource@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_va
	movq	%rax, %rbx
	movq	_MonthAbbrev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	-32(%rbp), %edx
	movl	$1900, %ecx                     ## imm = 0x76C
	addq	-40(%rbp), %rcx
	movl	-44(%rbp), %r8d
	movl	-48(%rbp), %r9d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_va
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_uiInfo@GOTPCREL(%rip), %r14
	movl	%edx, 40(%r14)
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	(%r14), %rax
	addq	%rbx, %rax
	movq	%rax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_trap_LAN_MarkServerVisible
	movl	(%r15), %edi
	callq	_trap_LAN_ResetPings
	movl	(%r15), %eax
	movq	_AS_LOCAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	_EXEC_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_trap_Cmd_ExecuteText
	addq	(%r14), %rbx
	movq	%rbx, 8(%r14)
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	callq	_UI_UpdatePendingPings
	jmp	LBB0_10
LBB0_4:
	movl	$5000, %ecx                     ## imm = 0x1388
	addq	(%r14), %rcx
	movq	%rcx, 8(%r14)
	movq	_AS_GLOBAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_6
## %bb.5:
	movq	_AS_MPLAYER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	setne	%bl
	leaq	L_.str.3(%rip), %rdi
	callq	_UI_Cvar_VariableString
	cmpb	$0, (%rax)
	movq	_EXEC_NOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_va
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.6(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_va
LBB0_9:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_trap_Cmd_ExecuteText
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_lastServerRefresh_%i"

	.comm	_ui_netSource,4,2               ## @ui_netSource
L_.str.1:                               ## @.str.1
	.asciz	"%s-%i, %i at %i:%i"

	.comm	_MonthAbbrev,8,3                ## @MonthAbbrev
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_uiInfo,48,3                    ## @uiInfo
	.comm	_AS_LOCAL,4,2                   ## @AS_LOCAL
	.comm	_EXEC_NOW,4,2                   ## @EXEC_NOW
L_.str.2:                               ## @.str.2
	.asciz	"localservers\n"

	.comm	_AS_GLOBAL,4,2                  ## @AS_GLOBAL
	.comm	_AS_MPLAYER,4,2                 ## @AS_MPLAYER
L_.str.3:                               ## @.str.3
	.asciz	"debug_protocol"

L_.str.4:                               ## @.str.4
	.asciz	"globalservers %d %s full empty\n"

L_.str.5:                               ## @.str.5
	.asciz	"globalservers %d %d full empty\n"

L_.str.6:                               ## @.str.6
	.asciz	"protocol"

	.no_dead_strip	_UI_StartServerRefresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_StartServerRefresh
_UI_StartServerRefresh:                 ; @UI_StartServerRefresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	add	x0, sp, #32
	bl	_trap_RealTime
Lloh0:
	adrp	x21, _ui_netSource@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ui_netSource@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x20, x0
Lloh4:
	adrp	x8, _MonthAbbrev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MonthAbbrev@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	x9, [sp, #32]
	ldr	w1, [x8, x9, lsl #2]
	ldr	x8, [sp, #48]
	add	x8, x8, #1900
	ldr	w9, [sp, #56]
	ldp	w11, w10, [sp, #40]
	stp	x10, x11, [sp, #16]
	stp	x9, x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x20
	bl	_trap_Cvar_Set
	cbz	w19, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x19, _uiInfo@GOTPAGE
Lloh13:
	ldr	x19, [x19, _uiInfo@GOTPAGEOFF]
	str	w2, [x19, #40]
	ldr	x8, [x19]
	add	x8, x8, #1000
	stp	xzr, x8, [x19, #24]
	str	xzr, [x19, #16]
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_trap_LAN_MarkServerVisible
	ldr	w0, [x21]
	bl	_trap_LAN_ResetPings
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _AS_LOCAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AS_LOCAL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
Lloh17:
	adrp	x8, _EXEC_NOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXEC_NOW@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_trap_Cmd_ExecuteText
	ldr	x8, [x19]
	add	x8, x8, #1000
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_3:
	bl	_UI_UpdatePendingPings
	b	LBB0_10
LBB0_4:
	ldr	x9, [x19]
	mov	w10, #5000
	add	x9, x9, x10
	str	x9, [x19, #8]
Lloh22:
	adrp	x9, _AS_GLOBAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AS_GLOBAL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.5:
Lloh25:
	adrp	x10, _AS_MPLAYER@GOTPAGE
Lloh26:
	ldr	x10, [x10, _AS_MPLAYER@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_10
LBB0_6:
	cmp	w8, w9
	cset	w19, ne
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_UI_Cvar_VariableString
	ldrb	w8, [x0]
Lloh30:
	adrp	x9, _EXEC_NOW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EXEC_NOW@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x9]
	cbz	w8, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_trap_Cvar_VariableValue
	str	x0, [sp]
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
	mov	x1, x19
	bl	_va
	mov	x1, x0
	mov	x0, x20
	bl	_trap_Cmd_ExecuteText
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_lastServerRefresh_%i"

	.comm	_ui_netSource,4,2               ; @ui_netSource
l_.str.1:                               ; @.str.1
	.asciz	"%s-%i, %i at %i:%i"

	.comm	_MonthAbbrev,8,3                ; @MonthAbbrev
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_uiInfo,48,3                    ; @uiInfo
	.comm	_AS_LOCAL,4,2                   ; @AS_LOCAL
	.comm	_EXEC_NOW,4,2                   ; @EXEC_NOW
l_.str.2:                               ; @.str.2
	.asciz	"localservers\n"

	.comm	_AS_GLOBAL,4,2                  ; @AS_GLOBAL
	.comm	_AS_MPLAYER,4,2                 ; @AS_MPLAYER
l_.str.3:                               ; @.str.3
	.asciz	"debug_protocol"

l_.str.4:                               ; @.str.4
	.asciz	"globalservers %d %s full empty\n"

l_.str.5:                               ; @.str.5
	.asciz	"globalservers %d %d full empty\n"

l_.str.6:                               ; @.str.6
	.asciz	"protocol"

	.no_dead_strip	_UI_StartServerRefresh
.subsections_via_symbols
