	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_upload_dpm_settings
_kv_upload_dpm_settings:                ## @kv_upload_dpm_settings
	.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	%rdi, %r14
	callq	_kv_get_pi
	movq	%rax, %r15
	movq	8(%rax), %rbx
	movq	_SMU7_Fusion_DpmTable@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_GraphicsLevel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	leaq	16(%r15), %rdx
	movq	_SMU7_MAX_LEVELS_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$2, %ecx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_amdgpu_kv_copy_bytes_to_smc
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r15), %rbx
	movl	(%r12), %edi
	movq	_GraphicsDpmLevelCount@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	%r15, %rdx
	addq	$4, %rdx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_kv_copy_bytes_to_smc    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_Fusion_DpmTable,4,2       ## @SMU7_Fusion_DpmTable
	.comm	_GraphicsLevel,4,2              ## @GraphicsLevel
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ## @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_GraphicsDpmLevelCount,4,2      ## @GraphicsDpmLevelCount
	.no_dead_strip	_kv_upload_dpm_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_upload_dpm_settings
_kv_upload_dpm_settings:                ; @kv_upload_dpm_settings
	.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	x19, x0
	bl	_kv_get_pi
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x21, _SMU7_Fusion_DpmTable@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMU7_Fusion_DpmTable@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _GraphicsLevel@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GraphicsLevel@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x22
	add	x2, x20, #16
Lloh5:
	adrp	x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SMU7_MAX_LEVELS_GRAPHICS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w3, w8, #2
	ldr	w4, [x20]
	mov	x0, x19
	bl	_amdgpu_kv_copy_bytes_to_smc
	cbz	w0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	x22, [x20, #8]
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _GraphicsDpmLevelCount@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GraphicsDpmLevelCount@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x22
	add	x2, x20, #4
	ldr	w4, [x20]
	mov	x0, x19
	mov	w3, #4
	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
	b	_amdgpu_kv_copy_bytes_to_smc
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_Fusion_DpmTable,4,2       ; @SMU7_Fusion_DpmTable
	.comm	_GraphicsLevel,4,2              ; @GraphicsLevel
	.comm	_SMU7_MAX_LEVELS_GRAPHICS,4,2   ; @SMU7_MAX_LEVELS_GRAPHICS
	.comm	_GraphicsDpmLevelCount,4,2      ; @GraphicsDpmLevelCount
	.no_dead_strip	_kv_upload_dpm_settings
.subsections_via_symbols
