	.file	"extr_processpptables.c_init_dpm2_parameters.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	init_dpm2_parameters, @function
init_dpm2_parameters:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR [rsi]
	call	le16_to_cpu@PLT
	cmp	rax, 47
	ja	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 36[rbp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	QWORD PTR 96[rbx], rax
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	QWORD PTR 88[rbx], rax
	call	le16_to_cpu@PLT
	mov	QWORD PTR 80[rbx], 0
	mov	QWORD PTR 40[rbx], rax
	movabs	rax, 26843547100000
	mov	QWORD PTR [rbx], rax
	mov	edi, DWORD PTR 32[rbp]
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR 64[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	call	le32_to_cpu@PLT
	cmp	QWORD PTR 40[rbx], 0
	mov	QWORD PTR 48[rbx], rax
	jne	.L14
.L3:
	mov	edi, DWORD PTR 28[rbp]
	xor	r12d, r12d
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	QWORD PTR 32[rbx], rax
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR 112[rbx], 0
	mov	QWORD PTR 24[rbx], rax
	test	rdi, rdi
	jne	.L15
.L4:
	mov	rdi, QWORD PTR 16[rbp]
	call	le16_to_cpu@PLT
	mov	rdi, QWORD PTR 40[rbp]
	mov	QWORD PTR 104[rbx], 0
	mov	QWORD PTR 16[rbx], rax
	test	rdi, rdi
	je	.L1
	call	le16_to_cpu@PLT
	lea	r13, 0[rbp+rax]
	cmp	QWORD PTR 0[r13], 0
	jle	.L1
	mov	rdi, QWORD PTR 8[r13]
	call	le16_to_cpu@PLT
	cmp	rax, QWORD PTR SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5[rip]
	jl	.L1
	mov	rdi, QWORD PTR 0[r13]
	call	le16_to_cpu@PLT
	mov	rdi, rbx
	lea	rsi, 0[rbp+rax]
	call	get_platform_power_management_table@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR PHM_PlatformCaps_EnablePlatformPowerManagement[rip]
	call	phm_cap_set@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	le16_to_cpu@PLT
	lea	rsi, 112[rbx]
	mov	rdi, rbx
	lea	rdx, 0[rbp+rax]
	call	get_cac_leakage_table@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR PHM_PlatformCaps_PowerControl[rip]
	call	phm_cap_set@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	init_dpm2_parameters, .-init_dpm2_parameters
	.comm	SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5,8,8
	.comm	PHM_PlatformCaps_PowerControl,4,4
	.comm	PHM_PlatformCaps_EnablePlatformPowerManagement,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_processpptables.c_init_dpm2_parameters.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_dpm2_parameters, %function
init_dpm2_parameters:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r1]
	mov	r6, r1
	bl	le16_to_cpu
	cmp	r0, #31
	movls	r5, #0
	bhi	.L17
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r0, [r6, #24]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6, #20]
	str	r3, [r4, #52]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [r4, #48]
	bl	le16_to_cpu
	mov	r3, #0
	ldr	r1, .L20
	ldr	r2, .L20+4
	str	r0, [r4, #24]
	str	r3, [r4, #44]
	str	r3, [r4, #40]
	str	r3, [r4, #36]
	str	r3, [r4, #32]
	stm	r4, {r1, r2}
	ldr	r0, [r6, #20]
	bl	le32_to_cpu
	ldr	r3, [r4, #24]
	str	r0, [r4, #28]
	cmp	r3, #0
	bne	.L18
.L3:
	ldr	r0, [r6, #16]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r6, #12]
	str	r3, [r4, #20]
	bl	le32_to_cpu
	mov	r3, #0
	ldr	r5, [r6, #4]
	str	r0, [r4, #16]
	cmp	r5, r3
	str	r3, [r4, #60]
	bne	.L19
.L4:
	ldr	r0, [r6, #8]
	bl	le16_to_cpu
	mov	r2, #0
	ldr	r3, [r6, #28]
	str	r0, [r4, #12]
	cmp	r3, r2
	str	r2, [r4, #56]
	beq	.L1
	mov	r0, r3
	bl	le16_to_cpu
	ldr	r3, [r0, r6]
	mov	r7, r0
	cmp	r3, #0
	add	r2, r0, r6
	ble	.L1
	ldr	r0, [r2, #4]
	bl	le16_to_cpu
	ldr	r3, .L20+8
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L1
	ldr	r0, [r6, r7]
	bl	le16_to_cpu
	mov	r1, r0
	mov	r0, r4
	add	r1, r6, r1
	bl	get_platform_power_management_table
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L20+12
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	phm_cap_set
	b	.L1
.L19:
	mov	r0, r5
	bl	le16_to_cpu
	add	r1, r4, #60
	add	r2, r6, r0
	mov	r0, r4
	bl	get_cac_leakage_table
	mov	r5, r0
	b	.L4
.L18:
	ldr	r3, .L20+16
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	phm_cap_set
	b	.L3
.L21:
	.align	2
.L20:
	.word	1500000
	.word	6250
	.word	SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5
	.word	PHM_PlatformCaps_EnablePlatformPowerManagement
	.word	PHM_PlatformCaps_PowerControl
	.size	init_dpm2_parameters, .-init_dpm2_parameters
	.comm	SIZE_OF_ATOM_PPLIB_EXTENDEDHEADER_V5,4,4
	.comm	PHM_PlatformCaps_PowerControl,4,4
	.comm	PHM_PlatformCaps_EnablePlatformPowerManagement,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
