	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_wavefront_midi_output_trigger
_snd_wavefront_midi_output_trigger:     ## @snd_wavefront_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	%esi, %r12d
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_get_wavefront_midi
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.5:
	movq	(%r15), %rax
	movq	_MPU401_MODE_OUTPUT_TRIGGER@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, (%rax,%r13,4)
	jne	LBB0_9
## %bb.6:
	movl	12(%r15), %edx
	testl	%edx, %edx
	jne	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	addq	$16, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_init_timer
	movq	_snd_wavefront_midi_output_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 24(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_timer
	movl	12(%r15), %edx
	movl	(%r12), %ecx
	movq	(%r15), %rax
LBB0_8:
	incl	%edx
	movl	%edx, 12(%r15)
	orl	%ecx, (%rax,%r13,4)
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_wavefront_midi_output_write ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_MPU401_MODE_OUTPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%r15), %rcx
	andl	%eax, (%rcx,%r13,4)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU401_MODE_OUTPUT_TRIGGER,4,2 ## @MPU401_MODE_OUTPUT_TRIGGER
	.comm	_snd_wavefront_midi_output_timer,4,2 ## @snd_wavefront_midi_output_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_snd_wavefront_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 snd_wavefront_midi_output_trigger
_snd_wavefront_midi_output_trigger:     ; @snd_wavefront_midi_output_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x22, x1
	ldr	x23, [x8]
	mov	x0, x19
	bl	_get_wavefront_midi
	cbz	x0, LBB0_10
; %bb.4:
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbz	w22, LBB0_11
; %bb.5:
	ldr	x8, [x21]
	ldr	w10, [x8, x23, lsl #2]
Lloh0:
	adrp	x24, _MPU401_MODE_OUTPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MPU401_MODE_OUTPUT_TRIGGER@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w10
	b.ne	LBB0_9
; %bb.6:
	ldr	w10, [x21, #12]
	cbnz	w10, LBB0_8
; %bb.7:
	add	x22, x21, #16
	mov	x0, x22
	bl	_init_timer
Lloh2:
	adrp	x8, _snd_wavefront_midi_output_timer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _snd_wavefront_midi_output_timer@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _jiffies@GOTPAGE
Lloh6:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x9, x9, #1
	stp	x8, x9, [x21, #16]
	mov	x0, x22
	bl	_add_timer
	ldr	w10, [x21, #12]
	ldr	w9, [x24]
	ldr	x8, [x21]
LBB0_8:
	add	w10, w10, #1
	str	w10, [x21, #12]
	lsl	x10, x23, #2
	ldr	w11, [x8, x10]
	orr	w9, w11, w9
	str	w9, [x8, x10]
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_wavefront_midi_output_write
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh8:
	adrp	x8, _MPU401_MODE_OUTPUT_TRIGGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPU401_MODE_OUTPUT_TRIGGER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x21]
	lsl	x10, x23, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU401_MODE_OUTPUT_TRIGGER,4,2 ; @MPU401_MODE_OUTPUT_TRIGGER
	.comm	_snd_wavefront_midi_output_timer,4,2 ; @snd_wavefront_midi_output_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_snd_wavefront_midi_output_trigger
.subsections_via_symbols
