	.file	"extr_net-events.c_epoll_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	epoll_close
	.type	epoll_close, @function
epoll_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	ebp, ebp
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR MAX_EVENTS[rip], ebp
	setg	dil
.L2:
	call	assert@PLT
	movsx	rbx, ebp
	sal	rbx, 4
	add	rbx, QWORD PTR Events[rip]
	cmp	DWORD PTR [rbx], ebp
	jne	.L6
	mov	edi, ebp
	call	epoll_remove@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L10
.L4:
	mov	edx, 16
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	DWORD PTR [rbx], -1
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbx
	call	remove_event_from_heap@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	epoll_close, .-epoll_close
	.comm	MAX_EVENTS,4,4
	.comm	Events,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_net-events.c_epoll_close.c"
	.text
	.align	2
	.global	epoll_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	epoll_close, %function
epoll_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	movlt	r0, #0
	blt	.L2
	ldr	r3, .L13
	ldr	r0, [r3]
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
.L2:
	bl	assert
	ldr	r3, .L13+4
	ldr	r6, [r3]
	ldr	r3, [r6, r4, lsl #3]
	add	r5, r6, r4, lsl #3
	cmp	r3, r4
	bne	.L6
	mov	r0, r4
	bl	epoll_remove
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L12
.L4:
	mov	r0, #0
	mvn	r2, #0
	strb	r0, [r5, #4]
	strb	r0, [r5, #5]
	strb	r0, [r5, #6]
	strb	r0, [r5, #7]
	str	r2, [r6, r4, lsl #3]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r1, #0
	mov	r0, r5
	bl	remove_event_from_heap
	b	.L4
.L6:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	MAX_EVENTS
	.word	Events
	.size	epoll_close, .-epoll_close
	.comm	MAX_EVENTS,4,4
	.comm	Events,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
