	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bxt_calc_pll_link
_bxt_calc_pll_link:                     ## @bxt_calc_pll_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	$2, -24(%rbp)
	movq	_PORT_PLL_M2_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	shll	$22, %eax
	movl	%eax, -20(%rbp)
	movq	_PORT_PLL_M2_FRAC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PORT_PLL_M2_FRAC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rdi), %ecx
	orl	%eax, %ecx
	movl	%ecx, -20(%rbp)
LBB0_2:
	movq	_PORT_PLL_N_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rdi), %eax
	movq	_PORT_PLL_N_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, -16(%rbp)
	movl	16(%rdi), %eax
	movq	_PORT_PLL_P1_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_PORT_PLL_P1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%edx, -12(%rbp)
	movq	_PORT_PLL_P2_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PORT_PLL_P2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, -8(%rbp)
	leaq	-24(%rbp), %rsi
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_chv_calc_dpll_params
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_PLL_M2_MASK,4,2           ## @PORT_PLL_M2_MASK
	.comm	_PORT_PLL_M2_FRAC_ENABLE,4,2    ## @PORT_PLL_M2_FRAC_ENABLE
	.comm	_PORT_PLL_M2_FRAC_MASK,4,2      ## @PORT_PLL_M2_FRAC_MASK
	.comm	_PORT_PLL_N_MASK,4,2            ## @PORT_PLL_N_MASK
	.comm	_PORT_PLL_N_SHIFT,4,2           ## @PORT_PLL_N_SHIFT
	.comm	_PORT_PLL_P1_MASK,4,2           ## @PORT_PLL_P1_MASK
	.comm	_PORT_PLL_P1_SHIFT,4,2          ## @PORT_PLL_P1_SHIFT
	.comm	_PORT_PLL_P2_MASK,4,2           ## @PORT_PLL_P2_MASK
	.comm	_PORT_PLL_P2_SHIFT,4,2          ## @PORT_PLL_P2_SHIFT
	.no_dead_strip	_bxt_calc_pll_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bxt_calc_pll_link
_bxt_calc_pll_link:                     ; @bxt_calc_pll_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, _PORT_PLL_M2_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_PLL_M2_MASK@GOTPAGEOFF]
	mov	w9, #2
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w11, [x0]
	and	w8, w8, w10
	lsl	w8, w8, #22
	stp	w9, w8, [sp, #8]
Lloh3:
	adrp	x9, _PORT_PLL_M2_FRAC_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORT_PLL_M2_FRAC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w11
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x0, #8]
Lloh6:
	adrp	x10, _PORT_PLL_M2_FRAC_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PORT_PLL_M2_FRAC_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_2:
Lloh9:
	adrp	x8, _PORT_PLL_N_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_PLL_N_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldp	w9, w10, [x0, #12]
	and	w8, w8, w9
Lloh12:
	adrp	x9, _PORT_PLL_N_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PORT_PLL_N_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _PORT_PLL_P1_MASK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PORT_PLL_P1_MASK@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh17:
	ldr	w9, [x11]
	and	w9, w9, w10
Lloh18:
	adrp	x11, _PORT_PLL_P1_SHIFT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _PORT_PLL_P1_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	asr	w9, w9, w11
	stp	w8, w9, [sp, #16]
Lloh21:
	adrp	x8, _PORT_PLL_P2_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_PLL_P2_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w10
Lloh24:
	adrp	x9, _PORT_PLL_P2_SHIFT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PORT_PLL_P2_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [sp, #24]
	add	x1, sp, #8
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_chv_calc_dpll_params
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_PLL_M2_MASK,4,2           ; @PORT_PLL_M2_MASK
	.comm	_PORT_PLL_M2_FRAC_ENABLE,4,2    ; @PORT_PLL_M2_FRAC_ENABLE
	.comm	_PORT_PLL_M2_FRAC_MASK,4,2      ; @PORT_PLL_M2_FRAC_MASK
	.comm	_PORT_PLL_N_MASK,4,2            ; @PORT_PLL_N_MASK
	.comm	_PORT_PLL_N_SHIFT,4,2           ; @PORT_PLL_N_SHIFT
	.comm	_PORT_PLL_P1_MASK,4,2           ; @PORT_PLL_P1_MASK
	.comm	_PORT_PLL_P1_SHIFT,4,2          ; @PORT_PLL_P1_SHIFT
	.comm	_PORT_PLL_P2_MASK,4,2           ; @PORT_PLL_P2_MASK
	.comm	_PORT_PLL_P2_SHIFT,4,2          ; @PORT_PLL_P2_SHIFT
	.no_dead_strip	_bxt_calc_pll_link
.subsections_via_symbols
