	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_pfit_vscale_ratio
_update_pfit_vscale_ratio:              ## @update_pfit_vscale_ratio
	.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	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_PFIT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %eax
	movq	_VERT_AUTO_SCALE@GOTPCREL(%rip), %rsi
	movq	_PFIT_PGM_RATIOS@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	andl	(%rsi), %ebx
	je	LBB0_2
## %bb.1:
	movq	_PFIT_AUTO_RATIOS@GOTPCREL(%rip), %rdx
LBB0_2:
	cmpl	$4, %eax
	cmovgeq	%rcx, %rdx
	movl	(%rdx), %edi
	movq	_PFIT_VERT_SCALE_SHIFT@GOTPCREL(%rip), %rbx
	cmovgeq	_PFIT_VERT_SCALE_SHIFT_965@GOTPCREL(%rip), %rbx
	callq	_I915_READ
	movb	(%rbx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFIT_CONTROL,4,2               ## @PFIT_CONTROL
	.comm	_PFIT_PGM_RATIOS,4,2            ## @PFIT_PGM_RATIOS
	.comm	_PFIT_VERT_SCALE_SHIFT_965,4,2  ## @PFIT_VERT_SCALE_SHIFT_965
	.comm	_VERT_AUTO_SCALE,4,2            ## @VERT_AUTO_SCALE
	.comm	_PFIT_AUTO_RATIOS,4,2           ## @PFIT_AUTO_RATIOS
	.comm	_PFIT_VERT_SCALE_SHIFT,4,2      ## @PFIT_VERT_SCALE_SHIFT
	.no_dead_strip	_update_pfit_vscale_ratio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_pfit_vscale_ratio
_update_pfit_vscale_ratio:              ; @update_pfit_vscale_ratio
	.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	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _PFIT_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFIT_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x20
	bl	_INTEL_INFO
	ldr	w20, [x0]
Lloh3:
	adrp	x8, _VERT_AUTO_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERT_AUTO_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	ccmp	w20, #3, #0, ne
Lloh6:
	adrp	x8, _PFIT_PGM_RATIOS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PFIT_PGM_RATIOS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PFIT_AUTO_RATIOS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PFIT_AUTO_RATIOS@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w0, [x8]
	bl	_I915_READ
Lloh10:
	adrp	x8, _PFIT_VERT_SCALE_SHIFT_965@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PFIT_VERT_SCALE_SHIFT_965@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PFIT_VERT_SCALE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PFIT_VERT_SCALE_SHIFT@GOTPAGEOFF]
	cmp	w20, #3
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	asr	w8, w0, w8
	str	w8, [x19]
	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
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIT_CONTROL,4,2               ; @PFIT_CONTROL
	.comm	_PFIT_PGM_RATIOS,4,2            ; @PFIT_PGM_RATIOS
	.comm	_PFIT_VERT_SCALE_SHIFT_965,4,2  ; @PFIT_VERT_SCALE_SHIFT_965
	.comm	_VERT_AUTO_SCALE,4,2            ; @VERT_AUTO_SCALE
	.comm	_PFIT_AUTO_RATIOS,4,2           ; @PFIT_AUTO_RATIOS
	.comm	_PFIT_VERT_SCALE_SHIFT,4,2      ; @PFIT_VERT_SCALE_SHIFT
	.no_dead_strip	_update_pfit_vscale_ratio
.subsections_via_symbols
