	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_single_graphic_level
_ci_populate_single_graphic_level:      ## @ci_populate_single_graphic_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	callq	_ci_calculate_sclk_params
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movq	%r12, %rcx
	callq	_ci_get_dependency_volt_by_clk
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_7
LBB0_2:
	movl	%r15d, 4(%r12)
	movl	$1, 8(%r12)
	cmpq	$0, 16(%r13)
	je	LBB0_4
## %bb.3:
	leaq	8(%r12), %rcx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ci_populate_phase_value_based_on_sclk
LBB0_4:
	movl	8(%r13), %eax
	movl	%eax, 40(%r12)
	movq	$0, 12(%r12)
	movq	$0, 80(%r12)
	movl	$1, 20(%r12)
	movl	4(%r13), %eax
	movl	%eax, 76(%r12)
	movl	(%r13), %eax
	movl	%eax, 72(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r12)
	movl	(%rbx), %edi
	movq	_PHM_PlatformCaps_SclkDeepSleep@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CISLAND_MINIMUM_ENGINE_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_ci_get_sleep_divider_id_from_clock
	movl	%eax, 48(%r12)
LBB0_6:
	movq	_PPSMC_DISPLAY_WATERMARK_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r12)
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%r12), %edi
	callq	_PP_HOST_TO_SMC_UL
	movl	%eax, (%r12)
	movl	8(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	4(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	40(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_US
	movl	24(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	28(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	32(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	36(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	12(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
	movl	16(%r12), %edi
	callq	_CONVERT_FROM_HOST_TO_SMC_UL
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdd_dep_on_sclk table is NULL\n"

	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ## @PHM_PlatformCaps_SclkDeepSleep
	.comm	_CISLAND_MINIMUM_ENGINE_CLOCK,4,2 ## @CISLAND_MINIMUM_ENGINE_CLOCK
	.comm	_PPSMC_DISPLAY_WATERMARK_LOW,4,2 ## @PPSMC_DISPLAY_WATERMARK_LOW
	.comm	_VOLTAGE_SCALE,4,2              ## @VOLTAGE_SCALE
	.no_dead_strip	_ci_populate_single_graphic_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_single_graphic_level
_ci_populate_single_graphic_level:      ; @ci_populate_single_graphic_level
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #16]
	bl	_ci_calculate_sclk_params
	ldr	w1, [x22, #8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x19
	bl	_ci_get_dependency_volt_by_clk
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_2:
	mov	w24, #1
	mov	x3, x19
	str	w24, [x3, #8]!
	stur	w21, [x3, #-4]
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x22, #4]
	mov	x0, x22
	mov	x2, x21
	bl	_ci_populate_phase_value_based_on_sclk
LBB0_4:
	ldr	w8, [x23, #8]
	str	w8, [x19, #40]
	stp	wzr, wzr, [x19, #12]
	str	xzr, [x19, #80]
	str	w24, [x19, #20]
	ldr	d0, [x23]
	str	d0, [x19, #72]
	stp	xzr, xzr, [x19, #56]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _PHM_PlatformCaps_SclkDeepSleep@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHM_PlatformCaps_SclkDeepSleep@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
	cbz	x0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _CISLAND_MINIMUM_ENGINE_CLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CISLAND_MINIMUM_ENGINE_CLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ci_get_sleep_divider_id_from_clock
	str	w0, [x19, #48]
LBB0_6:
Lloh8:
	adrp	x8, _PPSMC_DISPLAY_WATERMARK_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPSMC_DISPLAY_WATERMARK_LOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _VOLTAGE_SCALE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VOLTAGE_SCALE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_PP_HOST_TO_SMC_UL
	str	w0, [x19]
	ldr	w0, [x19, #8]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #4]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #40]
	bl	_CONVERT_FROM_HOST_TO_SMC_US
	ldr	w0, [x19, #24]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #28]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #32]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #36]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #12]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
	ldr	w0, [x19, #16]
	bl	_CONVERT_FROM_HOST_TO_SMC_UL
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdd_dep_on_sclk table is NULL\n"

	.comm	_PHM_PlatformCaps_SclkDeepSleep,4,2 ; @PHM_PlatformCaps_SclkDeepSleep
	.comm	_CISLAND_MINIMUM_ENGINE_CLOCK,4,2 ; @CISLAND_MINIMUM_ENGINE_CLOCK
	.comm	_PPSMC_DISPLAY_WATERMARK_LOW,4,2 ; @PPSMC_DISPLAY_WATERMARK_LOW
	.comm	_VOLTAGE_SCALE,4,2              ; @VOLTAGE_SCALE
	.no_dead_strip	_ci_populate_single_graphic_level
.subsections_via_symbols
