	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb8dsp_midi_output_trigger
_snd_sb8dsp_midi_output_trigger:        ## @snd_sb8dsp_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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_SB_OPEN_MIDI_OUTPUT_TRIGGER@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.1:
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_init_timer
	movq	_snd_sb8dsp_midi_output_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r15, 8(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_add_timer
	movl	(%r13), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_sb8dsp_midi_output_write   ## TAILCALL
LBB0_4:
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_6:
	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	_SB_OPEN_MIDI_OUTPUT_TRIGGER,4,2 ## @SB_OPEN_MIDI_OUTPUT_TRIGGER
	.comm	_snd_sb8dsp_midi_output_timer,4,2 ## @snd_sb8dsp_midi_output_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_snd_sb8dsp_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_sb8dsp_midi_output_trigger
_snd_sb8dsp_midi_output_trigger:        ; @snd_sb8dsp_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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
	add	x19, x22, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _SB_OPEN_MIDI_OUTPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SB_OPEN_MIDI_OUTPUT_TRIGGER@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w10, w9, w8
	cbz	w21, LBB0_4
; %bb.1:
	cbnz	w10, LBB0_3
; %bb.2:
	add	x21, x22, #8
	mov	x0, x21
	bl	_init_timer
Lloh2:
	adrp	x8, _snd_sb8dsp_midi_output_timer@GOTPAGE
Lloh3:
	ldr	x8, [x8, _snd_sb8dsp_midi_output_timer@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22, #24]
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, #1
	stp	x20, x8, [x22, #8]
	mov	x0, x21
	bl	_add_timer
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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	_snd_sb8dsp_midi_output_write
LBB0_4:
	cbz	w10, LBB0_6
; %bb.5:
	bic	w8, w8, w9
	str	w8, [x22]
LBB0_6:
	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
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_OPEN_MIDI_OUTPUT_TRIGGER,4,2 ; @SB_OPEN_MIDI_OUTPUT_TRIGGER
	.comm	_snd_sb8dsp_midi_output_timer,4,2 ; @snd_sb8dsp_midi_output_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_snd_sb8dsp_midi_output_trigger
.subsections_via_symbols
