	.file	"extr_smu_helper.c_phm_trim_voltage_table_to_fit_state_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	phm_trim_voltage_table_to_fit_state_table
	.type	phm_trim_voltage_table_to_fit_state_table, @function
phm_trim_voltage_table_to_fit_state_table:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR [rsi]
	cmp	r8d, edi
	jbe	.L1
	sub	r8d, edi
	test	edi, edi
	je	.L3
	mov	rdx, QWORD PTR 8[rsi]
	lea	r9d, -1[rdi]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	lea	ecx, [r8+rax]
	mov	ecx, DWORD PTR [rdx+rcx*4]
	mov	DWORD PTR [rdx+rax*4], ecx
	mov	rcx, rax
	add	rax, 1
	cmp	rcx, r9
	jne	.L4
.L3:
	mov	DWORD PTR [rsi], edi
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	phm_trim_voltage_table_to_fit_state_table, .-phm_trim_voltage_table_to_fit_state_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_smu_helper.c_phm_trim_voltage_table_to_fit_state_table.c"
	.text
	.align	2
	.global	phm_trim_voltage_table_to_fit_state_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	phm_trim_voltage_table_to_fit_state_table, %function
phm_trim_voltage_table_to_fit_state_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r1]
	cmp	r2, r0
	bxls	lr
	mvn	r3, #-1073741824
	cmp	r0, #0
	sub	ip, r3, r0
	beq	.L11
	ldr	r3, [r1, #4]
	str	lr, [sp, #-4]!
	add	r2, r2, ip
	add	lr, r3, r0, lsl #2
	add	r2, r3, r2, lsl #2
	sub	lr, lr, #4
	sub	r3, r3, #4
.L4:
	ldr	ip, [r2, #4]!
	str	ip, [r3, #4]!
	cmp	r3, lr
	bne	.L4
	str	r0, [r1]
	ldr	pc, [sp], #4
.L11:
	str	r0, [r1]
	bx	lr
	.size	phm_trim_voltage_table_to_fit_state_table, .-phm_trim_voltage_table_to_fit_state_table
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
