	.file	"187642884.c"
	.intel_syntax noprefix
	.text
	.globl	create_and_bind
	.type	create_and_bind, @function
create_and_bind:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L2
	mov	eax, -1
	jmp	.L5
.L2:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -52[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L4
	mov	eax, -1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -36[rbp]
.L5:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_and_bind, .-create_and_bind
	.globl	make_socket_non_blocking
	.type	make_socket_non_blocking, @function
make_socket_non_blocking:
.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, 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 -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L8
	mov	eax, -1
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -4[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L10
	mov	eax, -1
	jmp	.L9
.L10:
	mov	eax, 0
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_socket_non_blocking, .-make_socket_non_blocking
	.section	.rodata
.LC0:
	.string	"Usage: %s [port]\n"
	.text
	.globl	read_param
	.type	read_param, @function
read_param:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_param, .-read_param
	.section	.rodata
.LC1:
	.string	"create_and_bind"
.LC2:
	.string	"make_socket_non_blocking"
.LC3:
	.string	"listen"
.LC4:
	.string	"epoll_create"
.LC5:
	.string	"epoll_ctl"
.LC6:
	.string	"epoll error\n"
.LC7:
	.string	"accept"
	.align 8
.LC8:
	.string	"Accepted connection on descriptor %d (host=%s, port=%d)\n"
.LC9:
	.string	"read"
	.align 8
.LC10:
	.string	"Closed connection on descriptor %d\n"
.LC11:
	.string	"write"
.LC12:
	.string	"it's echo man\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 624
	mov	DWORD PTR -612[rbp], edi
	mov	QWORD PTR -624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -624[rbp]
	mov	eax, DWORD PTR -612[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	read_param
	mov	DWORD PTR -600[rbp], eax
	mov	eax, DWORD PTR -600[rbp]
	mov	edi, eax
	call	create_and_bind
	mov	DWORD PTR -596[rbp], eax
	cmp	DWORD PTR -596[rbp], -1
	jne	.L15
	lea	rdi, .LC1[rip]
	call	perror@PLT
	call	abort@PLT
.L15:
	mov	eax, DWORD PTR -596[rbp]
	mov	edi, eax
	call	make_socket_non_blocking
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L16
	lea	rdi, .LC2[rip]
	call	perror@PLT
	call	abort@PLT
.L16:
	mov	eax, DWORD PTR -596[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L17
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	abort@PLT
.L17:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -588[rbp], eax
	cmp	DWORD PTR -588[rbp], -1
	jne	.L18
	lea	rdi, .LC4[rip]
	call	perror@PLT
	call	abort@PLT
.L18:
	mov	eax, DWORD PTR -596[rbp]
	mov	DWORD PTR -552[rbp], eax
	mov	DWORD PTR -556[rbp], -2147483647
	lea	rcx, -556[rbp]
	mov	edx, DWORD PTR -596[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L19
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	abort@PLT
.L19:
	mov	esi, 12
	mov	edi, 64
	call	calloc@PLT
	mov	QWORD PTR -576[rbp], rax
.L36:
	mov	rsi, QWORD PTR -576[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	ecx, -1
	mov	edx, 64
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -584[rbp], eax
	mov	DWORD PTR -604[rbp], 0
	jmp	.L20
.L35:
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 24
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L23
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -596[rbp], eax
	jne	.L24
.L29:
	mov	DWORD PTR -608[rbp], 16
	lea	rdx, -608[rbp]
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -596[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -580[rbp], eax
	cmp	DWORD PTR -580[rbp], -1
	jne	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L22
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L22
.L25:
	lea	rax, -528[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -542[rbp]
	movzx	ecx, ax
	lea	rdx, -528[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -580[rbp]
	mov	edi, eax
	call	make_socket_non_blocking
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L27
	call	abort@PLT
.L27:
	mov	eax, DWORD PTR -580[rbp]
	mov	DWORD PTR -552[rbp], eax
	mov	DWORD PTR -556[rbp], -2147483647
	lea	rcx, -556[rbp]
	mov	edx, DWORD PTR -580[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L29
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	abort@PLT
.L24:
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	lea	rcx, -528[rbp]
	mov	edx, 512
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -568[rbp], rax
	cmp	QWORD PTR -568[rbp], -1
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L38
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L38
.L30:
	cmp	QWORD PTR -568[rbp], 0
	jne	.L33
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L33:
	mov	rdx, QWORD PTR -568[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	DWORD PTR -592[rbp], eax
	cmp	DWORD PTR -592[rbp], -1
	jne	.L34
	lea	rdi, .LC11[rip]
	call	perror@PLT
	call	abort@PLT
.L34:
	mov	DWORD PTR -556[rbp], -2147483644
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	lea	rcx, -556[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	esi, 3
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -596[rbp], eax
	je	.L22
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 14
	lea	rsi, .LC12[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -556[rbp], -2147483647
	mov	eax, DWORD PTR -604[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -576[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	lea	rcx, -556[rbp]
	mov	eax, DWORD PTR -588[rbp]
	mov	esi, 3
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L22
.L38:
	nop
.L22:
	add	DWORD PTR -604[rbp], 1
.L20:
	mov	eax, DWORD PTR -604[rbp]
	cmp	eax, DWORD PTR -584[rbp]
	jl	.L35
	jmp	.L36
	.cfi_endproc
.LFE9:
	.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	"187642884.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_and_bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_and_bind, %function
create_and_bind:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L2
	mvn	r3, #0
	b	.L5
.L2:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-28]
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	create_and_bind, .-create_and_bind
	.align	2
	.global	make_socket_non_blocking
	.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, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L10
	mvn	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	mvn	r3, #0
	b	.L11
.L12:
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	make_socket_non_blocking, .-make_socket_non_blocking
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s [port]\012\000"
	.text
	.align	2
	.global	read_param
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_param, %function
read_param:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L14
	ldr	r3, .L16
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L16+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stderr
	.word	.LC1
	.size	read_param, .-read_param
	.section	.rodata
	.align	2
.LC2:
	.ascii	"create_and_bind\000"
	.align	2
.LC3:
	.ascii	"make_socket_non_blocking\000"
	.align	2
.LC4:
	.ascii	"listen\000"
	.align	2
.LC5:
	.ascii	"epoll_create\000"
	.align	2
.LC6:
	.ascii	"epoll_ctl\000"
	.align	2
.LC7:
	.ascii	"epoll error\012\000"
	.align	2
.LC8:
	.ascii	"accept\000"
	.align	2
.LC9:
	.ascii	"Accepted connection on descriptor %d (host=%s, port"
	.ascii	"=%d)\012\000"
	.align	2
.LC10:
	.ascii	"read\000"
	.align	2
.LC11:
	.ascii	"Closed connection on descriptor %d\012\000"
	.align	2
.LC12:
	.ascii	"write\000"
	.align	2
.LC13:
	.ascii	"it's echo man\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 = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #600
	str	r0, [fp, #-600]
	str	r1, [fp, #-604]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-604]
	ldr	r0, [fp, #-600]
	bl	read_param
	str	r0, [fp, #-588]
	ldr	r0, [fp, #-588]
	bl	create_and_bind
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L43+4
	bl	perror
	bl	abort
.L19:
	ldr	r0, [fp, #-584]
	bl	make_socket_non_blocking
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L43+8
	bl	perror
	bl	abort
.L20:
	mov	r1, #4096
	ldr	r0, [fp, #-584]
	bl	listen
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L43+12
	bl	perror
	bl	abort
.L21:
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-576]
	ldr	r3, [fp, #-576]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L43+16
	bl	perror
	bl	abort
.L22:
	ldr	r3, [fp, #-584]
	str	r3, [fp, #-548]
	mov	r3, #-2147483647
	str	r3, [fp, #-556]
	sub	r3, fp, #556
	ldr	r2, [fp, #-584]
	mov	r1, #1
	ldr	r0, [fp, #-576]
	bl	epoll_ctl
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L43+20
	bl	perror
	bl	abort
.L23:
	mov	r1, #16
	mov	r0, #64
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-572]
.L40:
	mvn	r3, #0
	mov	r2, #64
	ldr	r1, [fp, #-572]
	ldr	r0, [fp, #-576]
	bl	epoll_wait
	str	r0, [fp, #-568]
	mov	r3, #0
	str	r3, [fp, #-592]
	b	.L24
.L39:
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #24
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L43+24
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L43+28
	bl	fwrite
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L26
.L25:
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-584]
	cmp	r2, r3
	bne	.L28
.L33:
	mov	r3, #16
	str	r3, [fp, #-596]
	sub	r2, fp, #596
	sub	r3, fp, #536
	mov	r1, r3
	ldr	r0, [fp, #-584]
	bl	accept
	str	r0, [fp, #-560]
	ldr	r3, [fp, #-560]
	cmn	r3, #1
	bne	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L26
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L26
	ldr	r0, .L43+32
	bl	perror
	b	.L26
.L29:
	sub	r2, fp, #520
	sub	r3, fp, #536
	add	r1, r3, #4
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	sub	r3, fp, #4
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	sub	r2, fp, #520
	ldr	r1, [fp, #-560]
	ldr	r0, .L43+36
	bl	printf
	ldr	r0, [fp, #-560]
	bl	make_socket_non_blocking
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L31
	bl	abort
.L31:
	ldr	r3, [fp, #-560]
	str	r3, [fp, #-548]
	mov	r3, #-2147483647
	str	r3, [fp, #-556]
	sub	r3, fp, #556
	ldr	r2, [fp, #-560]
	mov	r1, #1
	ldr	r0, [fp, #-576]
	bl	epoll_ctl
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L43+20
	bl	perror
	bl	abort
.L28:
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	sub	r1, fp, #520
	mov	r2, #512
	mov	r0, r3
	bl	read
	str	r0, [fp, #-564]
	ldr	r3, [fp, #-564]
	cmn	r3, #1
	bne	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L42
	ldr	r0, .L43+40
	bl	perror
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L42
.L34:
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L43+44
	bl	printf
	b	.L26
.L37:
	ldr	r2, [fp, #-564]
	sub	r3, fp, #520
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-580]
	cmn	r3, #1
	bne	.L38
	ldr	r0, .L43+48
	bl	perror
	bl	abort
.L38:
	mov	r3, #-2147483644
	str	r3, [fp, #-556]
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	sub	r3, fp, #556
	mov	r1, #3
	ldr	r0, [fp, #-576]
	bl	epoll_ctl
	b	.L28
.L27:
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-584]
	cmp	r2, r3
	beq	.L26
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, #14
	ldr	r1, .L43+52
	mov	r0, r3
	bl	write
	mov	r3, #-2147483647
	str	r3, [fp, #-556]
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-572]
	add	r3, r2, r3
	ldr	r2, [r3, #8]
	sub	r3, fp, #556
	mov	r1, #3
	ldr	r0, [fp, #-576]
	bl	epoll_ctl
	b	.L26
.L42:
	nop
.L26:
	ldr	r3, [fp, #-592]
	add	r3, r3, #1
	str	r3, [fp, #-592]
.L24:
	ldr	r2, [fp, #-592]
	ldr	r3, [fp, #-568]
	cmp	r2, r3
	blt	.L39
	b	.L40
.L44:
	.align	2
.L43:
	.word	.LC14
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.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
