	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_start_audio_dma           ## -- Begin function cx88_start_audio_dma
	.p2align	4, 0x90
_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_cx88_sram_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SRAM_CH25@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_SRAM_CH27@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	movq	_AUD_RDS_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MO_AUD_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	testb	$16, %al
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r13d
	leal	3(%r14), %ebx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ebx
	sarl	$2, %ebx
	movq	(%r12), %rsi
	shlq	$2, %rsi
	movq	_cx88_sram_channels@GOTPCREL(%rip), %r14
	addq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH26@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH27@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_MO_AUDD_LNGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_cx_write
	movq	_MO_AUDR_LNGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_cx_write
	movq	_MO_AUD_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$7, %esi
	callq	_cx_write
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %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	_SRAM_CH27,8,3                  ## @SRAM_CH27
	.comm	_AUD_RDS_LINES,4,2              ## @AUD_RDS_LINES
	.comm	_MO_AUD_DMACNTRL,4,2            ## @MO_AUD_DMACNTRL
	.comm	_SRAM_CH26,8,3                  ## @SRAM_CH26
	.comm	_MO_AUDD_LNGTH,4,2              ## @MO_AUDD_LNGTH
	.comm	_MO_AUDR_LNGTH,4,2              ## @MO_AUDR_LNGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_start_audio_dma           ; -- Begin function cx88_start_audio_dma
	.p2align	2
_cx88_start_audio_dma:                  ; @cx88_start_audio_dma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _cx88_sram_channels@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cx88_sram_channels@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x21, _SRAM_CH25@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SRAM_CH25@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w20, [x8, x9, lsl #2]
Lloh4:
	adrp	x24, _SRAM_CH27@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SRAM_CH27@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w25, [x8, x9, lsl #2]
Lloh6:
	adrp	x8, _AUD_RDS_LINES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUD_RDS_LINES@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
Lloh9:
	adrp	x22, _MO_AUD_DMACNTRL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MO_AUD_DMACNTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cx_read
	tbnz	w0, #4, LBB0_2
; %bb.1:
	add	w8, w20, #3
	cmp	w20, #0
	csel	w8, w8, w20, lt
	asr	w20, w8, #2
	ldr	x8, [x23]
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
	sdiv	w21, w25, w26
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh11:
	adrp	x9, _SRAM_CH26@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SRAM_CH26@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
	ldr	x9, [x24]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x21
	mov	w3, #0
	bl	_cx88_sram_channel_setup
Lloh14:
	adrp	x8, _MO_AUDD_LNGTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MO_AUDD_LNGTH@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_cx_write
Lloh17:
	adrp	x8, _MO_AUDR_LNGTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MO_AUDR_LNGTH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_cx_write
	ldr	w0, [x22]
	mov	w1, #7
	bl	_cx_write
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH25,8,3                  ; @SRAM_CH25
	.comm	_SRAM_CH27,8,3                  ; @SRAM_CH27
	.comm	_AUD_RDS_LINES,4,2              ; @AUD_RDS_LINES
	.comm	_MO_AUD_DMACNTRL,4,2            ; @MO_AUD_DMACNTRL
	.comm	_SRAM_CH26,8,3                  ; @SRAM_CH26
	.comm	_MO_AUDD_LNGTH,4,2              ; @MO_AUDD_LNGTH
	.comm	_MO_AUDR_LNGTH,4,2              ; @MO_AUDR_LNGTH
.subsections_via_symbols
