	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_pll_refclk
_i9xx_pll_refclk:                       ## @i9xx_pll_refclk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_i915
	movq	_PLL_REF_INPUT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	movq	%rax, %rbx
	movq	_PLLB_REF_INPUT_SPREADSPECTRUMIN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	movq	%rax, %rcx
	movl	$120000, %eax                   ## imm = 0x1D4C0
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_IS_GEN
	testl	%eax, %eax
	movl	$96000, %ecx                    ## imm = 0x17700
	movl	$48000, %eax                    ## imm = 0xBB80
	cmovel	%ecx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_REF_INPUT_MASK,4,2         ## @PLL_REF_INPUT_MASK
	.comm	_PLLB_REF_INPUT_SPREADSPECTRUMIN,4,2 ## @PLLB_REF_INPUT_SPREADSPECTRUMIN
	.no_dead_strip	_i9xx_pll_refclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_pll_refclk
_i9xx_pll_refclk:                       ; @i9xx_pll_refclk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_to_i915
	mov	x19, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _PLL_REF_INPUT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLL_REF_INPUT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _PLLB_REF_INPUT_SPREADSPECTRUMIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLLB_REF_INPUT_SPREADSPECTRUMIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #54464
	movk	w0, #1, lsl #16
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #2
	bl	_IS_GEN
	mov	w8, #48000
	mov	w9, #30464
	movk	w9, #1, lsl #16
	cmp	w0, #0
	csel	w0, w9, w8, eq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_REF_INPUT_MASK,4,2         ; @PLL_REF_INPUT_MASK
	.comm	_PLLB_REF_INPUT_SPREADSPECTRUMIN,4,2 ; @PLLB_REF_INPUT_SPREADSPECTRUMIN
	.no_dead_strip	_i9xx_pll_refclk
.subsections_via_symbols
