	.file	"extr_amdtp-am824.c_process_it_ctx_payloads.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_it_ctx_payloads, @function
process_it_ctx_payloads:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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 [rdi]
	mov	QWORD PTR [rsp], rax
	test	edx, edx
	je	.L7
	lea	eax, -1[rdx]
	mov	r14, rdi
	mov	rbp, rcx
	mov	rbx, rsi
	sal	rax, 4
	xor	r15d, r15d
	lea	rax, 16[rsi+rax]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 16
	cmp	rbx, QWORD PTR 8[rsp]
	je	.L1
.L6:
	mov	r13, QWORD PTR 8[rbx]
	mov	r12d, DWORD PTR [rbx]
	test	rbp, rbp
	je	.L3
	mov	r8d, r15d
	mov	rdi, r14
	mov	ecx, r12d
	mov	rdx, r13
	mov	rsi, rbp
	call	write_pcm_s32@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rdi]
	imul	eax, r12d
	add	r15d, eax
.L4:
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 8[rax], 0
	je	.L5
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, r14
	add	rbx, 16
	call	write_midi_messages@PLT
	cmp	rbx, QWORD PTR 8[rsp]
	jne	.L6
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L3:
	.cfi_restore_state
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, r14
	call	write_pcm_silence@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r15d, r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	process_it_ctx_payloads, .-process_it_ctx_payloads
	.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_amdtp-am824.c_process_it_ctx_payloads.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_it_ctx_payloads, %function
process_it_ctx_payloads:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r2, #0
	ldr	r10, [r0]
	sub	sp, sp, #12
	beq	.L7
	add	r2, r2, r2, lsl #1
	mov	fp, r0
	mov	r8, r3
	mov	r4, r1
	mov	r6, #0
	add	r9, r1, r2, lsl #2
	b	.L6
.L5:
	add	r4, r4, #12
	cmp	r4, r9
	beq	.L1
.L6:
	cmp	r8, #0
	ldr	r7, [r4, #8]
	ldr	r5, [r4]
	beq	.L3
	mov	r3, r5
	str	r6, [sp]
	mov	r2, r7
	mov	r1, r8
	mov	r0, fp
	bl	write_pcm_s32
	ldr	r3, [r10]
	mla	r6, r3, r5, r6
.L4:
	ldr	r3, [r10, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r4, #4]
	mov	r2, r5
	mov	r1, r7
	mov	r0, fp
	add	r4, r4, #12
	bl	write_midi_messages
	cmp	r4, r9
	bne	.L6
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r2, r5
	mov	r1, r7
	mov	r0, fp
	bl	write_pcm_silence
	b	.L4
.L7:
	mov	r6, r2
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	process_it_ctx_payloads, .-process_it_ctx_payloads
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
