	.file	"extr_ae.c_aeCreateFileEvent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	aeCreateFileEvent
	.type	aeCreateFileEvent, @function
aeCreateFileEvent:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR [rdi], esi
	jg	.L2
	mov	eax, DWORD PTR ERANGE[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, DWORD PTR AE_ERR[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movsx	r13, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	sal	r13, 5
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	add	r13, QWORD PTR 8[rdi]
	call	aeApiAddEvent@PLT
	cmp	eax, -1
	je	.L18
	or	DWORD PTR 0[r13], r12d
	test	DWORD PTR AE_READABLE[rip], r12d
	je	.L5
	mov	QWORD PTR 24[r13], r15
.L5:
	test	DWORD PTR AE_WRITABLE[rip], r12d
	je	.L6
	mov	QWORD PTR 16[r13], r15
.L6:
	mov	QWORD PTR 8[r13], r14
	cmp	DWORD PTR 4[rbx], ebp
	jl	.L19
.L7:
	mov	eax, DWORD PTR AE_OK[rip]
	add	rsp, 8
	.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
	mov	DWORD PTR 4[rbx], ebp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR AE_ERR[rip]
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	aeCreateFileEvent, .-aeCreateFileEvent
	.comm	errno,4,4
	.comm	ERANGE,4,4
	.comm	AE_WRITABLE,4,4
	.comm	AE_READABLE,4,4
	.comm	AE_OK,4,4
	.comm	AE_ERR,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_ae.c_aeCreateFileEvent.c"
	.text
	.align	2
	.global	aeCreateFileEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	aeCreateFileEvent, %function
aeCreateFileEvent:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	cmp	ip, r1
	bgt	.L2
	ldr	r3, .L19
	ldr	r2, .L19+4
	ldr	r1, [r3]
	ldr	r3, .L19+8
	str	r1, [r2]
	ldr	r0, [r3]
	bx	lr
.L2:
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r2
	ldr	r8, [r0, #8]
	mov	r7, r0
	mov	r6, r3
	bl	aeApiAddEvent
	cmn	r0, #1
	add	r2, r8, r4, lsl #4
	beq	.L18
	ldr	r3, [r8, r4, lsl #4]
	ldr	r1, .L19+12
	orr	r3, r3, r5
	ldr	r1, [r1]
	str	r3, [r8, r4, lsl #4]
	ldr	r3, .L19+16
	tst	r5, r1
	ldr	r3, [r3]
	strne	r6, [r2, #12]
	tst	r5, r3
	ldr	r3, [r7, #4]
	ldr	r1, [sp, #24]
	strne	r6, [r2, #8]
	cmp	r3, r4
	ldr	r3, .L19+20
	str	r1, [r2, #4]
	strlt	r4, [r7, #4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	ERANGE
	.word	errno
	.word	AE_ERR
	.word	AE_READABLE
	.word	AE_WRITABLE
	.word	AE_OK
	.size	aeCreateFileEvent, .-aeCreateFileEvent
	.comm	errno,4,4
	.comm	ERANGE,4,4
	.comm	AE_WRITABLE,4,4
	.comm	AE_READABLE,4,4
	.comm	AE_OK,4,4
	.comm	AE_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
