	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10codec_start
_a10codec_start:                        ## @a10codec_start
	.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), %rax
	movq	24(%rdi), %r12
	movq	$0, 16(%rdi)
	movq	_PCMDIR_PLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOC
	movq	_DAC_FIFOC_FIFO_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_WRITE
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOS
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_READ
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_CODEC_WRITE
	movq	(%r12), %rax
	movq	(%r14), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_a10codec_dmaconfig
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOC
	movl	%eax, %r15d
	movl	8(%r14), %edi
	callq	_AFMT_CHANNEL
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_DAC_FIFOC_MONO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_a10codec_fs
	movq	_DAC_FIFOC_FS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_FIFO_MODE_16_15_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DAC_FIFOC_FIFO_MODE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_DRQ_CLR_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_DAC_FIFOC_DRQ_CLR_CNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_DAC_FIFOC_TX_TRIG_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_TX_TRIG_LEVEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	%cl, %edx
	orl	%eax, %esi
	orl	%ebx, %esi
	orl	%edi, %edx
	orl	%esi, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_CODEC_WRITE
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOC
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_READ
	movl	%eax, %ebx
	movq	_DAC_FIFOC_DRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_AC_DAC_FIFOC
	jmp	LBB0_7
LBB0_4:
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOC
	movq	_ADC_FIFOC_FIFO_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_WRITE
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOS
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_READ
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_CODEC_WRITE
	movq	(%r12), %rax
	movq	(%r14), %rdx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%r14, %rdi
	callq	_a10codec_dmaconfig
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOC
	movl	%eax, %r15d
	movq	_ADC_FIFOC_EN_AD@GOTPCREL(%rip), %rax
	movq	_ADC_FIFOC_RX_FIFO_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	8(%r14), %edi
	callq	_AFMT_CHANNEL
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ADC_FIFOC_MONO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movq	%r14, %rdi
	callq	_a10codec_fs
	movq	_ADC_FIFOC_FS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_RX_TRIG_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADC_FIFOC_RX_TRIG_LEVEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%ebx, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_CODEC_WRITE
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOC
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CODEC_READ
	movl	%eax, %ebx
	movq	_ADC_FIFOC_DRQ_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_AC_ADC_FIFOC
LBB0_7:
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_CODEC_WRITE
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_a10codec_transfer              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCMDIR_PLAY,8,3                ## @PCMDIR_PLAY
	.comm	_DAC_FIFOC_FIFO_FLUSH,4,2       ## @DAC_FIFOC_FIFO_FLUSH
	.comm	_DAC_FIFOC_MONO_EN,4,2          ## @DAC_FIFOC_MONO_EN
	.comm	_DAC_FIFOC_FS_SHIFT,4,2         ## @DAC_FIFOC_FS_SHIFT
	.comm	_FIFO_MODE_16_15_0,4,2          ## @FIFO_MODE_16_15_0
	.comm	_DAC_FIFOC_FIFO_MODE_SHIFT,4,2  ## @DAC_FIFOC_FIFO_MODE_SHIFT
	.comm	_DRQ_CLR_CNT,4,2                ## @DRQ_CLR_CNT
	.comm	_DAC_FIFOC_DRQ_CLR_CNT_SHIFT,4,2 ## @DAC_FIFOC_DRQ_CLR_CNT_SHIFT
	.comm	_TX_TRIG_LEVEL,4,2              ## @TX_TRIG_LEVEL
	.comm	_DAC_FIFOC_TX_TRIG_LEVEL_SHIFT,4,2 ## @DAC_FIFOC_TX_TRIG_LEVEL_SHIFT
	.comm	_DAC_FIFOC_DRQ_EN,4,2           ## @DAC_FIFOC_DRQ_EN
	.comm	_ADC_FIFOC_FIFO_FLUSH,4,2       ## @ADC_FIFOC_FIFO_FLUSH
	.comm	_ADC_FIFOC_EN_AD,4,2            ## @ADC_FIFOC_EN_AD
	.comm	_ADC_FIFOC_RX_FIFO_MODE,4,2     ## @ADC_FIFOC_RX_FIFO_MODE
	.comm	_ADC_FIFOC_MONO_EN,4,2          ## @ADC_FIFOC_MONO_EN
	.comm	_ADC_FIFOC_FS_SHIFT,4,2         ## @ADC_FIFOC_FS_SHIFT
	.comm	_RX_TRIG_LEVEL,4,2              ## @RX_TRIG_LEVEL
	.comm	_ADC_FIFOC_RX_TRIG_LEVEL_SHIFT,4,2 ## @ADC_FIFOC_RX_TRIG_LEVEL_SHIFT
	.comm	_ADC_FIFOC_DRQ_EN,4,2           ## @ADC_FIFOC_DRQ_EN
	.no_dead_strip	_a10codec_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10codec_start
