	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_Activate                 ## -- Begin function Menus_Activate
	.p2align	4, 0x90
_Menus_Activate:                        ## @Menus_Activate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movq	_WINDOW_VISIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rdi, %rbx
	orl	%ecx, 16(%rdi)
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, -16(%rbp)
	leaq	-16(%rbp), %rdi
	callq	_Item_RunScript
LBB0_2:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.4:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, %rsi
	callq	*(%rax)
LBB0_5:
	xorl	%eax, %eax
	callq	_Display_CloseCinematics
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ## @WINDOW_VISIBLE
	.comm	_DC,8,3                         ## @DC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_Activate                 ; -- Begin function Menus_Activate
	.p2align	2
_Menus_Activate:                        ; @Menus_Activate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _WINDOW_HASFOCUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINDOW_VISIBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINDOW_VISIBLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0, #16]
	orr	w8, w8, w9
	str	w8, [x0, #16]
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_2
; %bb.1:
	str	x19, [sp, #8]
	add	x0, sp, #8
	bl	_Item_RunScript
LBB0_2:
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _DC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x1, x0
	blr	x8
LBB0_5:
	bl	_Display_CloseCinematics
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ; @WINDOW_VISIBLE
	.comm	_DC,8,3                         ; @DC
.subsections_via_symbols
