	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_config_video            ## -- Begin function cdn_dp_config_video
	.p2align	4, 0x90
_cdn_dp_config_video:                   ## @cdn_dp_config_video
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_TU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_YCBCR_4_2_2@GOTPCREL(%rip), %rax
	movl	48(%rdi), %ecx
	movl	52(%rdi), %edx
	leal	(%rdx,%rdx), %esi
	cmpl	(%rax), %ecx
	leal	(%rdx,%rdx,2), %eax
	cmovel	%esi, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%rdi), %rbx
	movq	_BND_HSYNC2VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIF_BYPASS_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.1:
	movq	_HSYNC2VSYNC_POL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.2:
	imulq	$274877907, %rbx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$38, %rcx
	addl	%eax, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%rcx,8), %r14d
	leal	2(%r12), %eax
	movl	12(%r13), %r15d
	imull	-48(%rbp), %r15d                ## 4-byte Folded Reload
	imull	%eax, %r15d
	movl	8(%r13), %esi
	imull	%r14d, %esi
	movl	%r15d, %edi
	callq	_do_div
	movl	%r15d, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_do_div
	cmpl	$62, %r12d
	jle	LBB0_3
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movl	12(%r13), %edx
	movl	(%r13), %edi
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	testl	%r14d, %r14d
	je	LBB0_38