_a10codec_start:                        ; @a10codec_start
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	str	xzr, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCMDIR_PLAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCMDIR_PLAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_AC_DAC_FIFOC
	mov	x1, x0
Lloh3:
	adrp	x8, _DAC_FIFOC_FIFO_FLUSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DAC_FIFOC_FIFO_FLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_CODEC_WRITE
	mov	x0, x20
	bl	_AC_DAC_FIFOS
	mov	x21, x0
	mov	x0, x20
	bl	_AC_DAC_FIFOS
	mov	x1, x0
	mov	x0, x20
	bl	_CODEC_READ
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CODEC_WRITE
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x2, [x19]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_a10codec_dmaconfig
	mov	x0, x20
	bl	_AC_DAC_FIFOC
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_AFMT_CHANNEL
Lloh6:
	adrp	x8, _DAC_FIFOC_MONO_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DAC_FIFOC_MONO_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w22, w8, wzr, eq
	mov	x0, x19
	bl	_a10codec_fs
Lloh9:
	adrp	x8, _DAC_FIFOC_FS_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DAC_FIFOC_FS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w8, w22
Lloh12:
	adrp	x9, _FIFO_MODE_16_15_0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FIFO_MODE_16_15_0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _DAC_FIFOC_FIFO_MODE_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DAC_FIFOC_FIFO_MODE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _DRQ_CLR_CNT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DRQ_CLR_CNT@GOTPAGEOFF]
Lloh20:
	adrp	x10, _DAC_FIFOC_DRQ_CLR_CNT_SHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DAC_FIFOC_DRQ_CLR_CNT_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _TX_TRIG_LEVEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TX_TRIG_LEVEL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _DAC_FIFOC_TX_TRIG_LEVEL_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _DAC_FIFOC_TX_TRIG_LEVEL_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	bl	_CODEC_WRITE
	mov	x0, x20
	bl	_AC_DAC_FIFOC
	mov	x1, x0
	mov	x0, x20
	bl	_CODEC_READ
Lloh30:
	adrp	x8, _DAC_FIFOC_DRQ_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DAC_FIFOC_DRQ_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w21, w8, w0
	mov	x0, x20
	bl	_AC_DAC_FIFOC
	b	LBB0_3
LBB0_2:
	bl	_AC_ADC_FIFOC
	mov	x1, x0
Lloh33:
	adrp	x8, _ADC_FIFOC_FIFO_FLUSH@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADC_FIFOC_FIFO_FLUSH@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_CODEC_WRITE
	mov	x0, x20
	bl	_AC_ADC_FIFOS
	mov	x21, x0
	mov	x0, x20
	bl	_AC_ADC_FIFOS
	mov	x1, x0
	mov	x0, x20
	bl	_CODEC_READ
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CODEC_WRITE
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x2, [x19]
	mov	x0, x20
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_a10codec_dmaconfig
	mov	x0, x20
	bl	_AC_ADC_FIFOC
	mov	x21, x0
