	.file	"extr_apm_32.c_get_event.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"get_event"
	.text
	.p2align 4
	.type	get_event, @function
get_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR APM_NO_EVENTS[rip]
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	mov	DWORD PTR [rsp], eax
	call	apm_get_event@PLT
	cmp	DWORD PTR APM_SUCCESS[rip], eax
	mov	r12d, DWORD PTR [rsp]
	je	.L1
	cmp	DWORD PTR APM_NO_EVENTS[rip], eax
	mov	esi, eax
	je	.L5
	mov	r12d, DWORD PTR notified.1931[rip]
	lea	eax, 1[r12]
	mov	DWORD PTR notified.1931[rip], eax
	test	r12d, r12d
	je	.L9
.L5:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	apm_error@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_event, .-get_event
	.local	notified.1931
	.comm	notified.1931,4,4
	.comm	APM_SUCCESS,4,4
	.comm	APM_NO_EVENTS,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_apm_32.c_get_event.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get_event\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_event, %function
get_event:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L11
	sub	sp, sp, #16
	ldr	r3, [r4]
	ldr	r2, .L11+4
	add	r1, sp, #8
	add	r0, sp, #4
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp, #4]
	bl	apm_get_event
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, r0
	ldreq	r4, [sp, #4]
	beq	.L1
	ldr	r3, [r4]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L11+12
	ldr	r4, [r3]
	add	r2, r4, #1
	cmp	r4, #0
	str	r2, [r3]
	beq	.L9
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L9:
	mov	r1, r0
	ldr	r0, .L11+16
	bl	apm_error
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	APM_NO_EVENTS
	.word	.LC1
	.word	APM_SUCCESS
	.word	.LANCHOR0
	.word	.LC0
	.size	get_event, .-get_event
	.comm	APM_SUCCESS,4,4
	.comm	APM_NO_EVENTS,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	notified.4215, %object
	.size	notified.4215, 4
notified.4215:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
