	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_sb8dsp_midi_input_trigger
_snd_sb8dsp_midi_input_trigger:         ## @snd_sb8dsp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %eax
	movq	_SB_OPEN_MIDI_INPUT_TRIGGER@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testl	%eax, %ecx
	jne	LBB0_10
## %bb.2:
	movq	8(%r15), %rdx
	movq	_SB_HW_20@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jge	LBB0_4
## %bb.3:
	movq	_SB_DSP_MIDI_INPUT_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_sbdsp_command
	movl	(%r12), %ecx
	movl	(%r15), %eax
LBB0_4:
	orl	%ecx, %eax
	jmp	LBB0_9
LBB0_5:
	testl	%eax, %ecx
	je	LBB0_10
## %bb.6:
	movq	8(%r15), %rdx
	movq	_SB_HW_20@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jge	LBB0_8
## %bb.7:
	movq	_SB_DSP_MIDI_INPUT_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_sbdsp_command
	movl	(%r12), %ecx
	movl	(%r15), %eax
LBB0_8:
	notl	%ecx
	andl	%ecx, %eax
LBB0_9:
	movl	%eax, (%r15)
LBB0_10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_OPEN_MIDI_INPUT_TRIGGER,4,2 ## @SB_OPEN_MIDI_INPUT_TRIGGER
	.comm	_SB_HW_20,8,3                   ## @SB_HW_20
	.comm	_SB_DSP_MIDI_INPUT_IRQ,4,2      ## @SB_DSP_MIDI_INPUT_IRQ
	.no_dead_strip	_snd_sb8dsp_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_sb8dsp_midi_input_trigger
_snd_sb8dsp_midi_input_trigger:         ; @snd_sb8dsp_midi_input_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]
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w9, [x19]
Lloh0:
	adrp	x22, _SB_OPEN_MIDI_INPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SB_OPEN_MIDI_INPUT_TRIGGER@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w10, w8, w9
	cbz	w21, LBB0_5
; %bb.1:
	cbnz	w10, LBB0_10
; %bb.2:
	ldr	x10, [x19, #8]
Lloh2:
	adrp	x11, _SB_HW_20@GOTPAGE
Lloh3:
	ldr	x11, [x11, _SB_HW_20@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ge	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _SB_DSP_MIDI_INPUT_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_DSP_MIDI_INPUT_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sbdsp_command
	ldr	w8, [x22]
	ldr	w9, [x19]
LBB0_4:
	orr	w8, w9, w8
	b	LBB0_9
LBB0_5:
	cbz	w10, LBB0_10
; %bb.6:
	ldr	x10, [x19, #8]
Lloh8:
	adrp	x11, _SB_HW_20@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SB_HW_20@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ge	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _SB_DSP_MIDI_INPUT_IRQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SB_DSP_MIDI_INPUT_IRQ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sbdsp_command
	ldr	w8, [x22]
	ldr	w9, [x19]
LBB0_8:
	bic	w8, w9, w8
LBB0_9:
	str	w8, [x19]
LBB0_10:
	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_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_OPEN_MIDI_INPUT_TRIGGER,4,2 ; @SB_OPEN_MIDI_INPUT_TRIGGER
	.comm	_SB_HW_20,8,3                   ; @SB_HW_20
	.comm	_SB_DSP_MIDI_INPUT_IRQ,4,2      ; @SB_DSP_MIDI_INPUT_IRQ
	.no_dead_strip	_snd_sb8dsp_midi_input_trigger
.subsections_via_symbols
