	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_audio_config_i2s
_cdn_dp_audio_config_i2s:               ## @cdn_dp_audio_config_i2s
	.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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	$1, %r13d
	cmpl	$4, %eax
	je	LBB0_3
## %bb.1:
	movl	$15, %ecx
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$1, 8(%rcx)
	setne	%al
	leal	(%rax,%rax), %r13d
	addl	$2, %r13d
	movl	$1, %ecx
	jmp	LBB0_4
LBB0_3:
	movl	$3, %ecx
LBB0_4:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_SPDIF_CTRL_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	%rax, %rbx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movq	_SYNC_WR_TO_CH_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FIFO_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movq	%rbx, %r15
	callq	_writel
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	callq	_MAX_NUM_CH
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_NUM_OF_I2S_PORTS
	orl	%eax, %ebx
	movq	_AUDIO_TYPE_LPCM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_CFG_SUB_PCKT_NUM
	orl	%eax, %ebx
	movq	_SMPL2PKT_CNFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	(%r12), %edi
	movl	4(%r12), %eax
	xorl	%ebx, %ebx
	cmpl	$24, %eax
	setne	%bl
	shll	$9, %ebx
	addl	$512, %ebx                      ## imm = 0x200
	cmpl	$16, %eax
	cmovel	%r14d, %ebx
	callq	_AUDIO_CH_NUM
	movl	%eax, %r15d
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_I2S_DEC_PORT_EN
	movl	%eax, %r13d
	orl	%r15d, %r13d
	orl	%ebx, %r13d
	movq	_TRANS_SMPL_WIDTH_32@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_AUDIO_SRC_CNFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	%r12, %rdx
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$2097664, %r13d                 ## imm = 0x200200
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %ebx
	orl	%r14d, %ebx
	orl	%r13d, %ebx
	orl	$65536, %ebx                    ## imm = 0x10000
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movl	%r12d, %edi
	callq	_STTS_BIT_CH
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writel
	incl	%r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	sarl	%eax
	addl	$131072, %r15d                  ## imm = 0x20000
	addl	$32, %r14d
	movl	%ebx, %r13d
	cmpl	%eax, %r12d
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rdx), %eax
	cmpl	$16, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$24, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$11537152, %r13d                ## imm = 0xB00B00
	jmp	LBB0_11
LBB0_5:
	movl	%r13d, %ebx
LBB0_12:
	movl	8(%rdx), %eax
	cmpl	$88199, %eax                    ## imm = 0x15887
	jle	LBB0_13
## %bb.18:
	cmpl	$176399, %eax                   ## imm = 0x2B10F
	jg	LBB0_22
## %bb.19:
	cmpl	$88200, %eax                    ## imm = 0x15888
	je	LBB0_26
## %bb.20:
	cmpl	$96000, %eax                    ## imm = 0x17700
	jne	LBB0_29
## %bb.21:
	movl	$5, %ebx
	movl	$10, %edi
	jmp	LBB0_28
LBB0_13:
	cmpl	$32000, %eax                    ## imm = 0x7D00
	je	LBB0_14
## %bb.15:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_25
## %bb.16:
	cmpl	$48000, %eax                    ## imm = 0xBB80
	jne	LBB0_29
## %bb.17:
	movl	$13, %ebx
	movl	$2, %edi
	jmp	LBB0_28
LBB0_22:
	cmpl	$176400, %eax                   ## imm = 0x2B110
	je	LBB0_27
## %bb.23:
	cmpl	$192000, %eax                   ## imm = 0x2EE00
	jne	LBB0_29
## %bb.24:
	movl	$1, %ebx
	movl	$14, %edi
	jmp	LBB0_28
LBB0_26:
	movl	$7, %ebx
	movl	$8, %edi
	jmp	LBB0_28
LBB0_14:
	movl	$12, %ebx
	movl	$3, %edi
	jmp	LBB0_28
