	.file	"extr_ebb.c_ebb_server_listen_on_fd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"listen()"
	.text
	.p2align 4
	.globl	ebb_server_listen_on_fd
	.type	ebb_server_listen_on_fd, @function
ebb_server_listen_on_fd:
.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
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	assert@PLT
	mov	esi, DWORD PTR EBB_MAX_CONNECTIONS[rip]
	mov	edi, ebp
	call	listen@PLT
	test	rax, rax
	js	.L6
	mov	edi, ebp
	lea	r12, 8[rbx]
	call	set_nonblock@PLT
	mov	DWORD PTR 4[rbx], ebp
	mov	edx, DWORD PTR EV_READ[rip]
	mov	esi, ebp
	mov	DWORD PTR [rbx], 1
	mov	rdi, r12
	call	ev_io_set@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	rsi, r12
	call	ev_io_start@PLT
	mov	eax, DWORD PTR 4[rbx]
.L1:
	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
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ebb_server_listen_on_fd, .-ebb_server_listen_on_fd
	.comm	EV_READ,4,4
	.comm	EBB_MAX_CONNECTIONS,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_ebb.c_ebb_server_listen_on_fd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"listen()\000"
	.text
	.align	2
	.global	ebb_server_listen_on_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	ebb_server_listen_on_fd, %function
ebb_server_listen_on_fd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r5, r1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, .L7
	mov	r0, r5
	ldr	r1, [r3]
	bl	listen
	cmp	r0, #0
	blt	.L6
	mov	r0, r5
	bl	set_nonblock
	mov	r6, r4
	mov	r2, #1
	ldr	r3, .L7+4
	str	r5, [r4, #4]
	str	r2, [r6], #8
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r6
	bl	ev_io_set
	mov	r1, r6
	ldr	r0, [r4, #12]
	bl	ev_io_start
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L7+8
	bl	perror
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	EBB_MAX_CONNECTIONS
	.word	EV_READ
	.word	.LC0
	.size	ebb_server_listen_on_fd, .-ebb_server_listen_on_fd
	.comm	EV_READ,4,4
	.comm	EBB_MAX_CONNECTIONS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
