	.file	"extr_ae_evport.c_aeApiAddEvent.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"aeApiAddEvent: fd %d mask 0x%x\n"
	.align 8
.LC1:
	.string	"aeApiAddEvent: adding to pending fd %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"aeApiAddEvent"
	.text
	.p2align 4
	.type	aeApiAddEvent, @function
aeApiAddEvent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR evport_debug[rip], 0
	mov	r13, QWORD PTR 8[rdi]
	jne	.L9
.L2:
	mov	rdx, QWORD PTR [rbx]
	movsx	rax, r12d
	mov	esi, r12d
	mov	rdi, r13
	or	ebp, DWORD PTR [rdx+rax*4]
	call	aeApiLookupPending@PLT
	movsx	rbx, eax
	cmp	ebx, -1
	je	.L3
	cmp	QWORD PTR evport_debug[rip], 0
	jne	.L10
.L4:
	mov	rax, QWORD PTR 0[r13]
	or	DWORD PTR [rax+rbx*4], ebp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 8[r13]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, ebp
	mov	edx, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	aeApiAssociate@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, edx
	xor	eax, eax
	mov	edx, esi
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	aeApiAddEvent, .-aeApiAddEvent
	.comm	stderr,4,4
	.comm	evport_debug,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_ae_evport.c_aeApiAddEvent.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"aeApiAddEvent: fd %d mask 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"aeApiAddEvent: adding to pending fd %d\012\000"
	.align	2
.LC2:
	.ascii	"aeApiAddEvent\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aeApiAddEvent, %function
aeApiAddEvent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L17
	mov	r5, r0
	ldr	r3, [r7]
	mov	r6, r1
	cmp	r3, #0
	mov	r4, r2
	ldr	r8, [r0, #4]
	bne	.L15
.L2:
	ldr	r3, [r5]
	mov	r1, r6
	mov	r0, r8
	ldr	r5, [r3, r6, lsl #2]
	bl	aeApiLookupPending
	cmn	r0, #1
	orr	r5, r4, r5
	mov	r4, r0
	beq	.L3
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L16
.L4:
	ldr	r2, [r8]
	mov	r0, #0
	ldr	r3, [r2, r4, lsl #2]
	orr	r5, r3, r5
	str	r5, [r2, r4, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L17+4
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L17+8
	bl	fprintf
	b	.L4
.L3:
	mov	r3, r5
	mov	r2, r6
	ldr	r1, [r8, #4]
	ldr	r0, .L17+12
	pop	{r4, r5, r6, r7, r8, lr}
	b	aeApiAssociate
.L15:
	ldr	r2, .L17+4
	mov	r3, r4
	ldr	r0, [r2]
	mov	r2, r1
	ldr	r1, .L17+16
	bl	fprintf
	b	.L2
.L18:
	.align	2
.L17:
	.word	evport_debug
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	aeApiAddEvent, .-aeApiAddEvent
	.comm	stderr,4,4
	.comm	evport_debug,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
