	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_dsi_bridge_enable
_cdns_dsi_bridge_enable:                ## @cdns_dsi_bridge_enable
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_bridge_to_cdns_dsi_input
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_input_to_dsi
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_pm_runtime_get_sync
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_29
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_mipi_dsi_pixel_format_to_bpp
	movq	16(%r14), %rax
	movl	4(%rax), %r12d
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_cdns_dsi_check_conf
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	%r14, %rdi
	callq	_cdns_dsi_hs_init
	movq	%r14, %rdi
	callq	_cdns_dsi_init_link
	movl	-64(%rbp), %edi
	callq	_HBP_LEN
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi
	callq	_HSA_LEN
	orq	%rax, %rbx
	movq	_VID_HSIZE1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movl	-68(%rbp), %edi
	callq	_HFP_LEN
	movq	%rax, %rbx
	movl	-72(%rbp), %edi
	callq	_HACT_LEN
	orq	%rax, %rbx
	movq	_VID_HSIZE2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	16(%r15), %rdi
	notq	%rdi
	addq	24(%r15), %rdi
	callq	_VBP_LEN
	movq	%rax, %r13
	movq	8(%r15), %rdi
	subq	(%r15), %rdi
	callq	_VFP_LEN
	movq	%rax, %rbx
	movq	16(%r15), %rdi
	subq	8(%r15), %rdi
	incq	%rdi
	callq	_VSA_LEN
	orq	%rax, %rbx
	orq	%r13, %rbx
	movq	_VID_VSIZE1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	(%r15), %rdi
	movq	_VID_VSIZE2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	-88(%rbp), %rax
	movq	-80(%rbp), %rbx
	movq	_DSI_BLANKING_FRAME_OVERHEAD@GOTPCREL(%rip), %r13
	addq	(%r13), %rax
	movq	_DSI_HSA_FRAME_OVERHEAD@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BLK_LINE_PULSE_PKT_LEN
	movq	_VID_BLKSIZE2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	16(%r14), %rax
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_DSI_NULL_FRAME_OVERHEAD@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_MAX_LINE_LIMIT
	movq	_VID_VCA_SETTING2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_writel
LBB0_3:
	movq	-80(%rbp), %rbx
	movq	_DSI_HSS_VSS_VSE_FRAME_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r13), %rax
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BLK_LINE_EVENT_PKT_LEN
	movq	_VID_BLKSIZE1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	16(%r14), %rax
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	jne	LBB0_5
## %bb.4:
	movq	_DSI_NULL_FRAME_OVERHEAD@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_MAX_LINE_LIMIT
	movq	_VID_VCA_SETTING2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_writel
LBB0_5:
	movq	-80(%rbp), %rdi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, %r13
	movq	-88(%rbp), %rdi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	subq	%rax, %r13
	movq	16(%r14), %rax
	movq	_MIPI_DSI_MODE_EOT_PACKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.6:
	movq	_DSI_EOT_PKT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	subq	%rax, %r13
LBB0_7:
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	shll	$3, %edi
	movl	40(%r14), %esi
	callq	_DIV_ROUND_DOWN_ULL
	movq	%rax, %r12
	movq	32(%r14), %rax
	addq	24(%r14), %rax
	movq	%rax, %rcx
	orq	%r12, %rcx
	shrq	$32, %rcx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%r12
	movq	%rax, %rdi
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %edi
LBB0_10:
	callq	_REG_WAKEUP_TIME
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_REG_LINE_DURATION
	orq	%rax, %rbx
	movq	_VID_DPHY_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	(%r15), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_mode_vrefresh
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_13
LBB0_11:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:
	movq	%r12, %rcx
	orq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_14
## %bb.15:
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_16
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_16:
	movq	_HSTX_TIMEOUT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_17
## %bb.18:
	movq	_CLK_DIV_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	shrq	%rax
	incq	%rdi
	cmpq	%rcx, %rdi
	ja	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	%rbx, %rax
	ja	LBB0_19
	jmp	LBB0_21
