	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_dsi_pll_enable             ## -- Begin function vlv_dsi_pll_enable
	.p2align	4, 0x90
_vlv_dsi_pll_enable:                    ## @vlv_dsi_pll_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_vlv_cck_get
	movq	_CCK_REG_DSI_PLL_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vlv_cck_write
	movq	_CCK_REG_DSI_PLL_DIVIDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_vlv_cck_write
	movl	(%r15), %esi
	movq	_DSI_PLL_VCO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_vlv_cck_write
	movl	$10, %edi
	movl	$50, %esi
	callq	_usleep_range
	movl	(%r15), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_vlv_cck_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_vlv_cck_read
	movq	_DSI_PLL_LOCK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	movl	$20, %esi
	callq	_wait_for
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_vlv_cck_put
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CCK_REG_DSI_PLL_CONTROL,4,2    ## @CCK_REG_DSI_PLL_CONTROL
	.comm	_CCK_REG_DSI_PLL_DIVIDER,4,2    ## @CCK_REG_DSI_PLL_DIVIDER
	.comm	_DSI_PLL_VCO_EN,4,2             ## @DSI_PLL_VCO_EN
	.comm	_DSI_PLL_LOCK,4,2               ## @DSI_PLL_LOCK
L_.str.1:                               ## @.str.1
	.asciz	"DSI PLL lock failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"DSI PLL locked\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vlv_dsi_pll_enable             ; -- Begin function vlv_dsi_pll_enable
	.p2align	2
_vlv_dsi_pll_enable:                    ; @vlv_dsi_pll_enable
	.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	x20, x1
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_vlv_cck_get
Lloh2:
	adrp	x21, _CCK_REG_DSI_PLL_CONTROL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CCK_REG_DSI_PLL_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_vlv_cck_write
Lloh4:
	adrp	x8, _CCK_REG_DSI_PLL_DIVIDER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CCK_REG_DSI_PLL_DIVIDER@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_vlv_cck_write
	ldr	w1, [x21]
	ldr	w8, [x20, #4]
Lloh7:
	adrp	x9, _DSI_PLL_VCO_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DSI_PLL_VCO_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_vlv_cck_write
	mov	w0, #10
	mov	w1, #50
	bl	_usleep_range
	ldr	w1, [x21]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_vlv_cck_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vlv_cck_read
Lloh10:
	adrp	x8, _DSI_PLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DSI_PLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w0, w8, w0
	mov	w1, #20
	bl	_wait_for
	mov	x20, x0
	mov	x0, x19
	bl	_vlv_cck_put
	cbz	x20, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DRM_ERROR
LBB0_2:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	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	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CCK_REG_DSI_PLL_CONTROL,4,2    ; @CCK_REG_DSI_PLL_CONTROL
	.comm	_CCK_REG_DSI_PLL_DIVIDER,4,2    ; @CCK_REG_DSI_PLL_DIVIDER
	.comm	_DSI_PLL_VCO_EN,4,2             ; @DSI_PLL_VCO_EN
	.comm	_DSI_PLL_LOCK,4,2               ; @DSI_PLL_LOCK
l_.str.1:                               ; @.str.1
	.asciz	"DSI PLL lock failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"DSI PLL locked\n"

.subsections_via_symbols
