	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_mg_pll_write
_icl_mg_pll_write:                      ## @icl_mg_pll_write
	.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
	movq	(%rsi), %rax
	movl	(%rax), %edi
	callq	_icl_pll_id_to_tc_port
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_MG_REFCLKIN_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_MG_REFCLKIN_CTL_OD_2_MUX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	8(%r14), %ebx
	movl	%r15d, %edi
	callq	_MG_REFCLKIN_CTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_CLKTOP2_CORECLKCTL1
	movl	%eax, %edi
	callq	_I915_READ
	movq	_MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	12(%r14), %ebx
	movl	%r15d, %edi
	callq	_MG_CLKTOP2_CORECLKCTL1
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_CLKTOP2_HSCLKCTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK@GOTPCREL(%rip), %rcx
	movq	_MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	16(%r14), %ebx
	movl	%r15d, %edi
	callq	_MG_CLKTOP2_HSCLKCTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_DIV0
	movl	20(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_DIV1
	movl	24(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_LF
	movl	28(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_FRAC_LOCK
	movl	32(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_SSC
	movl	36(%r14), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_BIAS
	movl	%eax, %edi
	callq	_I915_READ
	movl	40(%r14), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	44(%r14), %ebx
	movl	%r15d, %edi
	callq	_MG_PLL_BIAS
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_TDC_COLDST_BIAS
	movl	%eax, %edi
	callq	_I915_READ
	movl	48(%r14), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	52(%r14), %ebx
	movl	%r15d, %edi
	callq	_MG_PLL_TDC_COLDST_BIAS
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_MG_PLL_TDC_COLDST_BIAS
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MG_REFCLKIN_CTL_OD_2_MUX_MASK,4,2 ## @MG_REFCLKIN_CTL_OD_2_MUX_MASK
	.comm	_MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK,4,2 ## @MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK,4,2 ## @MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK,4,2 ## @MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK,4,2 ## @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK,4,2 ## @MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK
	.no_dead_strip	_icl_mg_pll_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_mg_pll_write
_icl_mg_pll_write:                      ; @icl_mg_pll_write
	.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	x8, [x1]
	ldr	w0, [x8]
	bl	_icl_pll_id_to_tc_port
	mov	x19, x0
	bl	_MG_REFCLKIN_CTL
	bl	_I915_READ
Lloh0:
	adrp	x8, _MG_REFCLKIN_CTL_OD_2_MUX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MG_REFCLKIN_CTL_OD_2_MUX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x20, #8]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_MG_REFCLKIN_CTL
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_CLKTOP2_CORECLKCTL1
	bl	_I915_READ
Lloh3:
	adrp	x8, _MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x20, #12]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_MG_CLKTOP2_CORECLKCTL1
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_CLKTOP2_HSCLKCTL
	bl	_I915_READ
Lloh6:
	adrp	x8, _MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
	bic	w8, w0, w8
	ldr	w9, [x20, #16]
	orr	w21, w8, w9
	mov	x0, x19
	bl	_MG_CLKTOP2_HSCLKCTL
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_DIV0
	ldr	w1, [x20, #20]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_DIV1
	ldr	w1, [x20, #24]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_LF
	ldr	w1, [x20, #28]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_FRAC_LOCK
	ldr	w1, [x20, #32]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_SSC
	ldr	w1, [x20, #36]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_BIAS
	bl	_I915_READ
	ldp	w8, w9, [x20, #40]
	bic	w8, w0, w8
	orr	w21, w8, w9
	mov	x0, x19
	bl	_MG_PLL_BIAS
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_TDC_COLDST_BIAS
	bl	_I915_READ
	ldp	w8, w9, [x20, #48]
	bic	w8, w0, w8
	orr	w20, w8, w9
	mov	x0, x19
	bl	_MG_PLL_TDC_COLDST_BIAS
	mov	x1, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_MG_PLL_TDC_COLDST_BIAS
	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	_POSTING_READ
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_MG_REFCLKIN_CTL_OD_2_MUX_MASK,4,2 ; @MG_REFCLKIN_CTL_OD_2_MUX_MASK
	.comm	_MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK,4,2 ; @MG_CLKTOP2_CORECLKCTL1_A_DIVRATIO_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK,4,2 ; @MG_CLKTOP2_HSCLKCTL_TLINEDRV_CLKSEL_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK,4,2 ; @MG_CLKTOP2_HSCLKCTL_CORE_INPUTSEL_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK,4,2 ; @MG_CLKTOP2_HSCLKCTL_HSDIV_RATIO_MASK
	.comm	_MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK,4,2 ; @MG_CLKTOP2_HSCLKCTL_DSDIV_RATIO_MASK
	.no_dead_strip	_icl_mg_pll_write
.subsections_via_symbols
