	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_echo_midi_output_trigger
_snd_echo_midi_output_trigger:          ## @snd_echo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movslq	%esi, %rbx
	movq	%rbx, %rdi
	callq	_DE_MID
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	(%r15), %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	16(%r15), %rdi
	callq	_init_timer
	movq	_snd_echo_midi_output_write@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	%r15, 16(%r15)
	movl	$1, (%r15)
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	cmpl	$0, 4(%r15)
	je	LBB0_4
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	$0, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_del_timer_sync
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DE_MID                         ## TAILCALL
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_echo_midi_output_write     ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Timer removed\n"

	.no_dead_strip	_snd_echo_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_echo_midi_output_trigger
_snd_echo_midi_output_trigger:          ; @snd_echo_midi_output_trigger
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	sxtw	x0, w21
	bl	_DE_MID
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w8, [x19]
	cbz	w21, LBB0_5
; %bb.1:
	cbnz	w8, LBB0_3
; %bb.2:
	add	x0, x19, #16
	bl	_init_timer
Lloh0:
	adrp	x8, _snd_echo_midi_output_write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_echo_midi_output_write@GOTPAGEOFF]
	stp	x19, x8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	cbz	w8, LBB0_8
; %bb.6:
	str	wzr, [x19], #16
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_del_timer_sync
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DE_MID
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_echo_midi_output_write
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Timer removed\n"

	.no_dead_strip	_snd_echo_midi_output_trigger
.subsections_via_symbols
