	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_and_upload_sclk_mclk_dpm_levels
_ci_populate_and_upload_sclk_mclk_dpm_levels: ## @ci_populate_and_upload_sclk_mclk_dpm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ci_get_pi
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ci_get_ps
	movq	%rax, %rcx
	movl	(%r15), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	je	LBB0_11
## %bb.1:
	movq	8(%rcx), %rax
	movslq	(%rcx), %rdi
	shlq	$4, %rdi
	movq	-16(%rdi,%rax), %rsi
	movq	_DPMTABLE_OD_UPDATE_SCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %ecx
	je	LBB0_3
## %bb.2:
	movq	-8(%rdi,%rax), %rax
	movq	32(%r15), %rdi
	movslq	24(%r15), %rbx
	movq	%rax, -8(%rdi,%rbx,8)
LBB0_3:
	movq	_DPMTABLE_OD_UPDATE_MCLK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%edx, %eax
	je	LBB0_5
## %bb.4:
	movq	16(%r15), %rdi
	movslq	8(%r15), %rbx
	movq	%rsi, -8(%rdi,%rbx,8)
LBB0_5:
	movq	_DPMTABLE_UPDATE_SCLK@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	testl	%edx, %ecx
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_ci_populate_all_graphic_levels
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	(%r15), %edx
	movl	(%r12), %eax
LBB0_8:
	movq	_DPMTABLE_UPDATE_MCLK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%edx, %eax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_ci_populate_all_memory_levels
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPMTABLE_OD_UPDATE_SCLK,4,2    ## @DPMTABLE_OD_UPDATE_SCLK
	.comm	_DPMTABLE_OD_UPDATE_MCLK,4,2    ## @DPMTABLE_OD_UPDATE_MCLK
	.comm	_DPMTABLE_UPDATE_SCLK,4,2       ## @DPMTABLE_UPDATE_SCLK
	.comm	_DPMTABLE_UPDATE_MCLK,4,2       ## @DPMTABLE_UPDATE_MCLK
	.no_dead_strip	_ci_populate_and_upload_sclk_mclk_dpm_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_and_upload_sclk_mclk_dpm_levels
_ci_populate_and_upload_sclk_mclk_dpm_levels: ; @ci_populate_and_upload_sclk_mclk_dpm_levels
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_ci_get_pi
	mov	x20, x0
	mov	x0, x21
	bl	_ci_get_ps
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.1:
	ldr	x9, [x0, #8]
	ldrsw	x10, [x0]
	add	x9, x9, x10, lsl #4
	ldur	x11, [x9, #-16]
Lloh0:
	adrp	x10, _DPMTABLE_OD_UPDATE_SCLK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DPMTABLE_OD_UPDATE_SCLK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.2:
	ldur	x9, [x9, #-8]
	ldr	x12, [x20, #32]
	ldrsw	x13, [x20, #24]
	add	x12, x12, x13, lsl #3
	stur	x9, [x12, #-8]
LBB0_3:
Lloh3:
	adrp	x21, _DPMTABLE_OD_UPDATE_MCLK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DPMTABLE_OD_UPDATE_MCLK@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x12, [x20, #16]
	ldrsw	x13, [x20, #8]
	add	x12, x12, x13, lsl #3
	stur	x11, [x12, #-8]
LBB0_5:
Lloh5:
	adrp	x11, _DPMTABLE_UPDATE_SCLK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DPMTABLE_UPDATE_SCLK@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_ci_populate_all_graphic_levels
	cbnz	w0, LBB0_11
; %bb.7:
	ldr	w8, [x20]
	ldr	w9, [x21]
LBB0_8:
Lloh8:
	adrp	x10, _DPMTABLE_UPDATE_MCLK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DPMTABLE_UPDATE_MCLK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_ci_populate_all_memory_levels
	cbnz	w0, LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DPMTABLE_OD_UPDATE_SCLK,4,2    ; @DPMTABLE_OD_UPDATE_SCLK
	.comm	_DPMTABLE_OD_UPDATE_MCLK,4,2    ; @DPMTABLE_OD_UPDATE_MCLK
	.comm	_DPMTABLE_UPDATE_SCLK,4,2       ; @DPMTABLE_UPDATE_SCLK
	.comm	_DPMTABLE_UPDATE_MCLK,4,2       ; @DPMTABLE_UPDATE_MCLK
	.no_dead_strip	_ci_populate_and_upload_sclk_mclk_dpm_levels
.subsections_via_symbols
