	.file	"extr_kv_dpm.c_kv_upload_dpm_settings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kv_upload_dpm_settings, @function
kv_upload_dpm_settings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	kv_get_pi@PLT
	mov	esi, DWORD PTR GraphicsLevel[rip]
	mov	edi, DWORD PTR SMU7_Fusion_DpmTable[rip]
	mov	r14d, DWORD PTR [rax]
	mov	rbx, rax
	mov	eax, DWORD PTR SMU7_MAX_LEVELS_GRAPHICS[rip]
	mov	r12, QWORD PTR 8[rbx]
	lea	r13d, 0[0+rax*4]
	call	offsetof@PLT
	lea	rdx, 16[rbx]
	mov	r8d, r14d
	mov	ecx, r13d
	lea	rsi, [r12+rax]
	mov	rdi, rbp
	call	amdgpu_kv_copy_bytes_to_smc@PLT
	test	eax, eax
	je	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR GraphicsDpmLevelCount[rip]
	mov	edi, DWORD PTR SMU7_Fusion_DpmTable[rip]
	mov	r13d, DWORD PTR [rbx]
	mov	r12, QWORD PTR 8[rbx]
	call	offsetof@PLT
	lea	rdx, 4[rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rsi, [r12+rax]
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	r8d, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	mov	ecx, 4
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	amdgpu_kv_copy_bytes_to_smc@PLT
	.cfi_endproc
.LFE0:
	.size	kv_upload_dpm_settings, .-kv_upload_dpm_settings
	.comm	SMU7_MAX_LEVELS_GRAPHICS,4,4
	.comm	SMU7_Fusion_DpmTable,4,4
	.comm	GraphicsLevel,4,4
	.comm	GraphicsDpmLevelCount,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kv_dpm.c_kv_upload_dpm_settings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_upload_dpm_settings, %function
kv_upload_dpm_settings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r5, r0
	bl	kv_get_pi
	mov	r4, r0
	ldr	r3, .L5
	ldr	r6, .L5+4
	ldr	r1, [r3]
	ldr	r0, [r6]
	ldr	r7, [r4, #8]
	bl	offsetof
	mov	r2, r4
	ldr	r3, .L5+8
	ldr	ip, [r2], #12
	ldr	r3, [r3]
	add	r1, r7, r0
	str	ip, [sp]
	mov	r0, r5
	lsl	r3, r3, #2
	bl	amdgpu_kv_copy_bytes_to_smc
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L5+12
	ldr	r0, [r6]
	ldr	r1, [r3]
	ldr	r6, [r4, #8]
	bl	offsetof
	mov	r2, r4
	ldr	r3, [r2], #4
	add	r1, r6, r0
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #4
	bl	amdgpu_kv_copy_bytes_to_smc
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	GraphicsLevel
	.word	SMU7_Fusion_DpmTable
	.word	SMU7_MAX_LEVELS_GRAPHICS
	.word	GraphicsDpmLevelCount
	.size	kv_upload_dpm_settings, .-kv_upload_dpm_settings
	.comm	SMU7_MAX_LEVELS_GRAPHICS,4,4
	.comm	SMU7_Fusion_DpmTable,4,4
	.comm	GraphicsLevel,4,4
	.comm	GraphicsDpmLevelCount,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
