	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_config_vdo_timing
_mtk_dsi_config_vdo_timing:             ## @mtk_dsi_config_vdo_timing
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_MIPI_DSI_FMT_RGB565@GOTPCREL(%rip), %rcx
	movl	24(%rdi), %edi
	movq	_DSI_VSA_NL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	addq	16(%r15), %rsi
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
	callq	_writel
	movl	28(%r15), %edi
	movq	_DSI_VBP_NL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	movl	32(%r15), %edi
	movq	_DSI_VFP_NL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	movl	36(%r15), %edi
	movq	_DSI_VACT_NL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	movl	40(%r15), %edi
	movq	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	8(%r15), %eax
	cmovel	%edi, %ebx
	addl	44(%r15), %ebx
	xorl	$3, %r14d
	imull	%r14d, %ebx
	addl	$-10, %ebx
	imull	%r14d, %edi
	addl	$-10, %edi
	imull	48(%r15), %r14d
	addl	$-12, %r14d
	movq	_DSI_HSA_WC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	movq	_DSI_HBP_WC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_DSI_HFP_WC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_dsi_ps_control             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIPI_DSI_FMT_RGB565,8,3        ## @MIPI_DSI_FMT_RGB565
	.comm	_DSI_VSA_NL,8,3                 ## @DSI_VSA_NL
	.comm	_DSI_VBP_NL,8,3                 ## @DSI_VBP_NL
	.comm	_DSI_VFP_NL,8,3                 ## @DSI_VFP_NL
	.comm	_DSI_VACT_NL,8,3                ## @DSI_VACT_NL
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ## @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_DSI_HSA_WC,8,3                 ## @DSI_HSA_WC
	.comm	_DSI_HBP_WC,8,3                 ## @DSI_HBP_WC
	.comm	_DSI_HFP_WC,8,3                 ## @DSI_HFP_WC
	.no_dead_strip	_mtk_dsi_config_vdo_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_config_vdo_timing
_mtk_dsi_config_vdo_timing:             ; @mtk_dsi_config_vdo_timing
	.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]
Lloh0:
	adrp	x8, _MIPI_DSI_FMT_RGB565@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIPI_DSI_FMT_RGB565@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w0, [x0, #24]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _DSI_VSA_NL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSI_VSA_NL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #28]
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _DSI_VBP_NL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DSI_VBP_NL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _DSI_VFP_NL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DSI_VFP_NL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #36]
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _DSI_VACT_NL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DSI_VACT_NL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #8]
Lloh15:
	adrp	x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MIPI_DSI_MODE_VIDEO_SYNC_PULSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldp	w10, w11, [x19, #40]
	tst	w9, w8
	csel	w8, w10, wzr, eq
	add	w8, w11, w8
	cmp	x20, x21
	mov	w9, #2
	cinc	w9, w9, ne
	mul	w8, w8, w9
	sub	w20, w8, #10
	mul	w8, w10, w9
	sub	w0, w8, #10
	ldr	w8, [x19, #48]
	mul	w8, w8, w9
	sub	w21, w8, #12
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _DSI_HSA_WC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DSI_HSA_WC@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _DSI_HBP_WC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DSI_HBP_WC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #16]
Lloh24:
	adrp	x9, _DSI_HFP_WC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DSI_HFP_WC@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	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	_mtk_dsi_ps_control
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_MIPI_DSI_FMT_RGB565,8,3        ; @MIPI_DSI_FMT_RGB565
	.comm	_DSI_VSA_NL,8,3                 ; @DSI_VSA_NL
	.comm	_DSI_VBP_NL,8,3                 ; @DSI_VBP_NL
	.comm	_DSI_VFP_NL,8,3                 ; @DSI_VFP_NL
	.comm	_DSI_VACT_NL,8,3                ; @DSI_VACT_NL
	.comm	_MIPI_DSI_MODE_VIDEO_SYNC_PULSE,4,2 ; @MIPI_DSI_MODE_VIDEO_SYNC_PULSE
	.comm	_DSI_HSA_WC,8,3                 ; @DSI_HSA_WC
	.comm	_DSI_HBP_WC,8,3                 ; @DSI_HBP_WC
	.comm	_DSI_HFP_WC,8,3                 ; @DSI_HFP_WC
	.no_dead_strip	_mtk_dsi_config_vdo_timing
.subsections_via_symbols
