	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_ActivateByName           ## -- Begin function Menus_ActivateByName
	.p2align	4, 0x90
_Menus_ActivateByName:                  ## @Menus_ActivateByName
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_Menu_GetFocused
	movq	_menuCount@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_Menus@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%r15), %rcx
	andl	%eax, (%rcx,%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	_menuCount@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %rbx
	cmpq	%rax, %r12
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	4(%rax,%rbx), %edi
	movq	%r14, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r13
	addq	%rbx, %r13
	movq	%r13, %rdi
	callq	_Menus_Activate
	movq	_openMenuCount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_OPEN_MENUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_menuStack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	1(%rax), %rdx
	movq	_openMenuCount@GOTPCREL(%rip), %rdi
	movq	%rdx, (%rdi)
	movq	%rsi, (%rcx,%rax,8)
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_Display_CloseCinematics
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menuCount,4,2                  ## @menuCount
	.comm	_Menus,8,3                      ## @Menus
	.comm	_openMenuCount,8,3              ## @openMenuCount
	.comm	_MAX_OPEN_MENUS,8,3             ## @MAX_OPEN_MENUS
	.comm	_menuStack,8,3                  ## @menuStack
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_ActivateByName           ; -- Begin function Menus_ActivateByName
	.p2align	2
_Menus_ActivateByName:                  ; @Menus_ActivateByName
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_Menu_GetFocused
Lloh0:
	adrp	x22, _menuCount@GOTPAGE
Lloh1:
	ldr	x22, [x22, _menuCount@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
Lloh2:
	adrp	x25, _Menus@GOTPAGE
Lloh3:
	ldr	x25, [x25, _Menus@GOTPAGEOFF]
Lloh4:
	adrp	x26, _openMenuCount@GOTPAGE
Lloh5:
	ldr	x26, [x26, _openMenuCount@GOTPAGEOFF]
Lloh6:
	adrp	x27, _MAX_OPEN_MENUS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MAX_OPEN_MENUS@GOTPAGEOFF]
Lloh8:
	adrp	x28, _WINDOW_HASFOCUS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WINDOW_HASFOCUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	ldr	x9, [x25]
	ldr	w10, [x9, x23]
	bic	w8, w10, w8
	str	w8, [x9, x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_Q_stricmp
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x21, x8, x23
	mov	x0, x21
	bl	_Menus_Activate
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	ccmp	x20, #0, #4, lt
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x9, _menuStack@GOTPAGE
Lloh11:
	ldr	x9, [x9, _menuStack@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x10, x8, #1
	str	x10, [x26]
	str	x20, [x9, x8, lsl #3]
	b	LBB0_3
LBB0_7:
	mov	x21, #0
LBB0_8:
	bl	_Display_CloseCinematics
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_menuCount,4,2                  ; @menuCount
	.comm	_Menus,8,3                      ; @Menus
	.comm	_openMenuCount,8,3              ; @openMenuCount
	.comm	_MAX_OPEN_MENUS,8,3             ; @MAX_OPEN_MENUS
	.comm	_menuStack,8,3                  ; @menuStack
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
.subsections_via_symbols
