	.file	"216709.c"
	.intel_syntax noprefix
	.text
	.globl	g_epfd
	.bss
	.align 4
	.type	g_epfd, @object
	.size	g_epfd, 4
g_epfd:
	.zero	4
	.section	.rodata
.LC0:
	.string	"fcntl failed\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], 0
	jns	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L1
.L2:
	or	DWORD PTR -4[rbp], 2048
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L1
.L5:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setnonblocking, .-setnonblocking
	.section	.rodata
.LC1:
	.string	"accept failed"
.LC2:
	.string	"the_stack_data/216709.c"
.LC3:
	.string	"e != NULL"
.LC4:
	.string	"add client fd to epoll failed"
.LC5:
	.string	"connect from %s, fd: %d\n"
	.text
	.globl	on_listen
	.type	on_listen, @function
on_listen:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	QWORD PTR -96[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 16
	lea	rdx, -68[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], -1
	jne	.L7
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	setnonblocking
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L8
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 68
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L8:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, on_client[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -44[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR g_epfd[rip]
	lea	rcx, -44[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -64[rbp]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	on_listen, .-on_listen
	.section	.rodata
.LC6:
	.string	"data != NULL"
.LC7:
	.string	"modify client event failed"
	.align 8
.LC8:
	.string	"HTTP/1.1 200 OK\r\nContent-Length: 5\r\nConnection: close\r\nContent-Type: text/html\r\n\r\nHello"
.LC9:
	.string	"del client fd failed"
.LC10:
	.string	"close fd: %d\n"
.LC11:
	.string	"unknown event type\n"
	.text
	.globl	on_client
	.type	on_client, @function
on_client:
.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	DWORD PTR -568[rbp], esi
	mov	QWORD PTR -576[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -576[rbp], 0
	jne	.L12
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 86
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L12:
	mov	eax, DWORD PTR -568[rbp]
	and	eax, 1
	test	eax, eax
	je	.L13
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	ecx, 0
	mov	edx, 512
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -556[rbp], eax
	mov	rax, QWORD PTR -576[rbp]
	mov	QWORD PTR -536[rbp], rax
	mov	DWORD PTR -540[rbp], -2147483644
	mov	eax, DWORD PTR g_epfd[rip]
	lea	rcx, -540[rbp]
	mov	edx, DWORD PTR -564[rbp]
	mov	esi, 3
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -556[rbp], eax
	cmp	DWORD PTR -556[rbp], -1
	jne	.L18
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -568[rbp]
	and	eax, 4
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -564[rbp]
	mov	ecx, 0
	mov	edx, 87
	lea	rsi, .LC8[rip]
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -556[rbp], eax
	mov	eax, DWORD PTR g_epfd[rip]
	mov	edx, DWORD PTR -564[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -556[rbp], eax
	cmp	DWORD PTR -556[rbp], -1
	jne	.L16
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L16:
	mov	eax, DWORD PTR -564[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -564[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -576[rbp]
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L18
.L15:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	on_client, .-on_client
	.section	.rodata
.LC12:
	.string	"epoll fd create failed"
.LC13:
	.string	"create listen socket failed"
.LC14:
	.string	"bind failed"
.LC15:
	.string	"listen failed"
.LC16:
	.string	"add listen fd to epoll failed"
	.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, 1312
	mov	DWORD PTR -1300[rbp], edi
	mov	QWORD PTR -1312[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1288[rbp], 1
	mov	DWORD PTR -1280[rbp], 16
	mov	edi, 5000
	call	epoll_create@PLT
	mov	DWORD PTR g_epfd[rip], eax
	mov	eax, DWORD PTR g_epfd[rip]
	cmp	eax, -1
	jne	.L20
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L20:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1276[rbp], eax
	cmp	DWORD PTR -1276[rbp], -1
	jne	.L22
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L22:
	mov	eax, DWORD PTR -1276[rbp]
	mov	edi, eax
	call	setnonblocking
	lea	rdx, -1288[rbp]
	mov	eax, DWORD PTR -1276[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -1232[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1232[rbp], 2
	mov	edi, 9527
	call	htons@PLT
	mov	WORD PTR -1230[rbp], ax
	mov	DWORD PTR -1228[rbp], 0
	lea	rcx, -1232[rbp]
	mov	eax, DWORD PTR -1276[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -1272[rbp], eax
	cmp	DWORD PTR -1272[rbp], -1
	jne	.L23
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L23:
	mov	eax, DWORD PTR -1276[rbp]
	mov	esi, 32
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -1272[rbp], eax
	cmp	DWORD PTR -1272[rbp], -1
	jne	.L24
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L24:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -1264[rbp], rax
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L25
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 178
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L25:
	mov	rax, QWORD PTR -1264[rbp]
	mov	edx, DWORD PTR -1276[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -1264[rbp]
	lea	rdx, on_listen[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -1264[rbp]
	mov	QWORD PTR -1240[rbp], rax
	mov	DWORD PTR -1244[rbp], 1
	mov	rax, QWORD PTR -1264[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR g_epfd[rip]
	lea	rcx, -1244[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1272[rbp], eax
	cmp	DWORD PTR -1272[rbp], -1
	jne	.L26
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L29
.L26:
	mov	eax, DWORD PTR g_epfd[rip]
	lea	rsi, -1216[rbp]
	mov	ecx, -1
	mov	edx, 100
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -1268[rbp], eax
	mov	DWORD PTR -1284[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -1284[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1216
	mov	rax, QWORD PTR 4[rax]
	mov	QWORD PTR -1256[rbp], rax
	mov	rax, QWORD PTR -1256[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -1284[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 1216
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rax, QWORD PTR -1256[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -1256[rbp]
	mov	edi, eax
	call	rcx
	add	DWORD PTR -1284[rbp], 1
.L27:
	mov	eax, DWORD PTR -1284[rbp]
	cmp	eax, DWORD PTR -1268[rbp]
	jl	.L28
	jmp	.L26
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 10
__PRETTY_FUNCTION__.2:
	.string	"on_listen"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 10
__PRETTY_FUNCTION__.1:
	.string	"on_client"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.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	"216709.c"
	.text
	.comm	g_epfd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fcntl failed\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]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L6+4
	bl	fwrite
	b	.L1
.L2:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L6
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L6+4
	bl	fwrite
	b	.L1
.L5:
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	stderr
	.word	.LC0
	.size	setnonblocking, .-setnonblocking
	.section	.rodata
	.align	2
.LC1:
	.ascii	"accept failed\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/216709.c\000"
	.align	2
.LC3:
	.ascii	"e != NULL\000"
	.align	2
.LC4:
	.ascii	"add client fd to epoll failed\000"
	.align	2
.LC5:
	.ascii	"connect from %s, fd: %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	on_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_listen, %function
on_listen:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-60]
	sub	r2, fp, #60
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	accept
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L13+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r0, [fp, #-56]
	bl	setnonblocking
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L13+8
	mov	r2, #68
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	str	r2, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, .L13+20
	str	r2, [r3, #4]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, .L13+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-52]
	ldr	r2, [r3]
	sub	r3, fp, #44
	mov	r1, #1
	bl	epoll_ctl
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L13+28
	bl	perror
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r0, [fp, #-20]
	bl	inet_ntoa
	mov	r3, r0
	ldr	r2, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L13+32
	bl	printf
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC1
	.word	__PRETTY_FUNCTION__.6440
	.word	.LC2
	.word	.LC3
	.word	on_client
	.word	g_epfd
	.word	.LC4
	.word	.LC5
	.size	on_listen, .-on_listen
	.section	.rodata
	.align	2
.LC7:
	.ascii	"data != NULL\000"
	.align	2
.LC8:
	.ascii	"modify client event failed\000"
	.align	2
.LC9:
	.ascii	"HTTP/1.1 200 OK\015\012Content-Length: 5\015\012Con"
	.ascii	"nection: close\015\012Content-Type: text/html\015\012"
	.ascii	"\015\012Hello\000"
	.align	2
.LC10:
	.ascii	"del client fd failed\000"
	.align	2
.LC11:
	.ascii	"close fd: %d\012\000"
	.align	2
.LC12:
	.ascii	"unknown event type\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	on_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_client, %function
on_client:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-552]
	str	r1, [fp, #-556]
	str	r2, [fp, #-560]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L23+4
	mov	r2, #86
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-556]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L17
	sub	r1, fp, #520
	mov	r3, #0
	mov	r2, #512
	ldr	r0, [fp, #-552]
	bl	recv
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-560]
	str	r3, [fp, #-532]
	mov	r3, #-2147483644
	str	r3, [fp, #-540]
	ldr	r3, .L23+16
	ldr	r0, [r3]
	sub	r3, fp, #540
	ldr	r2, [fp, #-552]
	mov	r1, #3
	bl	epoll_ctl
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L23+20
	bl	perror
	mvn	r0, #0
	bl	exit
.L17:
	ldr	r3, [fp, #-556]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L19
	mov	r3, #0
	mov	r2, #87
	ldr	r1, .L23+24
	ldr	r0, [fp, #-552]
	bl	send
	str	r0, [fp, #-548]
	ldr	r3, .L23+16
	ldr	r0, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-552]
	mov	r1, #2
	bl	epoll_ctl
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L23+28
	bl	perror
	mvn	r0, #0
	bl	exit
.L20:
	ldr	r0, [fp, #-552]
	bl	close
	ldr	r3, .L23+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-552]
	ldr	r1, .L23+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-560]
	str	r3, [fp, #-544]
	ldr	r0, [fp, #-544]
	bl	free
	b	.L22
.L19:
	ldr	r3, .L23+40
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L23+44
	bl	fwrite
.L22:
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC13
	.word	__PRETTY_FUNCTION__.6447
	.word	.LC2
	.word	.LC7
	.word	g_epfd
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	stdout
	.word	.LC11
	.word	stderr
	.word	.LC12
	.size	on_client, .-on_client
	.section	.rodata
	.align	2
.LC14:
	.ascii	"epoll fd create failed\000"
	.align	2
.LC15:
	.ascii	"create listen socket failed\000"
	.align	2
.LC16:
	.ascii	"bind failed\000"
	.align	2
.LC17:
	.ascii	"listen failed\000"
	.align	2
.LC18:
	.ascii	"add listen fd to epoll failed\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 = 1680
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1680
	sub	sp, sp, #12
	str	r0, [fp, #-1688]
	str	r1, [fp, #-1692]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-1684]
	mov	r3, #16
	str	r3, [fp, #-1676]
	ldr	r0, .L37+4
	bl	epoll_create
	mov	r3, r0
	ldr	r2, .L37+8
	str	r3, [r2]
	ldr	r3, .L37+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L37+12
	bl	perror
	mvn	r3, #0
	b	.L35
.L26:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1672]
	ldr	r3, [fp, #-1672]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L37+16
	bl	perror
	mvn	r3, #0
	b	.L35
.L28:
	ldr	r0, [fp, #-1672]
	bl	setnonblocking
	sub	r3, fp, #1664
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-1672]
	bl	setsockopt
	sub	r3, fp, #1616
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1616
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L37+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1616
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1632]
	sub	r3, fp, #1616
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1672]
	bl	bind
	str	r0, [fp, #-1668]
	ldr	r3, [fp, #-1668]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L37+24
	bl	perror
	mvn	r3, #0
	b	.L35
.L29:
	mov	r1, #32
	ldr	r0, [fp, #-1672]
	bl	listen
	str	r0, [fp, #-1668]
	ldr	r3, [fp, #-1668]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L37+28
	bl	perror
	mvn	r3, #0
	b	.L35
.L30:
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1664]
	ldr	r3, [fp, #-1664]
	cmp	r3, #0
	bne	.L31
	ldr	r3, .L37+32
	mov	r2, #178
	ldr	r1, .L37+36
	ldr	r0, .L37+40
	bl	__assert_fail
.L31:
	ldr	r3, [fp, #-1664]
	ldr	r2, [fp, #-1672]
	str	r2, [r3]
	ldr	r3, [fp, #-1664]
	ldr	r2, .L37+44
	str	r2, [r3, #4]
	ldr	r3, [fp, #-1664]
	str	r3, [fp, #-1644]
	mov	r3, #1
	str	r3, [fp, #-1652]
	ldr	r3, .L37+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-1664]
	ldr	r2, [r3]
	sub	r3, fp, #1632
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #1
	bl	epoll_ctl
	str	r0, [fp, #-1668]
	ldr	r3, [fp, #-1668]
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L37+48
	bl	perror
	mvn	r3, #0
	b	.L35
.L32:
	ldr	r3, .L37+8
	ldr	r0, [r3]
	sub	r1, fp, #1600
	sub	r1, r1, #12
	sub	r1, r1, #8
	mvn	r3, #0
	mov	r2, #100
	bl	epoll_wait
	str	r0, [fp, #-1660]
	mov	r3, #0
	str	r3, [fp, #-1680]
	b	.L33
.L34:
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1600]
	str	r3, [fp, #-1656]
	ldr	r3, [fp, #-1656]
	ldr	r4, [r3, #4]
	ldr	r3, [fp, #-1656]
	ldr	r0, [r3]
	ldr	r3, [fp, #-1680]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1608]
	ldr	r2, [fp, #-1656]
	mov	r1, r3
	blx	r4
	ldr	r3, [fp, #-1680]
	add	r3, r3, #1
	str	r3, [fp, #-1680]
.L33:
	ldr	r2, [fp, #-1680]
	ldr	r3, [fp, #-1660]
	cmp	r2, r3
	blt	.L34
	b	.L32
.L35:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC19
	.word	5000
	.word	g_epfd
	.word	.LC14
	.word	.LC15
	.word	9527
	.word	.LC16
	.word	.LC17
	.word	__PRETTY_FUNCTION__.6466
	.word	.LC2
	.word	.LC3
	.word	on_listen
	.word	.LC18
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6440, %object
	.size	__PRETTY_FUNCTION__.6440, 10
__PRETTY_FUNCTION__.6440:
	.ascii	"on_listen\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6447, %object
	.size	__PRETTY_FUNCTION__.6447, 10
__PRETTY_FUNCTION__.6447:
	.ascii	"on_client\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6466, %object
	.size	__PRETTY_FUNCTION__.6466, 5
__PRETTY_FUNCTION__.6466:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
