	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_ctrl_adjust
_display_ctrl_adjust:                   ## @display_ctrl_adjust
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	(%rsi), %r15
	movq	8(%rsi), %r12
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_pll_config
	movl	-44(%rbp), %edi
	movq	_CRT_PLL2_HS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	callq	_writel
	movl	-48(%rbp), %esi
	movq	%rbx, %rdi
	callq	_set_vclock_hisilicon
	movq	_HIBMC_CRT_AUTO_CENTERING_TL_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_HIBMC_FIELD
	movl	%eax, %ebx
	movq	_HIBMC_CRT_AUTO_CENTERING_TL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_HIBMC_FIELD
	orl	%eax, %ebx
	movq	_HIBMC_CRT_AUTO_CENTERING_TL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decq	%r12
	movq	%r12, %rsi
	callq	_HIBMC_FIELD
	movl	%eax, %ebx
	movq	_HIBMC_CRT_AUTO_CENTERING_BR_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decq	%r15
	movq	%r15, %rsi
	callq	_HIBMC_FIELD
	orl	%eax, %ebx
	movq	_HIBMC_CRT_AUTO_CENTERING_BR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_HIBMC_CRT_DISP_CTL_CRTSELECT_MASK@GOTPCREL(%rip), %rax
	movq	_HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	notl	%r15d
	andl	%r14d, %r15d
	movq	_HIBMC_CRTSELECT_CRT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HIBMC_CRT_DISP_CTL_CRTSELECT
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_HIBMC_CRT_DISP_CTL_CLOCK_PHASE
	movl	%eax, %ebx
	orl	%r14d, %ebx
	orl	%r15d, %ebx
	movq	_HIBMC_CRT_DISP_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRT_PLL2_HS,8,3                ## @CRT_PLL2_HS
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL_TOP,4,2 ## @HIBMC_CRT_AUTO_CENTERING_TL_TOP
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL_LEFT,4,2 ## @HIBMC_CRT_AUTO_CENTERING_TL_LEFT
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL,8,3 ## @HIBMC_CRT_AUTO_CENTERING_TL
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM,4,2 ## @HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR_RIGHT,4,2 ## @HIBMC_CRT_AUTO_CENTERING_BR_RIGHT
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR,8,3 ## @HIBMC_CRT_AUTO_CENTERING_BR
	.comm	_HIBMC_CRT_DISP_CTL_CRTSELECT_MASK,4,2 ## @HIBMC_CRT_DISP_CTL_CRTSELECT_MASK
	.comm	_HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK,4,2 ## @HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK
	.comm	_HIBMC_CRTSELECT_CRT,4,2        ## @HIBMC_CRTSELECT_CRT
	.comm	_HIBMC_CRT_DISP_CTL,8,3         ## @HIBMC_CRT_DISP_CTL
	.no_dead_strip	_display_ctrl_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_ctrl_adjust
_display_ctrl_adjust:                   ; @display_ctrl_adjust
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x0
	ldr	x23, [x0]
	ldp	x20, x22, [x1]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_get_pll_config
	ldr	w0, [sp, #8]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _CRT_PLL2_HS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRT_PLL2_HS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_set_vclock_hisilicon
Lloh3:
	adrp	x8, _HIBMC_CRT_AUTO_CENTERING_TL_TOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HIBMC_CRT_AUTO_CENTERING_TL_TOP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_HIBMC_FIELD
	mov	x21, x0
Lloh6:
	adrp	x8, _HIBMC_CRT_AUTO_CENTERING_TL_LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HIBMC_CRT_AUTO_CENTERING_TL_LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_HIBMC_FIELD
	orr	w0, w0, w21
	ldr	x8, [x23]
Lloh9:
	adrp	x9, _HIBMC_CRT_AUTO_CENTERING_TL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HIBMC_CRT_AUTO_CENTERING_TL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	sub	x1, x22, #1
	bl	_HIBMC_FIELD
	mov	x21, x0
Lloh15:
	adrp	x8, _HIBMC_CRT_AUTO_CENTERING_BR_RIGHT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HIBMC_CRT_AUTO_CENTERING_BR_RIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	sub	x1, x20, #1
	bl	_HIBMC_FIELD
	orr	w0, w0, w21
	ldr	x8, [x23]
Lloh18:
	adrp	x9, _HIBMC_CRT_AUTO_CENTERING_BR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HIBMC_CRT_AUTO_CENTERING_BR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh21:
	adrp	x8, _HIBMC_CRT_DISP_CTL_CRTSELECT_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HIBMC_CRT_DISP_CTL_CRTSELECT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w19, w19, w8
Lloh27:
	adrp	x8, _HIBMC_CRTSELECT_CRT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HIBMC_CRTSELECT_CRT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_HIBMC_CRT_DISP_CTL_CRTSELECT
	orr	w19, w19, w0
	mov	w0, #0
	bl	_HIBMC_CRT_DISP_CTL_CLOCK_PHASE
	orr	w19, w19, w0
	ldr	x8, [x23]
Lloh30:
	adrp	x9, _HIBMC_CRT_DISP_CTL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HIBMC_CRT_DISP_CTL@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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	_CRT_PLL2_HS,8,3                ; @CRT_PLL2_HS
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL_TOP,4,2 ; @HIBMC_CRT_AUTO_CENTERING_TL_TOP
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL_LEFT,4,2 ; @HIBMC_CRT_AUTO_CENTERING_TL_LEFT
	.comm	_HIBMC_CRT_AUTO_CENTERING_TL,8,3 ; @HIBMC_CRT_AUTO_CENTERING_TL
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM,4,2 ; @HIBMC_CRT_AUTO_CENTERING_BR_BOTTOM
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR_RIGHT,4,2 ; @HIBMC_CRT_AUTO_CENTERING_BR_RIGHT
	.comm	_HIBMC_CRT_AUTO_CENTERING_BR,8,3 ; @HIBMC_CRT_AUTO_CENTERING_BR
	.comm	_HIBMC_CRT_DISP_CTL_CRTSELECT_MASK,4,2 ; @HIBMC_CRT_DISP_CTL_CRTSELECT_MASK
	.comm	_HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK,4,2 ; @HIBMC_CRT_DISP_CTL_CLOCK_PHASE_MASK
	.comm	_HIBMC_CRTSELECT_CRT,4,2        ; @HIBMC_CRTSELECT_CRT
	.comm	_HIBMC_CRT_DISP_CTL,8,3         ; @HIBMC_CRT_DISP_CTL
	.no_dead_strip	_display_ctrl_adjust
.subsections_via_symbols
