	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdspm_midi_input_trigger
_snd_hdspm_midi_input_trigger:          ## @snd_hdspm_midi_input_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, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%r13), %r12
	cmpq	$0, (%r13)
	jne	LBB0_1
## %bb.2:
	movq	_HDSPM_Midi0InterruptEnable@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HDSPM_Midi1InterruptEnable@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	movl	(%r12), %edx
	testl	%ebx, %edx
	jne	LBB0_8
## %bb.5:
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_snd_hdspm_flush_midi_input
	orl	(%r12), %ebx
	jmp	LBB0_7
LBB0_6:
	notl	%ebx
	andl	(%r12), %ebx
LBB0_7:
	movl	%ebx, (%r12)
	movl	%ebx, %edx
LBB0_8:
	movq	_HDSPM_controlRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hdspm_write
	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	_HDSPM_Midi1InterruptEnable,4,2 ## @HDSPM_Midi1InterruptEnable
	.comm	_HDSPM_Midi0InterruptEnable,4,2 ## @HDSPM_Midi0InterruptEnable
	.comm	_HDSPM_controlRegister,4,2      ## @HDSPM_controlRegister
	.no_dead_strip	_snd_hdspm_midi_input_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdspm_midi_input_trigger
_snd_hdspm_midi_input_trigger:          ; @snd_hdspm_midi_input_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
	ldr	x8, [x0]
	ldr	x23, [x8]
	ldp	x8, x19, [x23]
Lloh0:
	adrp	x9, _HDSPM_Midi1InterruptEnable@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDSPM_Midi1InterruptEnable@GOTPAGEOFF]
Lloh2:
	adrp	x10, _HDSPM_Midi0InterruptEnable@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HDSPM_Midi0InterruptEnable@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w22, [x8]
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbz	w21, LBB0_3
; %bb.1:
	ldr	w2, [x19]
	tst	w2, w22
	b.ne	LBB0_5
; %bb.2:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_snd_hdspm_flush_midi_input
	ldr	w8, [x19]
	orr	w2, w8, w22
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
	bic	w2, w8, w22
LBB0_4:
	str	w2, [x19]
LBB0_5:
Lloh4:
	adrp	x8, _HDSPM_controlRegister@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDSPM_controlRegister@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdspm_write
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSPM_Midi1InterruptEnable,4,2 ; @HDSPM_Midi1InterruptEnable
	.comm	_HDSPM_Midi0InterruptEnable,4,2 ; @HDSPM_Midi0InterruptEnable
	.comm	_HDSPM_controlRegister,4,2      ; @HDSPM_controlRegister
	.no_dead_strip	_snd_hdspm_midi_input_trigger
.subsections_via_symbols
