	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_single_memory_level
_ci_populate_single_memory_level:       ## @ci_populate_single_memory_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ci_get_pi
	movq	%rax, %r12
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_ci_get_dependency_volt_by_clk
	testl	%eax, %eax
	jne	LBB0_33
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	24(%rbx), %rsi
	leaq	4(%r15), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ci_get_dependency_volt_by_clk
	testl	%eax, %eax
	jne	LBB0_33
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rsi
	leaq	8(%r15), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ci_get_dependency_volt_by_clk
	testl	%eax, %eax
	jne	LBB0_33
LBB0_6:
	movl	$1, 12(%r15)
	cmpq	$0, 64(%r12)
	je	LBB0_8
## %bb.7:
	leaq	12(%r15), %rcx
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ci_populate_phase_value_based_on_mclk
LBB0_8:
	movabsq	$429496729601, %rax             ## imm = 0x6400000001
	movq	%rax, 16(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r15)
	movq	56(%r12), %rax
	movq	%rax, 88(%r15)
	movups	%xmm0, 24(%r15)
	movl	$0, 40(%r15)
	movq	_PPSMC_DISPLAY_WATERMARK_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r15)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	cmpq	%r14, %rax
	jl	LBB0_14
## %bb.10:
	cmpl	$0, 8(%r12)
	je	LBB0_11
LBB0_14:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	cmpq	%r14, %rax
	jl	LBB0_17
## %bb.16:
	movl	$1, 28(%r15)
LBB0_17:
	cmpq	$0, 48(%r12)
	je	LBB0_28
## %bb.18:
	movl	28(%r15), %esi
	movq	%r14, %rdi
	callq	_si_get_mclk_frequency_ratio
	movl	%eax, 44(%r15)
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	cmpq	%r14, %rax
	jge	LBB0_21
## %bb.20:
	movl	$1, 32(%r15)
LBB0_21:
	movq	32(%r12), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	cmpq	%r14, %rax
	jge	LBB0_24
## %bb.23:
	movl	$1, 36(%r15)
LBB0_24:
	cmpl	$0, 28(%r15)
	je	LBB0_27
## %bb.25:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_si_get_mclk_frequency_ratio
	movl	%eax, %r12d
	movq	_MC_SEQ_MISC7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	shrl	$16, %eax
	andl	$15, %eax
	cmpl	%eax, %r12d
	jge	LBB0_29
## %bb.26:
	movq	_MC_SEQ_MISC6@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_28:
	movq	%r14, %rdi
	callq	_si_get_ddr3_mclk_frequency_ratio
	movl	%eax, 44(%r15)
LBB0_29:
	movq	_MC_SEQ_MISC5@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r8d
	shrl	%r8d
	andl	$1, %r8d
	jmp	LBB0_31
LBB0_27:
	movl	40(%r12), %r8d
