	.file	"extr_mplay32.c_GetDeviceMode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	GetDeviceMode, @function
GetDeviceMode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR MCI_STATUS[rip]
	mov	edi, DWORD PTR wDeviceId[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MCI_STATUS_MODE[rip]
	mov	edx, DWORD PTR MCI_WAIT[rip]
	mov	rcx, rsp
	or	edx, DWORD PTR MCI_STATUS_ITEM[rip]
	mov	DWORD PTR 4[rsp], eax
	call	mciSendCommand@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR [rsp]
	test	rsi, rsi
	jne	.L8
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, ebp
	call	ShowMCIError@PLT
	mov	eax, DWORD PTR MCI_MODE_NOT_READY[rip]
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GetDeviceMode, .-GetDeviceMode
	.comm	wDeviceId,4,4
	.comm	MCI_WAIT,4,4
	.comm	MCI_STATUS_MODE,4,4
	.comm	MCI_STATUS_ITEM,4,4
	.comm	MCI_STATUS,4,4
	.comm	MCI_MODE_NOT_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mplay32.c_GetDeviceMode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetDeviceMode, %function
GetDeviceMode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	lr, .L9+8
	mov	r4, r0
	ldr	r1, .L9+12
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, .L9+16
	sub	sp, sp, #20
	ldr	lr, [lr]
	ldr	ip, .L9+20
	ldr	r1, [r1]
	orr	r2, r0, r2
	ldr	r0, [r3]
	add	r3, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	str	lr, [sp, #8]
	bl	mciSendCommand
	subs	r1, r0, #0
	ldreq	r0, [sp, #4]
	bne	.L7
.L1:
	ldr	r3, .L9+20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r0, r4
	bl	ShowMCIError
	ldr	r3, .L9+24
	ldr	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MCI_WAIT
	.word	MCI_STATUS_ITEM
	.word	MCI_STATUS_MODE
	.word	MCI_STATUS
	.word	wDeviceId
	.word	.LC0
	.word	MCI_MODE_NOT_READY
	.size	GetDeviceMode, .-GetDeviceMode
	.comm	wDeviceId,4,4
	.comm	MCI_WAIT,4,4
	.comm	MCI_STATUS_MODE,4,4
	.comm	MCI_STATUS_ITEM,4,4
	.comm	MCI_STATUS,4,4
	.comm	MCI_MODE_NOT_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
