	.file	"extr_vega20_processpptables.c_init_powerplay_table_information.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_powerplay_table_information, @function
init_powerplay_table_information:
.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
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	mov	edx, DWORD PTR 8[rsi]
	mov	r12, QWORD PTR 40[rdi]
	xor	esi, esi
	mov	QWORD PTR 16[rdi], rax
	cmp	QWORD PTR ATOM_VEGA20_PP_THERMALCONTROLLER_NONE[rip], rax
	mov	QWORD PTR [r12], rax
	setne	sil
	mov	DWORD PTR 24[rdi], edx
	mov	edx, DWORD PTR PHM_PlatformCaps_ThermalController[rip]
	mov	QWORD PTR 32[rdi], 0
	call	set_hw_cap@PLT
	mov	esi, DWORD PTR PHM_PlatformCaps_MicrocodeFanControl[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	phm_cap_set@PLT
	cmp	DWORD PTR 32[rbx], 1
	je	.L15
.L2:
	mov	edi, DWORD PTR 92[rbx]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 88[rbx]
	mov	QWORD PTR 64[r12], rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 84[rbx]
	mov	QWORD PTR 56[r12], rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 80[rbx]
	mov	QWORD PTR 48[r12], rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 76[rbx]
	mov	QWORD PTR 40[r12], rax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 72[rbx]
	mov	QWORD PTR 32[r12], rax
	call	le16_to_cpu@PLT
	mov	rdx, QWORD PTR ATOM_VEGA20_ODSETTING_POWERPERCENTAGE[rip]
	mov	QWORD PTR 24[r12], rax
	mov	rax, QWORD PTR 40[rbx]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	le32_to_cpu@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	jne	.L16
	cmp	DWORD PTR 12[rbx], 1
	je	.L17
.L6:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kmalloc@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rdi, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rdi, rdi
	je	.L1
	lea	rsi, 8[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, rbp
	call	append_vbios_pptable@PLT
	test	eax, eax
	je	.L18
.L1:
	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
.L18:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	override_powerplay_table_fantargettemperature@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR PHM_PlatformCaps_PowerControl[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	phm_cap_set@PLT
	cmp	DWORD PTR 12[rbx], 1
	jne	.L6
.L17:
	mov	edi, DWORD PTR 24[rbx]
	call	le32_to_cpu@PLT
	mov	r13, QWORD PTR ATOM_VEGA20_PPCLOCK_COUNT[rip]
	cmp	rax, r13
	jl	.L19
.L7:
	mov	edx, DWORD PTR 20[rbx]
	lea	rsi, 20[r12]
	mov	rcx, r13
	mov	rdi, rbp
	call	phm_copy_clock_limits_array@PLT
	mov	edx, DWORD PTR 16[rbx]
	lea	rsi, 16[r12]
	mov	rcx, r13
	mov	rdi, rbp
	call	phm_copy_clock_limits_array@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 64[rbx]
	call	le32_to_cpu@PLT
	mov	r14, QWORD PTR ATOM_VEGA20_ODFEATURE_COUNT[rip]
	cmp	rax, r14
	jle	.L20
.L3:
	mov	edi, DWORD PTR 60[rbx]
	call	le32_to_cpu@PLT
	mov	r13, QWORD PTR ATOM_VEGA20_ODSETTING_COUNT[rip]
	cmp	rax, r13
	jle	.L21
.L4:
	mov	edx, DWORD PTR 56[rbx]
	lea	rsi, 80[r12]
	mov	rcx, r14
	mov	rdi, rbp
	call	copy_overdrive_feature_capabilities_array@PLT
	mov	rdx, QWORD PTR 40[rbx]
	mov	rcx, r13
	mov	rdi, rbp
	lea	rsi, 76[r12]
	call	phm_copy_overdrive_settings_limits_array@PLT
	mov	rdx, QWORD PTR 48[rbx]
	mov	rcx, r13
	mov	rdi, rbp
	lea	rsi, 72[r12]
	call	phm_copy_overdrive_settings_limits_array@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 60[rbx]
	call	le32_to_cpu@PLT
	mov	r13, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR 64[rbx]
	call	le32_to_cpu@PLT
	mov	r14, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 24[rbx]
	call	le32_to_cpu@PLT
	mov	r13, rax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	init_powerplay_table_information, .-init_powerplay_table_information
	.comm	PHM_PlatformCaps_ThermalController,4,4
	.comm	PHM_PlatformCaps_PowerControl,4,4
	.comm	PHM_PlatformCaps_MicrocodeFanControl,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ATOM_VEGA20_PP_THERMALCONTROLLER_NONE,8,8
	.comm	ATOM_VEGA20_PPCLOCK_COUNT,8,8
	.comm	ATOM_VEGA20_ODSETTING_POWERPERCENTAGE,8,8
	.comm	ATOM_VEGA20_ODSETTING_COUNT,8,8
	.comm	ATOM_VEGA20_ODFEATURE_COUNT,8,8
	.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_vega20_processpptables.c_init_powerplay_table_information.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_powerplay_table_information, %function
init_powerplay_table_information:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	ip, #0
	mov	r5, r0
	ldr	r2, .L22
	ldr	r3, [r1]
	ldr	r6, [r0, #20]
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	subs	r1, r1, r3
	str	r3, [r0, #8]
	str	r3, [r6]
	ldr	r3, .L22+4
	movne	r1, #1
	str	ip, [r0, #16]
	str	r2, [r0, #12]
	ldr	r2, [r3]
	bl	set_hw_cap
	ldr	r3, .L22+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	phm_cap_set
	ldr	r3, [r4, #24]
	cmp	r3, #1
	beq	.L15
.L2:
	ldr	r0, [r4, #68]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #64]
	str	r3, [r6, #36]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #60]
	str	r3, [r6, #32]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #56]
	str	r3, [r6, #28]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #52]
	str	r3, [r6, #24]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #48]
	str	r3, [r6, #20]
	bl	le16_to_cpu
	ldr	r2, .L22+12
	ldr	r3, [r4, #28]
	ldr	r2, [r2]
	str	r0, [r6, #16]
	ldr	r0, [r3, r2, lsl #2]
	bl	le32_to_cpu
	cmp	r0, #0
	str	r0, [r5, #4]
	bne	.L16
	ldr	r3, [r4, #8]
	cmp	r3, #1
	beq	.L17
.L6:
	ldr	r3, .L22+16
	mov	r0, #4
	ldr	r1, [r3]
	bl	kmalloc
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L18
	mov	r2, #4
	add	r1, r4, #4
	bl	memcpy
	mov	r0, r5
	ldr	r1, [r6, #4]
	bl	append_vbios_pptable
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	override_powerplay_table_fantargettemperature
.L16:
	ldr	r3, .L22+20
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	phm_cap_set
	ldr	r3, [r4, #8]
	cmp	r3, #1
	bne	.L6
.L17:
	ldr	r0, [r4, #20]
	bl	le32_to_cpu
	ldr	r3, .L22+24
	ldr	r7, [r3]
	cmp	r0, r7
	blt	.L19
.L7:
	mov	r3, r7
	ldr	r2, [r4, #16]
	add	r1, r6, #12
	mov	r0, r5
	bl	phm_copy_clock_limits_array
	mov	r3, r7
	mov	r0, r5
	ldr	r2, [r4, #12]
	add	r1, r6, #8
	bl	phm_copy_clock_limits_array
	b	.L6
.L18:
	ldr	r3, .L22+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, [r4, #44]
	bl	le32_to_cpu
	ldr	r3, .L22+32
	ldr	r8, [r3]
	cmp	r0, r8
	ble	.L20
.L3:
	ldr	r0, [r4, #40]
	bl	le32_to_cpu
	ldr	r3, .L22+36
	ldr	r7, [r3]
	cmp	r0, r7
	ble	.L21
.L4:
	mov	r3, r8
	ldr	r2, [r4, #36]
	add	r1, r6, #48
	mov	r0, r5
	bl	copy_overdrive_feature_capabilities_array
	mov	r3, r7
	ldr	r2, [r4, #28]
	add	r1, r6, #44
	mov	r0, r5
	bl	phm_copy_overdrive_settings_limits_array
	mov	r3, r7
	mov	r0, r5
	ldr	r2, [r4, #32]
	add	r1, r6, #40
	bl	phm_copy_overdrive_settings_limits_array
	b	.L2
.L19:
	ldr	r0, [r4, #20]
	bl	le32_to_cpu
	mov	r7, r0
	b	.L7
.L21:
	ldr	r0, [r4, #40]
	bl	le32_to_cpu
	mov	r7, r0
	b	.L4
.L20:
	ldr	r0, [r4, #44]
	bl	le32_to_cpu
	mov	r8, r0
	b	.L3
.L23:
	.align	2
.L22:
	.word	ATOM_VEGA20_PP_THERMALCONTROLLER_NONE
	.word	PHM_PlatformCaps_ThermalController
	.word	PHM_PlatformCaps_MicrocodeFanControl
	.word	ATOM_VEGA20_ODSETTING_POWERPERCENTAGE
	.word	GFP_KERNEL
	.word	PHM_PlatformCaps_PowerControl
	.word	ATOM_VEGA20_PPCLOCK_COUNT
	.word	ENOMEM
	.word	ATOM_VEGA20_ODFEATURE_COUNT
	.word	ATOM_VEGA20_ODSETTING_COUNT
	.size	init_powerplay_table_information, .-init_powerplay_table_information
	.comm	PHM_PlatformCaps_ThermalController,4,4
	.comm	PHM_PlatformCaps_PowerControl,4,4
	.comm	PHM_PlatformCaps_MicrocodeFanControl,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ATOM_VEGA20_PP_THERMALCONTROLLER_NONE,4,4
	.comm	ATOM_VEGA20_PPCLOCK_COUNT,4,4
	.comm	ATOM_VEGA20_ODSETTING_POWERPERCENTAGE,4,4
	.comm	ATOM_VEGA20_ODSETTING_COUNT,4,4
	.comm	ATOM_VEGA20_ODFEATURE_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
