	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpd4_lvds_pll_enable
_mpd4_lvds_pll_enable:                  ## @mpd4_lvds_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_mdp4_lvds_pll
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_get_kms
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_find_rate
	movq	%rax, %r12
	movl	(%r15), %esi
	movl	8(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_REG_MDP4_LCDC_LVDS_PHY_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$51, %edx
	callq	_mdp4_write
	movq	(%r12), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx), %edx
	movq	%r14, %rdi
	callq	_mdp4_write
	movq	(%r12), %rax
	movq	24(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_4
LBB0_5:
	movq	_REG_MDP4_LVDS_PHY_PLL_CTRL_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mdp4_write
	movq	_REG_MDP4_LVDS_PHY_PLL_LOCKED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mdp4_read
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_mdp4_read
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixclk=%lu (%lu)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_REG_MDP4_LCDC_LVDS_PHY_RESET,8,3 ## @REG_MDP4_LCDC_LVDS_PHY_RESET
	.comm	_REG_MDP4_LVDS_PHY_PLL_CTRL_0,8,3 ## @REG_MDP4_LVDS_PHY_PLL_CTRL_0
	.comm	_REG_MDP4_LVDS_PHY_PLL_LOCKED,4,2 ## @REG_MDP4_LVDS_PHY_PLL_LOCKED
	.no_dead_strip	_mpd4_lvds_pll_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpd4_lvds_pll_enable
_mpd4_lvds_pll_enable:                  ; @mpd4_lvds_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
	bl	_to_mdp4_lvds_pll
	mov	x21, x0
	bl	_get_kms
	mov	x19, x0
	ldr	w0, [x21]
	bl	_find_rate
	mov	x20, x0
	ldr	w1, [x21]
	ldr	w2, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x8, _REG_MDP4_LCDC_LVDS_PHY_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_MDP4_LCDC_LVDS_PHY_RESET@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #51
	bl	_mdp4_write
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x8, x21]
	mov	x0, x19
	bl	_mdp4_write
	ldr	x8, [x20]
	add	x9, x8, x21
	ldr	x1, [x9, #24]
	add	x21, x21, #16
	cbnz	x1, LBB0_4
LBB0_5:
Lloh8:
	adrp	x8, _REG_MDP4_LVDS_PHY_PLL_CTRL_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_MDP4_LVDS_PHY_PLL_CTRL_0@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mdp4_write
Lloh11:
	adrp	x20, _REG_MDP4_LVDS_PHY_PLL_LOCKED@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_MDP4_LVDS_PHY_PLL_LOCKED@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mdp4_read
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_cpu_relax
	b	LBB0_6
LBB0_8:
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixclk=%lu (%lu)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_REG_MDP4_LCDC_LVDS_PHY_RESET,8,3 ; @REG_MDP4_LCDC_LVDS_PHY_RESET
	.comm	_REG_MDP4_LVDS_PHY_PLL_CTRL_0,8,3 ; @REG_MDP4_LVDS_PHY_PLL_CTRL_0
	.comm	_REG_MDP4_LVDS_PHY_PLL_LOCKED,4,2 ; @REG_MDP4_LVDS_PHY_PLL_LOCKED
	.no_dead_strip	_mpd4_lvds_pll_enable
.subsections_via_symbols
