	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main_subtask_power_check
LCPI0_0:
	.quad	0x3fb999999999999a              ## double 0.10000000000000001
LCPI0_1:
	.quad	0x3feccccccccccccd              ## double 0.90000000000000002
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main_subtask_power_check
	.p2align	4, 0x90
_main_subtask_power_check:              ## @main_subtask_power_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_timer_read64
	cmpq	_main_subtask_power_check.next_5v_checkup(%rip), %rax
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_timer_read64
	addq	$5, %rax
	movq	%rax, _main_subtask_power_check.next_5v_checkup(%rip)
	movq	_ADC_5V@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_adc_get
	movq	_v_5v@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	movq	_v_5v_avg@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	mulsd	LCPI0_1(%rip), %xmm1
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_main_subtask_power_check.next_5v_checkup,8,3 ## @main_subtask_power_check.next_5v_checkup
	.comm	_ADC_5V,4,2                     ## @ADC_5V
	.comm	_v_5v,8,3                       ## @v_5v
	.comm	_v_5v_avg,8,3                   ## @v_5v_avg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main_subtask_power_check       ; -- Begin function main_subtask_power_check
	.p2align	2
_main_subtask_power_check:              ; @main_subtask_power_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_timer_read64
	adrp	x19, _main_subtask_power_check.next_5v_checkup@PAGE
	ldr	x8, [x19, _main_subtask_power_check.next_5v_checkup@PAGEOFF]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	bl	_timer_read64
	add	x8, x0, #5
	str	x8, [x19, _main_subtask_power_check.next_5v_checkup@PAGEOFF]
Lloh0:
	adrp	x8, _ADC_5V@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADC_5V@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_adc_get
Lloh3:
	adrp	x8, _v_5v@GOTPAGE
Lloh4:
	ldr	x8, [x8, _v_5v@GOTPAGEOFF]
Lloh5:
	str	d0, [x8]
Lloh6:
	adrp	x8, _v_5v_avg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _v_5v_avg@GOTPAGEOFF]
	ldr	d1, [x8]
	mov	x9, #-7378697629483820647
	movk	x9, #39322
	movk	x9, #16313, lsl #48
	fmov	d2, x9
	fmul	d0, d0, d2
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	movk	x9, #16364, lsl #48
	fmov	d2, x9
	fmadd	d0, d1, d2, d0
	str	d0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_main_subtask_power_check.next_5v_checkup,8,3 ; @main_subtask_power_check.next_5v_checkup
	.comm	_ADC_5V,4,2                     ; @ADC_5V
	.comm	_v_5v,8,3                       ; @v_5v
	.comm	_v_5v_avg,8,3                   ; @v_5v_avg
.subsections_via_symbols
