	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_midi_output_trigger
_snd_hdsp_midi_output_trigger:          ## @snd_hdsp_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
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rax
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_init_timer
	movq	_snd_hdsp_midi_output_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, 16(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_add_timer
	incq	(%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_hdsp_midi_output_write     ## TAILCALL
LBB0_4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jg	LBB0_7
## %bb.6:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_del_timer
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_hdsp_midi_output_timer,4,2 ## @snd_hdsp_midi_output_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_snd_hdsp_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_hdsp_midi_output_trigger
_snd_hdsp_midi_output_trigger:          ; @snd_hdsp_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	x20, [x8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cbz	w21, LBB0_4
; %bb.1:
	cbnz	x8, LBB0_3
; %bb.2:
	add	x21, x20, #16
	mov	x0, x21
	bl	_init_timer
Lloh0:
	adrp	x8, _snd_hdsp_midi_output_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_hdsp_midi_output_timer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, #1
	stp	x20, x8, [x20, #16]
	mov	x0, x21
	bl	_add_timer
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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	_snd_hdsp_midi_output_write
LBB0_4:
	cbz	x8, LBB0_7
; %bb.5:
	subs	x8, x8, #1
	str	x8, [x20]
	b.gt	LBB0_7
; %bb.6:
	add	x0, x20, #16
	bl	_del_timer
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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_hdsp_midi_output_timer,4,2 ; @snd_hdsp_midi_output_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_snd_hdsp_midi_output_trigger
.subsections_via_symbols
