	.file	"extr_smu7_hwmgr.c_smu7_odn_initial_default_setting.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smu7_odn_initial_default_setting, @function
smu7_odn_initial_default_setting:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L20
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 8[rdi]
	mov	r9, QWORD PTR 8[rax]
	mov	rbp, QWORD PTR [rax]
	mov	rsi, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR 72[rbx]
	mov	QWORD PTR 64[rbx], rsi
	test	rsi, rsi
	je	.L4
	mov	r8, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR [r9]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, DWORD PTR [r8+rdx*4]
	mov	DWORD PTR [rax], 1
	add	rax, 12
	mov	DWORD PTR -4[rax], ecx
	mov	ecx, DWORD PTR [rdi+rdx*4]
	add	rdx, 1
	mov	DWORD PTR -8[rax], ecx
	cmp	rsi, rdx
	jne	.L5
.L4:
	lea	rsi, 56[rbx]
	mov	rdi, r9
	call	smu_get_voltage_dependency_table_ppt_v1@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR 40[rbx], rsi
	test	rsi, rsi
	je	.L6
	mov	r8, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 0[rbp]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR [r8+rdx*4]
	mov	DWORD PTR [rax], 1
	add	rax, 12
	mov	DWORD PTR -4[rax], ecx
	mov	ecx, DWORD PTR [rdi+rdx*4]
	add	rdx, 1
	mov	DWORD PTR -8[rax], ecx
	cmp	rsi, rdx
	jne	.L7
.L6:
	lea	rsi, 32[rbx]
	mov	rdi, rbp
	call	smu_get_voltage_dependency_table_ppt_v1@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	smu7_odn_initial_default_setting, .-smu7_odn_initial_default_setting
	.comm	EINVAL,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_smu7_hwmgr.c_smu7_odn_initial_default_setting.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu7_odn_initial_default_setting, %function
smu7_odn_initial_default_setting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L20
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #4]
	ldr	r5, [r3]
	ldr	lr, [r4, #8]
	ldr	r0, [r3, #4]
	cmp	lr, #0
	ldr	r3, [r4, #36]
	str	lr, [r4, #32]
	beq	.L4
	mov	r6, #1
	ldr	r2, [r4, #12]
	ldr	r1, [r0]
	add	lr, r2, lr, lsl #2
	sub	lr, lr, #4
	sub	r2, r2, #4
	sub	r1, r1, #4
.L5:
	ldr	ip, [r2, #4]!
	str	r6, [r3]
	str	ip, [r3, #8]
	ldr	ip, [r1, #4]!
	cmp	r2, lr
	str	ip, [r3, #4]
	add	r3, r3, #12
	bne	.L5
.L4:
	add	r1, r4, #28
	bl	smu_get_voltage_dependency_table_ppt_v1
	ldr	ip, [r4]
	ldr	r3, [r4, #24]
	cmp	ip, #0
	str	ip, [r4, #20]
	beq	.L6
	mov	lr, #1
	ldr	r2, [r4, #4]
	ldr	r1, [r5]
	add	ip, r2, ip, lsl #2
	sub	ip, ip, #4
	sub	r2, r2, #4
	sub	r1, r1, #4
.L7:
	ldr	r0, [r2, #4]!
	str	lr, [r3]
	str	r0, [r3, #8]
	ldr	r0, [r1, #4]!
	cmp	r2, ip
	str	r0, [r3, #4]
	add	r3, r3, #12
	bne	.L7
.L6:
	mov	r0, r5
	add	r1, r4, #16
	bl	smu_get_voltage_dependency_table_ppt_v1
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r3, .L21
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L22:
	.align	2
.L21:
	.word	EINVAL
	.size	smu7_odn_initial_default_setting, .-smu7_odn_initial_default_setting
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
