	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_sb16dsp_interrupt          ## -- Begin function snd_sb16dsp_interrupt
	.p2align	4, 0x90
_snd_sb16dsp_interrupt:                 ## @snd_sb16dsp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r15d
	leaq	32(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_SB_DSP4_IRQSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_sbmixer_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_SB_IRQTYPE_MPUIN@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_3
## %bb.1:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	16(%r12), %rcx
	movl	(%rcx), %esi
	movl	%r15d, %edi
	callq	*%rax
LBB0_3:
	movq	_SB_IRQTYPE_8BIT@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_11
## %bb.4:
	movl	(%r12), %ebx
	movq	_SB_MODE_PLAYBACK_8@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %eax
	testl	%ebx, %r13d
	je	LBB0_6
## %bb.5:
	movl	12(%r12), %edi
	callq	_snd_pcm_period_elapsed
	movq	%r12, %rdi
	callq	_snd_sb16_csp_update
	movl	(%r12), %eax
LBB0_6:
	movq	_SB_MODE_CAPTURE_8@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	8(%r12), %edi
	callq	_snd_pcm_period_elapsed
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	jmp	LBB0_10
LBB0_8:
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	testl	%ebx, %r13d
	jne	LBB0_10
## %bb.9:
	movq	_SB_DSP_DMA8_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_sbdsp_command
LBB0_10:
	movq	%r12, %rdi
	callq	_snd_sb_ack_8bit
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_11:
	movq	_SB_IRQTYPE_16BIT@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_19
## %bb.12:
	movl	(%r12), %ebx
	movq	_SB_MODE_PLAYBACK_16@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %eax
	testl	%ebx, %r15d
	je	LBB0_14
## %bb.13:
	movl	12(%r12), %edi
	callq	_snd_pcm_period_elapsed
	movq	%r12, %rdi
	callq	_snd_sb16_csp_update
	movl	(%r12), %eax
LBB0_14:
	movq	_SB_MODE_CAPTURE_16@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movl	8(%r12), %edi
	callq	_snd_pcm_period_elapsed
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	jmp	LBB0_18
LBB0_16:
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	testl	%ebx, %r15d
	jne	LBB0_18
## %bb.17:
	movq	_SB_DSP_DMA16_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_sbdsp_command
LBB0_18:
	movq	%r12, %rdi
	callq	_snd_sb_ack_16bit
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_19:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_DSP4_IRQSTATUS,4,2          ## @SB_DSP4_IRQSTATUS
	.comm	_SB_IRQTYPE_MPUIN,1,0           ## @SB_IRQTYPE_MPUIN
	.comm	_SB_IRQTYPE_8BIT,1,0            ## @SB_IRQTYPE_8BIT
	.comm	_SB_MODE_PLAYBACK_8,4,2         ## @SB_MODE_PLAYBACK_8
	.comm	_SB_MODE_CAPTURE_8,4,2          ## @SB_MODE_CAPTURE_8
	.comm	_SB_DSP_DMA8_OFF,4,2            ## @SB_DSP_DMA8_OFF
	.comm	_SB_IRQTYPE_16BIT,1,0           ## @SB_IRQTYPE_16BIT
	.comm	_SB_MODE_PLAYBACK_16,4,2        ## @SB_MODE_PLAYBACK_16
	.comm	_SB_MODE_CAPTURE_16,4,2         ## @SB_MODE_CAPTURE_16
	.comm	_SB_DSP_DMA16_OFF,4,2           ## @SB_DSP_DMA16_OFF
	.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_sb16dsp_interrupt          ; -- Begin function snd_sb16dsp_interrupt
	.p2align	2
_snd_sb16dsp_interrupt:                 ; @snd_sb16dsp_interrupt
	.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, x1
	mov	x21, x0
	add	x22, x1, #32
	mov	x0, x22
	bl	_spin_lock
Lloh0:
	adrp	x8, _SB_DSP4_IRQSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SB_DSP4_IRQSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sbmixer_read
	mov	x20, x0
	mov	x0, x22
	bl	_spin_unlock
Lloh3:
	adrp	x8, _SB_IRQTYPE_MPUIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SB_IRQTYPE_MPUIN@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x19, #16]
	ldr	w1, [x9]
	mov	x0, x21
	blr	x8
LBB0_3:
Lloh5:
	adrp	x8, _SB_IRQTYPE_8BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SB_IRQTYPE_8BIT@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.4:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _SB_MODE_PLAYBACK_8@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SB_MODE_PLAYBACK_8@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ands	w22, w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_snd_sb16_csp_update
	ldr	w8, [x19]
LBB0_6:
Lloh10:
	adrp	x9, _SB_MODE_CAPTURE_8@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SB_MODE_CAPTURE_8@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19, #8]
	bl	_snd_pcm_period_elapsed
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	b	LBB0_10
LBB0_8:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	cbnz	w22, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _SB_DSP_DMA8_OFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SB_DSP_DMA8_OFF@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sbdsp_command
LBB0_10:
	mov	x0, x19
	bl	_snd_sb_ack_8bit
	mov	x0, x21
	bl	_spin_unlock
LBB0_11:
Lloh16:
	adrp	x8, _SB_IRQTYPE_16BIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SB_IRQTYPE_16BIT@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.12:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _SB_MODE_PLAYBACK_16@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SB_MODE_PLAYBACK_16@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ands	w21, w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #12]
	bl	_snd_pcm_period_elapsed
	mov	x0, x19
	bl	_snd_sb16_csp_update
	ldr	w8, [x19]
LBB0_14:
Lloh21:
	adrp	x9, _SB_MODE_CAPTURE_16@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SB_MODE_CAPTURE_16@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #8]
	bl	_snd_pcm_period_elapsed
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	b	LBB0_18
LBB0_16:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock
	cbnz	w21, LBB0_18
; %bb.17:
Lloh24:
	adrp	x8, _SB_DSP_DMA16_OFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SB_DSP_DMA16_OFF@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_sbdsp_command
LBB0_18:
	mov	x0, x19
	bl	_snd_sb_ack_16bit
	mov	x0, x20
	bl	_spin_unlock
LBB0_19:
Lloh27:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh29:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_DSP4_IRQSTATUS,4,2          ; @SB_DSP4_IRQSTATUS
	.comm	_SB_IRQTYPE_MPUIN,1,0           ; @SB_IRQTYPE_MPUIN
	.comm	_SB_IRQTYPE_8BIT,1,0            ; @SB_IRQTYPE_8BIT
	.comm	_SB_MODE_PLAYBACK_8,4,2         ; @SB_MODE_PLAYBACK_8
	.comm	_SB_MODE_CAPTURE_8,4,2          ; @SB_MODE_CAPTURE_8
	.comm	_SB_DSP_DMA8_OFF,4,2            ; @SB_DSP_DMA8_OFF
	.comm	_SB_IRQTYPE_16BIT,1,0           ; @SB_IRQTYPE_16BIT
	.comm	_SB_MODE_PLAYBACK_16,4,2        ; @SB_MODE_PLAYBACK_16
	.comm	_SB_MODE_CAPTURE_16,4,2         ; @SB_MODE_CAPTURE_16
	.comm	_SB_DSP_DMA16_OFF,4,2           ; @SB_DSP_DMA16_OFF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