LBB0_17:
	xorl	%edi, %edi
LBB0_21:
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	callq	_CLK_DIV
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_HSTX_TIMEOUT
	orq	%rax, %r15
	movq	_MCTL_DPHY_TIMEOUT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_writel
	movq	%rbx, %rdi
	callq	_LPRX_TIMEOUT
	movq	_MCTL_DPHY_TIMEOUT2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_writel
	movq	16(%r14), %rax
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_25
## %bb.22:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_23
## %bb.24:
	cltq
	leaq	l_switch.table.cdns_dsi_bridge_enable(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.cdns_dsi_bridge_enable.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_VID_DATATYPE
	movq	16(%r14), %rcx
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%rcx), %edx
	movq	%rax, %r15
	movq	_SYNC_PULSE_ACTIVE@GOTPCREL(%rip), %rax
	movq	_SYNC_PULSE_HORIZONTAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	xorl	%r13d, %r13d
	testl	%edx, %edx
	cmovneq	%rcx, %r13
	movq	_REG_BLK_MODE_BLANKING_PKT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_REG_BLKLINE_MODE
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_REG_BLKEOL_MODE
	movq	%rax, %rbx
	movq	_RECOVERY_MODE_NEXT_HSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RECOVERY_MODE
	movq	_VID_IGNORE_MISS_VSYNC@GOTPCREL(%rip), %rcx
	orq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	orq	%r15, %r13
	orq	%r12, %rbx
	orq	%rax, %rbx
	orq	%r13, %rbx
	movq	_MIPI_DSI_MODE_VIDEO@GOTPCREL(%rip), %r13
	orq	(%rcx), %rbx
	movq	_VID_MAIN_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
LBB0_25:
	movq	_MCTL_MAIN_DATA_CTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_IF_VID_SELECT_MASK@GOTPCREL(%rip), %rcx
	movq	_HOST_EOT_GEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx), %rcx
	orq	%rdx, %rcx
	movq	_IF_VID_MODE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r12
	orq	%r12, %rcx
	notq	%rcx
	andq	%rax, %rcx
	movq	16(%r14), %rax
	movl	8(%rax), %eax
	xorl	%ebx, %ebx
	movq	_MIPI_DSI_MODE_EOT_PACKET@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	cmoveq	%rdx, %rbx
	orq	%rcx, %rbx
	testl	%eax, (%r13)
	je	LBB0_26
## %bb.27:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_IF_VID_SELECT
	movq	_VID_EN@GOTPCREL(%rip), %rcx
	orq	%r12, %rbx
	orq	%rax, %rbx
	orq	(%rcx), %rbx
	jmp	LBB0_28
