	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca_midi_output_trigger
_ca_midi_output_trigger:                ## @ca_midi_output_trigger
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	xorl	%edi, %edi
	cmpl	$0, 28(%r12)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.2:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_ca_midi_output_ready
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	_CA_MIDI_MODE_OUTPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.4:
	leaq	-33(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movzbl	-33(%rbp), %esi
	movq	%r12, %rdi
	callq	_ca_midi_write_data
	movq	%r12, %rdi
	callq	_ca_midi_output_ready
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.8:
	leaq	-33(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.9:
	movzbl	-33(%rbp), %esi
	movq	%r12, %rdi
	callq	_ca_midi_write_data
	movq	%r12, %rdi
	callq	_ca_midi_output_ready
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.11:
	leaq	-33(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.12:
	movzbl	-33(%rbp), %esi
	movq	%r12, %rdi
	callq	_ca_midi_write_data
	movq	%r12, %rdi
	callq	_ca_midi_output_ready
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.14:
	leaq	-33(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_snd_rawmidi_transmit
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.15:
	movzbl	-33(%rbp), %esi
	movq	%r12, %rdi
	callq	_ca_midi_write_data
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	*16(%r12)
	jmp	LBB0_17
LBB0_18:
	movq	8(%r12), %rax
	movl	4(%r12), %esi
	movq	%r12, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_CA_MIDI_MODE_OUTPUT,4,2        ## @CA_MIDI_MODE_OUTPUT
	.no_dead_strip	_ca_midi_output_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca_midi_output_trigger
_ca_midi_output_trigger:                ; @ca_midi_output_trigger
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	w8, [x19, #28]
	cmp	w8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	cbz	w20, LBB0_17
; %bb.3:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ca_midi_output_ready
	cbz	x0, LBB0_16
; %bb.4:
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _CA_MIDI_MODE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CA_MIDI_MODE_OUTPUT@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.5:
	add	x1, sp, #15
	mov	x0, x21
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.6:
	ldrb	w1, [sp, #15]
	mov	x0, x19
	bl	_ca_midi_write_data
	mov	x0, x19
	bl	_ca_midi_output_ready
	cbz	x0, LBB0_16
; %bb.7:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.8:
	add	x1, sp, #15
	mov	x0, x21
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.9:
	ldrb	w1, [sp, #15]
	mov	x0, x19
	bl	_ca_midi_write_data
	mov	x0, x19
	bl	_ca_midi_output_ready
	cbz	x0, LBB0_16
; %bb.10:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.11:
	add	x1, sp, #15
	mov	x0, x21
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.12:
	ldrb	w1, [sp, #15]
	mov	x0, x19
	bl	_ca_midi_write_data
	mov	x0, x19
	bl	_ca_midi_output_ready
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.14:
	add	x1, sp, #15
	mov	x0, x21
	mov	w2, #1
	bl	_snd_rawmidi_transmit
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.15:
	ldrb	w1, [sp, #15]
	mov	x0, x19
	bl	_ca_midi_write_data
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	ldr	w1, [x19, #4]
	mov	x0, x19
	blr	x8
	b	LBB0_1
LBB0_17:
	ldr	x2, [x19, #8]
	ldr	w1, [x19, #4]
	mov	x0, x19
	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
	br	x2
LBB0_18:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CA_MIDI_MODE_OUTPUT,4,2        ; @CA_MIDI_MODE_OUTPUT
	.no_dead_strip	_ca_midi_output_trigger
.subsections_via_symbols
