	.file	"extr_..frontenddriversplatform_unix.c_check_proc_acpi_ac_adapter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"state"
.LC1:
	.string	"%s/%s/%s"
	.text
	.p2align 4
	.type	check_proc_acpi_ac_adapter, @function
check_proc_acpi_ac_adapter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r8, rdi
	lea	r9, .LC0[rip]
	lea	rdx, .LC1[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, 1024
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1096
	.cfi_def_cfa_offset 1152
	mov	rcx, QWORD PTR proc_acpi_ac_adapter_path[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1080[rsp], rax
	xor	eax, eax
	lea	r12, 48[rsp]
	mov	DWORD PTR 12[rsp], 0
	mov	rdi, r12
	mov	BYTE PTR 48[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	call	snprintf@PLT
	mov	rdi, r12
	call	filestream_exists@PLT
	test	eax, eax
	jne	.L19
.L1:
	mov	rax, QWORD PTR 1080[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 1096
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rdx, 12[rsp]
	lea	rsi, 16[rsp]
	mov	rdi, r12
	call	filestream_read_file@PLT
	cmp	eax, 1
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	lea	r14, 40[rsp]
	lea	r13, 32[rsp]
	lea	r12, 24[rsp]
	lea	r15, .LC0[rip]
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r12
	call	make_proc_acpi_key_val@PLT
	test	rax, rax
	je	.L21
	mov	rdi, QWORD PTR 40[rsp]
	call	djb2_calculate@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, r15
	mov	rbx, rax
	call	string_is_equal@PLT
	test	rax, rax
	je	.L3
	cmp	QWORD PTR ACPI_VAL_ONLINE[rip], rbx
	jne	.L3
	mov	DWORD PTR 0[rbp], 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L1
	call	free@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_proc_acpi_ac_adapter, .-check_proc_acpi_ac_adapter
	.comm	proc_acpi_ac_adapter_path,8,8
	.comm	ACPI_VAL_ONLINE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_..frontenddriversplatform_unix.c_check_proc_acpi_ac_adapter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/%s/%s\000"
	.align	2
.LC1:
	.ascii	"state\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_proc_acpi_ac_adapter, %function
check_proc_acpi_ac_adapter:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L22
	sub	sp, sp, #1056
	ldr	r7, .L22+4
	str	r0, [sp]
	ldr	lr, .L22+8
	ldr	r3, [r3]
	ldr	r2, .L22+12
	str	r7, [sp, #4]
	mov	r5, r1
	add	r0, sp, #28
	mov	r1, #1024
	ldr	lr, [lr]
	str	lr, [sp, #1052]
	mov	lr,#0
	str	ip, [sp, #8]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	strb	ip, [sp, #28]
	bl	snprintf
	add	r0, sp, #28
	bl	filestream_exists
	cmp	r0, #0
	bne	.L19
.L1:
	ldr	r3, .L22+8
	ldr	r2, [r3]
	ldr	r3, [sp, #1052]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #1056
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	add	r2, sp, #24
	add	r0, sp, #28
	add	r1, sp, #8
	bl	filestream_read_file
	cmp	r0, #1
	bne	.L1
	mov	r6, r0
	ldr	r3, [sp, #8]
	ldr	r8, .L22+16
	str	r3, [sp, #12]
.L3:
	add	r2, sp, #20
	add	r1, sp, #16
	add	r0, sp, #12
	bl	make_proc_acpi_key_val
	cmp	r0, #0
	beq	.L21
	ldr	r0, [sp, #20]
	bl	djb2_calculate
	mov	r1, r7
	mov	r4, r0
	ldr	r0, [sp, #16]
	bl	string_is_equal
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r8]
	cmp	r3, r4
	streq	r6, [r5]
	b	.L3
.L21:
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L1
	bl	free
	b	.L1
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	proc_acpi_ac_adapter_path
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	ACPI_VAL_ONLINE
	.size	check_proc_acpi_ac_adapter, .-check_proc_acpi_ac_adapter
	.comm	proc_acpi_ac_adapter_path,4,4
	.comm	ACPI_VAL_ONLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
