	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	movq	_K_MOUSE2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, (%rax)
	je	LBB0_5
## %bb.1:
	cmpl	%edx, %ecx
	je	LBB0_5
## %bb.2:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_qfalse@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_5:
	movq	_ui_netSource@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpl	%edx, %ecx
	jne	LBB0_7
## %bb.6:
	leaq	-1(%rax), %rcx
	movq	%rcx, (%r14)
	movq	_AS_MPLAYER@GOTPCREL(%rip), %rsi
	movq	$-2, %rdx
	cmpq	(%rsi), %rcx
	je	LBB0_9
	jmp	LBB0_10
LBB0_7:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movq	_AS_MPLAYER@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	cmpq	(%rsi), %rcx
	jne	LBB0_10
LBB0_9:
	addq	%rdx, %rax
	movq	%rax, (%r14)
	movq	%rax, %rcx
LBB0_10:
	movq	_numNetSources@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_11
## %bb.12:
	testq	%rcx, %rcx
	jns	LBB0_15
## %bb.13:
	decq	%rax
	jmp	LBB0_14
LBB0_11:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, (%r14)
LBB0_15:
	movq	_qtrue@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_UI_BuildServerDisplayList
	movq	(%r14), %rsi
	movq	_AS_GLOBAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_17
## %bb.16:
	movl	(%rbx), %edi
	callq	_UI_StartServerRefresh
	movq	(%r14), %rsi
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_trap_Cvar_Set
LBB0_18:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ## @K_KP_ENTER
	.comm	_ui_netSource,8,3               ## @ui_netSource
	.comm	_AS_MPLAYER,8,3                 ## @AS_MPLAYER
	.comm	_numNetSources,8,3              ## @numNetSources
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_AS_GLOBAL,8,3                  ## @AS_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_netSource"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_qfalse,4,2                     ## @qfalse
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _K_MOUSE2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _K_MOUSE2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _K_ENTER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _K_ENTER@GOTPAGEOFF]
Lloh8:
	adrp	x11, _K_KP_ENTER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _K_KP_ENTER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	ccmp	w10, w2, #4, ne
	ccmp	w11, w2, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh12:
	adrp	x19, _ui_netSource@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ui_netSource@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	w9, w2
	b.ne	LBB0_5
; %bb.2:
	sub	x9, x8, #1
	str	x9, [x19]
Lloh14:
	adrp	x10, _AS_MPLAYER@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AS_MPLAYER@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.3:
	mov	x9, #-2
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _qfalse@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	add	x9, x8, #1
	str	x9, [x19]
Lloh19:
	adrp	x10, _AS_MPLAYER@GOTPAGE
Lloh20:
	ldr	x10, [x10, _AS_MPLAYER@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
	mov	w9, #2
LBB0_7:
	add	x9, x8, x9
	str	x9, [x19]
LBB0_8:
Lloh22:
	adrp	x8, _numNetSources@GOTPAGE
Lloh23:
	ldr	x8, [x8, _numNetSources@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.9:
	tbz	x9, #63, LBB0_13
; %bb.10:
	sub	x8, x8, #1
	b	LBB0_12
LBB0_11:
	mov	x8, #0
LBB0_12:
	str	x8, [x19]
LBB0_13:
Lloh25:
	adrp	x20, _qtrue@GOTPAGE
Lloh26:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_UI_BuildServerDisplayList
	ldr	x1, [x19]
Lloh27:
	adrp	x8, _AS_GLOBAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AS_GLOBAL@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x20]
	bl	_UI_StartServerRefresh
	ldr	x1, [x19]
LBB0_15:
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
Lloh34:
	adrp	x8, _qtrue@GOTPAGE
Lloh35:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ; @K_KP_ENTER
	.comm	_ui_netSource,8,3               ; @ui_netSource
	.comm	_AS_MPLAYER,8,3                 ; @AS_MPLAYER
	.comm	_numNetSources,8,3              ; @numNetSources
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_AS_GLOBAL,8,3                  ; @AS_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_netSource"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_NetSource_HandleKey
.subsections_via_symbols
