	.file	"85361.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	PORT, @object
	.size	PORT, 4
PORT:
	.long	7000
	.local	send_buf_size
	.comm	send_buf_size,4,4
	.align 4
	.type	send_buf_size_len, @object
	.size	send_buf_size_len, 4
send_buf_size_len:
	.long	4
	.local	recv_buf_size
	.comm	recv_buf_size,4,4
	.align 4
	.type	recv_buf_size_len, @object
	.size	recv_buf_size_len, 4
recv_buf_size_len:
	.long	4
	.section	.rodata
.LC0:
	.string	"socket: %s\n"
.LC1:
	.string	"setsockopt: %s\n"
.LC2:
	.string	"bind: %s\n"
.LC3:
	.string	"listen: %s\n"
	.align 8
.LC4:
	.string	"worker[%d] is listening on: %d\n"
.LC5:
	.string	"epoll_create1: %s\n"
.LC6:
	.string	"epoll_ctl: %s\n"
.LC7:
	.string	"calloc epoll events\n"
.LC8:
	.string	"accept: %s\n"
	.align 8
.LC9:
	.string	"worker[%d] accepted connection on fd(%d)\n"
.LC10:
	.string	"malloc event\n"
.LC11:
	.string	"client disconnected\n"
.LC12:
	.string	"recv error: %s\n"
.LC13:
	.string	"worker[%d](%d) close\n"
	.align 8
.LC14:
	.string	"warn: [%d](%d) send zero bytes\n"
.LC15:
	.string	"send reach eagain: %s\n"
.LC16:
	.string	"send error: %s\n"
.LC17:
	.string	"unknown event occured %d\n"
	.text
	.type	worker_routine, @function
