	.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
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$8, -40(%rbp)
	movq	$4, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	_Battery_getData.mib(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_findDevice
	movabsq	$-4616189618054758400, %rcx     ## imm = 0xBFF0000000000000
	movq	%rcx, (%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	$7, _Battery_getData.mib+12(%rip)
	leaq	_Battery_getData.mib(%rip), %rdi
	leaq	-24(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	$5, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	xorpd	%xmm0, %xmm0
	xorpd	%xmm1, %xmm1
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.2:
	movsd	-24(%rbp), %xmm1                ## xmm1 = mem[0],zero
LBB0_3:
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_6
## %bb.4:
	movabsq	$12884901895, %rax              ## imm = 0x300000007
	movq	%rax, _Battery_getData.mib+12(%rip)
	leaq	_Battery_getData.mib(%rip), %rdi
	leaq	-24(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	$5, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	callq	_sysctl
	movapd	-64(%rbp), %xmm3                ## 16-byte Reload
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	divsd	%xmm3, %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm1
	cmpnlesd	%xmm0, %xmm3
	andpd	%xmm3, %xmm1
	andnpd	%xmm2, %xmm3
	orpd	%xmm1, %xmm3
	movlpd	%xmm3, (%rbx)
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	leaq	_Battery_getData.mib(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_findDevice
	movq	_AC_ERROR@GOTPCREL(%rip), %rcx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	$9, _Battery_getData.mib+12(%rip)
	leaq	_Battery_getData.mib(%rip), %rdi
	leaq	-24(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	$5, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.8:
	movsd	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @Battery_getData.mib
_Battery_getData.mib:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acpibat0"

L_.str.1:                               ## @.str.1
	.asciz	"acpiac0"

	.comm	_AC_ERROR,8,3                   ## @AC_ERROR
.subsections_via_symbols

	.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:
	.long	7                               ; 0x7
	.long	0                               ; 0x0
lCPI0_1:
	.long	7                               ; 0x7
	.long	3                               ; 0x3
lCPI0_2:
	.long	9                               ; 0x9
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Battery_getData
	.p2align	2
_Battery_getData:                       ; @Battery_getData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x1
	mov	x20, x0
	mov	w8, #8
	str	x8, [sp, #16]
	mov	w8, #4
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x21, _Battery_getData.mib@PAGE
Lloh3:
	add	x21, x21, _Battery_getData.mib@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x21
	bl	_findDevice
	mov	x8, #-4616189618054758400
	str	x8, [x20]
	cbz	w0, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x21, #12]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	mov	w1, #5
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	ldr	d0, [sp, #24]
	cmn	w0, #1
	movi	d1, #0000000000000000
	fcsel	d8, d1, d0, eq
	fcmp	d8, #0.0
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, lCPI0_1@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x21, #12]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	mov	w1, #5
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	d0, [sp, #24]
	fdiv	d1, d0, d8
	mov	x8, #4636737291354636288
	fmov	d2, x8
	fmul	d1, d1, d2
	fcmp	d0, d8
	fcsel	d0, d1, d2, lt
	str	d0, [x20]
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh10:
	adrp	x20, _Battery_getData.mib@PAGE
Lloh11:
	add	x20, x20, _Battery_getData.mib@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x20
	bl	_findDevice
Lloh12:
	adrp	x8, _AC_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AC_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	d0, [x8]
	str	d0, [x19]
	cbz	w0, LBB0_7
; %bb.5:
Lloh15:
	adrp	x8, lCPI0_2@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	stur	d0, [x20, #12]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x20
	mov	w1, #5
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:
	ldr	d0, [sp, #24]
	str	d0, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @Battery_getData.mib
_Battery_getData.mib:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acpibat0"

l_.str.1:                               ; @.str.1
	.asciz	"acpiac0"

	.comm	_AC_ERROR,8,3                   ; @AC_ERROR
.subsections_via_symbols
