	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitMenuPopup
_InitMenuPopup:                         ## @InitMenuPopup
	.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, %r15d
	xorl	%esi, %esi
	callq	_GetMenuItemID
	movq	_CMD_DELETE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_GetMenuItemID
	movq	_CMD_SAVE_AS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	callq	_CountClipboardFormats
	movq	(%r14), %rsi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_MF_GRAYED@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_MF_ENABLED@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_EnableMenuItem
	movq	_CMD_SAVE_AS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_EnableMenuItem
LBB0_6:
	movq	_Globals@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawMenuBar                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_DELETE,8,3                 ## @CMD_DELETE
	.comm	_CMD_SAVE_AS,8,3                ## @CMD_SAVE_AS
	.comm	_MF_GRAYED,4,2                  ## @MF_GRAYED
	.comm	_MF_ENABLED,4,2                 ## @MF_ENABLED
	.comm	_Globals,4,2                    ## @Globals
	.no_dead_strip	_InitMenuPopup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitMenuPopup
_InitMenuPopup:                         ; @InitMenuPopup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w1, #0
	bl	_GetMenuItemID
Lloh0:
	adrp	x21, _CMD_DELETE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CMD_DELETE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x20, _CMD_SAVE_AS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CMD_SAVE_AS@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_GetMenuItemID
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
	bl	_CountClipboardFormats
Lloh4:
	adrp	x8, _MF_ENABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MF_ENABLED@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh6:
	adrp	x9, _MF_GRAYED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MF_GRAYED@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x9, x8, eq
	ldr	w2, [x21]
	mov	x0, x19
	bl	_EnableMenuItem
	ldr	x1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_EnableMenuItem
LBB0_3:
Lloh8:
	adrp	x8, _Globals@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Globals@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DrawMenuBar
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_DELETE,8,3                 ; @CMD_DELETE
	.comm	_CMD_SAVE_AS,8,3                ; @CMD_SAVE_AS
	.comm	_MF_GRAYED,4,2                  ; @MF_GRAYED
	.comm	_MF_ENABLED,4,2                 ; @MF_ENABLED
	.comm	_Globals,4,2                    ; @Globals
	.no_dead_strip	_InitMenuPopup
.subsections_via_symbols
