	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function BatteryMeter_updateValues
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_BatteryMeter_updateValues:             ## @BatteryMeter_updateValues
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_Battery_getData
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	(%rbx), %rax
	jne	LBB0_2
	jp	LBB0_2
## %bb.1:
	movq	$0, (%rax)
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_xSnprintf
	jmp	LBB0_7
LBB0_2:
	movsd	%xmm0, (%rax)
	movq	8(%rbx), %rax
	movq	_TEXT_METERMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rsi, %rdx
	movq	-40(%rbp), %rsi
	movq	_AC_PRESENT@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	jmp	LBB0_6
LBB0_4:
	movq	_AC_ABSENT@GOTPCREL(%rip), %rax
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	cmpq	(%rax), %rsi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdx
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movb	$1, %al
	callq	_xSnprintf
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n/a"

L_.str.1:                               ## @.str.1
	.asciz	"%.1f%%"

	.comm	_TEXT_METERMODE,8,3             ## @TEXT_METERMODE
L_.str.2:                               ## @.str.2
	.asciz	"%.1f%% (Running on A/C)"

L_.str.3:                               ## @.str.3
	.asciz	"%.1f%% (Running on battery)"

L_.str.4:                               ## @.str.4
	.asciz	"%.1f%%(A/C)"

L_.str.5:                               ## @.str.5
	.asciz	"%.1f%%(bat)"

	.comm	_AC_PRESENT,8,3                 ## @AC_PRESENT
	.comm	_AC_ABSENT,8,3                  ## @AC_ABSENT
	.no_dead_strip	_BatteryMeter_updateValues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BatteryMeter_updateValues
_BatteryMeter_updateValues:             ; @BatteryMeter_updateValues
	.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, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_Battery_getData
	ldr	d0, [sp, #16]
	ldr	x8, [x21]
	fmov	d1, #-1.00000000
	fcmp	d0, d1
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	str	d0, [x8]
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _TEXT_METERMODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TEXT_METERMODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, l_.str.5@PAGE
Lloh6:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh7:
	adrp	x11, l_.str.3@PAGE
Lloh8:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
	ldr	x10, [sp, #24]
Lloh9:
	adrp	x11, _AC_PRESENT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AC_PRESENT@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x10, l_.str.4@PAGE
Lloh13:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh14:
	adrp	x11, l_.str.2@PAGE
Lloh15:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
	ldr	d0, [sp, #16]
	str	d0, [sp]
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _AC_ABSENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AC_ABSENT@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	d0, [sp, #16]
	cmp	x10, x8
	b.ne	LBB0_6
; %bb.5:
	str	d0, [sp]
	b	LBB0_7
LBB0_6:
	str	d0, [sp]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	_xSnprintf
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n/a"

l_.str.1:                               ; @.str.1
	.asciz	"%.1f%%"

	.comm	_TEXT_METERMODE,8,3             ; @TEXT_METERMODE
l_.str.2:                               ; @.str.2
	.asciz	"%.1f%% (Running on A/C)"

l_.str.3:                               ; @.str.3
	.asciz	"%.1f%% (Running on battery)"

l_.str.4:                               ; @.str.4
	.asciz	"%.1f%%(A/C)"

l_.str.5:                               ; @.str.5
	.asciz	"%.1f%%(bat)"

	.comm	_AC_PRESENT,8,3                 ; @AC_PRESENT
	.comm	_AC_ABSENT,8,3                  ; @AC_ABSENT
	.no_dead_strip	_BatteryMeter_updateValues
.subsections_via_symbols
