	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableMenuItems                ## -- Begin function EnableMenuItems
	.p2align	4, 0x90
_EnableMenuItems:                       ## @EnableMenuItems
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_hMainMenu@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_IDM_CLOSE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	movq	_MF_ENABLED@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	callq	_EnableMenuItem
	movq	_wDeviceId@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_MCI_CONFIGURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_TEST@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-56(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mciSendCommand
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_IDM_DEVPROPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_EnableMenuItem
LBB0_2:
	movl	%ebx, -48(%rbp)
	movl	(%r13), %edi
	movq	_MCI_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_DGV_WINDOW_HWND@GOTPCREL(%rip), %rax
	movl	(%r14), %edx
	orl	(%rax), %edx
	leaq	-48(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mciSendCommand
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	(%r13), %edi
	movq	_MCI_WHERE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_DGV_WHERE_SOURCE@GOTPCREL(%rip), %rax
	movl	(%r14), %edx
	orl	(%rax), %edx
	leaq	-52(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mciSendCommand
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movq	_IDM_SWITCHVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_EnableMenuItem
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hMainMenu,4,2                  ## @hMainMenu
	.comm	_IDM_CLOSE_FILE,4,2             ## @IDM_CLOSE_FILE
	.comm	_MF_BYCOMMAND,4,2               ## @MF_BYCOMMAND
	.comm	_MF_ENABLED,4,2                 ## @MF_ENABLED
	.comm	_wDeviceId,4,2                  ## @wDeviceId
	.comm	_MCI_CONFIGURE,4,2              ## @MCI_CONFIGURE
	.comm	_MCI_TEST,4,2                   ## @MCI_TEST
	.comm	_IDM_DEVPROPS,4,2               ## @IDM_DEVPROPS
	.comm	_MCI_WINDOW,4,2                 ## @MCI_WINDOW
	.comm	_MCI_DGV_WINDOW_HWND,4,2        ## @MCI_DGV_WINDOW_HWND
	.comm	_MCI_WHERE,4,2                  ## @MCI_WHERE
	.comm	_MCI_DGV_WHERE_SOURCE,4,2       ## @MCI_DGV_WHERE_SOURCE
	.comm	_IDM_SWITCHVIEW,4,2             ## @IDM_SWITCHVIEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EnableMenuItems                ; -- Begin function EnableMenuItems
	.p2align	2
_EnableMenuItems:                       ; @EnableMenuItems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _hMainMenu@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hMainMenu@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _IDM_CLOSE_FILE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IDM_CLOSE_FILE@GOTPAGEOFF]
Lloh4:
	adrp	x21, _MF_BYCOMMAND@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MF_BYCOMMAND@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _MF_ENABLED@GOTPAGE
Lloh8:
	ldr	x22, [x22, _MF_ENABLED@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	bl	_EnableMenuItem
Lloh9:
	adrp	x24, _wDeviceId@GOTPAGE
Lloh10:
	ldr	x24, [x24, _wDeviceId@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _MCI_CONFIGURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCI_CONFIGURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x23, _MCI_TEST@GOTPAGE
Lloh15:
	ldr	x23, [x23, _MCI_TEST@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #12
	bl	_mciSendCommand
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _IDM_DEVPROPS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IDM_DEVPROPS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w2, w9, w8
	bl	_EnableMenuItem
LBB0_2:
	str	w19, [sp]
	ldr	w0, [x24]
Lloh19:
	adrp	x8, _MCI_WINDOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MCI_WINDOW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MCI_DGV_WINDOW_HWND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MCI_DGV_WINDOW_HWND@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x3, sp
	bl	_mciSendCommand
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x24]
Lloh25:
	adrp	x8, _MCI_WHERE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MCI_WHERE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _MCI_DGV_WHERE_SOURCE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MCI_DGV_WHERE_SOURCE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w2, w9, w8
	add	x3, sp, #8
	bl	_mciSendCommand
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _IDM_SWITCHVIEW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IDM_SWITCHVIEW@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w2, w9, w8
	bl	_EnableMenuItem
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_hMainMenu,4,2                  ; @hMainMenu
	.comm	_IDM_CLOSE_FILE,4,2             ; @IDM_CLOSE_FILE
	.comm	_MF_BYCOMMAND,4,2               ; @MF_BYCOMMAND
	.comm	_MF_ENABLED,4,2                 ; @MF_ENABLED
	.comm	_wDeviceId,4,2                  ; @wDeviceId
	.comm	_MCI_CONFIGURE,4,2              ; @MCI_CONFIGURE
	.comm	_MCI_TEST,4,2                   ; @MCI_TEST
	.comm	_IDM_DEVPROPS,4,2               ; @IDM_DEVPROPS
	.comm	_MCI_WINDOW,4,2                 ; @MCI_WINDOW
	.comm	_MCI_DGV_WINDOW_HWND,4,2        ; @MCI_DGV_WINDOW_HWND
	.comm	_MCI_WHERE,4,2                  ; @MCI_WHERE
	.comm	_MCI_DGV_WHERE_SOURCE,4,2       ; @MCI_DGV_WHERE_SOURCE
	.comm	_IDM_SWITCHVIEW,4,2             ; @IDM_SWITCHVIEW
.subsections_via_symbols
