	.file	"554876.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fcntl"
	.text
	.type	make_socket_non_blocking, @function
make_socket_non_blocking:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	or	DWORD PTR -8[rbp], 2048
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	make_socket_non_blocking, .-make_socket_non_blocking
	.section	.rodata
.LC1:
	.string	"getaddrinfo: %s\n"
.LC2:
	.string	"Could not bind\n"
	.text
	.type	create_and_bind, @function
create_and_bind:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -64[rbp], 1
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L15
.L6:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L8
.L13:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	je	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L10
.L17:
	nop
.L10:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L8:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L13
	jmp	.L12
.L18:
	nop
.L12:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	eax, DWORD PTR -88[rbp]
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_and_bind, .-create_and_bind
	.section	.rodata
.LC3:
	.string	"Usage: %s [port]\n"
.LC4:
	.string	"listen"
.LC5:
	.string	"epoll_create"
.LC6:
	.string	"epoll_ctl"
.LC7:
	.string	"epoll error\n"
.LC8:
	.string	"accept"
	.align 8
.LC9:
	.string	"Accepted connection on descriptor %d (host=%s, port=%s)\n"
.LC10:
	.string	"read"
.LC11:
	.string	"write"
	.align 8
.LC12:
	.string	"Closed connection on descriptor %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1168
	mov	DWORD PTR -1156[rbp], edi
	mov	QWORD PTR -1168[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1156[rbp], 2
	je	.L20
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -1168[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	create_and_bind
	mov	DWORD PTR -1140[rbp], eax
	cmp	DWORD PTR -1140[rbp], -1
	jne	.L21
	call	abort@PLT
.L21:
	mov	eax, DWORD PTR -1140[rbp]
	mov	edi, eax
	call	make_socket_non_blocking
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L22
	call	abort@PLT
.L22:
	mov	eax, DWORD PTR -1140[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L23
	lea	rdi, .LC4[rip]
	call	perror@PLT
	call	abort@PLT
.L23:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -1132[rbp], eax
	cmp	DWORD PTR -1132[rbp], -1
	jne	.L24
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	abort@PLT
.L24:
	mov	eax, DWORD PTR -1140[rbp]
	mov	DWORD PTR -1096[rbp], eax
	mov	DWORD PTR -1100[rbp], -2147483647
	lea	rcx, -1100[rbp]
	mov	edx, DWORD PTR -1140[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L25
	lea	rdi, .LC6[rip]
	call	perror@PLT
	call	abort@PLT
.L25:
	mov	esi, 12
	mov	edi, 64
	call	calloc@PLT
	mov	QWORD PTR -1120[rbp], rax
.L44:
	mov	rsi, QWORD PTR -1120[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	ecx, -1
	mov	edx, 64
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -1128[rbp], eax
	mov	DWORD PTR -1148[rbp], 0
	jmp	.L26
.L43:
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 8
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 16
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L28
.L27:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -1140[rbp], eax
	jne	.L30
.L36:
	mov	DWORD PTR -1152[rbp], 16
	lea	rdx, -1152[rbp]
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1140[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1124[rbp], eax
	cmp	DWORD PTR -1124[rbp], -1
	jne	.L31
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L46
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L46
	lea	rdi, .LC8[rip]
	call	perror@PLT
	nop
	jmp	.L46
.L31:
	mov	esi, DWORD PTR -1152[rbp]
	lea	rcx, -1072[rbp]
	lea	rdx, -1040[rbp]
	lea	rax, -1088[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 32
	mov	r8, rcx
	mov	ecx, 1025
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], 0
	jne	.L33
	lea	rcx, -1072[rbp]
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1124[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	mov	eax, DWORD PTR -1124[rbp]
	mov	edi, eax
	call	make_socket_non_blocking
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L34
	call	abort@PLT
.L34:
	mov	eax, DWORD PTR -1124[rbp]
	mov	DWORD PTR -1096[rbp], eax
	mov	DWORD PTR -1100[rbp], -2147483647
	lea	rcx, -1100[rbp]
	mov	edx, DWORD PTR -1124[rbp]
	mov	eax, DWORD PTR -1132[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L36
	lea	rdi, .LC6[rip]
	call	perror@PLT
	call	abort@PLT
.L30:
	mov	DWORD PTR -1144[rbp], 0
.L42:
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	lea	rcx, -1040[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1112[rbp], rax
	cmp	QWORD PTR -1112[rbp], -1
	jne	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L47
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	DWORD PTR -1144[rbp], 1
	jmp	.L47
.L37:
	cmp	QWORD PTR -1112[rbp], 0
	jne	.L40
	mov	DWORD PTR -1144[rbp], 1
	jmp	.L39
.L40:
	mov	rdx, QWORD PTR -1112[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR -1136[rbp], eax
	cmp	DWORD PTR -1136[rbp], -1
	jne	.L42
	lea	rdi, .LC11[rip]
	call	perror@PLT
	call	abort@PLT
.L47:
	nop
.L39:
	cmp	DWORD PTR -1144[rbp], 0
	je	.L29
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L29
.L46:
	nop
.L29:
	add	DWORD PTR -1148[rbp], 1
.L26:
	mov	eax, DWORD PTR -1148[rbp]
	cmp	eax, DWORD PTR -1128[rbp]
	jl	.L43
	jmp	.L44
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"554876.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fcntl\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_socket_non_blocking, %function
make_socket_non_blocking:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L5
	bl	perror
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #2048
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L5
	bl	perror
	mvn	r3, #0
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	make_socket_non_blocking, .-make_socket_non_blocking
	.section	.rodata
	.align	2
.LC1:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC2:
	.ascii	"Could not bind\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_and_bind, %function
create_and_bind:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-48]
	sub	r3, fp, #64
	sub	r2, fp, #48
	ldr	r1, [fp, #-72]
	mov	r0, #0
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L21+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L21+8
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L17
.L8:
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-60]
	b	.L10
.L15:
	ldr	r3, [fp, #-60]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	beq	.L19
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-56]
	bl	bind
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-56]
	bl	close
	b	.L12
.L19:
	nop
.L12:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-60]
.L10:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L15
	b	.L14
.L20:
	nop
.L14:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L21+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L21+12
	bl	fwrite
	mvn	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-56]
.L17:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	create_and_bind, .-create_and_bind
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: %s [port]\012\000"
	.align	2
.LC5:
	.ascii	"listen\000"
	.align	2
.LC6:
	.ascii	"epoll_create\000"
	.align	2
.LC7:
	.ascii	"epoll_ctl\000"
	.align	2
.LC8:
	.ascii	"epoll error\012\000"
	.align	2
.LC9:
	.ascii	"accept\000"
	.align	2
.LC10:
	.ascii	"Accepted connection on descriptor %d (host=%s, port"
	.ascii	"=%s)\012\000"
	.align	2
.LC11:
	.ascii	"read\000"
	.align	2
.LC12:
	.ascii	"write\000"
	.align	2
.LC13:
	.ascii	"Closed connection on descriptor %d\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	sub	sp, sp, #8
	str	r0, [fp, #-1144]
	str	r1, [fp, #-1148]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1144]
	cmp	r3, #2
	beq	.L24
	ldr	r3, .L52+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1148]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L52+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L24:
	ldr	r3, [fp, #-1148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	create_and_bind
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	cmn	r3, #1
	bne	.L25
	bl	abort
.L25:
	ldr	r0, [fp, #-1128]
	bl	make_socket_non_blocking
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L26
	bl	abort
.L26:
	mov	r1, #4096
	ldr	r0, [fp, #-1128]
	bl	listen
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L52+12
	bl	perror
	bl	abort
.L27:
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L52+16
	bl	perror
	bl	abort
.L28:
	ldr	r3, [fp, #-1128]
	str	r3, [fp, #-1092]
	mov	r3, #-2147483647
	str	r3, [fp, #-1100]
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1128]
	mov	r1, #1
	ldr	r0, [fp, #-1120]
	bl	epoll_ctl
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L52+20
	bl	perror
	bl	abort
.L29:
	mov	r1, #16
	mov	r0, #64
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-1116]
.L48:
	mvn	r3, #0
	mov	r2, #64
	ldr	r1, [fp, #-1116]
	ldr	r0, [fp, #-1120]
	bl	epoll_wait
	str	r0, [fp, #-1112]
	mov	r3, #0
	str	r3, [fp, #-1136]
	b	.L30
.L47:
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L32
.L31:
	ldr	r3, .L52+4
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L52+24
	bl	fwrite
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L33
.L32:
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-1128]
	cmp	r2, r3
	bne	.L34
.L40:
	mov	r3, #16
	str	r3, [fp, #-1140]
	sub	r2, fp, #1136
	sub	r2, r2, #4
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1128]
	bl	accept
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmn	r3, #1
	bne	.L35
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L50
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L50
	ldr	r0, .L52+28
	bl	perror
	nop
	b	.L50
.L35:
	ldr	r1, [fp, #-1140]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r0, fp, #1072
	sub	r0, r0, #4
	sub	r0, r0, #8
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	ldr	r3, .L52+32
	bl	getnameinfo
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #8
	ldr	r1, [fp, #-1104]
	ldr	r0, .L52+36
	bl	printf
.L37:
	ldr	r0, [fp, #-1104]
	bl	make_socket_non_blocking
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L38
	bl	abort
.L38:
	ldr	r3, [fp, #-1104]
	str	r3, [fp, #-1092]
	mov	r3, #-2147483647
	str	r3, [fp, #-1100]
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-1104]
	mov	r1, #1
	ldr	r0, [fp, #-1120]
	bl	epoll_ctl
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L52+20
	bl	perror
	bl	abort
.L34:
	mov	r3, #0
	str	r3, [fp, #-1132]
.L46:
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r0, [r3, #8]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #512
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	cmn	r3, #1
	bne	.L41
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L51
	ldr	r0, .L52+40
	bl	perror
	mov	r3, #1
	str	r3, [fp, #-1132]
	b	.L51
.L41:
	ldr	r3, [fp, #-1108]
	cmp	r3, #0
	bne	.L44
	mov	r3, #1
	str	r3, [fp, #-1132]
	b	.L43
.L44:
	ldr	r2, [fp, #-1108]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L52+44
	bl	perror
	bl	abort
.L51:
	nop
.L43:
	ldr	r3, [fp, #-1132]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L52+48
	bl	printf
	ldr	r3, [fp, #-1136]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-1116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L33
.L50:
	nop
.L33:
	ldr	r3, [fp, #-1136]
	add	r3, r3, #1
	str	r3, [fp, #-1136]
.L30:
	ldr	r2, [fp, #-1136]
	ldr	r3, [fp, #-1112]
	cmp	r2, r3
	blt	.L47
	b	.L48
.L53:
	.align	2
.L52:
	.word	.LC14
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1025
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
