	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_proc_acpi_battery
_check_proc_acpi_battery:               ## @check_proc_acpi_battery
	.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
	subq	$1112, %rsp                     ## imm = 0x458
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -1128(%rbp)               ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -1152(%rbp)               ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_proc_acpi_battery_path@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	$0, -1100(%rbp)
	movq	$0, -1096(%rbp)
	movq	$0, -1120(%rbp)
	movq	$0, -1112(%rbp)
	movq	$0, -1080(%rbp)
	movq	$0, -1088(%rbp)
	movb	$0, -1072(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r9
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_filestream_exists
	testl	%eax, %eax
	je	LBB0_21
## %bb.1:
	leaq	-1072(%rbp), %rdi
	leaq	-1120(%rbp), %rsi
	leaq	-1100(%rbp), %rdx
	callq	_filestream_read_file
	testl	%eax, %eax
	je	LBB0_21
## %bb.2:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.2(%rip), %r9
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_snprintf
	leaq	-1112(%rbp), %rsi
	leaq	-1100(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_filestream_read_file
	testl	%eax, %eax
	je	LBB0_21
## %bb.3:
	movq	%r13, -1136(%rbp)               ## 8-byte Spill
	movq	%r12, -1144(%rbp)               ## 8-byte Spill
	movq	-1120(%rbp), %rax
	movq	%rax, -1096(%rbp)
	leaq	-1096(%rbp), %rdi
	leaq	-1080(%rbp), %rsi
	leaq	-1088(%rbp), %rdx
	callq	_make_proc_acpi_key_val
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorl	%r13d, %r13d
	leaq	-1096(%rbp), %r12
	leaq	-1080(%rbp), %r15
	leaq	-1088(%rbp), %rbx
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-1080(%rbp), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_string_is_equal
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %r14d
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_make_proc_acpi_key_val
	movl	%r14d, %r13d
	testq	%rax, %rax
	je	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-1080(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-1088(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-1152(%rbp), %rax               ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-1080(%rbp), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-1088(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_string_is_equal
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-1088(%rbp), %rdi
	callq	_djb2_calculate
	cmpl	$128, %eax
	movl	$1, %eax
	cmovel	%eax, %r13d
	jmp	LBB0_13
LBB0_4:
	xorl	%r14d, %r14d
LBB0_15:
	movq	-1112(%rbp), %rax
	movq	%rax, -1096(%rbp)
	leaq	-1096(%rbp), %rdi
	leaq	-1080(%rbp), %rsi
	leaq	-1088(%rbp), %rdx
	callq	_make_proc_acpi_key_val
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.8(%rip), %r13
	leaq	-1096(%rbp), %r15
	leaq	-1080(%rbp), %r12
	leaq	-1088(%rbp), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-1080(%rbp), %rdi
	movq	%r13, %rsi
	callq	_string_is_equal
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_make_proc_acpi_key_val
	testq	%rax, %rax
	jne	LBB0_17
LBB0_18:
	movq	-1128(%rbp), %rax               ## 8-byte Reload
	cmpl	$0, (%rax)
	movq	-1144(%rbp), %rax               ## 8-byte Reload
	movq	-1136(%rbp), %rcx               ## 8-byte Reload
	jns	LBB0_21
## %bb.19:
	cmpl	$0, (%rax)
	jns	LBB0_21
## %bb.20:
	movq	-1128(%rbp), %rdx               ## 8-byte Reload
	movl	$-1, (%rdx)
	movl	$-1, (%rax)
	movl	%r14d, (%rcx)
LBB0_21:
	movq	-1112(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_free
LBB0_23:
	movq	-1120(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	callq	_free
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	addq	$1112, %rsp                     ## imm = 0x458
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_proc_acpi_battery_path,8,3     ## @proc_acpi_battery_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s/%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"info"

L_.str.3:                               ## @.str.3
	.asciz	"present"

L_.str.4:                               ## @.str.4
	.asciz	"yes"

L_.str.5:                               ## @.str.5
	.asciz	"charging state"

L_.str.6:                               ## @.str.6
	.asciz	"charging"

L_.str.7:                               ## @.str.7
	.asciz	"remaining capacity"

L_.str.8:                               ## @.str.8
	.asciz	"design capacity"

	.no_dead_strip	_check_proc_acpi_battery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_proc_acpi_battery
_check_proc_acpi_battery:               ; @check_proc_acpi_battery
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1088
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _proc_acpi_battery_path@GOTPAGE
Lloh4:
	ldr	x8, [x8, _proc_acpi_battery_path@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	str	wzr, [sp, #44]
	stp	xzr, xzr, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp]
	strb	wzr, [sp, #48]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x5, l_.str.1@PAGE
Lloh9:
	add	x5, x5, l_.str.1@PAGEOFF
	add	x0, sp, #48
	mov	w1, #1024
	mov	x3, x24
	mov	x4, x23
	bl	_snprintf
	add	x0, sp, #48
	bl	_filestream_exists
	cbz	w0, LBB0_20
; %bb.1:
	add	x0, sp, #48
	add	x1, sp, #24
	add	x2, sp, #44
	bl	_filestream_read_file
	cbz	w0, LBB0_20
; %bb.2:
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
Lloh12:
	adrp	x5, l_.str.2@PAGE
Lloh13:
	add	x5, x5, l_.str.2@PAGEOFF
	add	x0, sp, #48
	mov	w1, #1024
	mov	x3, x24
	mov	x4, x23
	bl	_snprintf
	add	x0, sp, #48
	add	x1, sp, #16
	add	x2, sp, #44
	bl	_filestream_read_file
	cbz	w0, LBB0_20
; %bb.3:
	ldr	x8, [sp, #24]
	str	x8, [sp, #32]
	add	x0, sp, #32
	add	x1, sp, #8
	mov	x2, sp
	bl	_make_proc_acpi_key_val
	mov	w28, #0
	cbz	x0, LBB0_14
; %bb.4:
Lloh14:
	adrp	x23, l_.str.3@PAGE
Lloh15:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh16:
	adrp	x24, l_.str.5@PAGE
Lloh17:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh18:
	adrp	x26, l_.str.6@PAGE
Lloh19:
	add	x26, x26, l_.str.6@PAGEOFF
	mov	w25, #1
Lloh20:
	adrp	x27, l_.str.4@PAGE
Lloh21:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_string_is_equal
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #32
	add	x1, sp, #8
	mov	x2, sp
	bl	_make_proc_acpi_key_val
	cbz	x0, LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_string_is_equal
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	mov	x1, x27
	bl	_string_is_equal
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w25, [x22]
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x24
	bl	_string_is_equal
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	mov	x1, x26
	bl	_string_is_equal
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w28, #1
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_djb2_calculate
	cmp	w0, #128
	csinc	w28, w28, wzr, ne
	b	LBB0_6
LBB0_14:
	ldr	x8, [sp, #16]
	str	x8, [sp, #32]
	add	x0, sp, #32
	add	x1, sp, #8
	mov	x2, sp
	bl	_make_proc_acpi_key_val
	cbz	x0, LBB0_17
; %bb.15:
Lloh24:
	adrp	x22, l_.str.8@PAGE
Lloh25:
	add	x22, x22, l_.str.8@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_string_is_equal
	add	x0, sp, #32
	add	x1, sp, #8
	mov	x2, sp
	bl	_make_proc_acpi_key_val
	cbnz	x0, LBB0_16
LBB0_17:
	ldr	w8, [x21]
	tbz	w8, #31, LBB0_20
; %bb.18:
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_20
; %bb.19:
	mov	w8, #-1
	str	w8, [x21]
	str	w8, [x19]
	str	w28, [x20]
LBB0_20:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_free
LBB0_22:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_free
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	add	sp, sp, #1088
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_proc_acpi_battery_path,8,3     ; @proc_acpi_battery_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s/%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"info"

l_.str.3:                               ; @.str.3
	.asciz	"present"

l_.str.4:                               ; @.str.4
	.asciz	"yes"

l_.str.5:                               ; @.str.5
	.asciz	"charging state"

l_.str.6:                               ; @.str.6
	.asciz	"charging"

l_.str.7:                               ; @.str.7
	.asciz	"remaining capacity"

l_.str.8:                               ; @.str.8
	.asciz	"design capacity"

	.no_dead_strip	_check_proc_acpi_battery
.subsections_via_symbols