LBB0_23:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_29
LBB0_26:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_28:
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	_MCTL_MAIN_EN@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_IF_EN
	orq	%rax, %rbx
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_writel
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VID_HSIZE1,8,3                 ## @VID_HSIZE1
	.comm	_VID_HSIZE2,8,3                 ## @VID_HSIZE2
	.comm	_VID_VSIZE1,8,3                 ## @VID_VSIZE1
	.comm	_VID_VSIZE2,8,3                 ## @VID_VSIZE2
	.comm	_DSI_BLANKING_FRAME_OVERHEAD,8,3 ## @DSI_BLANKING_FRAME_OVERHEAD
	.comm	_DSI_HSA_FRAME_OVERHEAD,8,3     ## @DSI_HSA_FRAME_OVERHEAD
	.comm	_VID_BLKSIZE2,8,3               ## @VID_BLKSIZE2
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ## @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_DSI_NULL_FRAME_OVERHEAD,8,3    ## @DSI_NULL_FRAME_OVERHEAD
	.comm	_VID_VCA_SETTING2,8,3           ## @VID_VCA_SETTING2
	.comm	_DSI_HSS_VSS_VSE_FRAME_OVERHEAD,8,3 ## @DSI_HSS_VSS_VSE_FRAME_OVERHEAD
	.comm	_VID_BLKSIZE1,8,3               ## @VID_BLKSIZE1
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ## @MIPI_DSI_MODE_EOT_PACKET
	.comm	_DSI_EOT_PKT_SIZE,8,3           ## @DSI_EOT_PKT_SIZE
	.comm	_NSEC_PER_SEC,8,3               ## @NSEC_PER_SEC
	.comm	_VID_DPHY_TIME,8,3              ## @VID_DPHY_TIME
	.comm	_CLK_DIV_MAX,8,3                ## @CLK_DIV_MAX
	.comm	_HSTX_TIMEOUT_MAX,8,3           ## @HSTX_TIMEOUT_MAX
	.comm	_MCTL_DPHY_TIMEOUT1,8,3         ## @MCTL_DPHY_TIMEOUT1
	.comm	_MCTL_DPHY_TIMEOUT2,8,3         ## @MCTL_DPHY_TIMEOUT2
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ## @MIPI_DSI_MODE_VIDEO
	.comm	_VID_PIXEL_MODE_RGB888,8,3      ## @VID_PIXEL_MODE_RGB888
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_24,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_24
	.comm	_VID_PIXEL_MODE_RGB666,8,3      ## @VID_PIXEL_MODE_RGB666
	.comm	_MIPI_DSI_PIXEL_STREAM_3BYTE_18,4,2 ## @MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.comm	_VID_PIXEL_MODE_RGB666_PACKED,8,3 ## @VID_PIXEL_MODE_RGB666_PACKED
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_18,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_18
	.comm	_VID_PIXEL_MODE_RGB565,8,3      ## @VID_PIXEL_MODE_RGB565
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_16,4,2 ## @MIPI_DSI_PACKED_PIXEL_STREAM_16
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported DSI format\n"

	.comm	_SYNC_PULSE_ACTIVE,8,3          ## @SYNC_PULSE_ACTIVE
	.comm	_SYNC_PULSE_HORIZONTAL,8,3      ## @SYNC_PULSE_HORIZONTAL
	.comm	_REG_BLK_MODE_BLANKING_PKT,4,2  ## @REG_BLK_MODE_BLANKING_PKT
	.comm	_RECOVERY_MODE_NEXT_HSYNC,4,2   ## @RECOVERY_MODE_NEXT_HSYNC
	.comm	_VID_IGNORE_MISS_VSYNC,8,3      ## @VID_IGNORE_MISS_VSYNC
	.comm	_VID_MAIN_CTL,8,3               ## @VID_MAIN_CTL
	.comm	_MCTL_MAIN_DATA_CTL,8,3         ## @MCTL_MAIN_DATA_CTL
	.comm	_IF_VID_SELECT_MASK,8,3         ## @IF_VID_SELECT_MASK
	.comm	_HOST_EOT_GEN,8,3               ## @HOST_EOT_GEN
	.comm	_IF_VID_MODE,8,3                ## @IF_VID_MODE
	.comm	_VID_EN,8,3                     ## @VID_EN
	.comm	_MCTL_MAIN_EN,8,3               ## @MCTL_MAIN_EN
	.no_dead_strip	_cdns_dsi_bridge_enable
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cdns_dsi_bridge_enable
l_switch.table.cdns_dsi_bridge_enable:
	.quad	_VID_PIXEL_MODE_RGB888
	.quad	_VID_PIXEL_MODE_RGB666_PACKED
	.quad	_VID_PIXEL_MODE_RGB666
	.quad	_VID_PIXEL_MODE_RGB565

	.p2align	3                               ## @switch.table.cdns_dsi_bridge_enable.1
l_switch.table.cdns_dsi_bridge_enable.1:
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_24
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_18
	.quad	_MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_16

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_dsi_bridge_enable
_cdns_dsi_bridge_enable:                ; @cdns_dsi_bridge_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
	bl	_bridge_to_cdns_dsi_input
	mov	x20, x0
	bl	_input_to_dsi
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_pm_runtime_get_sync
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN_ON
	cbnz	x0, LBB0_18
