	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_NetSource_HandleKey
_UI_NetSource_HandleKey:                ## @UI_NetSource_HandleKey
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %r13
	movq	_ui_netSource@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	addq	%r13, %rcx
	movq	%rcx, (%r12)
	movq	_UIAS_GLOBAL1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_8
## %bb.3:
	movq	_UIAS_GLOBAL5@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_8
## %bb.4:
	leaq	L_.str(%rip), %r14
	leaq	-59(%rbp), %rbx
	leaq	-61(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UIAS_GLOBAL0@GOTPCREL(%rip), %rax
	subq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	$11, %esi
	movq	%r14, %rdx
	callq	_Com_sprintf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_trap_Cvar_VariableStringBuffer
	cmpb	$0, -61(%rbp)
	movq	(%r12), %rcx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r13, %rcx
	movq	%rcx, (%r12)
	movq	_UIAS_GLOBAL1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_UIAS_GLOBAL5@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_5
LBB0_8:
	movq	_numNetSources@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_9
## %bb.10:
	testq	%rcx, %rcx
	jns	LBB0_13
## %bb.11:
	decq	%rax
	jmp	LBB0_12
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, (%r12)
LBB0_13:
	movq	_qtrue@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_UI_BuildServerDisplayList
	movl	(%rbx), %edi
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UI_StartServerRefresh
	movq	(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_SetValue
LBB0_14:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ui_netSource,8,3               ## @ui_netSource
	.comm	_UIAS_GLOBAL1,8,3               ## @UIAS_GLOBAL1
	.comm	_UIAS_GLOBAL5,8,3               ## @UIAS_GLOBAL5
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_master%d"

	.comm	_UIAS_GLOBAL0,8,3               ## @UIAS_GLOBAL0
	.comm	_numNetSources,8,3              ## @numNetSources
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
L_.str.1:                               ## @.str.1
	.asciz	"ui_netSource"

	.no_dead_strip	_UI_NetSource_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_NetSource_HandleKey
_UI_NetSource_HandleKey:                ; @UI_NetSource_HandleKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x0, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_UI_SelectForKey
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x20, _qfalse@GOTPAGE
Lloh4:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.1:
Lloh5:
	adrp	x21, _ui_netSource@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ui_netSource@GOTPAGEOFF]
	sxtw	x22, w0
	ldr	x8, [x21]
Lloh7:
	adrp	x23, _UIAS_GLOBAL1@GOTPAGE
Lloh8:
	ldr	x23, [x23, _UIAS_GLOBAL1@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x8, x8, x22
	cmp	x8, x9
	str	x8, [x21]
Lloh9:
	adrp	x24, _UIAS_GLOBAL5@GOTPAGE
Lloh10:
	ldr	x24, [x24, _UIAS_GLOBAL5@GOTPAGEOFF]
	ldr	x9, [x24]
	ccmp	x8, x9, #0, ge
	b.gt	LBB0_5
; %bb.2:
Lloh11:
	adrp	x25, _UIAS_GLOBAL0@GOTPAGE
Lloh12:
	ldr	x25, [x25, _UIAS_GLOBAL0@GOTPAGEOFF]
Lloh13:
	adrp	x19, l_.str@PAGE
Lloh14:
	add	x19, x19, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	sub	x3, x8, x9
	add	x0, sp, #13
	mov	w1, #11
	mov	x2, x19
	bl	_Com_sprintf
	add	x0, sp, #13
	add	x1, sp, #11
	mov	w2, #2
	bl	_trap_Cvar_VariableStringBuffer
	ldrb	w9, [sp, #11]
	ldr	x8, [x21]
	cbnz	w9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23]
	add	x8, x8, x22
	cmp	x8, x9
	str	x8, [x21]
	ldr	x9, [x24]
	ccmp	x8, x9, #0, ge
	b.le	LBB0_3
LBB0_5:
Lloh15:
	adrp	x9, _numNetSources@GOTPAGE
Lloh16:
	ldr	x9, [x9, _numNetSources@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.6:
	tbz	x8, #63, LBB0_11
; %bb.7:
	sub	x8, x9, #1
	b	LBB0_10
LBB0_8:
	mov	x19, x20
	b	LBB0_12
LBB0_9:
	mov	x8, #0
LBB0_10:
	str	x8, [x21]
LBB0_11:
Lloh18:
	adrp	x19, _qtrue@GOTPAGE
Lloh19:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_UI_BuildServerDisplayList
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_UI_StartServerRefresh
	ldr	x1, [x21]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_SetValue
LBB0_12:
	ldr	w0, [x19]
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ui_netSource,8,3               ; @ui_netSource
	.comm	_UIAS_GLOBAL1,8,3               ; @UIAS_GLOBAL1
	.comm	_UIAS_GLOBAL5,8,3               ; @UIAS_GLOBAL5
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_master%d"

	.comm	_UIAS_GLOBAL0,8,3               ; @UIAS_GLOBAL0
	.comm	_numNetSources,8,3              ; @numNetSources
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
l_.str.1:                               ; @.str.1
	.asciz	"ui_netSource"

	.no_dead_strip	_UI_NetSource_HandleKey
.subsections_via_symbols
