	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GetDeviceMode
_GetDeviceMode:                         ## @GetDeviceMode
	.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
	movl	%edi, %ebx
	movq	_MCI_STATUS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movq	_wDeviceId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MCI_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MCI_WAIT@GOTPCREL(%rip), %rax
	movq	_MCI_STATUS_ITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-16(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mciSendCommand
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_ShowMCIError
	movq	_MCI_MODE_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movl	-16(%rbp), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_STATUS_MODE,4,2            ## @MCI_STATUS_MODE
	.comm	_wDeviceId,4,2                  ## @wDeviceId
	.comm	_MCI_STATUS,4,2                 ## @MCI_STATUS
	.comm	_MCI_WAIT,4,2                   ## @MCI_WAIT
	.comm	_MCI_STATUS_ITEM,4,2            ## @MCI_STATUS_ITEM
	.comm	_MCI_MODE_NOT_READY,4,2         ## @MCI_MODE_NOT_READY
	.no_dead_strip	_GetDeviceMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GetDeviceMode
_GetDeviceMode:                         ; @GetDeviceMode
	.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, _MCI_STATUS_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_STATUS_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _wDeviceId@GOTPAGE
Lloh4:
	ldr	x9, [x9, _wDeviceId@GOTPAGEOFF]
	str	w8, [sp, #12]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x8, _MCI_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCI_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MCI_WAIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MCI_WAIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _MCI_STATUS_ITEM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MCI_STATUS_ITEM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x3, sp, #8
	bl	_mciSendCommand
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	mov	x0, x19
	bl	_ShowMCIError
Lloh15:
	adrp	x8, _MCI_MODE_NOT_READY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MCI_MODE_NOT_READY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #8]
LBB0_3:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_STATUS_MODE,4,2            ; @MCI_STATUS_MODE
	.comm	_wDeviceId,4,2                  ; @wDeviceId
	.comm	_MCI_STATUS,4,2                 ; @MCI_STATUS
	.comm	_MCI_WAIT,4,2                   ; @MCI_WAIT
	.comm	_MCI_STATUS_ITEM,4,2            ; @MCI_STATUS_ITEM
	.comm	_MCI_MODE_NOT_READY,4,2         ; @MCI_MODE_NOT_READY
	.no_dead_strip	_GetDeviceMode
.subsections_via_symbols
