	.file	"769308.c"
	.intel_syntax noprefix
	.text
	.globl	g_efd
	.bss
	.align 4
	.type	g_efd, @object
	.size	g_efd, 4
g_efd:
	.zero	4
	.globl	g_events
	.align 32
	.type	g_events, @object
	.size	g_events, 4239400
g_events:
	.zero	4239400
	.text
	.globl	eventset
	.type	eventset, @function
eventset:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 4128[rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	eventset, .-eventset
	.section	.rodata
	.align 8
.LC0:
	.string	"event add failed [fd=%d], events[%d]\n"
	.align 8
.LC1:
	.string	"event add OK [fd=%d], op=%d, events[%0X]\n"
	.text
	.globl	eventadd
	.type	eventadd, @function
eventadd:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 1
	jne	.L4
	mov	DWORD PTR -24[rbp], 3
	jmp	.L5
.L4:
	mov	DWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], 1
.L5:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	lea	rcx, -20[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	jns	.L6
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L3:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	eventadd, .-eventadd
	.globl	eventdel
	.type	eventdel, @function
eventdel:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 1
	jne	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	jmp	.L10
.L15:
	nop
.L10:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	eventdel, .-eventdel
	.section	.rodata
.LC2:
	.string	"%s: accept, %s\n"
.LC3:
	.string	"%s: max connect limit[%d]\n"
	.align 8
.LC4:
	.string	"%s: fcntl nonblocking failed, %s\n"
	.align 8
.LC5:
	.string	"new connect [%s:%d][time:%ld], pos[%d]\n"
	.text
	.globl	acceptconn
	.type	acceptconn, @function
acceptconn:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	QWORD PTR -80[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 16
	lea	rdx, -64[rbp]
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L18
	call	__errno_location@PLT
.L18:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L17:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip+24]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	je	.L29
	add	DWORD PTR -60[rbp], 1
.L20:
	cmp	DWORD PTR -60[rbp], 1023
	jle	.L23
	jmp	.L22
.L29:
	nop
.L22:
	cmp	DWORD PTR -60[rbp], 1024
	jne	.L24
	mov	edx, 1024
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L24:
	mov	DWORD PTR -52[rbp], 0
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rcx, g_events[rip]
	lea	rdi, [rax+rcx]
	mov	eax, DWORD PTR -56[rbp]
	mov	rcx, rdx
	lea	rdx, recvdata[rip]
	mov	esi, eax
	call	eventset
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip]
	add	rdx, rax
	mov	eax, DWORD PTR g_efd[rip]
	mov	esi, 1
	mov	edi, eax
	call	eventadd
