	.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	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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$4, -40(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	cvtsi2sdl	-24(%rbp), %xmm0
	jmp	LBB0_3
LBB0_1:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_3:
	movsd	%xmm0, (%rbx)
	movq	$4, -32(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$0, -20(%rbp)
	jne	LBB0_6
## %bb.7:
	movq	_AC_ABSENT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_AC_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_AC_PRESENT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw.acpi.battery.life"

L_.str.1:                               ## @.str.1
	.asciz	"hw.acpi.acline"

	.comm	_AC_ERROR,4,2                   ## @AC_ERROR
	.comm	_AC_ABSENT,4,2                  ## @AC_ABSENT
	.comm	_AC_PRESENT,4,2                 ## @AC_PRESENT
.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	mov	w21, #4
	str	x21, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #28
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	ldr	s0, [sp, #28]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	cmn	w0, #1
	fmov	d1, #-1.00000000
	fcsel	d0, d1, d0, eq
	str	d0, [x20]
	str	x21, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #12
	mov	x2, sp
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _AC_ABSENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AC_ABSENT@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh6:
	adrp	x10, _AC_PRESENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AC_PRESENT@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _AC_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw.acpi.battery.life"

l_.str.1:                               ; @.str.1
	.asciz	"hw.acpi.acline"

	.comm	_AC_ERROR,4,2                   ; @AC_ERROR
	.comm	_AC_ABSENT,4,2                  ; @AC_ABSENT
	.comm	_AC_PRESENT,4,2                 ; @AC_PRESENT
.subsections_via_symbols