LBB0_27:
	movl	$3, %ebx
	movl	$12, %edi
	jmp	LBB0_28
LBB0_25:
	movl	$15, %ebx
	xorl	%edi, %edi
LBB0_28:
	callq	_SAMPLING_FREQ
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ORIGINAL_SAMP_FREQ
	movl	%eax, %ebx
	orl	%r15d, %ebx
LBB0_29:
	orl	$4, %ebx
	movq	_COM_CH_STTS_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_SMPL2PKT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMPL2PKT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_I2S_DEC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AUDIO_SRC_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPDIF_CTRL_ADDR,8,3            ## @SPDIF_CTRL_ADDR
	.comm	_SYNC_WR_TO_CH_ZERO,4,2         ## @SYNC_WR_TO_CH_ZERO
	.comm	_FIFO_CNTL,8,3                  ## @FIFO_CNTL
	.comm	_AUDIO_TYPE_LPCM,4,2            ## @AUDIO_TYPE_LPCM
	.comm	_SMPL2PKT_CNFG,8,3              ## @SMPL2PKT_CNFG
	.comm	_TRANS_SMPL_WIDTH_32,4,2        ## @TRANS_SMPL_WIDTH_32
	.comm	_AUDIO_SRC_CNFG,8,3             ## @AUDIO_SRC_CNFG
	.comm	_COM_CH_STTS_BITS,8,3           ## @COM_CH_STTS_BITS
	.comm	_SMPL2PKT_EN,4,2                ## @SMPL2PKT_EN
	.comm	_SMPL2PKT_CNTL,8,3              ## @SMPL2PKT_CNTL
	.comm	_I2S_DEC_START,4,2              ## @I2S_DEC_START
	.comm	_AUDIO_SRC_CNTL,8,3             ## @AUDIO_SRC_CNTL
	.no_dead_strip	_cdn_dp_audio_config_i2s
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_audio_config_i2s
_cdn_dp_audio_config_i2s:               ; @cdn_dp_audio_config_i2s
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #8]
	mov	w9, #4
	mov	w10, #2
	cmp	w8, #1
	csel	w22, w10, w9, eq
	mov	w21, #1
	b	LBB0_6
LBB0_3:
	mov	w21, #3
	b	LBB0_5
LBB0_4:
	mov	w21, #15
LBB0_5:
	mov	w22, #1
LBB0_6:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SPDIF_CTRL_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPDIF_CTRL_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh3:
	adrp	x8, _SYNC_WR_TO_CH_ZERO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYNC_WR_TO_CH_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _FIFO_CNTL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIFO_CNTL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x20]
	bl	_MAX_NUM_CH
	mov	x23, x0
	ldr	w0, [x20]
	bl	_NUM_OF_I2S_PORTS
	orr	w8, w0, w23
Lloh9:
	adrp	x9, _AUDIO_TYPE_LPCM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AUDIO_TYPE_LPCM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x22
	bl	_CFG_SUB_PCKT_NUM
	orr	w0, w23, w0
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _SMPL2PKT_CNFG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SMPL2PKT_CNFG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w8, #1024
	mov	w9, #512
	ldp	w0, w10, [x20]
	cmp	w10, #24
	csel	w8, w9, w8, eq
	cmp	w10, #16
	csel	w22, wzr, w8, eq
	bl	_AUDIO_CH_NUM
	orr	w22, w22, w0
	mov	x0, x21
	bl	_I2S_DEC_PORT_EN
	orr	w8, w22, w0
