	.file	"507144.c"
	.intel_syntax noprefix
	.text
	.globl	sock
	.bss
	.align 4
	.type	sock, @object
	.size	sock, 4
sock:
	.zero	4
	.globl	epoll_sock
	.align 4
	.type	epoll_sock, @object
	.size	epoll_sock, 4
epoll_sock:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Couldn't get socket options: %s\n"
	.align 8
.LC1:
	.string	"Couldn't set socket option: %s\n"
	.text
	.globl	setnonblocking
	.type	setnonblocking, @function
setnonblocking:
.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	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L1
.L2:
	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	.L1
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setnonblocking, .-setnonblocking
	.globl	handle_signal
	.type	handle_signal, @function
handle_signal:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR sock[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR epoll_sock[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	handle_signal, .-handle_signal
	.section	.rodata
	.align 8
.LC2:
	.string	"%s: Failed to intercept SIGINT: %s\n"
	.align 8
.LC3:
	.string	"%s: Failed to intercept SIGHUP: %s\n"
	.align 8
.LC4:
	.string	"%s: An error occurred while trying to open socket: %s\n"
	.align 8
.LC5:
	.string	"%s: Failed to set socket option: %s\n"
	.align 8
.LC6:
	.string	"%s: Failed to bind socket: %s\n"
	.align 8
.LC7:
	.string	"%s: Failed to listen on socket: %s\n"
	.align 8
.LC8:
	.string	"%s: Failed to create epoll instance: %s\n"
	.align 8
.LC9:
	.string	"%s: An error occurred whily trying to add listening socket to epoll: %s\n"
	.align 8
.LC10:
	.string	"%s: An error occurred while trying to wait for epoll events: %s\n"
	.align 8
.LC11:
	.string	"%s: An error occurred while trying to accept connection: %s\n"
	.align 8
.LC12:
	.string	"%s: An error occurred while trying to register client with epoll instance: %s\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, 1024
	mov	DWORD PTR -1012[rbp], edi
	mov	QWORD PTR -1024[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, handle_signal[rip]
	mov	QWORD PTR -944[rbp], rax
	mov	DWORD PTR -808[rbp], 268435456
	lea	rax, -944[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -944[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rax, -944[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sock[rip], eax
	mov	eax, DWORD PTR sock[rip]
	test	eax, eax
	jns	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L8:
	mov	DWORD PTR -1008[rbp], 1
	mov	eax, DWORD PTR sock[rip]
	lea	rdx, -1008[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L10:
	mov	WORD PTR -976[rbp], 2
	mov	edi, 12321
	call	htons@PLT
	mov	WORD PTR -974[rbp], ax
	mov	DWORD PTR -972[rbp], 0
	mov	eax, DWORD PTR sock[rip]
	lea	rcx, -976[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L11:
	mov	eax, DWORD PTR sock[rip]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L12:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR epoll_sock[rip], eax
	mov	eax, DWORD PTR epoll_sock[rip]
	cmp	eax, -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L13:
	mov	DWORD PTR -988[rbp], 1
	mov	eax, DWORD PTR sock[rip]
	mov	DWORD PTR -984[rbp], eax
	mov	edx, DWORD PTR sock[rip]
	mov	eax, DWORD PTR epoll_sock[rip]
	lea	rcx, -988[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L14:
	mov	eax, DWORD PTR epoll_sock[rip]
	lea	rsi, -784[rbp]
	mov	ecx, -1
	mov	edx, 64
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -996[rbp], eax
	cmp	DWORD PTR -996[rbp], -1
	jne	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L21
.L15:
	mov	DWORD PTR -1000[rbp], 0
	jmp	.L16
.L20:
	mov	eax, DWORD PTR -1000[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 780
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR sock[rip]
	cmp	edx, eax
	jne	.L17
	mov	DWORD PTR -1004[rbp], 16
	mov	eax, DWORD PTR sock[rip]
	lea	rdx, -1004[rbp]
	lea	rcx, -960[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -992[rbp], eax
	cmp	DWORD PTR -992[rbp], -1
	jne	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -992[rbp]
	mov	edi, eax
	call	setnonblocking
	mov	DWORD PTR -988[rbp], 1
	mov	eax, DWORD PTR -992[rbp]
	mov	DWORD PTR -984[rbp], eax
	mov	eax, DWORD PTR epoll_sock[rip]
	lea	rcx, -988[rbp]
	mov	edx, DWORD PTR -992[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1024[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -992[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L19
.L17:
	lea	rcx, -784[rbp]
	mov	eax, DWORD PTR -1000[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rdi, rax
	call	handle_event
.L19:
	add	DWORD PTR -1000[rbp], 1
.L16:
	mov	eax, DWORD PTR -1000[rbp]
	cmp	eax, DWORD PTR -996[rbp]
	jl	.L20
	jmp	.L14
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC13:
	.string	"An error occured while handling connection: %s\n"
	.text
	.globl	handle_event
	.type	handle_event, @function
handle_event:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 8216
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L33
.L26:
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rcx, -1040[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L27
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L27:
	cmp	QWORD PTR -1048[rbp], 0
	jns	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L28:
	mov	rdx, QWORD PTR -1048[rbp]
	mov	rax, QWORD PTR -1064[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	rcx, -1040[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L26
.L33:
	nop
	jmp	.L23
.L34:
	nop
.L23:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handle_event, .-handle_event
	.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	"507144.c"
	.text
	.comm	sock,4,4
	.comm	epoll_sock,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Couldn't get socket options: %s\012\000"
	.align	2
.LC1:
	.ascii	"Couldn't set socket option: %s\012\000"
	.text
	.align	2
	.global	setnonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	setnonblocking, %function
setnonblocking:
	@ 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	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	b	.L1
.L2:
	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	.L1
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	setnonblocking, .-setnonblocking
	.align	2
	.global	handle_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_signal, %function
handle_signal:
	@ 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]
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	sock
	.word	epoll_sock
	.size	handle_signal, .-handle_signal
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: Failed to intercept SIGINT: %s\012\000"
	.align	2
.LC3:
	.ascii	"%s: Failed to intercept SIGHUP: %s\012\000"
	.align	2
.LC4:
	.ascii	"%s: An error occurred while trying to open socket: "
	.ascii	"%s\012\000"
	.align	2
.LC5:
	.ascii	"%s: Failed to set socket option: %s\012\000"
	.align	2
.LC6:
	.ascii	"%s: Failed to bind socket: %s\012\000"
	.align	2
.LC7:
	.ascii	"%s: Failed to listen on socket: %s\012\000"
	.align	2
.LC8:
	.ascii	"%s: Failed to create epoll instance: %s\012\000"
	.align	2
.LC9:
	.ascii	"%s: An error occurred whily trying to add listening"
	.ascii	" socket to epoll: %s\012\000"
	.align	2
.LC10:
	.ascii	"%s: An error occurred while trying to wait for epol"
	.ascii	"l events: %s\012\000"
	.align	2
.LC11:
	.ascii	"%s: An error occurred while trying to accept connec"
	.ascii	"tion: %s\012\000"
	.align	2
.LC12:
	.ascii	"%s: An error occurred while trying to register clie"
	.ascii	"nt with epoll instance: %s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1264
	sub	sp, sp, #4
	str	r0, [fp, #-1264]
	str	r1, [fp, #-1268]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L27+4
	str	r3, [fp, #-1184]
	mov	r3, #268435456
	str	r3, [fp, #-1052]
	sub	r3, fp, #1168
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #1168
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+8
	bl	printf
.L10:
	sub	r3, fp, #1168
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+12
	bl	printf
.L11:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L27+16
	str	r3, [r2]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L12
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+20
	bl	printf
	mov	r3, #1
	b	.L25
.L12:
	mov	r3, #1
	str	r3, [fp, #-1256]
	ldr	r3, .L27+16
	ldr	r0, [r3]
	sub	r3, fp, #1232
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+24
	bl	printf
	mov	r3, #1
	b	.L25
.L14:
	sub	r3, fp, #12
	sub	r3, r3, #1200
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L27+28
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1200
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1212]
	ldr	r3, .L27+16
	ldr	r0, [r3]
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+32
	bl	printf
	mov	r3, #1
	b	.L25
.L15:
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+36
	bl	printf
	mov	r3, #1
	b	.L25
.L16:
	mov	r0, #0
	bl	epoll_create1
	mov	r3, r0
	ldr	r2, .L27+40
	str	r3, [r2]
	ldr	r3, .L27+40
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L17
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+44
	bl	printf
	mov	r3, #1
	b	.L25
.L17:
	mov	r3, #1
	str	r3, [fp, #-1236]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	str	r3, [fp, #-1228]
	ldr	r3, .L27+40
	ldr	r0, [r3]
	ldr	r3, .L27+16
	ldr	r2, [r3]
	sub	r3, fp, #1216
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #1
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+48
	bl	printf
	mov	r3, #1
	b	.L25
.L18:
	ldr	r3, .L27+40
	ldr	r0, [r3]
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #8
	mvn	r3, #0
	mov	r2, #64
	bl	epoll_wait
	str	r0, [fp, #-1244]
	ldr	r3, [fp, #-1244]
	cmn	r3, #1
	bne	.L19
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+52
	bl	printf
	mov	r3, #1
	b	.L25
.L19:
	mov	r3, #0
	str	r3, [fp, #-1248]
	b	.L20
.L24:
	ldr	r3, [fp, #-1248]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-1024]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L21
	mov	r3, #16
	str	r3, [fp, #-1252]
	ldr	r3, .L27+16
	ldr	r0, [r3]
	sub	r2, fp, #1232
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #1184
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	accept
	str	r0, [fp, #-1240]
	ldr	r3, [fp, #-1240]
	cmn	r3, #1
	bne	.L22
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+56
	bl	printf
	b	.L23
.L22:
	ldr	r0, [fp, #-1240]
	bl	setnonblocking
	mov	r3, #1
	str	r3, [fp, #-1236]
	ldr	r3, [fp, #-1240]
	str	r3, [fp, #-1228]
	ldr	r3, .L27+40
	ldr	r0, [r3]
	sub	r3, fp, #1216
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1240]
	mov	r1, #1
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r3, [fp, #-1268]
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L27+60
	bl	printf
	ldr	r0, [fp, #-1240]
	bl	close
	b	.L23
.L21:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1248]
	lsl	r2, r2, #4
	add	r3, r3, r2
	mov	r0, r3
	bl	handle_event
.L23:
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L20:
	ldr	r2, [fp, #-1248]
	ldr	r3, [fp, #-1244]
	cmp	r2, r3
	blt	.L24
	b	.L18
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC13
	.word	handle_signal
	.word	.LC2
	.word	.LC3
	.word	sock
	.word	.LC4
	.word	.LC5
	.word	12321
	.word	.LC6
	.word	.LC7
	.word	epoll_sock
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.ascii	"An error occured while handling connection: %s\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_event
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_event, %function
handle_event:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1040]
	ldr	r2, [r3]
	ldr	r3, .L41+4
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L29
.L30:
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L39
.L32:
	ldr	r3, [fp, #-1040]
	ldr	r0, [r3, #8]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L29
.L33:
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bge	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L41+8
	bl	printf
	ldr	r3, [fp, #-1040]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	b	.L29
.L34:
	ldr	r3, [fp, #-1040]
	ldr	r0, [r3, #8]
	ldr	r2, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	write
	b	.L32
.L39:
	nop
	b	.L29
.L40:
	nop
.L29:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC15
	.word	8216
	.word	.LC14
	.size	handle_event, .-handle_event
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