worker_routine:
.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, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -128[rbp], eax
	mov	DWORD PTR -124[rbp], -1
	mov	DWORD PTR -120[rbp], -1
	mov	DWORD PTR -116[rbp], -1
	mov	DWORD PTR -112[rbp], -1
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -48[rbp], 2
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR PORT[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	edx, 0
	mov	esi, 526337
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, 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
.L2:
	mov	DWORD PTR -140[rbp], 1
	lea	rdx, -140[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 15
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	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	edi, 1
	call	exit@PLT
.L3:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -1
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, 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
.L5:
	mov	ecx, DWORD PTR PORT[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 524288
	call	epoll_create1@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -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 stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -60[rbp], -2147483647
	lea	rcx, -60[rbp]
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -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 stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	esi, 12
	mov	edi, 1024
	call	calloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	ecx, -1
	mov	edx, 1024
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -108[rbp], eax
	mov	DWORD PTR -136[rbp], 0
	jmp	.L9
.L31:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -124[rbp], eax
	jne	.L10
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L10
.L16:
	mov	DWORD PTR -144[rbp], 16
	lea	rdx, -144[rbp]
	lea	rsi, -32[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	ecx, 526336
	mov	edi, eax
	mov	eax, 0
	call	accept4@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, DWORD PTR -120[rbp]
	mov	edx, DWORD PTR -128[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1040
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -60[rbp], -2147483647
	lea	rcx, -60[rbp]
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], -1
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	nop
	jmp	.L17
.L10:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L18
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	add	rax, 4
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	QWORD PTR 1032[rax], 0
	mov	QWORD PTR -72[rbp], -1
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	rsi, QWORD PTR 1032[rax]
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	lea	rdx, [rsi+rcx]
	mov	QWORD PTR 1032[rax], rdx
.L19:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	rax, QWORD PTR 1032[rax]
	lea	rsi, [rcx+rax]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 0
	mov	edx, 16
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jg	.L20
	cmp	QWORD PTR -72[rbp], 0
	je	.L21
	cmp	QWORD PTR -72[rbp], -1
	jne	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L21
.L22:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 104
	jne	.L23
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	jmp	.L21
.L23:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L21:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -2147483644
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 3
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	rax, QWORD PTR 1032[rax]
	test	rax, rax
	jne	.L25
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -128[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L17
.L25:
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	rax, QWORD PTR 1032[rax]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L26
.L30:
	mov	eax, 16
	cmp	QWORD PTR -104[rbp], 16
	cmovle	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -132[rbp]
	sal	eax, 4
	cdqe
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	ecx, 0
	mov	rdx, rdi
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jle	.L27
	mov	rax, QWORD PTR -80[rbp]
	sub	QWORD PTR -104[rbp], rax
	add	DWORD PTR -132[rbp], 1
	jmp	.L26
.L27:
	cmp	QWORD PTR -80[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -128[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L26
.L28:
	cmp	QWORD PTR -80[rbp], -1
	jne	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L26
.L29:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L26:
	cmp	QWORD PTR -104[rbp], 0
	jg	.L30
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -2147483647
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 3
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L17
.L24:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	add	DWORD PTR -136[rbp], 1
.L9:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -108[rbp]
	jl	.L31
	jmp	.L8
	.cfi_endproc
.LFE6:
	.size	worker_routine, .-worker_routine
	.section	.rodata
.LC18:
	.string	"calloc: tinfo\n"
.LC19:
	.string	"pthread_create\n"
.LC20:
	.string	"pthread_join\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -16[rbp], -1
	cmp	DWORD PTR -20[rbp], 2
	jne	.L35
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR PORT[rip], eax
.L35:
	mov	esi, 16
	mov	edi, 4
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L37
.L39:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	add	edx, 1
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rcx
	mov	rdi, rdx
	mov	rcx, rax
	lea	rdx, worker_routine[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L38
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	add	DWORD PTR -16[rbp], 1
.L37:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L39
	mov	DWORD PTR -16[rbp], 0
	jmp	.L40
.L42:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	add	DWORD PTR -16[rbp], 1
.L40:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L42
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"85361.c"
	.text
	.data
	.align	2
	.type	PORT, %object
	.size	PORT, 4
PORT:
	.word	7000
	.local	send_buf_size
	.comm	send_buf_size,4,4
	.align	2
	.type	send_buf_size_len, %object
	.size	send_buf_size_len, 4
send_buf_size_len:
	.word	4
	.local	recv_buf_size
	.comm	recv_buf_size,4,4
	.align	2
	.type	recv_buf_size_len, %object
	.size	recv_buf_size_len, 4
recv_buf_size_len:
	.word	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket: %s\012\000"
	.align	2
.LC1:
	.ascii	"setsockopt: %s\012\000"
	.align	2
.LC2:
	.ascii	"bind: %s\012\000"
	.align	2
.LC3:
	.ascii	"listen: %s\012\000"
	.align	2
.LC4:
	.ascii	"worker[%d] is listening on: %d\012\000"
	.align	2
.LC5:
	.ascii	"epoll_create1: %s\012\000"
	.align	2
.LC6:
	.ascii	"epoll_ctl: %s\012\000"
	.align	2
.LC7:
	.ascii	"calloc epoll events\012\000"
	.align	2
.LC8:
	.ascii	"accept: %s\012\000"
	.align	2
.LC9:
	.ascii	"worker[%d] accepted connection on fd(%d)\012\000"
	.align	2
.LC10:
	.ascii	"malloc event\012\000"
	.align	2
.LC11:
	.ascii	"client disconnected\012\000"
	.align	2
.LC12:
	.ascii	"recv error: %s\012\000"
	.align	2
.LC13:
	.ascii	"worker[%d](%d) close\012\000"
	.align	2
.LC14:
	.ascii	"warn: [%d](%d) send zero bytes\012\000"
	.align	2
.LC15:
	.ascii	"send reach eagain: %s\012\000"
	.align	2
.LC16:
	.ascii	"send error: %s\012\000"
	.align	2
.LC17:
	.ascii	"unknown event occured %d\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_routine, %function
worker_routine:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-136]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-104]
	mvn	r3, #0
	str	r3, [fp, #-100]
	mvn	r3, #0
	str	r3, [fp, #-96]
	mvn	r3, #0
	str	r3, [fp, #-92]
	mvn	r3, #0
	str	r3, [fp, #-88]
	sub	r3, fp, #48
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-48]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-46]	@ movhi
	mov	r2, #0
	ldr	r1, .L34+8
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #1
	str	r3, [fp, #-124]
	sub	r3, fp, #124
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, [fp, #-100]
	bl	setsockopt
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #48
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-100]
	bl	bind
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	mov	r1, #4096
	ldr	r0, [fp, #-100]
	bl	listen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, .L34+32
	ldr	r0, [r3]
	ldr	r3, [fp, #-108]
	ldr	r2, [r3, #4]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r1, .L34+36
	bl	fprintf
	mov	r0, #524288
	bl	epoll_create1
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+40
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-60]
	mov	r3, #-2147483647
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	ldr	r2, [fp, #-100]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	epoll_ctl
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+44
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	mov	r1, #16
	mov	r0, #1024
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L34+48
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	mvn	r3, #0
	mov	r2, #1024
	ldr	r1, [fp, #-84]
	ldr	r0, [fp, #-92]
	bl	epoll_wait
	str	r0, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L9
.L31:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
.L16:
	mov	r3, #16
	str	r3, [fp, #-128]
	sub	r2, fp, #128
	sub	r1, fp, #32
	ldr	r3, .L34+52
	ldr	r0, [fp, #-100]
	bl	accept4
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L33
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+56
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, .L34+32
	ldr	r0, [r3]
	ldr	r3, [fp, #-96]
	ldr	r2, [fp, #-104]
	ldr	r1, .L34+60
	bl	fprintf
	ldr	r0, .L34+64
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L34+68
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-96]
	str	r2, [r3]
	mov	r3, #-2147483647
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	ldr	r2, [fp, #-96]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	epoll_ctl
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+44
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L33:
	nop
	b	.L17
.L10:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	add	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, #0
	str	r2, [r3, #1028]
	mvn	r3, #0
	str	r3, [fp, #-72]
	b	.L19
.L20:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r1, [r3, #1028]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r0, [fp, #-84]
	add	r3, r0, r3
	ldr	r3, [r3, #8]
	add	r2, r1, r2
	str	r2, [r3, #1028]
.L19:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	add	r2, r3, #4
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r1, [fp, #-84]
	add	r3, r1, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #1028]
	add	r1, r2, r3
	mov	r3, #0
	mov	r2, #16
	bl	recv
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bgt	.L20
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L22
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L21
.L22:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #104
	bne	.L23
	ldr	r3, .L34+32
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L34+72
	bl	fwrite
	b	.L21
.L23:
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+76
	mov	r0, r4
	bl	fprintf
.L21:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #-2147483644
	str	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r1
	mov	r1, #3
	ldr	r0, [fp, #-92]
	bl	epoll_ctl
	b	.L17
.L18:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #1028]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L34+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L34+80
	bl	fprintf
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	b	.L17
.L25:
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #1028]
	str	r3, [fp, #-116]
	b	.L26
.L30:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	add	r3, r3, #4
	ldr	r2, [fp, #-112]
	lsl	r2, r2, #4
	add	r1, r3, r2
	ldr	r3, [fp, #-116]
	cmp	r3, #16
	movlt	r3, r3
	movge	r3, #16
	mov	r2, r3
	mov	r3, #0
	bl	send
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	ble	.L27
	ldr	r2, [fp, #-116]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L26
.L27:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L34+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L34+84
	bl	fprintf
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L26
.L28:
	ldr	r3, [fp, #-76]
	cmn	r3, #1
	bne	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L29
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+88
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L34+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L26
.L29:
	ldr	r3, .L34+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+92
	mov	r0, r4
	bl	fprintf
.L26:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bgt	.L30
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #-2147483647
	str	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r1
	mov	r1, #3
	ldr	r0, [fp, #-92]
	bl	epoll_ctl
	b	.L17
.L24:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L34+96
	bl	printf
.L17:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L9:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	blt	.L31
	b	.L8
.L35:
	.align	2
.L34:
	.word	.LC18
	.word	PORT
	.word	526337
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	526336
	.word	.LC8
	.word	.LC9
	.word	1032
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	worker_routine, .-worker_routine
	.section	.rodata
	.align	2
.LC19:
	.ascii	"calloc: tinfo\012\000"
	.align	2
.LC20:
	.ascii	"pthread_create\012\000"
	.align	2
.LC21:
	.ascii	"pthread_join\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L37
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L46
	str	r3, [r2]
.L37:
	mov	r1, #8
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L46+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L38:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L41:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, .L46+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L46+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L40:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L41
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L42
.L44:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L46+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L43:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L42:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L44
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	PORT
	.word	stderr
	.word	.LC19
	.word	worker_routine
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
