	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_proc_acpi_ac_adapter
_check_proc_acpi_ac_adapter:            ## @check_proc_acpi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -1120(%rbp)               ## 8-byte Spill
	movq	%rdi, %r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_proc_acpi_ac_adapter_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	$0, -1096(%rbp)
	movq	$0, -1088(%rbp)
	movq	$0, -1080(%rbp)
	movl	$0, -1100(%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
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_filestream_exists
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	-1072(%rbp), %rdi
	leaq	-1096(%rbp), %rsi
	leaq	-1100(%rbp), %rdx
	callq	_filestream_read_file
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.2:
	movq	-1096(%rbp), %rax
	movq	%rax, -1112(%rbp)
	leaq	-1112(%rbp), %rdi
	leaq	-1088(%rbp), %rsi
	leaq	-1080(%rbp), %rdx
	callq	_make_proc_acpi_key_val
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %r15
	leaq	-1112(%rbp), %r12
	leaq	-1088(%rbp), %r13
	leaq	-1080(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_make_proc_acpi_key_val
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-1080(%rbp), %rdi
	callq	_djb2_calculate
	movq	%rax, %r14
	movq	-1088(%rbp), %rdi
	movq	%r15, %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ACPI_VAL_ONLINE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-1120(%rbp), %rax               ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_8:
	movq	-1096(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_free
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_proc_acpi_ac_adapter_path,8,3  ## @proc_acpi_ac_adapter_path
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s/%s"

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

	.comm	_ACPI_VAL_ONLINE,8,3            ## @ACPI_VAL_ONLINE
	.no_dead_strip	_check_proc_acpi_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_ac_adapter
_check_proc_acpi_ac_adapter:            ; @check_proc_acpi_ac_adapter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #1072
	mov	x19, x1
	mov	x4, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _proc_acpi_ac_adapter_path@GOTPAGE
Lloh4:
	ldr	x8, [x8, _proc_acpi_ac_adapter_path@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	str	xzr, [sp, #32]
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #4]
	strb	wzr, [sp, #40]
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, #40
	mov	w1, #1024
	bl	_snprintf
	add	x0, sp, #40
	bl	_filestream_exists
	cbz	w0, LBB0_9
; %bb.1:
	add	x0, sp, #40
	add	x1, sp, #32
	add	x2, sp, #4
	bl	_filestream_read_file
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [sp, #32]
	str	x8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_make_proc_acpi_key_val
	cbz	x0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh12:
	adrp	x22, _ACPI_VAL_ONLINE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ACPI_VAL_ONLINE@GOTPAGEOFF]
	mov	w23, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_make_proc_acpi_key_val
	cbz	x0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_djb2_calculate
	mov	x21, x0
	ldr	x0, [sp, #16]
	mov	x1, x20
	bl	_string_is_equal
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x21, x8, #0, ne
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x19]
	b	LBB0_4
LBB0_7:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_free
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_proc_acpi_ac_adapter_path,8,3  ; @proc_acpi_ac_adapter_path
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s/%s"

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

	.comm	_ACPI_VAL_ONLINE,8,3            ; @ACPI_VAL_ONLINE
	.no_dead_strip	_check_proc_acpi_ac_adapter
.subsections_via_symbols
