	.file	"extr_vegam_smumgr.c_vegam_populate_cac_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vegam_populate_cac_table, @function
vegam_populate_cac_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rax]
	cmp	QWORD PTR 0[rbp], 0
	je	.L2
	mov	r13, rsi
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR [rdx]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rdx
	lea	rbx, 0[0+r12*8]
	mov	esi, DWORD PTR [rax+r12*4]
	add	r12, 1
	call	phm_get_voltage_index@PLT
	mov	rcx, QWORD PTR 16[r13]
	lea	r14, [rax+rax*2]
	mov	rax, QWORD PTR 8[rbp]
	lea	r15, 0[0+r14*4]
	add	rcx, rbx
	mov	edi, DWORD PTR 8[rax+r15]
	mov	QWORD PTR [rsp], rcx
	call	convert_to_vid@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	QWORD PTR [rcx], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR 8[r13]
	mov	edi, DWORD PTR 4[rax+r15]
	add	rcx, rbx
	mov	QWORD PTR [rsp], rcx
	call	convert_to_vid@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	QWORD PTR [rcx], rax
	mov	rax, QWORD PTR 8[rbp]
	add	rbx, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax+r14*4]
	call	convert_to_vid@PLT
	cmp	QWORD PTR 0[rbp], r12
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rbx], rax
	ja	.L3
.L2:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vegam_populate_cac_table, .-vegam_populate_cac_table
	.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_vegam_smumgr.c_vegam_populate_cac_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vegam_populate_cac_table, %function
vegam_populate_cac_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r3]
	ldr	r8, [r0, #4]
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L2
	mov	r6, r1
	mov	r4, #0
.L3:
	ldr	r3, [r8]
	mov	r0, r7
	ldr	r1, [r3, r4, lsl #2]
	bl	phm_get_voltage_index
	ldr	r3, [r7, #4]
	add	r5, r0, r0, lsl #1
	add	r3, r3, r5, lsl #2
	ldr	r0, [r3, #8]
	ldr	r9, [r6, #8]
	bl	convert_to_vid
	str	r0, [r9, r4, lsl #2]
	ldr	r3, [r7, #4]
	lsl	r2, r5, #2
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r9, [r6, #4]
	bl	convert_to_vid
	str	r0, [r9, r4, lsl #2]
	ldr	r3, [r7, #4]
	ldr	r9, [r6]
	ldr	r0, [r3, r5, lsl #2]
	bl	convert_to_vid
	ldr	r3, [r7]
	str	r0, [r9, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L3
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	vegam_populate_cac_table, .-vegam_populate_cac_table
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