LBB0_39:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_40:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	48(%r13), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	12(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	shll	$8, %ebx
	addl	$512, %ebx                      ## imm = 0x200
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	4(%r12), %eax
	movl	12(%r13), %r15d
	imull	-48(%rbp), %r15d                ## 4-byte Folded Reload
	imull	%eax, %r15d
	movl	8(%r13), %esi
	imull	%r14d, %esi
	movl	%r15d, %edi
	callq	_do_div
	movl	%r15d, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_do_div
	addl	$512, %ebx                      ## imm = 0x200
	addl	$2, %r12d
	cmpl	$62, %r12d
	jg	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r15d
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %ecx
	subl	%r15d, %ecx
	addl	$2, %ecx
	cmpl	$4, %ecx
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$850, %eax                      ## imm = 0x352
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$99, %eax
	jle	LBB0_8
## %bb.10:
	addl	%r15d, %ebx
	movq	_TU_CNT_RST_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_DP_FRAMER_TU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.11:
	leal	1(%r15), %edi
	imull	12(%r13), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div_u64
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%ecx, %eax
	imull	8(%r13), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	leal	8(,%r15,8), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_div_u64
                                        ## kill: def $eax killed $eax def $rax
	negl	%ebx
	addl	%eax, %ebx
	addl	$2, %ebx
	movl	$15, %edi
	callq	_DP_VC_TABLE
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_cdn_dp_reg_write
	movl	52(%r13), %eax
	addl	$-6, %eax
	cmpl	$10, %eax
	ja	LBB0_19
## %bb.12:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_BCS_6@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_BCS_8@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_BCS_10@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_BCS_12@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_BCS_16@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
LBB0_19:
	movl	48(%r13), %edx
	shll	$8, %edx
	addl	%ebx, %edx
	movq	_DP_FRAMER_PXL_REPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.20:
	movl	56(%r13), %eax
	movl	60(%r13), %edx
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	_DP_FRAMER_SP_HSP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	testl	%edx, %edx
	je	LBB0_24
## %bb.23:
	movq	_DP_FRAMER_SP_VSP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_24:
	orl	%eax, %edx
	movq	_DP_FRAMER_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.25:
	movl	16(%r13), %eax
	movl	24(%r13), %edx
	subl	20(%r13), %eax
	subl	28(%r13), %edx
	shll	$16, %eax
	orl	%eax, %edx
	movq	_DP_FRONT_BACK_PORCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	imull	20(%r13), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	_DP_BYTE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.27:
	movl	24(%r13), %eax
	movl	%eax, %edx
	subl	16(%r13), %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_MSA_HORIZONTAL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.28:
	movl	28(%r13), %eax
	subl	16(%r13), %eax
	movl	20(%r13), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	56(%r13), %edx
	shll	$15, %edx
	orl	%ecx, %edx
	movq	_MSA_HORIZONTAL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.29:
	movl	32(%r13), %eax
	movl	%eax, %edx
	subl	36(%r13), %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	_MSA_VERTICAL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.30:
	movl	40(%r13), %eax
	subl	36(%r13), %eax
	movl	44(%r13), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	60(%r13), %edx
	shll	$15, %edx
	orl	%ecx, %edx
	movq	_MSA_VERTICAL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.31:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_cdn_dp_get_msa_misc
	movq	_MSA_MISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.32:
	movq	_STREAM_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.33:
	movl	20(%r13), %edx
	movl	28(%r13), %eax
	subl	16(%r13), %eax
	shll	$16, %edx
	orl	%eax, %edx
	movq	_DP_HORIZONTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.34:
	movl	32(%r13), %edx
	subl	36(%r13), %edx
	shll	$16, %edx
	orl	44(%r13), %edx
	movq	_DP_VERTICAL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.35:
	movl	32(%r13), %edx
	movq	_DP_VERTICAL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cdn_dp_reg_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.36:
	movq	_DP_VB_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$2, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_cdn_dp_reg_write_bit
	movl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_39
LBB0_38:
	xorl	%r14d, %r14d
	jmp	LBB0_40
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_19
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_TU_SIZE,4,2                    ## @TU_SIZE
	.comm	_YCBCR_4_2_2,4,2                ## @YCBCR_4_2_2
	.comm	_BND_HSYNC2VSYNC,4,2            ## @BND_HSYNC2VSYNC
	.comm	_VIF_BYPASS_INTERLACE,4,2       ## @VIF_BYPASS_INTERLACE
	.comm	_HSYNC2VSYNC_POL_CTRL,4,2       ## @HSYNC2VSYNC_POL_CTRL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tu error, clk:%d, lanes:%d, rate:%d\n"

	.comm	_TU_CNT_RST_EN,4,2              ## @TU_CNT_RST_EN
	.comm	_DP_FRAMER_TU,4,2               ## @DP_FRAMER_TU
	.comm	_BCS_6,4,2                      ## @BCS_6
	.comm	_BCS_8,4,2                      ## @BCS_8
	.comm	_BCS_10,4,2                     ## @BCS_10
	.comm	_BCS_12,4,2                     ## @BCS_12
	.comm	_BCS_16,4,2                     ## @BCS_16
	.comm	_DP_FRAMER_PXL_REPR,4,2         ## @DP_FRAMER_PXL_REPR
	.comm	_DP_FRAMER_SP_HSP,4,2           ## @DP_FRAMER_SP_HSP
	.comm	_DP_FRAMER_SP_VSP,4,2           ## @DP_FRAMER_SP_VSP
	.comm	_DP_FRAMER_SP,4,2               ## @DP_FRAMER_SP
	.comm	_DP_FRONT_BACK_PORCH,4,2        ## @DP_FRONT_BACK_PORCH
	.comm	_DP_BYTE_COUNT,4,2              ## @DP_BYTE_COUNT
	.comm	_MSA_HORIZONTAL_0,4,2           ## @MSA_HORIZONTAL_0
	.comm	_MSA_HORIZONTAL_1,4,2           ## @MSA_HORIZONTAL_1
	.comm	_MSA_VERTICAL_0,4,2             ## @MSA_VERTICAL_0
	.comm	_MSA_VERTICAL_1,4,2             ## @MSA_VERTICAL_1
	.comm	_MSA_MISC,4,2                   ## @MSA_MISC
	.comm	_STREAM_CONFIG,4,2              ## @STREAM_CONFIG
	.comm	_DP_HORIZONTAL,4,2              ## @DP_HORIZONTAL
	.comm	_DP_VERTICAL_0,4,2              ## @DP_VERTICAL_0
	.comm	_DP_VERTICAL_1,4,2              ## @DP_VERTICAL_1
	.comm	_DP_VB_ID,4,2                   ## @DP_VB_ID
L_.str.1:                               ## @.str.1
	.asciz	"config video failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdn_dp_config_video            ; -- Begin function cdn_dp_config_video
	.p2align	2
_cdn_dp_config_video:                   ; @cdn_dp_config_video
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	mov	x20, x0
	ldr	w8, [x20, #48]!
Lloh0:
	adrp	x9, _TU_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TU_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x9]
Lloh3:
	adrp	x9, _YCBCR_4_2_2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _YCBCR_4_2_2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x0, #52]
	lsl	w11, w10, #1
	add	w10, w11, w10
	cmp	w8, w9
	csel	w22, w11, w10, eq
	ldrsw	x21, [x0, #4]
Lloh6:
	adrp	x8, _BND_HSYNC2VSYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BND_HSYNC2VSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _VIF_BYPASS_INTERLACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIF_BYPASS_INTERLACE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh12:
	adrp	x8, _HSYNC2VSYNC_POL_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HSYNC2VSYNC_POL_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.2:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	mul	x8, x21, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w26, w8, w9
	lsl	w23, w26, #3
	add	w8, w25, #2
	ldp	w10, w9, [x19, #8]
	mul	w9, w9, w22
	mul	w24, w9, w8
	mul	w1, w23, w10
	mov	x0, x24
	bl	_do_div
	mov	x0, x24
	mov	w1, #1000
	bl	_do_div
	cmp	w25, #62
	b.le	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
	ldr	w0, [x19]
	ldp	w8, w2, [x19, #8]
	stp	x8, x26, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	cbz	w23, LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEV_ERROR
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	add	x21, x19, #12
	lsl	w8, w25, #8
	add	w27, w8, #512
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w25, #4
	ldp	w10, w9, [x19, #8]
	mul	w9, w9, w22
	mul	w24, w9, w8
	mul	w1, w23, w10
	mov	x0, x24
	bl	_do_div
	mov	x0, x24
	mov	w1, #1000
	bl	_do_div
	add	w27, w27, #512
	add	w25, w25, #2
	cmp	w25, #62
	b.gt	LBB0_3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, #2
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w25, w24
	add	w8, w8, #2
	cmp	w8, #4
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #850
	b.gt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #99
	b.le	LBB0_7
; %bb.12:
Lloh22:
	adrp	x8, _TU_CNT_RST_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TU_CNT_RST_EN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	add	w9, w24, w27
	orr	w2, w8, w9
Lloh25:
	adrp	x8, _DP_FRAMER_TU@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DP_FRAMER_TU@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.13:
	ldr	w8, [x19, #12]
	add	w23, w24, #1
	mul	w0, w8, w23
	mov	w1, #1000
	bl	_div_u64
	add	w8, w0, w26
	ldr	w9, [x19, #8]
	mul	w9, w9, w26
	lsl	w0, w23, #3
	sdiv	w23, w8, w9
	mov	x1, x22
	bl	_div_u64
	sub	w8, w0, w23
	add	w23, w8, #2
	mov	w0, #15
	bl	_DP_VC_TABLE
	mov	x1, x0
	mov	x0, x19
	mov	x2, x23
	bl	_cdn_dp_reg_write
	ldr	w8, [x19, #52]
	sub	w8, w8, #6
	cmp	w8, #10
	b.hi	LBB0_21
; %bb.14:
Lloh28:
	adrp	x9, lJTI0_0@PAGE
Lloh29:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
Lloh30:
	adrp	x8, _BCS_6@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BCS_6@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
Lloh32:
	adrp	x8, _BCS_8@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BCS_8@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
Lloh34:
	adrp	x8, _BCS_10@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BCS_10@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
Lloh36:
	adrp	x8, _BCS_12@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BCS_12@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh38:
	adrp	x8, _BCS_16@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BCS_16@GOTPAGEOFF]
LBB0_20:
	ldr	w23, [x8]
LBB0_21:
	ldr	w8, [x19, #48]
	add	w2, w23, w8, lsl #8
Lloh40:
	adrp	x8, _DP_FRAMER_PXL_REPR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DP_FRAMER_PXL_REPR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.22:
Lloh43:
	adrp	x8, _DP_FRAMER_SP_HSP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DP_FRAMER_SP_HSP@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #56]
	cmp	w9, #0
	csel	w8, wzr, w8, eq
Lloh46:
	adrp	x9, _DP_FRAMER_SP_VSP@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DP_FRAMER_SP_VSP@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
Lloh49:
	adrp	x8, _DP_FRAMER_SP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DP_FRAMER_SP@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.23:
	ldp	w8, w9, [x19, #16]
	sub	w8, w8, w9
	ldp	w9, w10, [x19, #24]
	sub	w9, w9, w10
	orr	w2, w9, w8, lsl #16
Lloh52:
	adrp	x8, _DP_FRONT_BACK_PORCH@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DP_FRONT_BACK_PORCH@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.24:
	ldr	w8, [x19, #20]
	mul	w8, w8, w22
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
Lloh55:
	adrp	x8, _DP_BYTE_COUNT@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DP_BYTE_COUNT@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.25:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	sub	w9, w8, w9
	orr	w2, w8, w9, lsl #16
Lloh58:
	adrp	x8, _MSA_HORIZONTAL_0@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MSA_HORIZONTAL_0@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.26:
	ldr	w8, [x19, #28]
	ldp	w9, w10, [x19, #16]
	sub	w8, w8, w9
	ldr	w9, [x19, #56]
	orr	w8, w8, w10, lsl #16
	orr	w2, w8, w9, lsl #15
Lloh61:
	adrp	x8, _MSA_HORIZONTAL_1@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MSA_HORIZONTAL_1@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.27:
	ldp	w8, w9, [x19, #32]
	sub	w9, w8, w9
	orr	w2, w8, w9, lsl #16
Lloh64:
	adrp	x8, _MSA_VERTICAL_0@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MSA_VERTICAL_0@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.28:
	ldp	w9, w8, [x19, #36]
	sub	w8, w8, w9
	ldr	w9, [x19, #44]
	ldr	w10, [x19, #60]
	orr	w8, w8, w9, lsl #16
	orr	w2, w8, w10, lsl #15
Lloh67:
	adrp	x8, _MSA_VERTICAL_1@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MSA_VERTICAL_1@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.29:
	mov	x0, x20
	mov	x1, x21
	bl	_cdn_dp_get_msa_misc
	mov	x2, x0
Lloh70:
	adrp	x8, _MSA_MISC@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MSA_MISC@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.30:
Lloh73:
	adrp	x8, _STREAM_CONFIG@GOTPAGE
Lloh74:
	ldr	x8, [x8, _STREAM_CONFIG@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.31:
	ldr	w8, [x19, #28]
	ldp	w9, w10, [x19, #16]
	sub	w8, w8, w9
	orr	w2, w8, w10, lsl #16
Lloh76:
	adrp	x8, _DP_HORIZONTAL@GOTPAGE
Lloh77:
	ldr	x8, [x8, _DP_HORIZONTAL@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.32:
	ldr	w8, [x19, #44]
	ldp	w9, w10, [x19, #32]
	sub	w9, w9, w10
	orr	w2, w8, w9, lsl #16
Lloh79:
	adrp	x8, _DP_VERTICAL_0@GOTPAGE
Lloh80:
	ldr	x8, [x8, _DP_VERTICAL_0@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.33:
	ldr	w2, [x19, #32]
Lloh82:
	adrp	x8, _DP_VERTICAL_1@GOTPAGE
Lloh83:
	ldr	x8, [x8, _DP_VERTICAL_1@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cdn_dp_reg_write
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.34:
Lloh85:
	adrp	x8, _DP_VB_ID@GOTPAGE
Lloh86:
	ldr	x8, [x8, _DP_VB_ID@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	w3, #1
	mov	w4, #0
	bl	_cdn_dp_reg_write_bit
	mov	x23, x0
	cbnz	w23, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
                                        ; -- End function
	.comm	_TU_SIZE,4,2                    ; @TU_SIZE
	.comm	_YCBCR_4_2_2,4,2                ; @YCBCR_4_2_2
	.comm	_BND_HSYNC2VSYNC,4,2            ; @BND_HSYNC2VSYNC
	.comm	_VIF_BYPASS_INTERLACE,4,2       ; @VIF_BYPASS_INTERLACE
	.comm	_HSYNC2VSYNC_POL_CTRL,4,2       ; @HSYNC2VSYNC_POL_CTRL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tu error, clk:%d, lanes:%d, rate:%d\n"

	.comm	_TU_CNT_RST_EN,4,2              ; @TU_CNT_RST_EN
	.comm	_DP_FRAMER_TU,4,2               ; @DP_FRAMER_TU
	.comm	_BCS_6,4,2                      ; @BCS_6
	.comm	_BCS_8,4,2                      ; @BCS_8
	.comm	_BCS_10,4,2                     ; @BCS_10
	.comm	_BCS_12,4,2                     ; @BCS_12
	.comm	_BCS_16,4,2                     ; @BCS_16
	.comm	_DP_FRAMER_PXL_REPR,4,2         ; @DP_FRAMER_PXL_REPR
	.comm	_DP_FRAMER_SP_HSP,4,2           ; @DP_FRAMER_SP_HSP
	.comm	_DP_FRAMER_SP_VSP,4,2           ; @DP_FRAMER_SP_VSP
	.comm	_DP_FRAMER_SP,4,2               ; @DP_FRAMER_SP
	.comm	_DP_FRONT_BACK_PORCH,4,2        ; @DP_FRONT_BACK_PORCH
	.comm	_DP_BYTE_COUNT,4,2              ; @DP_BYTE_COUNT
	.comm	_MSA_HORIZONTAL_0,4,2           ; @MSA_HORIZONTAL_0
	.comm	_MSA_HORIZONTAL_1,4,2           ; @MSA_HORIZONTAL_1
	.comm	_MSA_VERTICAL_0,4,2             ; @MSA_VERTICAL_0
	.comm	_MSA_VERTICAL_1,4,2             ; @MSA_VERTICAL_1
	.comm	_MSA_MISC,4,2                   ; @MSA_MISC
	.comm	_STREAM_CONFIG,4,2              ; @STREAM_CONFIG
	.comm	_DP_HORIZONTAL,4,2              ; @DP_HORIZONTAL
	.comm	_DP_VERTICAL_0,4,2              ; @DP_VERTICAL_0
	.comm	_DP_VERTICAL_1,4,2              ; @DP_VERTICAL_1
	.comm	_DP_VB_ID,4,2                   ; @DP_VB_ID
l_.str.1:                               ; @.str.1
	.asciz	"config video failed: %d\n"

.subsections_via_symbols
