	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_TeamOrdersMenu_Key          ## -- Begin function UI_TeamOrdersMenu_Key
	.p2align	4, 0x90
_UI_TeamOrdersMenu_Key:                 ## @UI_TeamOrdersMenu_Key
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_teamOrdersMenuInfo@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_Menu_ItemAtCursor
	leaq	8(%r14), %r15
	cmpq	%r15, %rax
	je	LBB0_1
LBB0_13:
	movq	_teamOrdersMenuInfo@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Menu_DefaultKey                ## TAILCALL
LBB0_1:
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	12(%r14), %eax
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	16(%r14), %eax
LBB0_8:
	decl	%eax
	movl	%eax, 12(%r14)
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movl	12(%r14), %eax
	movl	16(%r14), %ecx
	decl	%ecx
	leal	1(%rax), %edx
	xorl	%esi, %esi
	cmpl	%ecx, %eax
	cmovnel	%edx, %esi
	movl	%eax, 8(%r14)
	movl	%esi, 12(%r14)
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movl	24(%r14), %edi
	movl	28(%r14), %ebx
	movl	44(%r14), %edx
	subl	%edi, %edx
	movl	40(%r14), %ecx
	subl	%ebx, %ecx
	movl	%ebx, %esi
	callq	_UI_CursorInRect
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movq	_uis@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ebx, %eax
	movq	_PROP_HEIGHT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	12(%r14), %ecx
	movl	%ecx, 8(%r14)
	movl	%eax, 12(%r14)
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	callq	*%rax
	movq	_menu_move_sound@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_menu_null_sound@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_teamOrdersMenuInfo,48,3        ## @teamOrdersMenuInfo
	.comm	_uis,4,2                        ## @uis
	.comm	_PROP_HEIGHT,4,2                ## @PROP_HEIGHT
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_menu_move_sound,4,2            ## @menu_move_sound
	.comm	_menu_null_sound,4,2            ## @menu_null_sound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_TeamOrdersMenu_Key          ; -- Begin function UI_TeamOrdersMenu_Key
	.p2align	2
_UI_TeamOrdersMenu_Key:                 ; @UI_TeamOrdersMenu_Key
	.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
	mov	x20, x0
Lloh0:
	adrp	x19, _teamOrdersMenuInfo@GOTPAGE
Lloh1:
	ldr	x19, [x19, _teamOrdersMenuInfo@GOTPAGEOFF]
	mov	x0, x19
	bl	_Menu_ItemAtCursor
	add	x8, x19, #8
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_1:
Lloh2:
	adrp	x0, _teamOrdersMenuInfo@GOTPAGE
Lloh3:
	ldr	x0, [x0, _teamOrdersMenuInfo@GOTPAGEOFF]
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Menu_DefaultKey
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_1
; %bb.3:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldp	w8, w9, [x19, #12]
	cmp	w8, #0
	csel	w9, w9, w8, eq
	sub	w9, w9, #1
	b	LBB0_6
LBB0_5:
	ldp	w8, w9, [x19, #12]
	sub	w9, w9, #1
	cmp	w8, w9
	csinc	w9, wzr, w8, eq
LBB0_6:
	stp	w8, w9, [x19, #8]
LBB0_7:
Lloh6:
	adrp	x8, _menu_move_sound@GOTPAGE
Lloh7:
	ldr	x8, [x8, _menu_move_sound@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldp	w0, w20, [x19, #24]
	ldp	w9, w8, [x19, #40]
	sub	w2, w8, w0
	sub	w3, w9, w20
	mov	x1, x20
	bl	_UI_CursorInRect
	cbz	w0, LBB0_12
; %bb.10:
Lloh8:
	adrp	x8, _uis@GOTPAGE
Lloh9:
	ldr	x8, [x8, _uis@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w8, w20
Lloh11:
	adrp	x9, _PROP_HEIGHT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PROP_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	ldr	w9, [x19, #12]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.11:
Lloh14:
	adrp	x9, _QM_ACTIVATED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QM_ACTIVATED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	add	x0, x19, #8
	blr	x8
	b	LBB0_7
LBB0_12:
Lloh17:
	adrp	x8, _menu_null_sound@GOTPAGE
Lloh18:
	ldr	x8, [x8, _menu_null_sound@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
                                        ; -- End function
	.comm	_teamOrdersMenuInfo,48,3        ; @teamOrdersMenuInfo
	.comm	_uis,4,2                        ; @uis
	.comm	_PROP_HEIGHT,4,2                ; @PROP_HEIGHT
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_menu_move_sound,4,2            ; @menu_move_sound
	.comm	_menu_null_sound,4,2            ; @menu_null_sound
.subsections_via_symbols
