	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function Battery_getData
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Battery_getData
	.p2align	4, 0x90
_Battery_getData:                       ## @Battery_getData
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %r14
	movq	_Battery_cacheTime@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	$10, %rax
	cmpq	%rax, %r14
	jge	LBB0_2
## %bb.1:
	movq	_Battery_cacheLevel@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movq	_Battery_cacheIsOnAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_2:
	movq	_Battery_method@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_BAT_PROC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_Battery_getProcData
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_4
	jp	LBB0_4
## %bb.5:
	movq	_BAT_SYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_6
LBB0_4:
	movq	(%r13), %rax
LBB0_6:
	movq	_BAT_SYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_Battery_getSysData
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_8
	jp	LBB0_8
## %bb.9:
	movq	_BAT_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_10
LBB0_8:
	movq	(%r13), %rax
LBB0_10:
	movq	_BAT_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movabsq	$-4616189618054758400, %rax     ## imm = 0xBFF0000000000000
	movq	%rax, (%rbx)
	movq	_AC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_14
LBB0_12:
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jbe	LBB0_14
## %bb.13:
	movabsq	$4636737291354636288, %rax      ## imm = 0x4059000000000000
	movq	%rax, (%rbx)
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_14:
	movq	_Battery_cacheLevel@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	movl	(%r15), %eax
	movq	_Battery_cacheIsOnAC@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, (%r12)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Battery_cacheTime,8,3          ## @Battery_cacheTime
	.comm	_Battery_cacheLevel,8,3         ## @Battery_cacheLevel
	.comm	_Battery_cacheIsOnAC,4,2        ## @Battery_cacheIsOnAC
	.comm	_Battery_method,8,3             ## @Battery_method
	.comm	_BAT_PROC,8,3                   ## @BAT_PROC
	.comm	_BAT_SYS,8,3                    ## @BAT_SYS
	.comm	_BAT_ERR,8,3                    ## @BAT_ERR
	.comm	_AC_ERROR,4,2                   ## @AC_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Battery_getData                ; -- Begin function Battery_getData
	.p2align	2
_Battery_getData:                       ; @Battery_getData
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	mov	x0, #0
	bl	_time
Lloh0:
	adrp	x22, _Battery_cacheTime@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Battery_cacheTime@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, #10
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _Battery_cacheLevel@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Battery_cacheLevel@GOTPAGEOFF]
Lloh4:
	ldr	d0, [x8]
	str	d0, [x21]
Lloh5:
	adrp	x8, _Battery_cacheIsOnAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Battery_cacheIsOnAC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_15
LBB0_2:
	mov	x20, x0
Lloh8:
	adrp	x23, _Battery_method@GOTPAGE
Lloh9:
	ldr	x23, [x23, _Battery_method@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh10:
	adrp	x9, _BAT_PROC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BAT_PROC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x24, _BAT_SYS@GOTPAGE
Lloh14:
	ldr	x24, [x24, _BAT_SYS@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_Battery_getProcData
	ldr	d0, [x21]
	fcmp	d0, #0.0
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x24]
	str	x8, [x23]
	b	LBB0_6
LBB0_5:
	ldr	x8, [x23]
LBB0_6:
	ldr	x9, [x24]
Lloh15:
	adrp	x24, _BAT_ERR@GOTPAGE
Lloh16:
	ldr	x24, [x24, _BAT_ERR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	bl	_Battery_getSysData
	ldr	d0, [x21]
	fcmp	d0, #0.0
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x24]
	str	x8, [x23]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x23]
LBB0_10:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x8, #-4616189618054758400
	str	x8, [x21]
Lloh17:
	adrp	x8, _AC_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
	fmov	d0, #-1.00000000
	b	LBB0_14
LBB0_12:
	ldr	d0, [x21]
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_14
; %bb.13:
	str	x8, [x21]
	fmov	d0, x8
LBB0_14:
Lloh20:
	adrp	x8, _Battery_cacheLevel@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Battery_cacheLevel@GOTPAGEOFF]
Lloh22:
	str	d0, [x8]
	ldr	w8, [x19]
Lloh23:
	adrp	x9, _Battery_cacheIsOnAC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _Battery_cacheIsOnAC@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
	str	x20, [x22]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_Battery_cacheTime,8,3          ; @Battery_cacheTime
	.comm	_Battery_cacheLevel,8,3         ; @Battery_cacheLevel
	.comm	_Battery_cacheIsOnAC,4,2        ; @Battery_cacheIsOnAC
	.comm	_Battery_method,8,3             ; @Battery_method
	.comm	_BAT_PROC,8,3                   ; @BAT_PROC
	.comm	_BAT_SYS,8,3                    ; @BAT_SYS
	.comm	_BAT_ERR,8,3                    ; @BAT_ERR
	.comm	_AC_ERROR,4,2                   ; @AC_ERROR
.subsections_via_symbols