; %bb.1:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_mipi_dsi_pixel_format_to_bpp
	ldr	x8, [x19, #16]
	ldr	w22, [x8, #4]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	mov	w3, #0
	bl	_cdns_dsi_check_conf
	bl	_WARN_ON_ONCE
	mov	x0, x19
	bl	_cdns_dsi_hs_init
	mov	x0, x19
	bl	_cdns_dsi_init_link
	ldr	w0, [sp, #24]
	bl	_HBP_LEN
	mov	x23, x0
	ldr	x0, [sp]
	bl	_HSA_LEN
	orr	x0, x0, x23
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VID_HSIZE1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VID_HSIZE1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [sp, #20]
	bl	_HFP_LEN
	mov	x23, x0
	ldr	w0, [sp, #16]
	bl	_HACT_LEN
	orr	x0, x0, x23
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _VID_HSIZE2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VID_HSIZE2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	x9, x8, [x21, #16]
	mvn	x9, x9
	add	x0, x8, x9
	bl	_VBP_LEN
	mov	x23, x0
	ldp	x9, x8, [x21]
	sub	x0, x8, x9
	bl	_VFP_LEN
	orr	x23, x0, x23
	ldp	x9, x8, [x21, #8]
	sub	x8, x8, x9
	add	x0, x8, #1
	bl	_VSA_LEN
	orr	x0, x23, x0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _VID_VSIZE1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VID_VSIZE1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x21]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _VID_VSIZE2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VID_VSIZE2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldp	x9, x8, [sp]
Lloh12:
	adrp	x26, _DSI_BLANKING_FRAME_OVERHEAD@GOTPAGE
Lloh13:
	ldr	x26, [x26, _DSI_BLANKING_FRAME_OVERHEAD@GOTPAGEOFF]
	ldr	x10, [x26]
Lloh14:
	adrp	x11, _DSI_HSA_FRAME_OVERHEAD@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DSI_HSA_FRAME_OVERHEAD@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	add	x9, x9, x10
	add	x9, x9, x11
	sub	x23, x8, x9
	mov	x0, x23
	bl	_BLK_LINE_PULSE_PKT_LEN
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _VID_BLKSIZE2@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VID_BLKSIZE2@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
Lloh20:
	adrp	x25, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh22:
	adrp	x27, _DSI_NULL_FRAME_OVERHEAD@GOTPAGE
Lloh23:
	ldr	x27, [x27, _DSI_NULL_FRAME_OVERHEAD@GOTPAGEOFF]
Lloh24:
	adrp	x24, _VID_VCA_SETTING2@GOTPAGE
Lloh25:
	ldr	x24, [x24, _VID_VCA_SETTING2@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x27]
	sub	x0, x23, x8
	bl	_MAX_LINE_LIMIT
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
LBB0_3:
	ldr	x8, [sp, #8]
Lloh26:
	adrp	x9, _DSI_HSS_VSS_VSE_FRAME_OVERHEAD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DSI_HSS_VSS_VSE_FRAME_OVERHEAD@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	x10, [x26]
	add	x9, x9, x10
	sub	x23, x8, x9
	mov	x0, x23
	bl	_BLK_LINE_EVENT_PKT_LEN
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _VID_BLKSIZE1@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VID_BLKSIZE1@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x27]
	sub	x0, x23, x8
	bl	_MAX_LINE_LIMIT
	ldr	x8, [x19]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_DIV_ROUND_UP
	mov	x23, x0
	ldr	x0, [sp]
	mov	x1, x22
	bl	_DIV_ROUND_UP
	sub	x23, x23, x0
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
Lloh32:
	adrp	x26, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGE
Lloh33:
	ldr	x26, [x26, _MIPI_DSI_MODE_EOT_PACKET@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh34:
	adrp	x8, _DSI_EOT_PKT_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DSI_EOT_PKT_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_DIV_ROUND_UP
	sub	x23, x23, x0
LBB0_7:
Lloh37:
	adrp	x27, _NSEC_PER_SEC@GOTPAGE
Lloh38:
	ldr	x27, [x27, _NSEC_PER_SEC@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	w0, w8, #3
	ldr	w1, [x19, #40]
	bl	_DIV_ROUND_DOWN_ULL
	mov	x22, x0
	ldp	x8, x9, [x19, #24]
	add	x8, x9, x8
	udiv	x0, x8, x0
	bl	_REG_WAKEUP_TIME
	mov	x24, x0
	mov	x0, x23
	bl	_REG_LINE_DURATION
	orr	x0, x0, x24
	ldr	x8, [x19]
Lloh39:
	adrp	x9, _VID_DPHY_TIME@GOTPAGE
Lloh40:
	ldr	x9, [x9, _VID_DPHY_TIME@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x23, [x27]
	mov	x0, x21
	bl	_drm_mode_vrefresh
	udiv	x8, x23, x0
	udiv	x8, x8, x22
Lloh42:
	adrp	x9, _HSTX_TIMEOUT_MAX@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HSTX_TIMEOUT_MAX@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_10
; %bb.8:
	mov	x0, #0
Lloh45:
	adrp	x10, _CLK_DIV_MAX@GOTPAGE
Lloh46:
	ldr	x10, [x10, _CLK_DIV_MAX@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x8, x8, #1
	add	x0, x0, #1
	cmp	x0, x10
	ccmp	x8, x9, #0, ls
	b.hi	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	cmp	x8, x9
	csel	x21, x8, x9, lo
	bl	_CLK_DIV
	mov	x22, x0
	mov	x0, x21
	bl	_HSTX_TIMEOUT
	orr	x0, x0, x22
	ldr	x8, [x19]
Lloh48:
	adrp	x9, _MCTL_DPHY_TIMEOUT1@GOTPAGE
Lloh49:
	ldr	x9, [x9, _MCTL_DPHY_TIMEOUT1@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x21
	bl	_LPRX_TIMEOUT
	ldr	x8, [x19]
Lloh51:
	adrp	x9, _MCTL_DPHY_TIMEOUT2@GOTPAGE
Lloh52:
	ldr	x9, [x9, _MCTL_DPHY_TIMEOUT2@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #8]
Lloh54:
	adrp	x23, _MIPI_DSI_MODE_VIDEO@GOTPAGE
Lloh55:
	ldr	x23, [x23, _MIPI_DSI_MODE_VIDEO@GOTPAGEOFF]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_17
; %bb.13:
	sbfiz	x8, x8, #3, #32
Lloh56:
	adrp	x9, l_switch.table.cdns_dsi_bridge_enable@PAGE
Lloh57:
	add	x9, x9, l_switch.table.cdns_dsi_bridge_enable@PAGEOFF
	ldr	x9, [x9, x8]
Lloh58:
	adrp	x10, l_switch.table.cdns_dsi_bridge_enable.1@PAGE
Lloh59:
	add	x10, x10, l_switch.table.cdns_dsi_bridge_enable.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	x21, [x9]
	ldr	w0, [x8]
	bl	_VID_DATATYPE
	orr	x24, x0, x21
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	ldr	w9, [x25]
Lloh60:
	adrp	x10, _SYNC_PULSE_ACTIVE@GOTPAGE
Lloh61:
	ldr	x10, [x10, _SYNC_PULSE_ACTIVE@GOTPAGEOFF]
Lloh62:
	ldr	x10, [x10]
Lloh63:
	adrp	x11, _SYNC_PULSE_HORIZONTAL@GOTPAGE
Lloh64:
	ldr	x11, [x11, _SYNC_PULSE_HORIZONTAL@GOTPAGEOFF]
Lloh65:
	ldr	x11, [x11]
	orr	x10, x11, x10
	tst	w9, w8
	csel	x25, xzr, x10, eq
Lloh66:
	adrp	x22, _REG_BLK_MODE_BLANKING_PKT@GOTPAGE
Lloh67:
	ldr	x22, [x22, _REG_BLK_MODE_BLANKING_PKT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG_BLKLINE_MODE
	mov	x21, x0
	ldr	w0, [x22]
	bl	_REG_BLKEOL_MODE
	mov	x22, x0
Lloh68:
	adrp	x8, _RECOVERY_MODE_NEXT_HSYNC@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RECOVERY_MODE_NEXT_HSYNC@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	bl	_RECOVERY_MODE
Lloh71:
	adrp	x8, _VID_IGNORE_MISS_VSYNC@GOTPAGE
Lloh72:
	ldr	x8, [x8, _VID_IGNORE_MISS_VSYNC@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	orr	x9, x25, x24
	orr	x9, x9, x21
	orr	x9, x9, x22
	orr	x9, x9, x0
	orr	x0, x9, x8
	ldr	x8, [x19]
Lloh74:
	adrp	x9, _VID_MAIN_CTL@GOTPAGE
Lloh75:
	ldr	x9, [x9, _VID_MAIN_CTL@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_14:
	ldr	x8, [x19]
Lloh77:
	adrp	x22, _MCTL_MAIN_DATA_CTL@GOTPAGE
Lloh78:
	ldr	x22, [x22, _MCTL_MAIN_DATA_CTL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh79:
	adrp	x8, _IF_VID_SELECT_MASK@GOTPAGE
Lloh80:
	ldr	x8, [x8, _IF_VID_SELECT_MASK@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
Lloh82:
	adrp	x9, _HOST_EOT_GEN@GOTPAGE
Lloh83:
	ldr	x9, [x9, _HOST_EOT_GEN@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
Lloh85:
	adrp	x10, _IF_VID_MODE@GOTPAGE
Lloh86:
	ldr	x10, [x10, _IF_VID_MODE@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh87:
	ldr	x24, [x10]
	orr	x8, x8, x24
	bic	x8, x0, x8
	ldr	x10, [x19, #16]
	ldr	w10, [x10, #8]
	ldr	w11, [x26]
	tst	w11, w10
	csel	x9, x9, xzr, eq
	orr	x21, x9, x8
	ldr	w8, [x23]
	tst	w8, w10
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x20]
	bl	_IF_VID_SELECT
Lloh88:
	adrp	x8, _VID_EN@GOTPAGE
Lloh89:
	ldr	x8, [x8, _VID_EN@GOTPAGEOFF]
Lloh90:
	ldr	x8, [x8]
	orr	x9, x21, x24
	orr	x9, x9, x0
	orr	x21, x9, x8
LBB0_16:
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19]
Lloh91:
	adrp	x22, _MCTL_MAIN_EN@GOTPAGE
Lloh92:
	ldr	x22, [x22, _MCTL_MAIN_EN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	w0, [x20]
	bl	_IF_EN
	orr	x0, x0, x21
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_18
LBB0_17:
	ldr	w0, [x19, #8]
Lloh93:
	adrp	x1, l_.str@PAGE
Lloh94:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_VID_HSIZE1,8,3                 ; @VID_HSIZE1
	.comm	_VID_HSIZE2,8,3                 ; @VID_HSIZE2
	.comm	_VID_VSIZE1,8,3                 ; @VID_VSIZE1
	.comm	_VID_VSIZE2,8,3                 ; @VID_VSIZE2
	.comm	_DSI_BLANKING_FRAME_OVERHEAD,8,3 ; @DSI_BLANKING_FRAME_OVERHEAD
	.comm	_DSI_HSA_FRAME_OVERHEAD,8,3     ; @DSI_HSA_FRAME_OVERHEAD
	.comm	_VID_BLKSIZE2,8,3               ; @VID_BLKSIZE2
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ; @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_DSI_NULL_FRAME_OVERHEAD,8,3    ; @DSI_NULL_FRAME_OVERHEAD
	.comm	_VID_VCA_SETTING2,8,3           ; @VID_VCA_SETTING2
	.comm	_DSI_HSS_VSS_VSE_FRAME_OVERHEAD,8,3 ; @DSI_HSS_VSS_VSE_FRAME_OVERHEAD
	.comm	_VID_BLKSIZE1,8,3               ; @VID_BLKSIZE1
	.comm	_MIPI_DSI_MODE_EOT_PACKET,4,2   ; @MIPI_DSI_MODE_EOT_PACKET
	.comm	_DSI_EOT_PKT_SIZE,8,3           ; @DSI_EOT_PKT_SIZE
	.comm	_NSEC_PER_SEC,8,3               ; @NSEC_PER_SEC
	.comm	_VID_DPHY_TIME,8,3              ; @VID_DPHY_TIME
	.comm	_CLK_DIV_MAX,8,3                ; @CLK_DIV_MAX
	.comm	_HSTX_TIMEOUT_MAX,8,3           ; @HSTX_TIMEOUT_MAX
	.comm	_MCTL_DPHY_TIMEOUT1,8,3         ; @MCTL_DPHY_TIMEOUT1
	.comm	_MCTL_DPHY_TIMEOUT2,8,3         ; @MCTL_DPHY_TIMEOUT2
	.comm	_MIPI_DSI_MODE_VIDEO,4,2        ; @MIPI_DSI_MODE_VIDEO
	.comm	_VID_PIXEL_MODE_RGB888,8,3      ; @VID_PIXEL_MODE_RGB888
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_24,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_24
	.comm	_VID_PIXEL_MODE_RGB666,8,3      ; @VID_PIXEL_MODE_RGB666
	.comm	_MIPI_DSI_PIXEL_STREAM_3BYTE_18,4,2 ; @MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.comm	_VID_PIXEL_MODE_RGB666_PACKED,8,3 ; @VID_PIXEL_MODE_RGB666_PACKED
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_18,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_18
	.comm	_VID_PIXEL_MODE_RGB565,8,3      ; @VID_PIXEL_MODE_RGB565
	.comm	_MIPI_DSI_PACKED_PIXEL_STREAM_16,4,2 ; @MIPI_DSI_PACKED_PIXEL_STREAM_16
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported DSI format\n"

	.comm	_SYNC_PULSE_ACTIVE,8,3          ; @SYNC_PULSE_ACTIVE
	.comm	_SYNC_PULSE_HORIZONTAL,8,3      ; @SYNC_PULSE_HORIZONTAL
	.comm	_REG_BLK_MODE_BLANKING_PKT,4,2  ; @REG_BLK_MODE_BLANKING_PKT
	.comm	_RECOVERY_MODE_NEXT_HSYNC,4,2   ; @RECOVERY_MODE_NEXT_HSYNC
	.comm	_VID_IGNORE_MISS_VSYNC,8,3      ; @VID_IGNORE_MISS_VSYNC
	.comm	_VID_MAIN_CTL,8,3               ; @VID_MAIN_CTL
	.comm	_MCTL_MAIN_DATA_CTL,8,3         ; @MCTL_MAIN_DATA_CTL
	.comm	_IF_VID_SELECT_MASK,8,3         ; @IF_VID_SELECT_MASK
	.comm	_HOST_EOT_GEN,8,3               ; @HOST_EOT_GEN
	.comm	_IF_VID_MODE,8,3                ; @IF_VID_MODE
	.comm	_VID_EN,8,3                     ; @VID_EN
	.comm	_MCTL_MAIN_EN,8,3               ; @MCTL_MAIN_EN
	.no_dead_strip	_cdns_dsi_bridge_enable
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cdns_dsi_bridge_enable
l_switch.table.cdns_dsi_bridge_enable:
	.quad	_VID_PIXEL_MODE_RGB888
	.quad	_VID_PIXEL_MODE_RGB666_PACKED
	.quad	_VID_PIXEL_MODE_RGB666
	.quad	_VID_PIXEL_MODE_RGB565

	.p2align	3                               ; @switch.table.cdns_dsi_bridge_enable.1
l_switch.table.cdns_dsi_bridge_enable.1:
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_24
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_18
	.quad	_MIPI_DSI_PIXEL_STREAM_3BYTE_18
	.quad	_MIPI_DSI_PACKED_PIXEL_STREAM_16

.subsections_via_symbols
