	.file	"extr_evevent.c_AcpiEvFixedEventDetect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AcpiEvFixedEventDetect
	.type	AcpiEvFixedEventDetect, @function
AcpiEvFixedEventDetect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR EvFixedEventDetect[rip]
	mov	r12, QWORD PTR ACPI_INTERRUPT_NOT_HANDLED[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ACPI_FUNCTION_NAME@PLT
	mov	edi, DWORD PTR ACPI_REGISTER_PM1_STATUS[rip]
	lea	rsi, 8[rsp]
	call	AcpiHwRegisterRead@PLT
	mov	edi, DWORD PTR ACPI_REGISTER_PM1_ENABLE[rip]
	lea	rsi, 16[rsp]
	mov	ebx, eax
	call	AcpiHwRegisterRead@PLT
	mov	edi, ebx
	or	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L15
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rsp]
	call	ACPI_DEBUG_PRINT@PLT
	cmp	QWORD PTR ACPI_NUM_FIXED_EVENTS[rip], 0
	je	.L1
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	QWORD PTR ACPI_NUM_FIXED_EVENTS[rip], rbx
	jbe	.L1
.L4:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR AcpiGbl_FixedEventInfo[rip]
	mov	rdx, QWORD PTR [rax]
	test	QWORD PTR 8[rsp], rdx
	je	.L3
	mov	rax, QWORD PTR 8[rax]
	test	QWORD PTR 16[rsp], rax
	je	.L3
	mov	rax, QWORD PTR AcpiFixedEventCount[rip]
	mov	rdx, rbx
	xor	esi, esi
	add	DWORD PTR [rax+rbx*4], 1
	mov	ecx, DWORD PTR AcpiGbl_GlobalEventHandlerContext[rip]
	mov	edi, DWORD PTR ACPI_EVENT_TYPE_FIXED[rip]
	call	AcpiGbl_GlobalEventHandler@PLT
	mov	rdi, rbx
	call	AcpiEvFixedEventDispatch@PLT
	or	r12, rax
	jmp	.L3
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AcpiEvFixedEventDetect, .-AcpiEvFixedEventDetect
	.comm	EvFixedEventDetect,4,4
	.comm	AcpiGbl_GlobalEventHandlerContext,4,4
	.comm	AcpiGbl_FixedEventInfo,8,8
	.comm	AcpiFixedEventCount,8,8
	.comm	ACPI_REGISTER_PM1_STATUS,4,4
	.comm	ACPI_REGISTER_PM1_ENABLE,4,4
	.comm	ACPI_NUM_FIXED_EVENTS,8,8
	.comm	ACPI_INTERRUPT_NOT_HANDLED,8,8
	.comm	ACPI_EVENT_TYPE_FIXED,4,4
	.comm	ACPI_DB_INTERRUPTS,4,4
	.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_evevent.c_AcpiEvFixedEventDetect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AcpiEvFixedEventDetect
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcpiEvFixedEventDetect, %function
AcpiEvFixedEventDetect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L20
	ldr	r3, .L20+4
	ldr	r0, [r2]
	ldr	r2, .L20+8
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r7, [r3]
	bl	ACPI_FUNCTION_NAME
	ldr	r3, .L20+12
	add	r1, sp, #4
	ldr	r0, [r3]
	bl	AcpiHwRegisterRead
	ldr	r3, .L20+16
	mov	r4, r0
	add	r1, sp, #8
	ldr	r0, [r3]
	bl	AcpiHwRegisterRead
	orr	r0, r4, r0
	bl	ACPI_FAILURE
	subs	r4, r0, #0
	beq	.L18
.L1:
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r5, .L20+20
	ldr	r0, [sp, #4]
	bl	ACPI_DEBUG_PRINT
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L1
	ldr	r6, .L20+24
	ldr	r10, .L20+28
	ldr	r9, .L20+32
	ldr	r8, .L20+36
	b	.L4
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L1
.L4:
	ldr	r3, [r6]
	ldr	r2, [sp, #4]
	ldr	r1, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	tst	r1, r2
	beq	.L3
	ldr	r2, [r3, #4]
	ldr	r3, [sp, #8]
	tst	r2, r3
	beq	.L3
	ldr	r0, [r10]
	mov	r2, r4
	ldr	r3, [r0, r4, lsl #2]
	mov	r1, #0
	add	r3, r3, #1
	str	r3, [r0, r4, lsl #2]
	ldr	r3, [r9]
	ldr	r0, [r8]
	bl	AcpiGbl_GlobalEventHandler
	mov	r0, r4
	bl	AcpiEvFixedEventDispatch
	orr	r7, r7, r0
	b	.L3
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	EvFixedEventDetect
	.word	ACPI_INTERRUPT_NOT_HANDLED
	.word	.LC0
	.word	ACPI_REGISTER_PM1_STATUS
	.word	ACPI_REGISTER_PM1_ENABLE
	.word	ACPI_NUM_FIXED_EVENTS
	.word	AcpiGbl_FixedEventInfo
	.word	AcpiFixedEventCount
	.word	AcpiGbl_GlobalEventHandlerContext
	.word	ACPI_EVENT_TYPE_FIXED
	.size	AcpiEvFixedEventDetect, .-AcpiEvFixedEventDetect
	.comm	EvFixedEventDetect,4,4
	.comm	AcpiGbl_GlobalEventHandlerContext,4,4
	.comm	AcpiGbl_FixedEventInfo,4,4
	.comm	AcpiFixedEventCount,4,4
	.comm	ACPI_REGISTER_PM1_STATUS,4,4
	.comm	ACPI_REGISTER_PM1_ENABLE,4,4
	.comm	ACPI_NUM_FIXED_EVENTS,4,4
	.comm	ACPI_INTERRUPT_NOT_HANDLED,4,4
	.comm	ACPI_EVENT_TYPE_FIXED,4,4
	.comm	ACPI_DB_INTERRUPTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
