	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_proc_acpi_sysfs_ac_adapter
_check_proc_acpi_sysfs_ac_adapter:      ## @check_proc_acpi_sysfs_ac_adapter
	.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	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$0, -1068(%rbp)
	movq	$0, -1064(%rbp)
	movq	_proc_acpi_sysfs_ac_adapter_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	$0, -1056(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_filestream_exists
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	-1056(%rbp), %rdi
	leaq	-1064(%rbp), %rsi
	leaq	-1068(%rbp), %rdx
	callq	_filestream_read_file
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.2:
	movq	-1064(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	movq	-1064(%rbp), %rdi
	callq	_free
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_proc_acpi_sysfs_ac_adapter_path,8,3 ## @proc_acpi_sysfs_ac_adapter_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

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

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

	.no_dead_strip	_check_proc_acpi_sysfs_ac_adapter
.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_sysfs_ac_adapter
_check_proc_acpi_sysfs_ac_adapter:      ; @check_proc_acpi_sysfs_ac_adapter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #1056
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	wzr, [sp, #20]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _proc_acpi_sysfs_ac_adapter_path@GOTPAGE
Lloh4:
	ldr	x8, [x8, _proc_acpi_sysfs_ac_adapter_path@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	strb	wzr, [sp, #24]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x4, l_.str.1@PAGE
Lloh9:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #1024
	bl	_snprintf
	add	x0, sp, #24
	bl	_filestream_exists
	cbz	w0, LBB0_5
; %bb.1:
	add	x0, sp, #24
	add	x1, sp, #8
	add	x2, sp, #20
	bl	_filestream_read_file
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_proc_acpi_sysfs_ac_adapter_path,8,3 ; @proc_acpi_sysfs_ac_adapter_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

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

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

	.no_dead_strip	_check_proc_acpi_sysfs_ac_adapter
.subsections_via_symbols
