	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega20_display_clock_voltage_request ## -- Begin function vega20_display_clock_voltage_request
	.p2align	4, 0x90
_vega20_display_clock_voltage_request:  ## @vega20_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_GNLD_DPM_DCEFCLK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movslq	4(%rsi), %r14
	movl	(%rsi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_PPCLK_PIXCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	negl	%eax
	jmp	LBB0_2
LBB0_8:
	movq	_PPCLK_PHYCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_12
LBB0_6:
	movq	_PPCLK_DISPCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_12
LBB0_5:
	movq	_PPCLK_DCEFCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_12
LBB0_11:
	xorl	%edx, %edx
LBB0_12:
	imulq	$274877907, %r14, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	shll	$16, %edx
	orl	%eax, %edx
	movq	_PPSMC_MSG_SetHardMinByFreq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_smum_send_msg_to_smc_with_parameter ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_GNLD_DPM_DCEFCLK,8,3           ## @GNLD_DPM_DCEFCLK
	.comm	_PPCLK_DCEFCLK,4,2              ## @PPCLK_DCEFCLK
	.comm	_PPCLK_DISPCLK,4,2              ## @PPCLK_DISPCLK
	.comm	_PPCLK_PIXCLK,4,2               ## @PPCLK_PIXCLK
	.comm	_PPCLK_PHYCLK,4,2               ## @PPCLK_PHYCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_SetHardMinByFreq,4,2 ## @PPSMC_MSG_SetHardMinByFreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega20_display_clock_voltage_request ; -- Begin function vega20_display_clock_voltage_request
	.p2align	2
_vega20_display_clock_voltage_request:  ; @vega20_display_clock_voltage_request
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _GNLD_DPM_DCEFCLK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GNLD_DPM_DCEFCLK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	w8, w20, [x1]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _PPCLK_PIXCLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPCLK_PIXCLK@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.7:
	neg	w0, w8
	b	LBB0_5
LBB0_8:
Lloh12:
	adrp	x8, _PPCLK_PHYCLK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PPCLK_PHYCLK@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x8, _PPCLK_DISPCLK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PPCLK_DISPCLK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _PPCLK_DCEFCLK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PPCLK_DCEFCLK@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
LBB0_12:
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x9, x20, x9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	orr	w2, w9, w8, lsl #16
Lloh18:
	adrp	x8, _PPSMC_MSG_SetHardMinByFreq@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPSMC_MSG_SetHardMinByFreq@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_smum_send_msg_to_smc_with_parameter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.comm	_GNLD_DPM_DCEFCLK,8,3           ; @GNLD_DPM_DCEFCLK
	.comm	_PPCLK_DCEFCLK,4,2              ; @PPCLK_DCEFCLK
	.comm	_PPCLK_DISPCLK,4,2              ; @PPCLK_DISPCLK
	.comm	_PPCLK_PIXCLK,4,2               ; @PPCLK_PIXCLK
	.comm	_PPCLK_PHYCLK,4,2               ; @PPCLK_PHYCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_SetHardMinByFreq,4,2 ; @PPSMC_MSG_SetHardMinByFreq
.subsections_via_symbols
