	.file	"extr_ae.c_aeCreateEventLoop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	aeCreateEventLoop
	.type	aeCreateEventLoop, @function
aeCreateEventLoop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	mov	edi, 72
	call	zmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	lea	ebp, 0[0+rbx*4]
	mov	edi, ebp
	call	zmalloc@PLT
	mov	edi, ebp
	mov	QWORD PTR 16[r12], rax
	call	zmalloc@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	QWORD PTR 8[r12], rax
	test	rdi, rdi
	je	.L3
	test	rax, rax
	je	.L3
	mov	DWORD PTR [r12], ebx
	xor	edi, edi
	call	time@PLT
	mov	rdi, r12
	mov	QWORD PTR 56[r12], 0
	mov	DWORD PTR 64[r12], eax
	mov	QWORD PTR 48[r12], 0
	mov	QWORD PTR 40[r12], 0
	mov	DWORD PTR 4[r12], -1
	mov	QWORD PTR 32[r12], 0
	call	aeApiCreate@PLT
	cmp	eax, -1
	je	.L12
	test	ebx, ebx
	jle	.L1
	mov	rdx, QWORD PTR 16[r12]
	lea	esi, -1[rbx]
	mov	ecx, DWORD PTR AE_NONE[rip]
	lea	rsi, [rsi+rsi*8]
	lea	rax, 24[rdx]
	lea	rdx, 96[rdx+rsi*8]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rax], ecx
	add	rax, 72
	cmp	rax, rdx
	jne	.L5
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r12]
.L3:
	call	zfree@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	zfree@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	zfree@PLT
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aeCreateEventLoop, .-aeCreateEventLoop
	.comm	AE_NONE,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_aeCreateEventLoop.c"
	.text
	.align	2
	.global	aeCreateEventLoop
	.syntax unified
	.arm
	.fpu softvfp
	.type	aeCreateEventLoop, %function
aeCreateEventLoop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, #40
	bl	zmalloc
	subs	r4, r0, #0
	beq	.L1
	lsl	r7, r6, #2
	mov	r0, r7
	bl	zmalloc
	mov	r3, r0
	mov	r0, r7
	str	r3, [r4, #12]
	bl	zmalloc
	clz	r5, r0
	mov	r3, r0
	ldr	r0, [r4, #12]
	lsr	r5, r5, #5
	cmp	r0, #0
	moveq	r5, #1
	cmp	r5, #0
	str	r3, [r4, #8]
	bne	.L3
	mov	r0, r5
	str	r6, [r4]
	bl	time
	mvn	r3, #0
	str	r0, [r4, #36]
	str	r5, [r4, #32]
	mov	r0, r4
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	str	r3, [r4, #4]
	bl	aeApiCreate
	cmn	r0, #1
	ldreq	r0, [r4, #12]
	beq	.L3
	cmp	r6, #0
	ble	.L1
	ldr	r2, .L12
	ldr	r3, [r4, #12]
	add	r0, r7, r6
	ldr	r2, [r2]
	add	r0, r3, r0, lsl #3
.L5:
	str	r2, [r3, #16]
	add	r3, r3, #40
	cmp	r3, r0
	bne	.L5
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	bl	zfree
	ldr	r0, [r4, #8]
	bl	zfree
	mov	r0, r4
	mov	r4, #0
	bl	zfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	AE_NONE
	.size	aeCreateEventLoop, .-aeCreateEventLoop
	.comm	AE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
