	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cherryview_rps_max_freq
_cherryview_rps_max_freq:               ## @cherryview_rps_max_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
	movq	_FB_GFX_FMAX_AT_VMAX_FUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vlv_punit_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_RUNTIME_INFO
	movl	(%rax), %ecx
	cmpl	$12, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$8, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT@GOTPCREL(%rip), %rax
	cmpl	$8, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT@GOTPCREL(%rip), %rax
LBB0_5:
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_FB_GFX_FREQ_FUSE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FB_GFX_FMAX_AT_VMAX_FUSE,4,2   ## @FB_GFX_FMAX_AT_VMAX_FUSE
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT,4,2 ## @FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT,4,2 ## @FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT,4,2 ## @FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT
	.comm	_FB_GFX_FREQ_FUSE_MASK,4,2      ## @FB_GFX_FREQ_FUSE_MASK
	.no_dead_strip	_cherryview_rps_max_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cherryview_rps_max_freq
_cherryview_rps_max_freq:               ; @cherryview_rps_max_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
Lloh0:
	adrp	x8, _FB_GFX_FMAX_AT_VMAX_FUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FB_GFX_FMAX_AT_VMAX_FUSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vlv_punit_read
	mov	x20, x0
	mov	x0, x19
	bl	_RUNTIME_INFO
Lloh3:
	adrp	x8, _FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT@GOTPAGEOFF]
Lloh7:
	adrp	x10, _FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT@GOTPAGEOFF]
	ldr	w11, [x0]
	cmp	w11, #12
	csel	x9, x9, x10, eq
	cmp	w11, #8
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	asr	w8, w20, w8
Lloh9:
	adrp	x9, _FB_GFX_FREQ_FUSE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FB_GFX_FREQ_FUSE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FB_GFX_FMAX_AT_VMAX_FUSE,4,2   ; @FB_GFX_FMAX_AT_VMAX_FUSE
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT,4,2 ; @FB_GFX_FMAX_AT_VMAX_2SS4EU_FUSE_SHIFT
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT,4,2 ; @FB_GFX_FMAX_AT_VMAX_2SS6EU_FUSE_SHIFT
	.comm	_FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT,4,2 ; @FB_GFX_FMAX_AT_VMAX_2SS8EU_FUSE_SHIFT
	.comm	_FB_GFX_FREQ_FUSE_MASK,4,2      ; @FB_GFX_FREQ_FUSE_MASK
	.no_dead_strip	_cherryview_rps_max_freq
.subsections_via_symbols
