	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _cx88_start_audio_dma
__cx88_start_audio_dma:                 ## @_cx88_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r12
	movq	_cx88_sram_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_SRAM_CH25@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	(%rcx,%r14,8), %rbx
	movq	_MO_AUD_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_clear
	movq	8(%r15), %rdi
	movl	(%r12), %edx
	movl	4(%r12), %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_cx88_sram_channel_setup
	movq	_MO_AUDD_LNGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_cx_write
	movq	_MO_AUDD_GPCNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP_COUNT_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx_write
	leaq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	(%r12), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	addq	$8, %rdi
	callq	_cx_read
	sarl	%eax
	movl	(%r15), %r8d
	movl	(%r12), %r9d
	imull	%r8d, %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_dprintk
	movq	_AUD_INT_OPC_ERR@GOTPCREL(%rip), %rax
	movq	_AUD_INT_DN_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MO_AUD_INTMSK@GOTPCREL(%rip), %rax
	movq	_AUD_INT_DN_RISCI2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_AUD_INT_DN_RISCI1@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_cx_write
	movq	_MO_AUD_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_cx_write
	movq	_MO_PCI_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movq	_PCI_INT_AUDINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_cx_set
	movq	_MO_DEV_CNTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_cx_set
	movq	_MO_AUD_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_set
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cx88_sram_channel_dump
LBB0_2:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx88_sram_channels,8,3         ## @cx88_sram_channels
	.comm	_SRAM_CH25,8,3                  ## @SRAM_CH25
	.comm	_MO_AUD_DMACNTRL,4,2            ## @MO_AUD_DMACNTRL
	.comm	_MO_AUDD_LNGTH,4,2              ## @MO_AUDD_LNGTH
	.comm	_MO_AUDD_GPCNTRL,4,2            ## @MO_AUDD_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ## @GP_COUNT_CONTROL_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d byte buffer\n"

	.comm	_MO_AUD_INTMSK,4,2              ## @MO_AUD_INTMSK
	.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_RISCI2,4,2          ## @AUD_INT_DN_RISCI2
	.comm	_AUD_INT_DN_RISCI1,4,2          ## @AUD_INT_DN_RISCI1
	.comm	_MO_AUD_INTSTAT,4,2             ## @MO_AUD_INTSTAT
	.comm	_MO_PCI_INTMSK,4,2              ## @MO_PCI_INTMSK
	.comm	_PCI_INT_AUDINT,4,2             ## @PCI_INT_AUDINT
	.comm	_MO_DEV_CNTRL2,4,2              ## @MO_DEV_CNTRL2
	.comm	_debug,8,3                      ## @debug
	.no_dead_strip	__cx88_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 _cx88_start_audio_dma
__cx88_start_audio_dma:                 ; @_cx88_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	x23, [x0, #24]
Lloh0:
	adrp	x8, _cx88_sram_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx88_sram_channels@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SRAM_CH25@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SRAM_CH25@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #3
Lloh6:
	adrp	x22, _MO_AUD_DMACNTRL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MO_AUD_DMACNTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #17
	bl	_cx_clear
	ldr	x0, [x19, #8]
	ldp	w2, w3, [x23]
	mov	x1, x20
	bl	_cx88_sram_channel_setup
Lloh8:
	adrp	x8, _MO_AUDD_LNGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MO_AUDD_LNGTH@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_cx_write
Lloh11:
	adrp	x8, _MO_AUDD_GPCNTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MO_AUDD_GPCNTRL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_cx_write
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	ldr	w21, [x23]
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_cx_read
	asr	w3, w0, #1
	ldr	w4, [x19]
	ldr	w8, [x23]
	mul	w5, w8, w4
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_dprintk
Lloh19:
	adrp	x8, _MO_AUD_INTMSK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MO_AUD_INTMSK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _AUD_INT_OPC_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AUD_INT_OPC_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _AUD_INT_DN_SYNC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AUD_INT_DN_SYNC@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _AUD_INT_DN_RISCI2@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AUD_INT_DN_RISCI2@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _AUD_INT_DN_RISCI1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AUD_INT_DN_RISCI1@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_cx_write
Lloh34:
	adrp	x8, _MO_AUD_INTSTAT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MO_AUD_INTSTAT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_cx_write
Lloh37:
	adrp	x8, _MO_PCI_INTMSK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MO_PCI_INTMSK@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _PCI_INT_AUDINT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PCI_INT_AUDINT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_set
Lloh43:
	adrp	x8, _MO_DEV_CNTRL2@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MO_DEV_CNTRL2@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	mov	w1, #32
	bl	_cx_set
	ldr	w0, [x22]
	mov	w1, #17
	bl	_cx_set
Lloh46:
	adrp	x8, _debug@GOTPAGE
Lloh47:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_cx88_sram_channel_dump
LBB0_2:
	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	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH25,8,3                  ; @SRAM_CH25
	.comm	_MO_AUD_DMACNTRL,4,2            ; @MO_AUD_DMACNTRL
	.comm	_MO_AUDD_LNGTH,4,2              ; @MO_AUDD_LNGTH
	.comm	_MO_AUDD_GPCNTRL,4,2            ; @MO_AUDD_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ; @GP_COUNT_CONTROL_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Start audio DMA, %d B/line, %d lines/FIFO, %d periods, %d byte buffer\n"

	.comm	_MO_AUD_INTMSK,4,2              ; @MO_AUD_INTMSK
	.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_RISCI2,4,2          ; @AUD_INT_DN_RISCI2
	.comm	_AUD_INT_DN_RISCI1,4,2          ; @AUD_INT_DN_RISCI1
	.comm	_MO_AUD_INTSTAT,4,2             ; @MO_AUD_INTSTAT
	.comm	_MO_PCI_INTMSK,4,2              ; @MO_PCI_INTMSK
	.comm	_PCI_INT_AUDINT,4,2             ; @PCI_INT_AUDINT
	.comm	_MO_DEV_CNTRL2,4,2              ; @MO_DEV_CNTRL2
	.comm	_debug,8,3                      ; @debug
	.no_dead_strip	__cx88_start_audio_dma
.subsections_via_symbols
