	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stop_dac
_stop_dac:                              ## @stop_dac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	movq	_PSC_AC97PCR_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PSC_AC97PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_AC97STAT@GOTPCREL(%rip), %r15
	movq	_PSC_AC97STAT_TB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_au_readl
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_au_sync
	testl	%ebx, (%r12)
	jne	LBB0_2
## %bb.3:
	movl	8(%r14), %edi
	callq	_au1xxx_dbdma_reset
	movl	$1, 4(%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_AC97PCR_TP,4,2             ## @PSC_AC97PCR_TP
	.comm	_PSC_AC97PCR,4,2                ## @PSC_AC97PCR
	.comm	_PSC_AC97STAT,4,2               ## @PSC_AC97STAT
	.comm	_PSC_AC97STAT_TB,4,2            ## @PSC_AC97STAT_TB
	.no_dead_strip	_stop_dac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stop_dac
_stop_dac:                              ; @stop_dac
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	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_2:
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _PSC_AC97PCR_TP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_AC97PCR_TP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PSC_AC97PCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSC_AC97PCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_au_writel
	bl	_au_sync
Lloh6:
	adrp	x21, _PSC_AC97STAT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PSC_AC97STAT@GOTPAGEOFF]
Lloh8:
	adrp	x22, _PSC_AC97STAT_TB@GOTPAGE
Lloh9:
	ldr	x22, [x22, _PSC_AC97STAT_TB@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_au_readl
	mov	x20, x0
	bl	_au_sync
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_3
; %bb.4:
	ldr	w0, [x19, #8]
	bl	_au1xxx_dbdma_reset
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_AC97PCR_TP,4,2             ; @PSC_AC97PCR_TP
	.comm	_PSC_AC97PCR,4,2                ; @PSC_AC97PCR
	.comm	_PSC_AC97STAT,4,2               ; @PSC_AC97STAT
	.comm	_PSC_AC97STAT_TB,4,2            ; @PSC_AC97STAT_TB
	.no_dead_strip	_stop_dac
.subsections_via_symbols
