	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_update_fdi_pll_freq
_intel_update_fdi_pll_freq:             ## @intel_update_fdi_pll_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_FDI_PLL_BIOS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_FDI_PLL_FB_CLOCK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	imull	$10000, %eax, %ebx              ## imm = 0x2710
	addl	$20000, %ebx                    ## imm = 0x4E20
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	movl	$270000, %ebx                   ## imm = 0x41EB0
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movl	%ebx, (%r14)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDI_PLL_BIOS_0,4,2             ## @FDI_PLL_BIOS_0
	.comm	_FDI_PLL_FB_CLOCK_MASK,4,2      ## @FDI_PLL_FB_CLOCK_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FDI PLL freq=%d\n"

	.no_dead_strip	_intel_update_fdi_pll_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_update_fdi_pll_freq
_intel_update_fdi_pll_freq:             ; @intel_update_fdi_pll_freq
	.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	x19, x0
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FDI_PLL_BIOS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDI_PLL_BIOS_0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _FDI_PLL_FB_CLOCK_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDI_PLL_FB_CLOCK_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	mov	w9, #10000
	mov	w10, #20000
	madd	w20, w8, w9, w10
	b	LBB0_4
LBB0_2:
	mov	w20, #7856
	movk	w20, #4, lsl #16
	mov	x0, x19
	mov	w1, #6
	bl	_IS_GEN
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_IS_IVYBRIDGE
	cbz	x0, LBB0_5
LBB0_4:
	str	w20, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG_DRIVER
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
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FDI_PLL_BIOS_0,4,2             ; @FDI_PLL_BIOS_0
	.comm	_FDI_PLL_FB_CLOCK_MASK,4,2      ; @FDI_PLL_FB_CLOCK_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FDI PLL freq=%d\n"

	.no_dead_strip	_intel_update_fdi_pll_freq
.subsections_via_symbols
