	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_display_clock_voltage_request ## -- Begin function vega10_display_clock_voltage_request
	.p2align	4, 0x90
_vega10_display_clock_voltage_request:  ## @vega10_display_clock_voltage_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	movslq	4(%rsi), %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	shrq	$38, %rdx
	addl	%ecx, %edx
	cltq
	leaq	l_switch.table.vega10_display_clock_voltage_request(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	shll	$16, %edx
	orl	(%rax), %edx
	movq	_PPSMC_MSG_RequestDisplayClockByFreq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_smum_send_msg_to_smc_with_parameter
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPCLK_DCEFCLK,4,2             ## @DSPCLK_DCEFCLK
	.comm	_DSPCLK_DISPCLK,4,2             ## @DSPCLK_DISPCLK
	.comm	_DSPCLK_PIXCLK,4,2              ## @DSPCLK_PIXCLK
	.comm	_DSPCLK_PHYCLK,4,2              ## @DSPCLK_PHYCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_PPSMC_MSG_RequestDisplayClockByFreq,4,2 ## @PPSMC_MSG_RequestDisplayClockByFreq
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vega10_display_clock_voltage_request
l_switch.table.vega10_display_clock_voltage_request:
	.quad	_DSPCLK_PIXCLK
	.quad	_DSPCLK_PHYCLK
	.quad	_DSPCLK_DISPCLK
	.quad	_DSPCLK_DCEFCLK

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_display_clock_voltage_request ; -- Begin function vega10_display_clock_voltage_request
	.p2align	2
_vega10_display_clock_voltage_request:  ; @vega10_display_clock_voltage_request
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	ldrsw	x9, [x1, #4]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	lsr	x9, x9, #38
Lloh0:
	adrp	x11, l_switch.table.vega10_display_clock_voltage_request@PAGE
Lloh1:
	add	x11, x11, l_switch.table.vega10_display_clock_voltage_request@PAGEOFF
	ldr	x8, [x11, w8, sxtw #3]
	add	w9, w9, w10
	ldr	w8, [x8]
	orr	w2, w8, w9, lsl #16
Lloh2:
	adrp	x8, _PPSMC_MSG_RequestDisplayClockByFreq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_MSG_RequestDisplayClockByFreq@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_smum_send_msg_to_smc_with_parameter
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPCLK_DCEFCLK,4,2             ; @DSPCLK_DCEFCLK
	.comm	_DSPCLK_DISPCLK,4,2             ; @DSPCLK_DISPCLK
	.comm	_DSPCLK_PIXCLK,4,2              ; @DSPCLK_PIXCLK
	.comm	_DSPCLK_PHYCLK,4,2              ; @DSPCLK_PHYCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_PPSMC_MSG_RequestDisplayClockByFreq,4,2 ; @PPSMC_MSG_RequestDisplayClockByFreq
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vega10_display_clock_voltage_request
l_switch.table.vega10_display_clock_voltage_request:
	.quad	_DSPCLK_PIXCLK
	.quad	_DSPCLK_PHYCLK
	.quad	_DSPCLK_DISPCLK
	.quad	_DSPCLK_DCEFCLK

.subsections_via_symbols