Lloh15:
	adrp	x9, _TRANS_SMPL_WIDTH_32@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TRANS_SMPL_WIDTH_32@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _AUDIO_SRC_CNFG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AUDIO_SRC_CNFG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w23, #0
	mov	w24, #0
	mov	w22, #0
	mov	w25, #512
	movk	w25, #32, lsl #16
	mov	w26, #2816
	movk	w26, #176, lsl #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #24
	csel	w9, w21, w26, ne
	cmp	w8, #16
	csel	w8, w25, w9, eq
	orr	w9, w24, w23
	orr	w8, w9, w8
	orr	w21, w8, #0x10000
	ldr	x27, [x19]
	mov	x0, x22
	bl	_STTS_BIT_CH
	add	x1, x0, x27
	mov	x0, x21
	bl	_writel
	add	w22, w22, #1
	ldr	w8, [x20]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	add	w24, w24, #32, lsl #12          ; =131072
	add	w23, w23, #32
	cmp	w22, w8, asr #1
	b.lt	LBB0_8
LBB0_9:
	ldr	w8, [x20, #8]
	mov	w9, #22663
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.le	LBB0_14
; %bb.10:
	mov	w9, #45327
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.gt	LBB0_18
; %bb.11:
	mov	w9, #22664
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.eq	LBB0_21
; %bb.12:
	mov	w9, #30464
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.13:
	mov	w20, #5
	mov	w0, #10
	b	LBB0_25
LBB0_14:
	mov	w9, #32000
	cmp	w8, w9
	b.eq	LBB0_22
; %bb.15:
	mov	w9, #44100
	cmp	w8, w9
	b.eq	LBB0_24
; %bb.16:
	mov	w9, #48000
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.17:
	mov	w20, #13
	mov	w0, #2
	b	LBB0_25
LBB0_18:
	mov	w9, #45328
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.eq	LBB0_23
; %bb.19:
	mov	w9, #60928
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.20:
	mov	w20, #1
	mov	w0, #14
	b	LBB0_25
LBB0_21:
	mov	w20, #7
	mov	w0, #8
	b	LBB0_25
LBB0_22:
	mov	w20, #12
	mov	w0, #3
	b	LBB0_25
LBB0_23:
	mov	w20, #3
	mov	w0, #12
	b	LBB0_25
LBB0_24:
	mov	w0, #0
	mov	w20, #15
LBB0_25:
	bl	_SAMPLING_FREQ
	mov	x21, x0
	mov	x0, x20
	bl	_ORIGINAL_SAMP_FREQ
	orr	w21, w0, w21
LBB0_26:
	orr	w0, w21, #0x4
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _COM_CH_STTS_BITS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _COM_CH_STTS_BITS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh24:
	adrp	x8, _SMPL2PKT_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMPL2PKT_EN@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _SMPL2PKT_CNTL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SMPL2PKT_CNTL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh30:
	adrp	x8, _I2S_DEC_START@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I2S_DEC_START@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh33:
	adrp	x9, _AUDIO_SRC_CNTL@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AUDIO_SRC_CNTL@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SPDIF_CTRL_ADDR,8,3            ; @SPDIF_CTRL_ADDR
	.comm	_SYNC_WR_TO_CH_ZERO,4,2         ; @SYNC_WR_TO_CH_ZERO
	.comm	_FIFO_CNTL,8,3                  ; @FIFO_CNTL
	.comm	_AUDIO_TYPE_LPCM,4,2            ; @AUDIO_TYPE_LPCM
	.comm	_SMPL2PKT_CNFG,8,3              ; @SMPL2PKT_CNFG
	.comm	_TRANS_SMPL_WIDTH_32,4,2        ; @TRANS_SMPL_WIDTH_32
	.comm	_AUDIO_SRC_CNFG,8,3             ; @AUDIO_SRC_CNFG
	.comm	_COM_CH_STTS_BITS,8,3           ; @COM_CH_STTS_BITS
	.comm	_SMPL2PKT_EN,4,2                ; @SMPL2PKT_EN
	.comm	_SMPL2PKT_CNTL,8,3              ; @SMPL2PKT_CNTL
	.comm	_I2S_DEC_START,4,2              ; @I2S_DEC_START
	.comm	_AUDIO_SRC_CNTL,8,3             ; @AUDIO_SRC_CNTL
	.no_dead_strip	_cdn_dp_audio_config_i2s
.subsections_via_symbols
