	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_all_graphic_levels
_ci_populate_all_graphic_levels:        ## @ci_populate_all_graphic_levels
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_SMU7_Discrete_DpmTable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GraphicsLevel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movq	%rax, %r12
	movq	_SMU7_MAX_LEVELS_GRAPHICS@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	16(%r15), %rcx
	leaq	8(%r14), %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	addq	$16, %r12
	cmpq	%rax, %r13
	movq	%r14, %rcx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rcx, %r14
	leaq	(%rcx,%r12), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ci_populate_single_graphic_level
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$2, %r13
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rax
	movq	$0, 8(%rax,%r12)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	cmpq	%rcx, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PPSMC_DISPLAY_WATERMARK_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	16(%r15), %rdx
	movl	%ecx, 4(%rdx,%r12)
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	movq	%rcx, %r14
	jmp	LBB0_10
LBB0_9:
	movq	%rcx, %r14
	movq	16(%r15), %rcx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_10:
	addq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	shlq	$4, %r13
	movl	$1, (%rcx)
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	callq	_phm_get_dpm_level_enable_mask_value
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ci_copy_bytes_to_smc           ## TAILCALL
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_Discrete_DpmTable,4,2     ## @SMU7_Discrete_DpmTable
	.comm	_GraphicsLevel,4,2              ## @GraphicsLevel
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ## @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_PPSMC_DISPLAY_WATERMARK_HIGH,4,2 ## @PPSMC_DISPLAY_WATERMARK_HIGH
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.no_dead_strip	_ci_populate_all_graphic_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_all_graphic_levels
_ci_populate_all_graphic_levels:        ; @ci_populate_all_graphic_levels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x25, x24, [x0]
	ldr	x23, [x25]
Lloh0:
	adrp	x8, _SMU7_Discrete_DpmTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_Discrete_DpmTable@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GraphicsLevel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GraphicsLevel@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_offsetof
	mov	x22, x0
Lloh6:
	adrp	x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGEOFF]
Lloh8:
	ldrsw	x26, [x8]
	ldr	x20, [x25, #16]
	mov	x21, x24
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_8
; %bb.1:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
Lloh9:
	adrp	x23, _PPSMC_DISPLAY_WATERMARK_HIGH@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PPSMC_DISPLAY_WATERMARK_HIGH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	add	x27, x27, #16
	cmp	x28, x8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #16]
	ldr	w1, [x8, x28, lsl #2]
	add	x2, x20, x27
	mov	x0, x19
	bl	_ci_populate_single_graphic_level
	cbnz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x28, #2
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #16]
	add	x8, x8, x27
	str	xzr, [x8, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	sub	x9, x8, #1
	cmp	x28, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x23]
	ldr	x10, [x25, #16]
	add	x10, x10, x27
	str	w9, [x10, #4]
	b	LBB0_2
LBB0_8:
	mov	x9, x20
	b	LBB0_10
LBB0_9:
	ldr	x9, [x25, #16]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
LBB0_10:
	add	x22, x22, x23
	lsl	x23, x26, #4
	mov	w10, #1
	str	w10, [x9]
	str	x8, [x25, #8]
	mov	x0, x21
	bl	_phm_get_dpm_level_enable_mask_value
	str	w0, [x24]
Lloh11:
	adrp	x8, _SMC_RAM_END@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMC_RAM_END@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ci_copy_bytes_to_smc
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_Discrete_DpmTable,4,2     ; @SMU7_Discrete_DpmTable
	.comm	_GraphicsLevel,4,2              ; @GraphicsLevel
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ; @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_PPSMC_DISPLAY_WATERMARK_HIGH,4,2 ; @PPSMC_DISPLAY_WATERMARK_HIGH
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.no_dead_strip	_ci_populate_all_graphic_levels
.subsections_via_symbols
