	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dac_dma_interrupt
_dac_dma_interrupt:                     ## @dac_dma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_PSC_AC97STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_au_readl
	movq	_AC97C_XU@GOTPCREL(%rip), %rcx
	movq	_AC97C_XO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_AC97C_TE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
LBB0_2:
	decl	52(%rbx)
	movq	16(%rbx), %rdx
	cmpq	%rdx, 8(%rbx)
	jl	LBB0_8
## %bb.3:
	movl	68(%rbx), %edi
	movq	24(%rbx), %rsi
	callq	_au1xxx_dbdma_put_source
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_5:
	movq	16(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	24(%rbx), %rdx
	addq	%rax, %rdx
	movq	%rdx, 24(%rbx)
	movq	32(%rbx), %rsi
	addq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_7
## %bb.6:
	subq	%rcx, %rdx
	movq	%rdx, 24(%rbx)
LBB0_7:
	subq	%rax, 8(%rbx)
	movl	56(%rbx), %eax
	addl	%eax, 64(%rbx)
	incl	52(%rbx)
LBB0_8:
	leaq	48(%rbx), %r14
	movq	%r14, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_wake_up
LBB0_10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_AC97STAT,4,2               ## @PSC_AC97STAT
	.comm	_AC97C_XU,4,2                   ## @AC97C_XU
	.comm	_AC97C_XO,4,2                   ## @AC97C_XO
	.comm	_AC97C_TE,4,2                   ## @AC97C_TE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AC97C status = 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"qcount < 2 and no ring room!"

	.no_dead_strip	_dac_dma_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dac_dma_interrupt
_dac_dma_interrupt:                     ; @dac_dma_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock
Lloh0:
	adrp	x8, _PSC_AC97STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_AC97STAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_au_readl
Lloh3:
	adrp	x8, _AC97C_XU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97C_XU@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _AC97C_XO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AC97C_XO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _AC97C_TE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AC97C_TE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_2:
	ldr	w8, [x19, #52]
	sub	w8, w8, #1
	str	w8, [x19, #52]
	ldp	x8, x2, [x19, #8]
	cmp	x8, x2
	b.lt	LBB0_8
; %bb.3:
	ldr	w0, [x19, #68]
	ldr	x1, [x19, #24]
	bl	_au1xxx_dbdma_put_source
	cbnz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
LBB0_5:
	ldp	x8, x9, [x19, #16]
	add	x9, x9, x8
	str	x9, [x19, #24]
	ldp	x11, x10, [x19, #32]
	add	x11, x10, x11
	cmp	x9, x11
	b.lt	LBB0_7
; %bb.6:
	sub	x9, x9, x10
	str	x9, [x19, #24]
LBB0_7:
	ldr	x9, [x19, #8]
	sub	x8, x9, x8
	str	x8, [x19, #8]
	ldr	w8, [x19, #64]
	ldp	w10, w9, [x19, #52]
	add	w8, w8, w9
	str	w8, [x19, #64]
	add	w8, w10, #1
	str	w8, [x19, #52]
LBB0_8:
	add	x20, x19, #48
	mov	x0, x20
	bl	_waitqueue_active
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_wake_up
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_AC97STAT,4,2               ; @PSC_AC97STAT
	.comm	_AC97C_XU,4,2                   ; @AC97C_XU
	.comm	_AC97C_XO,4,2                   ; @AC97C_XO
	.comm	_AC97C_TE,4,2                   ; @AC97C_TE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AC97C status = 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"qcount < 2 and no ring room!"

	.no_dead_strip	_dac_dma_interrupt
.subsections_via_symbols
