	.file	"extr_windfarm_smu_sensors.c_smu_cpu_power_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smu_cpu_power_get, @function
smu_cpu_power_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_smu_cpu_power@PLT
	lea	rsi, 4[rsp]
	mov	rdi, QWORD PTR 24[rax]
	mov	rbp, rax
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rbp], 0
	jne	.L9
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, rsp
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR [rsp]
	imul	edx, DWORD PTR 4[rsp]
	mov	ecx, DWORD PTR 0[rbp]
	sar	edx, 16
	test	ecx, ecx
	je	.L7
	mov	rcx, QWORD PTR cpuvcp[rip]
	mov	rsi, QWORD PTR [rcx]
	mov	ecx, edx
	imul	ecx, edx
	imul	edx, DWORD PTR 4[rsi]
	sar	ecx, 16
	imul	ecx, DWORD PTR [rsi]
	sar	edx, 28
	sar	ecx, 28
	add	ecx, edx
	mov	edx, DWORD PTR 8[rsi]
	sar	edx, 12
	add	edx, ecx
.L7:
	mov	DWORD PTR [rbx], edx
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rsp]
	lea	edx, [rdx+rdx*2]
	lea	edx, -196608[0+rdx*4]
	mov	DWORD PTR [rbx], edx
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smu_cpu_power_get, .-smu_cpu_power_get
	.comm	cpuvcp,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_windfarm_smu_sensors.c_smu_cpu_power_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu_cpu_power_get, %function
smu_cpu_power_get:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r1
	bl	to_smu_cpu_power
	mov	r4, r0
	ldr	r0, [r0, #12]
	add	r1, sp, #8
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [r4, #4]
	add	r1, sp, #4
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #4]
	ldr	r1, [sp, #8]
	ldr	r2, [r4]
	mul	r3, r1, r3
	cmp	r2, #0
	asr	r3, r3, #16
	beq	.L7
	ldr	r1, .L11+4
	mul	r2, r3, r3
	ldr	r1, [r1]
	asr	r2, r2, #16
	ldr	r1, [r1]
	ldm	r1, {ip, lr}
	mul	r3, lr, r3
	mul	r2, ip, r2
	ldr	r1, [r1, #8]
	asr	r3, r3, #28
	add	r3, r3, r2, asr #28
	add	r3, r3, r1, asr #12
.L7:
	str	r3, [r5]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r3, [sp, #8]
	add	r3, r3, r3, lsl #1
	lsl	r3, r3, #2
	sub	r3, r3, #196608
	str	r3, [r5]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	cpuvcp
	.size	smu_cpu_power_get, .-smu_cpu_power_get
	.comm	cpuvcp,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
