	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_pll_enable
_hdmi_pll_enable:                       ## @hdmi_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	%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
	callq	_hw_clk_to_pll
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_pll_get_phy
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$141, %edx
	callq	_pll_write
	movq	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_pll_write
	movq	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$26, %edx
	callq	_pll_write
	movl	$10, %r13d
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$13, %edx
	callq	_pll_write
	movq	_REG_HDMI_8960_PHY_REG12@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_hdmi_phy_read
	movl	%eax, %r15d
	movq	_HDMI_8960_PHY_REG12_SW_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_hdmi_phy_write
	movq	_HDMI_8960_PHY_REG12_SW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movl	$10, %edi
	callq	_udelay
	movq	_REG_HDMI_8960_PHY_REG12@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hdmi_phy_write
	movq	_REG_HDMI_8960_PHY_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$63, %edx
	callq	_hdmi_phy_write
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_hdmi_phy_read
	movq	_HDMI_8960_PHY_REG12_PWRDN_B@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hdmi_phy_write
	xorl	%eax, %eax
	callq	_mb
	movl	$10, %edi
	callq	_udelay
	movq	_REG_HDMI_8960_PHY_PLL_PWRDN_B@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pll_read
	movq	_HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pll_write
	movq	_REG_HDMI_8960_PHY_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_hdmi_phy_write
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_REG_HDMI_8960_PHY_PLL_STATUS0@GOTPCREL(%rip), %r14
	movq	_HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$141, %edx
	callq	_pll_write
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$13, %edx
	callq	_pll_write
	movl	$350, %edi                      ## imm = 0x15E
	callq	_udelay
	movl	$1000, %ebx                     ## imm = 0x3E8
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%r13d
	cmpl	$1, %r13d
	jbe	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_pll_read
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	cmpl	$1, %ebx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2,4,2 ## @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2
	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0,4,2 ## @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0
	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1,4,2 ## @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1
	.comm	_REG_HDMI_8960_PHY_REG12,4,2    ## @REG_HDMI_8960_PHY_REG12
	.comm	_HDMI_8960_PHY_REG12_SW_RESET,4,2 ## @HDMI_8960_PHY_REG12_SW_RESET
	.comm	_REG_HDMI_8960_PHY_REG2,4,2     ## @REG_HDMI_8960_PHY_REG2
	.comm	_HDMI_8960_PHY_REG12_PWRDN_B,4,2 ## @HDMI_8960_PHY_REG12_PWRDN_B
	.comm	_REG_HDMI_8960_PHY_PLL_PWRDN_B,4,2 ## @REG_HDMI_8960_PHY_PLL_PWRDN_B
	.comm	_HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B,4,2 ## @HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B
	.comm	_HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL,4,2 ## @HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL
	.comm	_REG_HDMI_8960_PHY_PLL_STATUS0,4,2 ## @REG_HDMI_8960_PHY_PLL_STATUS0
	.comm	_HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK,4,2 ## @HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK
	.no_dead_strip	_hdmi_pll_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_pll_enable
_hdmi_pll_enable:                       ; @hdmi_pll_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	bl	_hw_clk_to_pll
	mov	x19, x0
	bl	_pll_get_phy
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
Lloh2:
	adrp	x22, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #141
	bl	_pll_write
Lloh4:
	adrp	x8, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_pll_write
Lloh7:
	adrp	x8, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #26
	bl	_pll_write
	mov	w23, #10
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #13
	bl	_pll_write
Lloh10:
	adrp	x24, _REG_HDMI_8960_PHY_REG12@GOTPAGE
Lloh11:
	ldr	x24, [x24, _REG_HDMI_8960_PHY_REG12@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hdmi_phy_read
Lloh12:
	adrp	x25, _HDMI_8960_PHY_REG12_SW_RESET@GOTPAGE
Lloh13:
	ldr	x25, [x25, _HDMI_8960_PHY_REG12_SW_RESET@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w21, w8, w0
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_hdmi_phy_write
	ldr	w8, [x25]
	bic	w21, w21, w8
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_hdmi_phy_write
Lloh14:
	adrp	x21, _REG_HDMI_8960_PHY_REG2@GOTPAGE
Lloh15:
	ldr	x21, [x21, _REG_HDMI_8960_PHY_REG2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #63
	bl	_hdmi_phy_write
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hdmi_phy_read
Lloh16:
	adrp	x8, _HDMI_8960_PHY_REG12_PWRDN_B@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HDMI_8960_PHY_REG12_PWRDN_B@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_hdmi_phy_write
	bl	_mb
	mov	w0, #10
	bl	_udelay
Lloh19:
	adrp	x24, _REG_HDMI_8960_PHY_PLL_PWRDN_B@GOTPAGE
Lloh20:
	ldr	x24, [x24, _REG_HDMI_8960_PHY_PLL_PWRDN_B@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_pll_read
Lloh21:
	adrp	x8, _HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh24:
	adrp	x9, _HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x24]
	mov	x0, x19
	bl	_pll_write
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #128
	bl	_hdmi_phy_write
	mov	w24, #1000
Lloh27:
	adrp	x20, _REG_HDMI_8960_PHY_PLL_STATUS0@GOTPAGE
Lloh28:
	ldr	x20, [x20, _REG_HDMI_8960_PHY_PLL_STATUS0@GOTPAGEOFF]
Lloh29:
	adrp	x21, _HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK@GOTPAGE
Lloh30:
	ldr	x21, [x21, _HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w23, w23, #1
	cmp	w23, #1
	b.ls	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pll_read
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w24, w24, #1
	b.gt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #141
	bl	_pll_write
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #13
	bl	_pll_write
	mov	w0, #350
	bl	_udelay
	mov	w24, #1000
	b	LBB0_1
LBB0_5:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2,4,2 ; @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2
	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0,4,2 ; @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0
	.comm	_REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1,4,2 ; @REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1
	.comm	_REG_HDMI_8960_PHY_REG12,4,2    ; @REG_HDMI_8960_PHY_REG12
	.comm	_HDMI_8960_PHY_REG12_SW_RESET,4,2 ; @HDMI_8960_PHY_REG12_SW_RESET
	.comm	_REG_HDMI_8960_PHY_REG2,4,2     ; @REG_HDMI_8960_PHY_REG2
	.comm	_HDMI_8960_PHY_REG12_PWRDN_B,4,2 ; @HDMI_8960_PHY_REG12_PWRDN_B
	.comm	_REG_HDMI_8960_PHY_PLL_PWRDN_B,4,2 ; @REG_HDMI_8960_PHY_PLL_PWRDN_B
	.comm	_HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B,4,2 ; @HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B
	.comm	_HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL,4,2 ; @HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL
	.comm	_REG_HDMI_8960_PHY_PLL_STATUS0,4,2 ; @REG_HDMI_8960_PHY_PLL_STATUS0
	.comm	_HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK,4,2 ; @HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK
	.no_dead_strip	_hdmi_pll_enable
.subsections_via_symbols
