	.file	"extr_ibmaem.c_aem_show_power.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%llu\n"
	.text
	.p2align 4
	.type	aem_show_power, @function
aem_show_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r14, 16[rsp]
	call	to_sensor_dev_attr@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	dev_get_drvdata@PLT
	lea	r15, 8[rax]
	mov	rbx, rax
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	call	update_aem_energy_one@PLT
	mov	rdi, r14
	call	getnstimeofday@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [rbx]
	mov	r13d, DWORD PTR [rdx+rax*4]
	mov	rdx, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rdx+rax*4]
	call	msecs_to_jiffies@PLT
	mov	edi, eax
	call	schedule_timeout_interruptible@PLT
	test	rax, rax
	jne	.L7
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbx
	call	update_aem_energy_one@PLT
	lea	r8, 20[rsp]
	mov	rdi, r8
	mov	QWORD PTR 8[rsp], r8
	call	getnstimeofday@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r15
	mov	ebx, DWORD PTR [rax+rdx*4]
	call	mutex_unlock@PLT
	mov	r8, QWORD PTR 8[rsp]
	sub	ebx, r13d
	mov	rdi, r8
	call	timespec_to_ns@PLT
	mov	rdi, r14
	mov	ebp, eax
	call	timespec_to_ns@PLT
	mov	edi, DWORD PTR UJ_PER_MJ[rip]
	mov	esi, ebp
	sub	esi, eax
	imul	edi, ebx
	imul	edi, DWORD PTR NSEC_PER_SEC[rip]
	call	div64_u64@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	rdx, rax
	call	sprintf@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r15
	call	mutex_unlock@PLT
	xor	eax, eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aem_show_power, .-aem_show_power
	.comm	UJ_PER_MJ,4,4
	.comm	NSEC_PER_SEC,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_ibmaem.c_aem_show_power.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%llu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aem_show_power, %function
aem_show_power:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L9
	sub	sp, sp, #16
	mov	r4, r0
	mov	r0, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	to_sensor_dev_attr
	mov	r5, r0
	mov	r0, r4
	bl	dev_get_drvdata
	mov	r4, r0
	add	r7, r0, #4
	mov	r0, r7
	bl	mutex_lock
	ldr	r1, [r5]
	mov	r0, r4
	bl	update_aem_energy_one
	add	r0, sp, #4
	bl	getnstimeofday
	ldr	r3, [r5]
	ldr	r1, [r4, #8]
	ldr	r2, [r4]
	ldr	r0, [r1, r3, lsl #2]
	ldr	r8, [r2, r3, lsl #2]
	bl	msecs_to_jiffies
	bl	schedule_timeout_interruptible
	cmp	r0, #0
	bne	.L7
	ldr	r1, [r5]
	mov	r0, r4
	bl	update_aem_energy_one
	add	r0, sp, #8
	bl	getnstimeofday
	ldr	r2, [r5]
	ldr	r3, [r4]
	mov	r0, r7
	ldr	r4, [r3, r2, lsl #2]
	bl	mutex_unlock
	add	r0, sp, #8
	bl	timespec_to_ns
	mov	r5, r0
	add	r0, sp, #4
	bl	timespec_to_ns
	ldr	r3, .L9+4
	sub	r4, r4, r8
	ldr	r2, [r3]
	ldr	r3, .L9+8
	mul	r4, r2, r4
	ldr	r3, [r3]
	sub	r1, r5, r0
	mul	r0, r3, r4
	bl	div64_u64
	mov	r2, r0
	ldr	r1, .L9+12
	mov	r0, r6
	asr	r3, r2, #31
	bl	sprintf
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	UJ_PER_MJ
	.word	NSEC_PER_SEC
	.word	.LC0
	.size	aem_show_power, .-aem_show_power
	.comm	UJ_PER_MJ,4,4
	.comm	NSEC_PER_SEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
