	.file	"extr_ff-protocol-former.c_former_fill_midi_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	former_fill_midi_msg, @function
former_fill_midi_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	ecx, edx
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 0[0+rcx*8]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR SND_FF_MAXIMIM_MIDI_QUADS[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	r14, QWORD PTR [rax+rcx*8]
	mov	rsi, r14
	call	snd_rawmidi_transmit_peek@PLT
	mov	r13d, eax
	test	eax, eax
	jle	.L1
	lea	ebx, -1[rax]
	movsx	rbx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r15]
	mov	edi, DWORD PTR [r14+rbx*4]
	mov	rax, QWORD PTR [rax+r12]
	lea	rbp, [rax+rbx*4]
	sub	rbx, 1
	call	cpu_to_le32@PLT
	mov	DWORD PTR 0[rbp], eax
	cmp	ebx, -1
	jne	.L3
	mov	rax, QWORD PTR [r15]
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax+rdx*4], r13d
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	former_fill_midi_msg, .-former_fill_midi_msg
	.comm	SND_FF_MAXIMIM_MIDI_QUADS,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_ff-protocol-former.c_former_fill_midi_msg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	former_fill_midi_msg, %function
former_fill_midi_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r2
	ldr	r2, [r0, #4]
	ldr	r3, .L7
	ldr	r5, [r2, r9, lsl #2]
	mov	r10, r0
	ldr	r2, [r3]
	mov	r0, r1
	mov	r1, r5
	bl	snd_rawmidi_transmit_peek
	subs	r8, r0, #0
	ble	.L1
	sub	r4, r8, #1
	add	r5, r5, r4, lsl #2
	lsl	r7, r9, #2
	lsl	r4, r4, #2
.L3:
	ldr	r3, [r10, #4]
	ldr	r0, [r5], #-4
	ldr	r6, [r3, r7]
	bl	cpu_to_le32
	str	r0, [r6, r4]
	sub	r4, r4, #4
	cmn	r4, #4
	bne	.L3
	ldr	r3, [r10]
	str	r8, [r3, r9, lsl #2]
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	SND_FF_MAXIMIM_MIDI_QUADS
	.size	former_fill_midi_msg, .-former_fill_midi_msg
	.comm	SND_FF_MAXIMIM_MIDI_QUADS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
