	.file	"extr_midi.c_WriteMidi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IOCTL_MIDI_PLAY == %d [%x]\n"
	.text
	.p2align 4
	.type	WriteMidi, @function
WriteMidi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR IOCTL_MIDI_PLAY[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edx, esi
	call	DPRINT@PLT
	push	0
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR IOCTL_MIDI_PLAY[rip]
	xor	r8d, r8d
	mov	edi, DWORD PTR [rbx]
	mov	edx, ebp
	xor	r9d, r9d
	mov	ecx, r12d
	lea	rax, 12[rsp]
	push	rax
	.cfi_def_cfa_offset 64
	call	DeviceIoControl@PLT
	mov	r8d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR MMSYSERR_NOERROR[rip]
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r8d, r8d
	je	.L7
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	TranslateStatus@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	WriteMidi, .-WriteMidi
	.comm	MMSYSERR_NOERROR,4,4
	.comm	IOCTL_MIDI_PLAY,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_midi.c_WriteMidi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IOCTL_MIDI_PLAY == %d [%x]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteMidi, %function
WriteMidi:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L9
	mov	r4, r2
	ldr	r2, [r7]
	ldr	r3, .L9+4
	sub	sp, sp, #28
	mov	r5, r0
	mov	r6, r1
	ldr	r0, .L9+8
	mov	r1, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	DPRINT
	mov	ip, #0
	add	lr, sp, #16
	ldr	r0, [r4]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [r7]
	str	ip, [sp, #12]
	str	ip, [sp, #4]
	str	ip, [sp]
	str	lr, [sp, #8]
	bl	DeviceIoControl
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L9+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	TranslateStatus
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	IOCTL_MIDI_PLAY
	.word	.LC1
	.word	.LC0
	.word	MMSYSERR_NOERROR
	.size	WriteMidi, .-WriteMidi
	.comm	MMSYSERR_NOERROR,4,4
	.comm	IOCTL_MIDI_PLAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