LBB0_31:
	movl	28(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ci_calculate_mclk_params
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	imull	(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, (%r15)
	movl	12(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 12(%r15)
	movl	(%rbx), %edi
	imull	4(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 4(%r15)
	movl	(%rbx), %edi
	imull	8(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 8(%r15)
	movl	48(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 48(%r15)
	movq	88(%r15), %rdi
	callq	_cpu_to_be16
	movq	%rax, 88(%r15)
	movl	52(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 52(%r15)
	movl	56(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 56(%r15)
	movl	60(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 60(%r15)
	movl	64(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 64(%r15)
	movl	68(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 68(%r15)
	movl	72(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 72(%r15)
	movl	76(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 76(%r15)
	movl	80(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 80(%r15)
	movl	84(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 84(%r15)
	xorl	%eax, %eax
LBB0_33:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_DPG_PIPE_STUTTER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_STUTTER_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	cmpl	$2, (%rbx)
	jg	LBB0_14
## %bb.13:
	leaq	24(%r15), %rax
	movl	$1, (%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_DISPLAY_WATERMARK_LOW,4,2 ## @PPSMC_DISPLAY_WATERMARK_LOW
	.comm	_DPG_PIPE_STUTTER_CONTROL,4,2   ## @DPG_PIPE_STUTTER_CONTROL
	.comm	_STUTTER_ENABLE,4,2             ## @STUTTER_ENABLE
	.comm	_MC_SEQ_MISC7,4,2               ## @MC_SEQ_MISC7
	.comm	_MC_SEQ_MISC5,4,2               ## @MC_SEQ_MISC5
	.comm	_MC_SEQ_MISC6,4,2               ## @MC_SEQ_MISC6
	.comm	_VOLTAGE_SCALE,4,2              ## @VOLTAGE_SCALE
	.no_dead_strip	_ci_populate_single_memory_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ci_populate_single_memory_level
lCPI0_0:
	.long	1                               ; 0x1
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ci_populate_single_memory_level:       ; @ci_populate_single_memory_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	x20, x1
	mov	x21, x0
	bl	_ci_get_pi
	mov	x22, x0
	mov	x1, x21
	ldr	x8, [x1, #32]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ci_get_dependency_volt_by_clk
	cbnz	w0, LBB0_30
LBB0_2:
	mov	x1, x21
	ldr	x8, [x1, #24]!
	cbz	x8, LBB0_4
; %bb.3:
	add	x3, x19, #4
	mov	x0, x21
	mov	x2, x20
	bl	_ci_get_dependency_volt_by_clk
	cbnz	w0, LBB0_30
LBB0_4:
	mov	x1, x21
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_6
; %bb.5:
	add	x3, x19, #8
	mov	x0, x21
	mov	x2, x20
	bl	_ci_get_dependency_volt_by_clk
	cbnz	w0, LBB0_30
LBB0_6:
	mov	w8, #1
	mov	x3, x19
	str	w8, [x3, #12]!
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_8
; %bb.7:
	add	x1, x21, #8
	mov	x0, x21
	mov	x2, x20
	bl	_ci_populate_phase_value_based_on_mclk
LBB0_8:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	movi.2d	v1, #0000000000000000
	stur	q1, [x19, #104]
	ldr	x8, [x22, #56]
	mov	x23, x19
	str	q1, [x23, #24]!
	stur	d0, [x23, #-8]
	str	x8, [x23, #64]
	str	wzr, [x23, #16]
Lloh2:
	adrp	x8, _PPSMC_DISPLAY_WATERMARK_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_DISPLAY_WATERMARK_LOW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x23, #72]
	ldr	x8, [x22]
	cbz	x8, LBB0_11
; %bb.9:
	cmp	x8, x20
	b.lt	LBB0_11
; %bb.10:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_31
LBB0_11:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_14
; %bb.12:
	cmp	x8, x20
	b.lt	LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x19, #28]
LBB0_14:
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_24
; %bb.15:
	ldr	w1, [x19, #28]
	mov	x0, x20
	bl	_si_get_mclk_frequency_ratio
	str	w0, [x19, #44]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_18
; %bb.16:
	cmp	x8, x20
	b.ge	LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_18:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_21
; %bb.19:
	cmp	x8, x20
	b.ge	LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #36]
LBB0_21:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_27
; %bb.22:
	mov	x0, x20
	mov	w1, #1
	bl	_si_get_mclk_frequency_ratio
	mov	x22, x0
Lloh5:
	adrp	x8, _MC_SEQ_MISC7@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC_SEQ_MISC7@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_RREG32
	ubfx	w8, w0, #16, #4
	cmp	w22, w8
	b.ge	LBB0_25
; %bb.23:
Lloh8:
	adrp	x8, _MC_SEQ_MISC6@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MC_SEQ_MISC6@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
	mov	x0, x20
	bl	_si_get_ddr3_mclk_frequency_ratio
	str	w0, [x19, #44]
LBB0_25:
Lloh10:
	adrp	x8, _MC_SEQ_MISC5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MC_SEQ_MISC5@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	bl	_RREG32
	ubfx	w4, w0, #1, #1
	b	LBB0_28
LBB0_27:
	ldr	w4, [x22, #40]
LBB0_28:
	ldr	w3, [x19, #28]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ci_calculate_mclk_params
	cbnz	w0, LBB0_30
; %bb.29:
	ldr	w8, [x19]
Lloh12:
	adrp	x20, _VOLTAGE_SCALE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _VOLTAGE_SCALE@GOTPAGEOFF]
	ldr	w9, [x20]
	mul	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [x19]
	ldr	w0, [x19, #12]
	bl	_cpu_to_be32
	str	w0, [x19, #12]
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	mul	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [x19, #4]
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	mul	w0, w9, w8
	bl	_cpu_to_be32
	str	w0, [x19, #8]
	ldr	w0, [x19, #48]
	bl	_cpu_to_be32
	str	w0, [x19, #48]
	ldr	x0, [x19, #88]
	bl	_cpu_to_be16
	str	x0, [x19, #88]
	ldr	w0, [x19, #52]
	bl	_cpu_to_be32
	str	w0, [x19, #52]
	ldr	w0, [x19, #56]
	bl	_cpu_to_be32
	str	w0, [x19, #56]
	ldr	w0, [x19, #60]
	bl	_cpu_to_be32
	str	w0, [x19, #60]
	ldr	w0, [x19, #64]
	bl	_cpu_to_be32
	str	w0, [x19, #64]
	ldr	w0, [x19, #68]
	bl	_cpu_to_be32
	str	w0, [x19, #68]
	ldr	w0, [x19, #72]
	bl	_cpu_to_be32
	str	w0, [x19, #72]
	ldr	w0, [x19, #76]
	bl	_cpu_to_be32
	str	w0, [x19, #76]
	ldr	w0, [x19, #80]
	bl	_cpu_to_be32
	str	w0, [x19, #80]
	ldr	w0, [x19, #84]
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #84]
LBB0_30:
	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
LBB0_31:
Lloh14:
	adrp	x8, _DPG_PIPE_STUTTER_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPG_PIPE_STUTTER_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_RREG32
Lloh17:
	adrp	x8, _STUTTER_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STUTTER_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.32:
	ldr	w8, [x21]
	cmp	w8, #2
	b.gt	LBB0_11
; %bb.33:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_DISPLAY_WATERMARK_LOW,4,2 ; @PPSMC_DISPLAY_WATERMARK_LOW
	.comm	_DPG_PIPE_STUTTER_CONTROL,4,2   ; @DPG_PIPE_STUTTER_CONTROL
	.comm	_STUTTER_ENABLE,4,2             ; @STUTTER_ENABLE
	.comm	_MC_SEQ_MISC7,4,2               ; @MC_SEQ_MISC7
	.comm	_MC_SEQ_MISC5,4,2               ; @MC_SEQ_MISC5
	.comm	_MC_SEQ_MISC6,4,2               ; @MC_SEQ_MISC6
	.comm	_VOLTAGE_SCALE,4,2              ; @VOLTAGE_SCALE
	.no_dead_strip	_ci_populate_single_memory_level
.subsections_via_symbols
