	.file	"extr_mtpav.c_snd_mtpav_output_port_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_mtpav_output_port_write, @function
snd_mtpav_output_port_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	mov	edx, 1
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rsi, r12
	call	snd_rawmidi_transmit@PLT
	cmp	eax, 1
	jne	.L1
	mov	eax, DWORD PTR 0[r13]
	cmp	eax, DWORD PTR [rbx]
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 4[rsp]
.L7:
	test	sil, -128
	je	.L5
.L15:
	mov	DWORD PTR 4[r13], esi
.L5:
	mov	rdi, rbx
	call	snd_mtpav_send_byte@PLT
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	snd_rawmidi_transmit@PLT
	cmp	eax, 1
	je	.L17
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR [rbx], eax
	mov	esi, 245
	mov	rdi, rbx
	call	snd_mtpav_send_byte@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbx
	call	snd_mtpav_send_byte@PLT
	mov	esi, DWORD PTR 4[rsp]
	test	sil, -128
	jne	.L15
	mov	r8d, DWORD PTR 4[r13]
	test	r8d, r8d
	je	.L7
	mov	esi, r8d
	mov	rdi, rbx
	call	snd_mtpav_send_byte@PLT
	jmp	.L17
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_mtpav_output_port_write, .-snd_mtpav_output_port_write
	.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_mtpav.c_snd_mtpav_output_port_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_mtpav_output_port_write, %function
snd_mtpav_output_port_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L19
	sub	sp, sp, #8
	mov	r5, r2
	mov	r4, r0
	mov	r6, r1
	mov	r0, r2
	mov	r1, sp
	mov	r2, #1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	snd_rawmidi_transmit
	cmp	r0, #1
	bne	.L1
	ldr	r3, [r6]
	ldr	r2, [r4]
	cmp	r3, r2
	bne	.L3
.L16:
	ldr	r1, [sp]
	and	r3, r1, #128
.L7:
	cmp	r3, #0
	strne	r1, [r6, #4]
	mov	r0, r4
	bl	snd_mtpav_send_byte
	mov	r2, #1
	mov	r1, sp
	mov	r0, r5
	bl	snd_rawmidi_transmit
	cmp	r0, #1
	beq	.L16
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	str	r3, [r4]
	mov	r1, #245
	mov	r0, r4
	bl	snd_mtpav_send_byte
	ldr	r1, [r6]
	mov	r0, r4
	bl	snd_mtpav_send_byte
	ldr	r1, [sp]
	ands	r3, r1, #128
	bne	.L7
	ldr	r2, [r6, #4]
	cmp	r2, #0
	beq	.L7
	mov	r1, r2
	mov	r0, r4
	bl	snd_mtpav_send_byte
	b	.L16
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	snd_mtpav_output_port_write, .-snd_mtpav_output_port_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
