	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_CloseByName              ## -- Begin function Menus_CloseByName
	.p2align	4, 0x90
_Menus_CloseByName:                     ## @Menus_CloseByName
	.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
	callq	_Menus_FindByName
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_Menu_RunCloseScript
	movq	_WINDOW_VISIBLE@GOTPCREL(%rip), %rax
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_VISIBLE,4,2             ## @WINDOW_VISIBLE
	.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_CloseByName              ; -- Begin function Menus_CloseByName
	.p2align	2
_Menus_CloseByName:                     ; @Menus_CloseByName
	.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
	bl	_Menus_FindByName
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_Menu_RunCloseScript
Lloh0:
	adrp	x8, _WINDOW_VISIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINDOW_VISIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WINDOW_HASFOCUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_VISIBLE,4,2             ; @WINDOW_VISIBLE
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
.subsections_via_symbols
