	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aem_show_power
_aem_show_power:                        ## @aem_show_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_update_aem_energy_one
	leaq	-48(%rbp), %rdi
	callq	_getnstimeofday
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	(%rcx,%rax,4), %r14d
	movl	(%rdx,%rax,4), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_update_aem_energy_one
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_getnstimeofday
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %ebx
	subl	%r14d, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_timespec_to_ns
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	callq	_timespec_to_ns
	movq	_UJ_PER_MJ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	subl	%eax, %r15d
	movq	_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_div64_u64
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_sprintf
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UJ_PER_MJ,4,2                  ## @UJ_PER_MJ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%llu\n"

	.comm	_NSEC_PER_SEC,4,2               ## @NSEC_PER_SEC
	.no_dead_strip	_aem_show_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aem_show_power
_aem_show_power:                        ; @aem_show_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x22, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x1, [x20]
	mov	x0, x22
	bl	_update_aem_energy_one
	add	x0, sp, #8
	bl	_getnstimeofday
	ldr	x8, [x22]
	ldr	x9, [x20]
	lsl	x9, x9, #2
	ldr	w23, [x8, x9]
	ldr	x8, [x22, #16]
	ldr	w0, [x8, x9]
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x1, [x20]
	mov	x0, x22
	bl	_update_aem_energy_one
	mov	x0, sp
	bl	_getnstimeofday
	ldr	x8, [x22]
	ldr	x9, [x20]
	ldr	w22, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, sp
	bl	_timespec_to_ns
	mov	x20, x0
	add	x0, sp, #8
	bl	_timespec_to_ns
	sub	w1, w20, w0
	sub	w8, w22, w23
Lloh0:
	adrp	x9, _UJ_PER_MJ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UJ_PER_MJ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w8, w9, w8
Lloh3:
	adrp	x9, _NSEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NSEC_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w0, w8, w9
	bl	_div64_u64
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UJ_PER_MJ,4,2                  ; @UJ_PER_MJ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%llu\n"

	.comm	_NSEC_PER_SEC,4,2               ; @NSEC_PER_SEC
	.no_dead_strip	_aem_show_power
.subsections_via_symbols
