	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_wavefront_midi_input_trigger
_snd_wavefront_midi_input_trigger:      ## @snd_wavefront_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	%esi, %ebx
	movq	(%rax), %r15
	callq	_get_wavefront_midi
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	_MPU401_MODE_INPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rcx
	orl	%eax, (%rcx,%r15,4)
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	notl	%eax
	movq	8(%r14), %rcx
	andl	%eax, (%rcx,%r15,4)
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	_MPU401_MODE_INPUT_TRIGGER,4,2  ## @MPU401_MODE_INPUT_TRIGGER
	.no_dead_strip	_snd_wavefront_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_wavefront_midi_input_trigger
_snd_wavefront_midi_input_trigger:      ; @snd_wavefront_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
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x19, x1
	ldr	x21, [x8]
	bl	_get_wavefront_midi
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _MPU401_MODE_INPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPU401_MODE_INPUT_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w19, LBB0_7
; %bb.5:
	ldr	x9, [x20, #8]
	lsl	x10, x21, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	b	LBB0_8
LBB0_6:
	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_7:
	ldr	x9, [x20, #8]
	lsl	x10, x21, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
LBB0_8:
	str	w8, [x9, x10]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU401_MODE_INPUT_TRIGGER,4,2  ; @MPU401_MODE_INPUT_TRIGGER
	.no_dead_strip	_snd_wavefront_midi_input_trigger
.subsections_via_symbols
