	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_ddi_hdmi_get_dpll
_hsw_ddi_hdmi_get_dpll:                 ## @hsw_ddi_hdmi_get_dpll
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %r13
	imull	$1000, (%rax), %edi             ## imm = 0x3E8
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_hsw_ddi_calculate_wrpll
	movq	_WRPLL_PLL_ENABLE@GOTPCREL(%rip), %rax
	movq	_WRPLL_REF_LCPLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movl	-44(%rbp), %edi
	callq	_WRPLL_DIVIDER_REFERENCE
	movl	%eax, %r12d
	movl	-48(%rbp), %edi
	callq	_WRPLL_DIVIDER_FEEDBACK
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	-52(%rbp), %edi
	callq	_WRPLL_DIVIDER_POST
	orl	%ebx, %eax
	orl	%r14d, %eax
	movl	%eax, 4(%r13)
	addq	$4, %r13
	movq	_DPLL_ID_WRPLL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DPLL_ID_WRPLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_intel_find_shared_dpll
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRPLL_PLL_ENABLE,4,2           ## @WRPLL_PLL_ENABLE
	.comm	_WRPLL_REF_LCPLL,4,2            ## @WRPLL_REF_LCPLL
	.comm	_DPLL_ID_WRPLL1,4,2             ## @DPLL_ID_WRPLL1
	.comm	_DPLL_ID_WRPLL2,4,2             ## @DPLL_ID_WRPLL2
	.no_dead_strip	_hsw_ddi_hdmi_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_ddi_hdmi_get_dpll
_hsw_ddi_hdmi_get_dpll:                 ; @hsw_ddi_hdmi_get_dpll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_intel_atomic_get_new_crtc_state
	mov	x21, x0
	ldr	w8, [x0]
	mov	w9, #1000
	mul	w0, w8, w9
	add	x1, sp, #4
	add	x2, sp, #8
	add	x3, sp, #12
	bl	_hsw_ddi_calculate_wrpll
Lloh0:
	adrp	x8, _WRPLL_PLL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WRPLL_REF_LCPLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WRPLL_REF_LCPLL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	w0, [sp, #4]
	bl	_WRPLL_DIVIDER_REFERENCE
	orr	w22, w22, w0
	ldr	w0, [sp, #8]
	bl	_WRPLL_DIVIDER_FEEDBACK
	orr	w22, w22, w0
	ldr	w0, [sp, #12]
	bl	_WRPLL_DIVIDER_POST
	orr	w8, w22, w0
	str	w8, [x21, #4]!
Lloh6:
	adrp	x8, _DPLL_ID_WRPLL1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPLL_ID_WRPLL1@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _DPLL_ID_WRPLL2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPLL_ID_WRPLL2@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_intel_find_shared_dpll
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.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	_WRPLL_PLL_ENABLE,4,2           ; @WRPLL_PLL_ENABLE
	.comm	_WRPLL_REF_LCPLL,4,2            ; @WRPLL_REF_LCPLL
	.comm	_DPLL_ID_WRPLL1,4,2             ; @DPLL_ID_WRPLL1
	.comm	_DPLL_ID_WRPLL2,4,2             ; @DPLL_ID_WRPLL2
	.no_dead_strip	_hsw_ddi_hdmi_get_dpll
.subsections_via_symbols
