	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sb8dsp_midi_interrupt      ## -- Begin function snd_sb8dsp_midi_interrupt
	.p2align	4, 0x90
_snd_sb8dsp_midi_interrupt:             ## @snd_sb8dsp_midi_interrupt
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.3:
	leaq	4(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	$-64, %ebx
	movq	_DATA_AVAIL@GOTPCREL(%rip), %r13
	movq	_READ@GOTPCREL(%rip), %r14
	movq	_SB_OPEN_MIDI_INPUT_TRIGGER@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_SBP
	movl	%eax, %edi
	callq	_inb
	testb	$-128, %al
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_SBP
	movl	%eax, %edi
	callq	_inb
	movb	%al, -41(%rbp)
	movl	(%r15), %eax
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_snd_rawmidi_receive
	jmp	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_2:
	movq	_DATA_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_SBP
	movl	%eax, %edi
	callq	_inb
LBB0_9:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DATA_AVAIL,4,2                 ## @DATA_AVAIL
	.comm	_READ,4,2                       ## @READ
	.comm	_SB_OPEN_MIDI_INPUT_TRIGGER,4,2 ## @SB_OPEN_MIDI_INPUT_TRIGGER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sb8dsp_midi_interrupt      ; -- Begin function snd_sb8dsp_midi_interrupt
	.p2align	2
_snd_sb8dsp_midi_interrupt:             ; @snd_sb8dsp_midi_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	mov	w21, #-64
Lloh0:
	adrp	x22, _DATA_AVAIL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DATA_AVAIL@GOTPAGEOFF]
Lloh2:
	adrp	x23, _READ@GOTPAGE
Lloh3:
	ldr	x23, [x23, _READ@GOTPAGEOFF]
Lloh4:
	adrp	x24, _SB_OPEN_MIDI_INPUT_TRIGGER@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SB_OPEN_MIDI_INPUT_TRIGGER@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_SBP
	bl	_inb
	tbz	w0, #7, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_SBP
	bl	_inb
	strb	w0, [sp, #15]
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_snd_rawmidi_receive
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _DATA_AVAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DATA_AVAIL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SBP
	bl	_inb
LBB0_9:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DATA_AVAIL,4,2                 ; @DATA_AVAIL
	.comm	_READ,4,2                       ; @READ
	.comm	_SB_OPEN_MIDI_INPUT_TRIGGER,4,2 ; @SB_OPEN_MIDI_INPUT_TRIGGER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
