	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb_intr
_sb_intr:                               ## @sb_intr
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MDL_SB16@GOTPCREL(%rip), %r15
	movb	$-1, %r14b
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movq	_IRQ_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sb_getmixer
	movl	%eax, %r14d
	testb	$4, %al
	je	LBB0_4
## %bb.2:
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	56(%rbx), %edi
	callq	_uart401intr
LBB0_4:
	testb	$3, %r14b
	je	LBB0_21
LBB0_5:
	cmpq	$0, 40(%rbx)
	je	LBB0_13
## %bb.6:
	cmpl	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	andb	$1, %al
	jne	LBB0_8
LBB0_13:
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.14:
	movl	%r14d, %eax
	andb	$2, %al
	je	LBB0_17
## %bb.15:
	movl	12(%rbx), %eax
	cmpl	$130, %eax
	jne	LBB0_10
	jmp	LBB0_16
LBB0_8:
	movl	8(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_16
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_12
LBB0_10:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.11:
	movl	16(%rbx), %edi
	movl	$1, %esi
	callq	_DMAbuf_outputintr
	testb	$1, %r14b
	jne	LBB0_18
	jmp	LBB0_19
LBB0_16:
	movl	16(%rbx), %edi
	callq	_DMAbuf_inputintr
LBB0_17:
	testb	$1, %r14b
	je	LBB0_19
LBB0_18:
	movq	_DSP_DATA_AVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
LBB0_19:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_21
## %bb.20:
	movzbl	%r14b, %eax
	andl	$2, %eax
	je	LBB0_21
## %bb.22:
	movq	_DSP_DATA_AVL16@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inb                            ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	callq	_sb_midi_interrupt
	testb	$1, %r14b
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MDL_SB16,8,3                   ## @MDL_SB16
	.comm	_IRQ_STAT,4,2                   ## @IRQ_STAT
	.comm	_DSP_DATA_AVAIL,4,2             ## @DSP_DATA_AVAIL
	.comm	_DSP_DATA_AVL16,4,2             ## @DSP_DATA_AVL16
	.no_dead_strip	_sb_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb_intr
_sb_intr:                               ; @sb_intr
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _MDL_SB16@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDL_SB16@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _IRQ_STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_STAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sb_getmixer
	mov	x20, x0
	tbz	w0, #2, LBB0_4
; %bb.2:
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w0, [x19, #56]
	bl	_uart401intr
LBB0_4:
	tst	w20, #0x3
	b.eq	LBB0_18
; %bb.5:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_7
	b	LBB0_11
LBB0_6:
	mov	w20, #255
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
LBB0_7:
	ldr	w8, [x19, #32]
	and	w9, w20, #0x1
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_11
; %bb.8:
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.eq	LBB0_20
; %bb.9:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_sb_midi_interrupt
	tbnz	w20, #0, LBB0_16
	b	LBB0_17
LBB0_11:
	ldr	x8, [x19, #24]
	and	w9, w20, #0x2
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_15
; %bb.12:
	ldr	w8, [x19, #12]
	cmp	w8, #130
	b.eq	LBB0_20
LBB0_13:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x19, #16]
	mov	w1, #1
	bl	_DMAbuf_outputintr
LBB0_15:
	tbz	w20, #0, LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _DSP_DATA_AVAIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSP_DATA_AVAIL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_inb
LBB0_17:
	ldr	x8, [x19]
	ldr	x9, [x21]
	and	w10, w20, #0x2
	cmp	x8, x9
	ccmp	w10, #0, #4, eq
	b.ne	LBB0_19
LBB0_18:
	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_19:
Lloh8:
	adrp	x8, _DSP_DATA_AVL16@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSP_DATA_AVL16@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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	_inb
LBB0_20:
	ldr	w0, [x19, #16]
	bl	_DMAbuf_inputintr
	tbnz	w20, #0, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MDL_SB16,8,3                   ; @MDL_SB16
	.comm	_IRQ_STAT,4,2                   ; @IRQ_STAT
	.comm	_DSP_DATA_AVAIL,4,2             ; @DSP_DATA_AVAIL
	.comm	_DSP_DATA_AVL16,4,2             ; @DSP_DATA_AVL16
	.no_dead_strip	_sb_intr
.subsections_via_symbols
