	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu10_display_clock_voltage_request
_smu10_display_clock_voltage_request:   ## @smu10_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
	movslq	4(%rsi), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rdx
	cmpl	$128, %eax
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %rcx
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	cmpq	%rdx, (%rcx)
	je	LBB0_11
## %bb.4:
	movq	_PPSMC_MSG_SetHardMinDcefclkByFreq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, (%rcx)
	jmp	LBB0_10
LBB0_8:
	movq	_PPSMC_MSG_SetHardMinSocclkByFreq@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	cmpq	%rdx, 8(%rcx)
	je	LBB0_11
## %bb.6:
	movq	%rdx, 8(%rcx)
	movq	_PPSMC_MSG_SetHardMinFclkByFreq@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
LBB0_10:
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_11:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_SetHardMinDcefclkByFreq,4,2 ## @PPSMC_MSG_SetHardMinDcefclkByFreq
	.comm	_PPSMC_MSG_SetHardMinSocclkByFreq,4,2 ## @PPSMC_MSG_SetHardMinSocclkByFreq
	.comm	_PPSMC_MSG_SetHardMinFclkByFreq,4,2 ## @PPSMC_MSG_SetHardMinFclkByFreq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu10_display_clock_voltage_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu10_display_clock_voltage_request
_smu10_display_clock_voltage_request:   ; @smu10_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
	ldp	w8, w9, [x1]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	sxtw	x2, w9
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	ldr	x9, [x0]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.3:
	ldr	x8, [x9]
	cmp	x8, x2
	b.eq	LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _PPSMC_MSG_SetHardMinDcefclkByFreq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_SetHardMinDcefclkByFreq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x2, [x9]
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _PPSMC_MSG_SetHardMinSocclkByFreq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_SetHardMinSocclkByFreq@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x9, #8]
	cmp	x8, x2
	b.eq	LBB0_10
; %bb.7:
	str	x2, [x9, #8]
Lloh5:
	adrp	x8, _PPSMC_MSG_SetHardMinFclkByFreq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPSMC_MSG_SetHardMinFclkByFreq@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
LBB0_9:
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
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]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_SetHardMinDcefclkByFreq,4,2 ; @PPSMC_MSG_SetHardMinDcefclkByFreq
	.comm	_PPSMC_MSG_SetHardMinSocclkByFreq,4,2 ; @PPSMC_MSG_SetHardMinSocclkByFreq
	.comm	_PPSMC_MSG_SetHardMinFclkByFreq,4,2 ; @PPSMC_MSG_SetHardMinFclkByFreq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DisplayClockVoltageRequest]Invalid Clock Type!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu10_display_clock_voltage_request
.subsections_via_symbols
