	.file	"extr_hdsp.c_snd_hdsp_create_midi.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s MIDI %d"
.LC1:
	.string	"HDSP MIDI %d"
	.text
	.p2align 4
	.type	snd_hdsp_create_midi, @function
snd_hdsp_create_midi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	r12, rbp
	sal	rbp, 6
	mov	rbx, rsi
	lea	r15d, 1[r12]
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rdi, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	add	rdi, rbp
	mov	QWORD PTR 40[rdi], rsi
	add	rdi, 16
	mov	DWORD PTR -16[rdi], r12d
	mov	QWORD PTR -8[rdi], 0
	mov	QWORD PTR 40[rdi], 0
	mov	QWORD PTR 32[rdi], 0
	mov	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 8[rdi], 0
	call	spin_lock_init@PLT
	mov	rdx, QWORD PTR 0[r13]
	mov	ecx, r15d
	mov	rdi, r14
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	sprintf@PLT
	mov	r9, QWORD PTR [rbx]
	mov	ecx, 1
	mov	edx, r12d
	mov	r8d, 1
	mov	rsi, r14
	mov	rdi, r13
	add	r9, rbp
	add	r9, 8
	call	snd_rawmidi_new@PLT
	test	rax, rax
	js	.L4
	mov	rax, QWORD PTR [rbx]
	mov	edx, r15d
	lea	rsi, .LC1[rip]
	mov	rax, QWORD PTR 8[rax+rbp]
	movsx	rdi, DWORD PTR 16[rax]
	xor	eax, eax
	call	sprintf@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR SNDRV_RAWMIDI_STREAM_OUTPUT[rip]
	lea	rdx, snd_hdsp_midi_output[rip]
	add	rax, rbp
	mov	rdi, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rdi], rax
	call	snd_rawmidi_set_ops@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR SNDRV_RAWMIDI_STREAM_INPUT[rip]
	lea	rdx, snd_hdsp_midi_input[rip]
	mov	rdi, QWORD PTR 8[rax+rbp]
	call	snd_rawmidi_set_ops@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rax+rbp]
	mov	eax, DWORD PTR SNDRV_RAWMIDI_INFO_OUTPUT[rip]
	or	eax, DWORD PTR SNDRV_RAWMIDI_INFO_INPUT[rip]
	or	eax, DWORD PTR SNDRV_RAWMIDI_INFO_DUPLEX[rip]
	or	DWORD PTR [rdx], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_hdsp_create_midi, .-snd_hdsp_create_midi
	.comm	snd_hdsp_midi_output,4,4
	.comm	snd_hdsp_midi_input,4,4
	.comm	SNDRV_RAWMIDI_STREAM_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_STREAM_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_DUPLEX,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_hdsp.c_snd_hdsp_create_midi.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s MIDI %d\000"
	.align	2
.LC1:
	.ascii	"HDSP MIDI %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdsp_create_midi, %function
snd_hdsp_create_midi:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r2
	mov	r6, #0
	mov	r8, r0
	ldr	r2, [r1]
	ldr	r3, .L8
	sub	sp, sp, #52
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	add	r3, r2, r5, lsl #5
	str	r5, [r2, r5, lsl #5]
	add	r0, r3, #8
	str	r1, [r3, #20]
	str	r6, [r3, #4]
	str	r6, [r3, #28]
	str	r6, [r3, #24]
	str	r6, [r3, #16]
	str	r6, [r3, #12]
	add	r9, r5, #1
	bl	spin_lock_init
	mov	r3, r9
	ldr	r2, [r8]
	ldr	r1, .L8+4
	add	r0, sp, #12
	bl	sprintf
	mov	r3, #1
	ldr	r2, [r4]
	lsl	r7, r5, #5
	add	r2, r2, r7
	add	r2, r2, #4
	str	r2, [sp, #4]
	mov	r0, r8
	mov	r2, r5
	add	r1, sp, #12
	str	r3, [sp]
	bl	snd_rawmidi_new
	cmp	r0, r6
	blt	.L4
	ldr	r3, [r4]
	mov	r2, r9
	add	r3, r3, r7
	ldr	r3, [r3, #4]
	ldr	r1, .L8+8
	ldr	r0, [r3, #8]
	bl	sprintf
	ldr	r3, [r4]
	ldr	r2, .L8+12
	add	r3, r3, r7
	ldr	r0, [r3, #4]
	ldr	r1, [r2]
	str	r3, [r0, #4]
	ldr	r2, .L8+16
	bl	snd_rawmidi_set_ops
	ldr	r3, [r4]
	ldr	r2, .L8+20
	add	r3, r3, r7
	ldr	r1, [r2]
	ldr	r0, [r3, #4]
	ldr	r2, .L8+24
	bl	snd_rawmidi_set_ops
	ldr	r3, [r4]
	ldr	ip, .L8+28
	ldr	r0, .L8+32
	ldr	r2, .L8+36
	add	r7, r3, r7
	ldr	r3, [ip]
	ldr	ip, [r0]
	ldr	r0, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r0
	mov	r0, r6
	ldr	r1, [r7, #4]
	ldr	r2, [r1]
	orr	r3, r2, r3
	str	r3, [r1]
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	mvn	r0, #0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	SNDRV_RAWMIDI_STREAM_OUTPUT
	.word	snd_hdsp_midi_output
	.word	SNDRV_RAWMIDI_STREAM_INPUT
	.word	snd_hdsp_midi_input
	.word	SNDRV_RAWMIDI_INFO_OUTPUT
	.word	SNDRV_RAWMIDI_INFO_INPUT
	.word	SNDRV_RAWMIDI_INFO_DUPLEX
	.size	snd_hdsp_create_midi, .-snd_hdsp_create_midi
	.comm	snd_hdsp_midi_output,4,4
	.comm	snd_hdsp_midi_input,4,4
	.comm	SNDRV_RAWMIDI_STREAM_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_STREAM_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_OUTPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_INPUT,4,4
	.comm	SNDRV_RAWMIDI_INFO_DUPLEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
