	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_pll_10nm_vco_prepare
_dsi_pll_10nm_vco_prepare:              ## @dsi_pll_10nm_vco_prepare
	.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
	callq	_hw_clk_to_pll
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_to_pll_10nm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dsi_pll_enable_pll_bias
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_dsi_pll_enable_pll_bias
LBB0_2:
	movq	_REG_DSI_10nm_PHY_CMN_PLL_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	$1, %esi
	callq	_pll_write
	xorl	%eax, %eax
	callq	_wmb
	movq	%rbx, %rdi
	callq	_dsi_pll_10nm_lock_status
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_8
LBB0_4:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_dsi_pll_enable_global_clk
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dsi_pll_enable_global_clk
LBB0_6:
	movq	_REG_DSI_10nm_PHY_CMN_RBUF_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movl	$1, %esi
	callq	_pll_write
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	movl	$1, %esi
	callq	_pll_write
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_DSI_10nm_PHY_CMN_PLL_CNTRL,8,3 ## @REG_DSI_10nm_PHY_CMN_PLL_CNTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL(%d) lock failed\n"

	.comm	_REG_DSI_10nm_PHY_CMN_RBUF_CTRL,8,3 ## @REG_DSI_10nm_PHY_CMN_RBUF_CTRL
	.no_dead_strip	_dsi_pll_10nm_vco_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_pll_10nm_vco_prepare
_dsi_pll_10nm_vco_prepare:              ; @dsi_pll_10nm_vco_prepare
	.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
	bl	_hw_clk_to_pll
	mov	x21, x0
	bl	_to_pll_10nm
	mov	x19, x0
	bl	_dsi_pll_enable_pll_bias
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dsi_pll_enable_pll_bias
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _REG_DSI_10nm_PHY_CMN_PLL_CNTRL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_DSI_10nm_PHY_CMN_PLL_CNTRL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w22, #1
	mov	w1, #1
	bl	_pll_write
	bl	_wmb
	mov	x0, x19
	bl	_dsi_pll_10nm_lock_status
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_4:
	str	w22, [x21]
	mov	x0, x19
	bl	_dsi_pll_enable_global_clk
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dsi_pll_enable_global_clk
LBB0_6:
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _REG_DSI_10nm_PHY_CMN_RBUF_CTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_DSI_10nm_PHY_CMN_RBUF_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	w1, #1
	bl	_pll_write
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	w1, #1
	bl	_pll_write
LBB0_8:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_DSI_10nm_PHY_CMN_PLL_CNTRL,8,3 ; @REG_DSI_10nm_PHY_CMN_PLL_CNTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL(%d) lock failed\n"

	.comm	_REG_DSI_10nm_PHY_CMN_RBUF_CTRL,8,3 ; @REG_DSI_10nm_PHY_CMN_RBUF_CTRL
	.no_dead_strip	_dsi_pll_10nm_vco_prepare
.subsections_via_symbols
