	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ArenaServers_MenuKey
_ArenaServers_MenuKey:                  ## @ArenaServers_MenuKey
	.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
	movl	%edi, %ebx
	movq	_K_SPACE@GOTPCREL(%rip), %rax
	movq	_g_arenaservers@GOTPCREL(%rip), %r14
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_ArenaServers_StopRefresh
LBB0_3:
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_K_DEL@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_K_KP_DEL@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
LBB0_6:
	movq	_g_servertype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_UIAS_FAVORITES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_Menu_ItemAtCursor
	addq	$4, %r14
	cmpq	%r14, %rax
	je	LBB0_8
LBB0_9:
	movq	_K_MOUSE2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_K_ESCAPE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	callq	_ArenaServers_StopRefresh
	xorl	%eax, %eax
	callq	_ArenaServers_SaveChanges
LBB0_12:
	movq	_g_arenaservers@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Menu_DefaultKey                ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	callq	_ArenaServers_Remove
	xorl	%eax, %eax
	callq	_ArenaServers_UpdateMenu
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_K_SPACE,4,2                    ## @K_SPACE
	.comm	_g_arenaservers,16,3            ## @g_arenaservers
	.comm	_menu_move_sound,4,2            ## @menu_move_sound
	.comm	_K_DEL,4,2                      ## @K_DEL
	.comm	_K_KP_DEL,4,2                   ## @K_KP_DEL
	.comm	_g_servertype,8,3               ## @g_servertype
	.comm	_UIAS_FAVORITES,8,3             ## @UIAS_FAVORITES
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_ESCAPE,4,2                   ## @K_ESCAPE
	.no_dead_strip	_ArenaServers_MenuKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ArenaServers_MenuKey
_ArenaServers_MenuKey:                  ; @ArenaServers_MenuKey
	.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_SPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_SPACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _g_arenaservers@GOTPAGE
Lloh4:
	ldr	x20, [x20, _g_arenaservers@GOTPAGEOFF]
	ldr	x9, [x20, #8]
	cmp	w8, w0
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _K_DEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _K_DEL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _K_KP_DEL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _K_KP_DEL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _g_servertype@GOTPAGE
Lloh12:
	ldr	x8, [x8, _g_servertype@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _UIAS_FAVORITES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UIAS_FAVORITES@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_Menu_ItemAtCursor
	add	x8, x20, #4
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_4:
Lloh17:
	adrp	x8, _K_MOUSE2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _K_MOUSE2@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _K_ESCAPE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _K_ESCAPE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_6
; %bb.5:
	bl	_ArenaServers_StopRefresh
	bl	_ArenaServers_SaveChanges
LBB0_6:
Lloh23:
	adrp	x0, _g_arenaservers@GOTPAGE
Lloh24:
	ldr	x0, [x0, _g_arenaservers@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Menu_DefaultKey
LBB0_7:
	bl	_ArenaServers_StopRefresh
LBB0_8:
Lloh25:
	adrp	x8, _menu_move_sound@GOTPAGE
Lloh26:
	ldr	x8, [x8, _menu_move_sound@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_ArenaServers_Remove
	bl	_ArenaServers_UpdateMenu
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_K_SPACE,4,2                    ; @K_SPACE
	.comm	_g_arenaservers,16,3            ; @g_arenaservers
	.comm	_menu_move_sound,4,2            ; @menu_move_sound
	.comm	_K_DEL,4,2                      ; @K_DEL
	.comm	_K_KP_DEL,4,2                   ; @K_KP_DEL
	.comm	_g_servertype,8,3               ; @g_servertype
	.comm	_UIAS_FAVORITES,8,3             ; @UIAS_FAVORITES
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_ESCAPE,4,2                   ; @K_ESCAPE
	.no_dead_strip	_ArenaServers_MenuKey
.subsections_via_symbols
