	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_stop_audio_dma
_cx23885_stop_audio_dma:                ## @cx23885_stop_audio_dma
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	_AUD_INT_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_clear
	movq	_PCI_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_MSK_AUD_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx_clear
	movq	_AUDIO_INT_INT_MSK@GOTPCREL(%rip), %rax
	movq	_AUD_INT_OPC_ERR@GOTPCREL(%rip), %rcx
	movq	_AUD_INT_DN_SYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_AUD_INT_DN_RISCI1@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_cx_clear
	movq	_audio_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_AUDIO_SRAM_CHANNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	callq	_cx23885_sram_channel_dump
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping audio DMA\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ## @AUD_INT_DMA_CTL
	.comm	_PCI_INT_MSK,4,2                ## @PCI_INT_MSK
	.comm	_PCI_MSK_AUD_INT,4,2            ## @PCI_MSK_AUD_INT
	.comm	_AUDIO_INT_INT_MSK,4,2          ## @AUDIO_INT_INT_MSK
	.comm	_AUD_INT_OPC_ERR,4,2            ## @AUD_INT_OPC_ERR
	.comm	_AUD_INT_DN_SYNC,4,2            ## @AUD_INT_DN_SYNC
	.comm	_AUD_INT_DN_RISCI1,4,2          ## @AUD_INT_DN_RISCI1
	.comm	_audio_debug,8,3                ## @audio_debug
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ## @AUDIO_SRAM_CHANNEL
	.no_dead_strip	_cx23885_stop_audio_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_stop_audio_dma
_cx23885_stop_audio_dma:                ; @cx23885_stop_audio_dma
	.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, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh2:
	adrp	x8, _AUD_INT_DMA_CTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUD_INT_DMA_CTL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #17
	bl	_cx_clear
Lloh5:
	adrp	x8, _PCI_INT_MSK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_INT_MSK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _PCI_MSK_AUD_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_MSK_AUD_INT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_cx_clear
Lloh11:
	adrp	x8, _AUDIO_INT_INT_MSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUDIO_INT_INT_MSK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _AUD_INT_OPC_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUD_INT_OPC_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _AUD_INT_DN_SYNC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUD_INT_DN_SYNC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _AUD_INT_DN_RISCI1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AUD_INT_DN_RISCI1@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_cx_clear
Lloh23:
	adrp	x8, _audio_debug@GOTPAGE
Lloh24:
	ldr	x8, [x8, _audio_debug@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	ldr	x8, [x20]
Lloh26:
	adrp	x9, _AUDIO_SRAM_CHANNEL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AUDIO_SRAM_CHANNEL@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_cx23885_sram_channel_dump
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping audio DMA\n"

	.comm	_AUD_INT_DMA_CTL,4,2            ; @AUD_INT_DMA_CTL
	.comm	_PCI_INT_MSK,4,2                ; @PCI_INT_MSK
	.comm	_PCI_MSK_AUD_INT,4,2            ; @PCI_MSK_AUD_INT
	.comm	_AUDIO_INT_INT_MSK,4,2          ; @AUDIO_INT_INT_MSK
	.comm	_AUD_INT_OPC_ERR,4,2            ; @AUD_INT_OPC_ERR
	.comm	_AUD_INT_DN_SYNC,4,2            ; @AUD_INT_DN_SYNC
	.comm	_AUD_INT_DN_RISCI1,4,2          ; @AUD_INT_DN_RISCI1
	.comm	_audio_debug,8,3                ; @audio_debug
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ; @AUDIO_SRAM_CHANNEL
	.no_dead_strip	_cx23885_stop_audio_dma
.subsections_via_symbols
