	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _cx25821_start_audio_dma
__cx25821_start_audio_dma:              ## @_cx25821_start_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	%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	%rdi, %r14
	movq	(%rdi), %rdi
	movq	16(%r14), %r15
	movq	_cx25821_sram_channels@GOTPCREL(%rip), %rax
	movq	_AUDIO_SRAM_CHANNEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_cx25821_set_gpiopin_direction
	movq	_AUD_INT_DMA_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_FLD_AUD_DST_A_RISC_EN@GOTPCREL(%rip), %r13
	movq	_FLD_AUD_DST_A_FIFO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	callq	_cx_clear
	movq	(%r14), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movq	%rbx, %rsi
	callq	_cx25821_sram_channel_setup_audio
	movq	_AUD_A_LNGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_cx_write
	movq	_AUD_A_GPCNT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP_COUNT_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx_write
	leaq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_AUD_A_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_cx_read
	movq	_FLD_AUD_DST_PK_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_FLD_AUD_DST_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movq	_FLD_AUD_CLK_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_cx_write
	movq	_FLD_AUD_DST_RISCI1@GOTPCREL(%rip), %rax
	movq	_FLD_AUD_DST_OF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_AUD_A_INT_MSK@GOTPCREL(%rip), %rax
	movq	_FLD_AUD_DST_SYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_FLD_AUD_DST_OPC_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_cx_write
	movq	_AUD_A_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_cx_write
	movq	_PCI_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	_PCI_MSK_AUD_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_cx_set
	movl	(%r12), %edi
	callq	_cx_read
	movl	(%r12), %edi
	orl	(%r13), %eax
	movq	_FLD_AUD_DST_A_FIFO_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_cx_set
	movl	$100, %edi
	callq	_mdelay
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx25821_sram_channels,8,3      ## @cx25821_sram_channels
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ## @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DMA_CTL,4,2            ## @AUD_INT_DMA_CTL
	.comm	_FLD_AUD_DST_A_RISC_EN,4,2      ## @FLD_AUD_DST_A_RISC_EN
	.comm	_FLD_AUD_DST_A_FIFO_EN,4,2      ## @FLD_AUD_DST_A_FIFO_EN
	.comm	_AUD_A_LNGTH,4,2                ## @AUD_A_LNGTH
	.comm	_AUD_A_GPCNT_CTL,4,2            ## @AUD_A_GPCNT_CTL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ## @GP_COUNT_CONTROL_RESET
	.comm	_AUD_A_CFG,4,2                  ## @AUD_A_CFG
	.comm	_FLD_AUD_DST_PK_MODE,4,2        ## @FLD_AUD_DST_PK_MODE
	.comm	_FLD_AUD_DST_ENABLE,4,2         ## @FLD_AUD_DST_ENABLE
	.comm	_FLD_AUD_CLK_ENABLE,4,2         ## @FLD_AUD_CLK_ENABLE
	.comm	_AUD_A_INT_MSK,4,2              ## @AUD_A_INT_MSK
	.comm	_FLD_AUD_DST_RISCI1,4,2         ## @FLD_AUD_DST_RISCI1
	.comm	_FLD_AUD_DST_OF,4,2             ## @FLD_AUD_DST_OF
	.comm	_FLD_AUD_DST_SYNC,4,2           ## @FLD_AUD_DST_SYNC
	.comm	_FLD_AUD_DST_OPC_ERR,4,2        ## @FLD_AUD_DST_OPC_ERR
	.comm	_AUD_A_INT_STAT,4,2             ## @AUD_A_INT_STAT
	.comm	_PCI_INT_MSK,4,2                ## @PCI_INT_MSK
	.comm	_PCI_MSK_AUD_INT,4,2            ## @PCI_MSK_AUD_INT
	.no_dead_strip	__cx25821_start_audio_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _cx25821_start_audio_dma
__cx25821_start_audio_dma:              ; @_cx25821_start_audio_dma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _cx25821_sram_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx25821_sram_channels@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AUDIO_SRAM_CHANNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUDIO_SRAM_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #0
	bl	_cx25821_set_gpiopin_direction
Lloh6:
	adrp	x21, _AUD_INT_DMA_CTL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AUD_INT_DMA_CTL@GOTPAGEOFF]
Lloh8:
	adrp	x22, _FLD_AUD_DST_A_RISC_EN@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FLD_AUD_DST_A_RISC_EN@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x22]
Lloh10:
	adrp	x23, _FLD_AUD_DST_A_FIFO_EN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _FLD_AUD_DST_A_FIFO_EN@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
	bl	_cx_clear
	ldr	x0, [x19]
	ldp	w2, w3, [x24]
	mov	x1, x20
	bl	_cx25821_sram_channel_setup_audio
