	.file	"extr_intel_pstate.c_pid_calc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pid_calc, @function
pid_calc:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR [rdi]
	sub	ebp, esi
	mov	edi, ebp
	call	int_tofp@PLT
	mov	edi, ebp
	mov	r13d, eax
	call	abs@PLT
	mov	r8, rax
	xor	eax, eax
	cmp	r8, QWORD PTR 8[rbx]
	jg	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, r13d
	call	mul_fp@PLT
	add	DWORD PTR 20[rbx], r13d
	mov	edi, 30
	mov	r12d, eax
	call	int_tofp@PLT
	mov	edx, DWORD PTR 20[rbx]
	cmp	edx, eax
	jle	.L3
	mov	DWORD PTR 20[rbx], eax
	mov	edx, eax
.L3:
	neg	eax
	cmp	eax, edx
	jle	.L4
	mov	DWORD PTR 20[rbx], eax
.L4:
	mov	edi, DWORD PTR 24[rbx]
	mov	esi, ebp
	sub	esi, DWORD PTR 28[rbx]
	call	mul_fp@PLT
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 20[rbx]
	mov	DWORD PTR 28[rbx], ebp
	mov	r13d, eax
	call	mul_fp@PLT
	lea	edi, [rax+r12]
	add	edi, r13d
	call	fp_toint@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	pid_calc, .-pid_calc
	.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_intel_pstate.c_pid_calc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_calc, %function
pid_calc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, [r0]
	sub	r5, r5, r1
	mov	r0, r5
	bl	int_tofp
	ldr	r3, [r4, #4]
	eor	r2, r5, r5, asr #31
	sub	r2, r2, r5, asr #31
	cmp	r2, r3
	bgt	.L7
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r6, r0
	mov	r1, r0
	ldr	r0, [r4, #8]
	bl	mul_fp
	ldr	r1, [r4, #12]
	mov	r7, r0
	add	r0, r1, r6
	str	r0, [r4, #12]
	mov	r0, #30
	bl	int_tofp
	ldr	r2, [r4, #12]
	rsb	r3, r0, #0
	cmp	r2, r0
	movgt	r2, r0
	ldr	r1, [r4, #20]
	strgt	r0, [r4, #12]
	cmp	r3, r2
	strgt	r3, [r4, #12]
	sub	r1, r5, r1
	ldr	r0, [r4, #16]
	bl	mul_fp
	mov	r3, r0
	str	r5, [r4, #20]
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #12]
	mov	r4, r3
	bl	mul_fp
	add	r0, r0, r7
	add	r0, r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	fp_toint
	.size	pid_calc, .-pid_calc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
