	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mtpav_output_port_write
_snd_mtpav_output_port_write:           ## @snd_mtpav_output_port_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rsi
	movq	%rdx, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	movl	(%r14), %eax
	cmpl	(%rbx), %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$245, %esi
	callq	_snd_mtpav_send_byte
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_mtpav_send_byte
	testb	$-128, -36(%rbp)
	jne	LBB0_5
## %bb.3:
	movl	4(%r14), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_snd_mtpav_send_byte
LBB0_5:
	leaq	-36(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_snd_mtpav_send_byte
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-36(%rbp), %esi
	testb	$-128, %sil
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, 4(%r14)
	jmp	LBB0_8
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_mtpav_output_port_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mtpav_output_port_write
_snd_mtpav_output_port_write:           ; @snd_mtpav_output_port_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, x2
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.2:
	str	w8, [x21]
	mov	x0, x21
	mov	w1, #245
	bl	_snd_mtpav_send_byte
	ldr	w1, [x20]
	mov	x0, x21
	bl	_snd_mtpav_send_byte
	ldrb	w8, [sp, #12]
	tbnz	w8, #7, LBB0_6
; %bb.3:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_snd_mtpav_send_byte
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_snd_mtpav_send_byte
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #12]
	tbz	w1, #7, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w1, [x20, #4]
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_mtpav_output_port_write
.subsections_via_symbols