Lloh12:
	adrp	x8, _AUD_A_LNGTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUD_A_LNGTH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_cx_write
Lloh15:
	adrp	x8, _AUD_A_GPCNT_CTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUD_A_GPCNT_CTL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_cx_write
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
Lloh21:
	adrp	x20, _AUD_A_CFG@GOTPAGE
Lloh22:
	ldr	x20, [x20, _AUD_A_CFG@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_cx_read
	ldr	w8, [x20]
Lloh23:
	adrp	x9, _FLD_AUD_DST_PK_MODE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FLD_AUD_DST_PK_MODE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w9, w9, w0
Lloh26:
	adrp	x10, _FLD_AUD_DST_ENABLE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _FLD_AUD_DST_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh29:
	adrp	x10, _FLD_AUD_CLK_ENABLE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _FLD_AUD_CLK_ENABLE@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w1, w9, w10
	mov	x0, x8
	bl	_cx_write
Lloh32:
	adrp	x8, _AUD_A_INT_MSK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AUD_A_INT_MSK@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _FLD_AUD_DST_RISCI1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FLD_AUD_DST_RISCI1@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _FLD_AUD_DST_OF@GOTPAGE
Lloh39:
	ldr	x9, [x9, _FLD_AUD_DST_OF@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _FLD_AUD_DST_SYNC@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FLD_AUD_DST_SYNC@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh44:
	adrp	x9, _FLD_AUD_DST_OPC_ERR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FLD_AUD_DST_OPC_ERR@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_cx_write
Lloh47:
	adrp	x8, _AUD_A_INT_STAT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AUD_A_INT_STAT@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_cx_write
Lloh50:
	adrp	x8, _PCI_INT_MSK@GOTPAGE
Lloh51:
	ldr	x8, [x8, _PCI_INT_MSK@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _PCI_MSK_AUD_INT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _PCI_MSK_AUD_INT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_set
	ldr	w0, [x21]
	bl	_cx_read
	ldr	w8, [x21]
	ldr	w9, [x22]
	ldr	w10, [x23]
	orr	w9, w9, w0
	orr	w1, w9, w10
	mov	x0, x8
	bl	_cx_set
	mov	w0, #100
	bl	_mdelay
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cx25821_sram_channels,8,3      ; @cx25821_sram_channels
	.comm	_AUDIO_SRAM_CHANNEL,8,3         ; @AUDIO_SRAM_CHANNEL
	.comm	_AUD_INT_DMA_CTL,4,2            ; @AUD_INT_DMA_CTL
	.comm	_FLD_AUD_DST_A_RISC_EN,4,2      ; @FLD_AUD_DST_A_RISC_EN
	.comm	_FLD_AUD_DST_A_FIFO_EN,4,2      ; @FLD_AUD_DST_A_FIFO_EN
	.comm	_AUD_A_LNGTH,4,2                ; @AUD_A_LNGTH
	.comm	_AUD_A_GPCNT_CTL,4,2            ; @AUD_A_GPCNT_CTL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ; @GP_COUNT_CONTROL_RESET
	.comm	_AUD_A_CFG,4,2                  ; @AUD_A_CFG
	.comm	_FLD_AUD_DST_PK_MODE,4,2        ; @FLD_AUD_DST_PK_MODE
	.comm	_FLD_AUD_DST_ENABLE,4,2         ; @FLD_AUD_DST_ENABLE
	.comm	_FLD_AUD_CLK_ENABLE,4,2         ; @FLD_AUD_CLK_ENABLE
	.comm	_AUD_A_INT_MSK,4,2              ; @AUD_A_INT_MSK
	.comm	_FLD_AUD_DST_RISCI1,4,2         ; @FLD_AUD_DST_RISCI1
	.comm	_FLD_AUD_DST_OF,4,2             ; @FLD_AUD_DST_OF
	.comm	_FLD_AUD_DST_SYNC,4,2           ; @FLD_AUD_DST_SYNC
	.comm	_FLD_AUD_DST_OPC_ERR,4,2        ; @FLD_AUD_DST_OPC_ERR
	.comm	_AUD_A_INT_STAT,4,2             ; @AUD_A_INT_STAT
	.comm	_PCI_INT_MSK,4,2                ; @PCI_INT_MSK
	.comm	_PCI_MSK_AUD_INT,4,2            ; @PCI_MSK_AUD_INT
	.no_dead_strip	__cx25821_start_audio_dma
.subsections_via_symbols
