	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_ci_get_pi
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rax, -64(%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, %r15
	movq	_SMU7_MAX_LEVELS_GRAPHICS@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	shlq	$4, %r12
	movq	24(%rbx), %rdi
	xorl	%r14d, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	leaq	40(%rbx), %r13
	cmpq	$0, 40(%rbx)
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$16, %r15
	cmpq	%r14, %r12
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	48(%rbx), %rcx
	movl	(%rcx,%r12,4), %esi
	movl	(%rax,%r12,8), %edx
	movq	24(%rbx), %rcx
	addq	%r15, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ci_populate_single_graphic_level
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$2, %r12
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rax
	movq	$0, 8(%rax,%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %r14
	leaq	-1(%r14), %rax
	cmpq	%rax, %r12
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_PPSMC_DISPLAY_WATERMARK_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx,%r15)
	jmp	LBB0_7
LBB0_8:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movq	24(%rbx), %rax
	movl	$1, (%rax)
	movq	%r14, 16(%rbx)
	movq	%r13, %rdi
	callq	_ci_get_dpm_level_enable_mask_value
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_ci_copy_bytes_to_smc
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	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
	.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_ci_get_pi
	mov	x20, x0
	ldr	x25, [x0]
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	x23, x0
Lloh6:
	adrp	x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	lsl	x21, x8, #4
	ldr	x22, [x20, #24]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	x24, x20
	ldr	x8, [x24, #40]!
	cbz	x8, LBB0_8
; %bb.1:
	mov	x26, #0
	mov	x27, #0
Lloh9:
	adrp	x28, _PPSMC_DISPLAY_WATERMARK_HIGH@GOTPAGE
Lloh10:
	ldr	x28, [x28, _PPSMC_DISPLAY_WATERMARK_HIGH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	add	x26, x26, #16
	cmp	x27, x8
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #48]
	ldr	w1, [x8, x27, lsl #2]
	ldp	x9, x8, [x20, #24]
	ldr	x2, [x8, x27, lsl #3]
	add	x3, x9, x26
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_ci_populate_single_graphic_level
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x27, #2
	b.lo	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	add	x8, x8, x26
	str	xzr, [x8, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	sub	x9, x8, #1
	cmp	x27, x9
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x28]
	ldr	x10, [x20, #24]
	add	x10, x10, x26
	str	w9, [x10, #4]
	b	LBB0_2
LBB0_8:
	add	x23, x23, x25
	ldr	x9, [x20, #24]
	mov	w10, #1
	str	w10, [x9]
	str	x8, [x20, #16]
	mov	x0, x24
	bl	_ci_get_dpm_level_enable_mask_value
	str	w0, [x20, #12]
	ldr	w4, [x20, #8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_ci_copy_bytes_to_smc
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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
	.no_dead_strip	_ci_populate_all_graphic_levels
.subsections_via_symbols
