	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_apply_dal_min_voltage_request ## -- Begin function phm_apply_dal_min_voltage_request
	.p2align	4, 0x90
_phm_apply_dal_min_voltage_request:     ## @phm_apply_dal_min_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
	movq	8(%rdi), %r8
	movq	8(%r8), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_14
## %bb.2:
	movl	(%rdi), %esi
	movq	_PP_DAL_POWERLEVEL_ULTRALOW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jb	LBB0_14
## %bb.3:
	movq	_PP_DAL_POWERLEVEL_PERFORMANCE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	ja	LBB0_14
## %bb.4:
	movq	8(%rcx), %rax
	addq	$8, %rax
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-8(%rax), %esi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rax
	decq	%rdx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_14:
	popq	%rbp
	retq
LBB0_6:
	movq	(%rax), %r9
LBB0_8:
	movq	(%r8), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	8(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rcx,8), %rdx
	cmpq	%rdx, %r9
	jbe	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_13:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_12:
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdx
	movq	_PPSMC_MSG_VddC_Request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_smum_send_msg_to_smc_with_parameter ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_DAL_POWERLEVEL_ULTRALOW,4,2 ## @PP_DAL_POWERLEVEL_ULTRALOW
	.comm	_PP_DAL_POWERLEVEL_PERFORMANCE,4,2 ## @PP_DAL_POWERLEVEL_PERFORMANCE
	.comm	_VOLTAGE_SCALE,8,3              ## @VOLTAGE_SCALE
	.comm	_PPSMC_MSG_VddC_Request,4,2     ## @PPSMC_MSG_VddC_Request
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DAL requested level can not found a available voltage in VDDC DPM Table \n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_apply_dal_min_voltage_request ; -- Begin function phm_apply_dal_min_voltage_request
	.p2align	2
_phm_apply_dal_min_voltage_request:     ; @phm_apply_dal_min_voltage_request
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x11, [x8, #8]
	cbz	x11, LBB0_2
; %bb.1:
	ldr	w9, [x0]
	ldr	x10, [x11]
Lloh0:
	adrp	x12, _PP_DAL_POWERLEVEL_ULTRALOW@GOTPAGE
Lloh1:
	ldr	x12, [x12, _PP_DAL_POWERLEVEL_ULTRALOW@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
Lloh3:
	adrp	x13, _PP_DAL_POWERLEVEL_PERFORMANCE@GOTPAGE
Lloh4:
	ldr	x13, [x13, _PP_DAL_POWERLEVEL_PERFORMANCE@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
	cmp	x10, #1
	ccmp	w9, w12, #0, ge
	ccmp	w9, w13, #2, hs
	b.ls	LBB0_3
LBB0_2:
	ret
LBB0_3:
	ldr	x11, [x11, #8]
	add	x11, x11, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-8]
	cmp	w9, w12
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.ne	LBB0_4
; %bb.6:
	mov	x9, #0
	b	LBB0_8
LBB0_7:
	ldr	x9, [x11]
LBB0_8:
	ldr	x10, [x8]
	ldr	x8, [x10]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x10, [x10, #8]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.ls	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_12:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	_pr_err
LBB0_13:
Lloh8:
	adrp	x8, _VOLTAGE_SCALE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VOLTAGE_SCALE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mul	x2, x8, x11
Lloh11:
	adrp	x8, _PPSMC_MSG_VddC_Request@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PPSMC_MSG_VddC_Request@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	b	_smum_send_msg_to_smc_with_parameter
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_DAL_POWERLEVEL_ULTRALOW,4,2 ; @PP_DAL_POWERLEVEL_ULTRALOW
	.comm	_PP_DAL_POWERLEVEL_PERFORMANCE,4,2 ; @PP_DAL_POWERLEVEL_PERFORMANCE
	.comm	_VOLTAGE_SCALE,8,3              ; @VOLTAGE_SCALE
	.comm	_PPSMC_MSG_VddC_Request,4,2     ; @PPSMC_MSG_VddC_Request
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DAL requested level can not found a available voltage in VDDC DPM Table \n"

.subsections_via_symbols
