	.file	"extr_ev_streams.c_evRead.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evRead
	.type	evRead, @function
evRead:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], r8d
	call	OKNEW@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	esi, r12d
	mov	QWORD PTR 56[rbp], r13
	mov	DWORD PTR 0[rbp], r12d
	mov	ecx, DWORD PTR readable[rip]
	mov	r9d, 40
	mov	rdi, rbx
	mov	DWORD PTR 64[rbp], r8d
	mov	edx, DWORD PTR EV_READ[rip]
	mov	r8, rbp
	mov	QWORD PTR 48[rbp], 0
	call	evSelectFD@PLT
	test	rax, rax
	js	.L2
	mov	edx, r15d
	mov	rsi, r14
	mov	rdi, rbp
	call	copyvec@PLT
	test	rax, rax
	js	.L2
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 32[rbp], 0
	mov	QWORD PTR 24[rbp], 0
	test	rax, rax
	je	.L3
	mov	QWORD PTR 16[rax], 0
.L3:
	xor	ebp, ebp
	mov	QWORD PTR 8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR [rbx], rbp
	je	.L1
	mov	rbx, QWORD PTR 80[rsp]
	mov	QWORD PTR [rbx], 0
.L1:
	add	rsp, 24
	.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
.L2:
	.cfi_restore_state
	mov	ebx, DWORD PTR errno[rip]
	xor	ebp, ebp
	mov	rdi, rbp
	call	FREE@PLT
	mov	DWORD PTR errno[rip], ebx
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	evRead, .-evRead
	.comm	readable,4,4
	.comm	errno,4,4
	.comm	EV_READ,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_ev_streams.c_evRead.c"
	.text
	.align	2
	.global	evRead
	.syntax unified
	.arm
	.fpu softvfp
	.type	evRead, %function
evRead:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	mov	r10, r1
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, r4
	mov	r6, r2
	mov	r7, r3
	ldr	fp, [sp, #48]
	ldr	r9, [sp, #56]
	bl	OKNEW
	ldr	r2, [sp, #52]
	ldr	r3, .L12
	add	ip, r4, #20
	str	r2, [r4, #28]
	ldr	r3, [r3]
	str	fp, [r4, #32]
	str	r10, [r4]
	str	r4, [r4, #24]
	stm	sp, {r4, ip}
	ldr	r2, .L12+4
	mov	r1, r10
	mov	r0, r5
	ldr	r2, [r2]
	bl	evSelectFD
	cmp	r0, r4
	blt	.L2
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	copyvec
	cmp	r0, r4
	blt	.L2
	mov	r0, #0
	ldr	r3, [r5]
	str	r4, [r4, #16]
	cmp	r3, r4
	str	r4, [r4, #12]
	strne	r4, [r3, #8]
	cmp	r9, r0
	str	r0, [r0, #8]
	str	r3, [r0, #4]
	str	r0, [r5]
	strne	r0, [r9]
	beq	.L11
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r4, .L12+8
	mov	r0, #0
	ldr	r5, [r4]
	bl	FREE
	mvn	r0, #0
	str	r5, [r4]
	b	.L1
.L13:
	.align	2
.L12:
	.word	readable
	.word	EV_READ
	.word	errno
	.size	evRead, .-evRead
	.comm	readable,4,4
	.comm	errno,4,4
	.comm	EV_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