Lloh36:
	adrp	x8, _ADC_FIFOC_EN_AD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ADC_FIFOC_EN_AD@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _ADC_FIFOC_RX_FIFO_MODE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ADC_FIFOC_RX_FIFO_MODE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w0, [x19, #8]
	bl	_AFMT_CHANNEL
Lloh42:
	adrp	x8, _ADC_FIFOC_MONO_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADC_FIFOC_MONO_EN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w8, w8, wzr, eq
	orr	w22, w22, w8
	mov	x0, x19
	bl	_a10codec_fs
Lloh45:
	adrp	x8, _ADC_FIFOC_FS_SHIFT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ADC_FIFOC_FS_SHIFT@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w22, w8
Lloh48:
	adrp	x9, _RX_TRIG_LEVEL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _RX_TRIG_LEVEL@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	adrp	x10, _ADC_FIFOC_RX_TRIG_LEVEL_SHIFT@GOTPAGE
Lloh52:
	ldr	x10, [x10, _ADC_FIFOC_RX_TRIG_LEVEL_SHIFT@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w8, w9
	mov	x0, x20
	mov	x1, x21
	bl	_CODEC_WRITE
	mov	x0, x20
	bl	_AC_ADC_FIFOC
	mov	x1, x0
	mov	x0, x20
	bl	_CODEC_READ
Lloh54:
	adrp	x8, _ADC_FIFOC_DRQ_EN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ADC_FIFOC_DRQ_EN@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	orr	w21, w8, w0
	mov	x0, x20
	bl	_AC_ADC_FIFOC
LBB0_3:
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_CODEC_WRITE
	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	_a10codec_transfer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_PCMDIR_PLAY,8,3                ; @PCMDIR_PLAY
	.comm	_DAC_FIFOC_FIFO_FLUSH,4,2       ; @DAC_FIFOC_FIFO_FLUSH
	.comm	_DAC_FIFOC_MONO_EN,4,2          ; @DAC_FIFOC_MONO_EN
	.comm	_DAC_FIFOC_FS_SHIFT,4,2         ; @DAC_FIFOC_FS_SHIFT
	.comm	_FIFO_MODE_16_15_0,4,2          ; @FIFO_MODE_16_15_0
	.comm	_DAC_FIFOC_FIFO_MODE_SHIFT,4,2  ; @DAC_FIFOC_FIFO_MODE_SHIFT
	.comm	_DRQ_CLR_CNT,4,2                ; @DRQ_CLR_CNT
	.comm	_DAC_FIFOC_DRQ_CLR_CNT_SHIFT,4,2 ; @DAC_FIFOC_DRQ_CLR_CNT_SHIFT
	.comm	_TX_TRIG_LEVEL,4,2              ; @TX_TRIG_LEVEL
	.comm	_DAC_FIFOC_TX_TRIG_LEVEL_SHIFT,4,2 ; @DAC_FIFOC_TX_TRIG_LEVEL_SHIFT
	.comm	_DAC_FIFOC_DRQ_EN,4,2           ; @DAC_FIFOC_DRQ_EN
	.comm	_ADC_FIFOC_FIFO_FLUSH,4,2       ; @ADC_FIFOC_FIFO_FLUSH
	.comm	_ADC_FIFOC_EN_AD,4,2            ; @ADC_FIFOC_EN_AD
	.comm	_ADC_FIFOC_RX_FIFO_MODE,4,2     ; @ADC_FIFOC_RX_FIFO_MODE
	.comm	_ADC_FIFOC_MONO_EN,4,2          ; @ADC_FIFOC_MONO_EN
	.comm	_ADC_FIFOC_FS_SHIFT,4,2         ; @ADC_FIFOC_FS_SHIFT
	.comm	_RX_TRIG_LEVEL,4,2              ; @RX_TRIG_LEVEL
	.comm	_ADC_FIFOC_RX_TRIG_LEVEL_SHIFT,4,2 ; @ADC_FIFOC_RX_TRIG_LEVEL_SHIFT
	.comm	_ADC_FIFOC_DRQ_EN,4,2           ; @ADC_FIFOC_DRQ_EN
	.no_dead_strip	_a10codec_start
.subsections_via_symbols