.L25:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip+4128]
	mov	r12, QWORD PTR [rax+rdx]
	movzx	eax, WORD PTR -46[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, DWORD PTR -60[rbp]
	mov	r8d, edx
	mov	rcx, r12
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L16:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	acceptconn, .-acceptconn
	.section	.rodata
.LC6:
	.string	"C[%d]:%s\n"
.LC7:
	.string	"[fd=%d] pos[%ld], closed\n"
.LC8:
	.string	"recv[fd=%d] error[%d]:%s\n"
	.text
	.globl	recvdata
	.type	recvdata, @function
recvdata:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, 28[rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR g_efd[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	eventdel
	cmp	DWORD PTR -28[rbp], 0
	jle	.L31
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 4124[rax], edx
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR 28[rdx+rax], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 28[rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	lea	rdx, senddata[rip]
	mov	rdi, rax
	call	eventset
	mov	eax, DWORD PTR g_efd[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, 4
	mov	edi, eax
	call	eventadd
	jmp	.L30
.L31:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	lea	rdx, g_events[rip]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	sar	rax, 3
	mov	rdx, rax
	movabs	rax, 5566135542550657741
	imul	rax, rdx
	mov	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L30
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, rbx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	recvdata, .-recvdata
	.section	.rodata
.LC9:
	.string	"send[fd=%d], [%d]%s\n"
.LC10:
	.string	"send[fd=%d] error %s\n"
	.text
	.globl	senddata
	.type	senddata, @function
senddata:
.LFB11:
	.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	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4124[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, 28[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L36
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 28[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR g_efd[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	eventdel
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	lea	rdx, recvdata[rip]
	mov	rdi, rax
	call	eventset
	mov	eax, DWORD PTR g_efd[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	eventadd
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR g_efd[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	eventdel
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	senddata, .-senddata
	.globl	initlistensocket
	.type	initlistensocket, @function
initlistensocket:
.LFB12:
	.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	eax, esi
	mov	WORD PTR -56[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -36[rbp]
	lea	rcx, g_events[rip+4235264]
	lea	rdx, acceptconn[rip]
	mov	esi, eax
	lea	rdi, g_events[rip+4235264]
	call	eventset
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, g_events[rip+4235264]
	mov	esi, 1
	mov	edi, eax
	call	eventadd
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	DWORD PTR -28[rbp], 0
	movzx	eax, WORD PTR -56[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 20
	mov	edi, eax
	call	listen@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	initlistensocket, .-initlistensocket
	.section	.rodata
.LC11:
	.string	"create efd in %s err %s\n"
.LC12:
	.string	"server running:port[%d]\n"
.LC13:
	.string	"[fd=%d] timeout\n"
.LC14:
	.string	"epoll_wait error, exit"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -12372[rbp], edi
	mov	QWORD PTR -12384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -12358[rbp], 8080
	cmp	DWORD PTR -12372[rbp], 2
	jne	.L43
	mov	rax, QWORD PTR -12384[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -12358[rbp], ax
.L43:
	mov	edi, 1025
	call	epoll_create@PLT
	mov	DWORD PTR g_efd[rip], eax
	mov	eax, DWORD PTR g_efd[rip]
	test	eax, eax
	jg	.L44
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	movzx	eax, WORD PTR -12358[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR g_efd[rip]
	mov	esi, edx
	mov	edi, eax
	call	initlistensocket
	movzx	eax, WORD PTR -12358[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12356[rbp], 0
.L56:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -12344[rbp], rax
	mov	DWORD PTR -12352[rbp], 0
	jmp	.L45
.L49:
	cmp	DWORD PTR -12356[rbp], 1024
	jne	.L46
	mov	DWORD PTR -12356[rbp], 0
.L46:
	mov	eax, DWORD PTR -12356[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip+24]
	mov	eax, DWORD PTR [rax+rdx]
	cmp	eax, 1
	jne	.L60
	mov	eax, DWORD PTR -12356[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip+4128]
	mov	rdx, QWORD PTR [rax+rdx]
	mov	rax, QWORD PTR -12344[rbp]
	sub	rax, rdx
	mov	QWORD PTR -12328[rbp], rax
	cmp	QWORD PTR -12328[rbp], 59
	jle	.L48
	mov	eax, DWORD PTR -12356[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip]
	mov	eax, DWORD PTR [rax+rdx]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12356[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip]
	mov	eax, DWORD PTR [rax+rdx]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12356[rbp]
	cdqe
	imul	rax, rax, 4136
	lea	rdx, g_events[rip]
	add	rdx, rax
	mov	eax, DWORD PTR g_efd[rip]
	mov	rsi, rdx
	mov	edi, eax
	call	eventdel
	jmp	.L48
.L60:
	nop
.L48:
	add	DWORD PTR -12352[rbp], 1
	add	DWORD PTR -12356[rbp], 1
.L45:
	cmp	DWORD PTR -12352[rbp], 99
	jle	.L49
	mov	eax, DWORD PTR g_efd[rip]
	lea	rsi, -12320[rbp]
	mov	ecx, 1000
	mov	edx, 1025
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -12348[rbp], eax
	cmp	DWORD PTR -12348[rbp], 0
	jns	.L50
	lea	rdi, .LC14[rip]
	call	puts@PLT
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L58
	jmp	.L59
.L50:
	mov	DWORD PTR -12352[rbp], 0
	jmp	.L52
.L55:
	mov	eax, DWORD PTR -12352[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 12320
	mov	rax, QWORD PTR 4[rax]
	mov	QWORD PTR -12336[rbp], rax
	mov	eax, DWORD PTR -12352[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 12320
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L53
	mov	rax, QWORD PTR -12336[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 1
	test	eax, eax
	je	.L53
	mov	rax, QWORD PTR -12336[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -12336[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12352[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	add	rax, rbp
	sub	rax, 12320
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rax, QWORD PTR -12336[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	rcx
.L53:
	mov	eax, DWORD PTR -12352[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 12320
	mov	eax, DWORD PTR [rax]
	and	eax, 4
	test	eax, eax
	je	.L54
	mov	rax, QWORD PTR -12336[rbp]
	mov	eax, DWORD PTR 4[rax]
	and	eax, 4
	test	eax, eax
	je	.L54
	mov	rax, QWORD PTR -12336[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -12336[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12352[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	add	rax, rax
	add	rax, rsi
	sal	rax, 2
	add	rax, rbp
	sub	rax, 12320
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rax, QWORD PTR -12336[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	rcx
.L54:
	add	DWORD PTR -12352[rbp], 1
.L52:
	mov	eax, DWORD PTR -12352[rbp]
	cmp	eax, DWORD PTR -12348[rbp]
	jl	.L55
	jmp	.L56
.L59:
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__func__.1, @object
	.size	__func__.1, 11
__func__.1:
	.string	"acceptconn"
	.type	__func__.0, @object
	.size	__func__.0, 5
__func__.0:
	.string	"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	"769308.c"
	.text
	.comm	g_efd,4,4
	.comm	g_events,4227100,4
	.align	2
	.global	eventset
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventset, %function
eventset:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #16]
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, #4096
	str	r2, [r3, #24]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	eventset, .-eventset
	.section	.rodata
	.align	2
.LC0:
	.ascii	"event add failed [fd=%d], events[%d]\012\000"
	.align	2
.LC1:
	.ascii	"event add OK [fd=%d], op=%d, events[%0X]\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	eventadd
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventadd, %function
eventadd:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L4
	mov	r3, #3
	str	r3, [fp, #-32]
	b	.L5
.L4:
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	mov	r2, #1
	str	r2, [r3, #16]
.L5:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	sub	r3, fp, #28
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	b	.L3
.L6:
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r0, .L10+8
	bl	printf
	nop
.L3:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	eventadd, .-eventadd
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	eventdel
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventdel, %function
eventdel:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	cmp	r3, #1
	bne	.L17
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	sub	r3, fp, #28
	mov	r1, #2
	ldr	r0, [fp, #-32]
	bl	epoll_ctl
	b	.L12
.L17:
	nop
.L12:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.size	eventdel, .-eventdel
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%s: accept, %s\012\000"
	.align	2
.LC5:
	.ascii	"%s: max connect limit[%d]\012\000"
	.align	2
.LC6:
	.ascii	"%s: fcntl nonblocking failed, %s\012\000"
	.align	2
.LC7:
	.ascii	"new connect [%s:%d][time:%ld], pos[%d]\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acceptconn
	.syntax unified
	.arm
	.fpu softvfp
	.type	acceptconn, %function
acceptconn:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-48]
	sub	r2, fp, #48
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	accept
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L22
	bl	__errno_location
.L22:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	printf
	b	.L20
.L21:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L24
.L27:
	ldr	r1, .L34+12
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L24:
	ldr	r3, [fp, #-44]
	cmp	r3, #1024
	blt	.L27
	b	.L26
.L33:
	nop
.L26:
	ldr	r3, [fp, #-44]
	cmp	r3, #1024
	bne	.L28
	mov	r2, #1024
	ldr	r1, .L34+4
	ldr	r0, .L34+16
	bl	printf
	b	.L29
.L28:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-40]
	bl	fcntl
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L34+4
	ldr	r0, .L34+20
	bl	printf
	b	.L29
.L30:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L34+12
	add	r0, r3, r2
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L34+12
	add	r3, r3, r2
	ldr	r2, .L34+24
	ldr	r1, [fp, #-40]
	bl	eventset
	ldr	r3, .L34+28
	ldr	r0, [r3]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L34+12
	add	r3, r3, r2
	mov	r2, r3
	mov	r1, #1
	bl	eventadd
.L29:
	ldr	r0, [fp, #-28]
	bl	inet_ntoa
	mov	r4, r0
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r0, r3
	ldr	r1, .L34+12
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #24
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r0
	mov	r1, r4
	ldr	r0, .L34+32
	bl	printf
	nop
.L20:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC8
	.word	__func__.6560
	.word	.LC4
	.word	g_events
	.word	.LC5
	.word	.LC6
	.word	recvdata
	.word	g_efd
	.word	.LC7
	.size	acceptconn, .-acceptconn
	.section	.rodata
	.align	2
.LC9:
	.ascii	"C[%d]:%s\012\000"
	.align	2
.LC10:
	.ascii	"[fd=%d] pos[%ld], closed\012\000"
	.align	2
.LC11:
	.ascii	"recv[fd=%d] error[%d]:%s\012\000"
	.text
	.align	2
	.global	recvdata
	.syntax unified
	.arm
	.fpu softvfp
	.type	recvdata, %function
recvdata:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r1, r3, #20
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-16]
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	eventdel
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L37
	ldr	r3, [fp, #-20]
	add	r3, r3, #4096
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r3, [r2, #20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #20
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L41+4
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, .L41+8
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	eventset
	ldr	r3, .L41
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, #4
	mov	r0, r3
	bl	eventadd
	b	.L36
.L37:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L39
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-20]
	ldr	r2, .L41+12
	sub	r3, r3, r2
	asr	r3, r3, #2
	ldr	r2, .L41+16
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L41+20
	bl	printf
	b	.L36
.L39:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r4
	ldr	r1, [fp, #-24]
	ldr	r0, .L41+24
	bl	printf
	nop
.L36:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	g_efd
	.word	.LC9
	.word	senddata
	.word	g_events
	.word	-1612174921
	.word	.LC10
	.word	.LC11
	.size	recvdata, .-recvdata
	.section	.rodata
	.align	2
.LC12:
	.ascii	"send[fd=%d], [%d]%s\012\000"
	.align	2
.LC13:
	.ascii	"send[fd=%d] error %s\012\000"
	.text
	.align	2
	.global	senddata
	.syntax unified
	.arm
	.fpu softvfp
	.type	senddata, %function
senddata:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r1, r3, #20
	ldr	r3, [fp, #-12]
	add	r3, r3, #4096
	ldr	r3, [r3, #20]
	mov	r2, r3
	mov	r3, #0
	ldr	r0, [fp, #-16]
	bl	send
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L44
	ldr	r3, [fp, #-12]
	add	r3, r3, #20
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L47
	bl	printf
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	eventdel
	ldr	r3, [fp, #-12]
	ldr	r2, .L47+8
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	eventset
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	eventadd
	b	.L43
.L44:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L47+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	eventdel
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L47+12
	bl	printf
	nop
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC12
	.word	g_efd
	.word	recvdata
	.word	.LC13
	.size	senddata, .-senddata
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	initlistensocket
	.syntax unified
	.arm
	.fpu softvfp
	.type	initlistensocket, %function
initlistensocket:
	@ 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]
	mov	r3, r1
	strh	r3, [fp, #-34]	@ movhi
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-28]
	bl	fcntl
	ldr	r3, .L52+4
	ldr	r2, .L52+8
	ldr	r1, [fp, #-28]
	ldr	r0, .L52+4
	bl	eventset
	ldr	r2, .L52+4
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	eventadd
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-34]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r1, #20
	ldr	r0, [fp, #-28]
	bl	listen
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC14
	.word	g_events+4222976
	.word	acceptconn
	.size	initlistensocket, .-initlistensocket
	.section	.rodata
	.align	2
.LC15:
	.ascii	"create efd in %s err %s\012\000"
	.align	2
.LC16:
	.ascii	"server running:port[%d]\012\000"
	.align	2
.LC17:
	.ascii	"[fd=%d] timeout\012\000"
	.align	2
.LC18:
	.ascii	"epoll_wait error, exit\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16384
	sub	sp, sp, #68
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-60]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-64]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, .L73+4
	strh	r2, [r3, #-50]	@ movhi
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #2
	bne	.L55
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r2, fp, #16384
	sub	r2, r2, #12
	strh	r3, [r2, #-50]	@ movhi
.L55:
	ldr	r0, .L73+8
	bl	epoll_create
	mov	r3, r0
	ldr	r2, .L73+12
	str	r3, [r2]
	ldr	r3, .L73+12
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L56
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L73+16
	ldr	r0, .L73+20
	bl	printf
.L56:
	ldr	r3, .L73+12
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldrsh	r2, [r2, #-50]
	mov	r1, r2
	mov	r0, r3
	bl	initlistensocket
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrh	r3, [r3, #-50]
	mov	r1, r3
	ldr	r0, .L73+24
	bl	printf
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
.L68:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #0
	bl	time
	str	r0, [r4, #-40]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L57
.L61:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	cmp	r3, #1024
	bne	.L58
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
.L58:
	ldr	r1, .L73+28
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L72
	ldr	r1, .L73+28
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #24
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-40]
	sub	r3, r2, r3
	str	r3, [r1, #-28]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #59
	ble	.L60
	ldr	r1, .L73+28
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r1, .L73+28
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L73+32
	bl	printf
	ldr	r3, .L73+12
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L73+28
	add	r3, r3, r2
	mov	r1, r3
	bl	eventdel
	b	.L60
.L72:
	nop
.L60:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L57:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #99
	ble	.L61
	ldr	r3, .L73+12
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #16384
	sub	r1, r1, #12
	sub	r1, r1, #24
	mov	r3, #1000
	ldr	r2, .L73+8
	bl	epoll_wait
	str	r0, [r4, #-36]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L73+36
	bl	puts
	nop
	mov	r3, #0
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L70
	b	.L71
.L62:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L64
.L67:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-16]
	str	r3, [r2, #-32]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L65
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3, #4]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L65
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r4, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3, #8]
	mov	r2, r3
	blx	r4
.L65:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L66
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3, #4]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L66
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r4, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3, #8]
	mov	r2, r3
	blx	r4
.L66:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L64:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-36]
	cmp	r2, r3
	blt	.L67
	b	.L68
.L71:
	bl	__stack_chk_fail
.L70:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC19
	.word	8080
	.word	1025
	.word	g_efd
	.word	__func__.6591
	.word	.LC15
	.word	.LC16
	.word	g_events
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.6560, %object
	.size	__func__.6560, 11
__func__.6560:
	.ascii	"acceptconn\000"
	.align	2
	.type	__func__.6591, %object
	.size	__func__.6591, 5
__func__.6591:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
