	.file	"907195.c"
	.intel_syntax noprefix
	.text
	.globl	fd
	.data
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	-1
	.globl	events
	.bss
	.align 32
	.type	events, @object
	.size	events, 240
events:
	.zero	240
	.section	.rodata
.LC0:
	.string	"fcntl(F_GETFL) failed "
.LC1:
	.string	"fcntl(F_SETFL) failed"
	.text
	.globl	set_nonblocking
	.type	set_nonblocking, @function
set_nonblocking:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
.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	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_nonblocking, .-set_nonblocking
	.section	.rodata
	.align 8
.LC2:
	.string	"Hello, linux tcp server, num:%d !"
.LC3:
	.string	"send failed "
	.align 8
.LC4:
	.string	"send len %d, data num %d, data len:%d \n"
	.text
	.globl	tcp_send_thread
	.type	tcp_send_thread, @function
tcp_send_thread:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 928
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5020[rbp], 0
	mov	DWORD PTR -5016[rbp], 0
	lea	rax, -5008[rbp]
	mov	edx, 5000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -5012[rbp], 0
.L9:
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jle	.L6
	add	DWORD PTR -5020[rbp], 1
	mov	edx, DWORD PTR -5020[rbp]
	lea	rax, -5008[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -5012[rbp], 0
	mov	eax, DWORD PTR fd[rip]
	lea	rsi, -5008[rbp]
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -5012[rbp], eax
	cmp	DWORD PTR -5012[rbp], 0
	jg	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 200000
	call	usleep@PLT
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -5012[rbp]
	add	DWORD PTR -5016[rbp], eax
	mov	ecx, DWORD PTR -5016[rbp]
	mov	edx, DWORD PTR -5020[rbp]
	mov	eax, DWORD PTR -5012[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	edi, 20000
	call	usleep@PLT
.L8:
	jmp	.L9
	.cfi_endproc
.LFE7:
	.size	tcp_send_thread, .-tcp_send_thread
	.section	.rodata
.LC5:
	.string	"create epoll socket failed "
.LC6:
	.string	"create socket failed "
.LC7:
	.string	"10.0.0.2"
.LC8:
	.string	"onnect to server failed "
.LC9:
	.string	"epoll ctl failed "
	.align 8
.LC10:
	.string	"start dpdk tcp client application "
.LC11:
	.string	"Create pthread error!"
.LC12:
	.string	"epoll_wait failed "
.LC13:
	.string	"linux socket(%d) error\n"
.LC14:
	.string	"socket error: %d, errno %d \n"
.LC15:
	.string	"Recv data,  len: %d \n"
.LC16:
	.string	"unknow event %x, fd:%d \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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 976
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5072[rbp], 0
	mov	DWORD PTR -5068[rbp], 0
	mov	edi, 10
	call	epoll_create@PLT
	mov	DWORD PTR -5064[rbp], eax
	cmp	DWORD PTR -5064[rbp], 0
	jns	.L12
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L31
.L12:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L14
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -5064[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L31
.L14:
	lea	rax, -5024[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -5024[rbp], 2
	mov	edi, 8000
	call	htons@PLT
	mov	WORD PTR -5022[rbp], ax
	lea	rdi, .LC7[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -5020[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -5024[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -5064[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L31
.L15:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	set_nonblocking
	mov	eax, DWORD PTR fd[rip]
	mov	DWORD PTR -5032[rbp], eax
	mov	DWORD PTR -5036[rbp], -2147483647
	mov	edx, DWORD PTR fd[rip]
	lea	rcx, -5036[rbp]
	mov	eax, DWORD PTR -5064[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -5060[rbp], eax
	cmp	DWORD PTR -5060[rbp], 0
	je	.L16
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -5064[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
	jmp	.L31
.L16:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rax, -5048[rbp]
	mov	ecx, 0
	lea	rdx, tcp_send_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -5060[rbp], eax
	cmp	DWORD PTR -5060[rbp], 0
	je	.L17
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L31
.L17:
	mov	DWORD PTR -5056[rbp], 0
.L30:
	mov	eax, DWORD PTR -5064[rbp]
	mov	ecx, -1
	mov	edx, 20
	lea	rsi, events[rip]
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -5056[rbp], eax
	cmp	DWORD PTR -5056[rbp], 0
	jg	.L18
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L19
.L18:
	mov	DWORD PTR -5072[rbp], 0
	jmp	.L20
.L29:
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 8
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 16
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 1
	test	eax, eax
	jne	.L22
.L21:
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR fd[rip], -1
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip]
	mov	eax, DWORD PTR [rdx+rax]
	and	eax, 1
	test	eax, eax
	je	.L24
.L28:
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	lea	rsi, -5008[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 5000
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -5052[rbp], eax
	cmp	DWORD PTR -5052[rbp], 0
	jns	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L23
.L25:
	cmp	DWORD PTR -5052[rbp], 0
	jg	.L27
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -5052[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -5052[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -5068[rbp], 1
	jmp	.L28
.L24:
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	lea	rax, events[rip+4]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -5072[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	lea	rax, events[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	add	DWORD PTR -5072[rbp], 1
.L20:
	mov	eax, DWORD PTR -5072[rbp]
	cmp	eax, DWORD PTR -5056[rbp]
	jl	.L29
.L19:
	jmp	.L30
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"907195.c"
	.text
	.global	fd
	.data
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.comm	events,320,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fcntl(F_GETFL) failed \000"
	.align	2
.LC1:
	.ascii	"fcntl(F_SETFL) failed\000"
	.text
	.align	2
	.global	set_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_nonblocking, %function
set_nonblocking:
	@ 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	r0, .L5
	bl	puts
.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	.L4
	ldr	r0, .L5+4
	bl	puts
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	set_nonblocking, .-set_nonblocking
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Hello, linux tcp server, num:%d !\000"
	.align	2
.LC3:
	.ascii	"send failed \000"
	.align	2
.LC4:
	.ascii	"send len %d, data num %d, data len:%d \012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tcp_send_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_send_thread, %function
tcp_send_thread:
	@ args = 0, pretend = 0, frame = 5016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4992
	sub	sp, sp, #28
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-920]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-916]
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, .L13+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-912]
.L11:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-920]
	add	r3, r3, #1
	str	r3, [r2, #-920]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [r2, #-920]
	ldr	r1, .L13+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-912]
	ldr	r3, .L13+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4992
	sub	r1, r1, #12
	sub	r1, r1, #12
	mov	r3, #0
	mov	r2, #2000
	bl	send
	str	r0, [r4, #-912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #0
	bgt	.L9
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	usleep
	b	.L10
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-916]
	ldr	r3, [r3, #-912]
	add	r3, r2, r3
	str	r3, [r1, #-916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	ldr	r3, [r3, #-916]
	ldr	r2, [r2, #-920]
	ldr	r1, [r1, #-912]
	ldr	r0, .L13+24
	bl	printf
.L8:
	ldr	r0, .L13+28
	bl	usleep
.L10:
	b	.L11
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	5000
	.word	fd
	.word	.LC2
	.word	.LC3
	.word	200000
	.word	.LC4
	.word	20000
	.size	tcp_send_thread, .-tcp_send_thread
	.section	.rodata
	.align	2
.LC6:
	.ascii	"create epoll socket failed \000"
	.align	2
.LC7:
	.ascii	"create socket failed \000"
	.align	2
.LC8:
	.ascii	"10.0.0.2\000"
	.align	2
.LC9:
	.ascii	"onnect to server failed \000"
	.align	2
.LC10:
	.ascii	"epoll ctl failed \000"
	.align	2
.LC11:
	.ascii	"start dpdk tcp client application \000"
	.align	2
.LC12:
	.ascii	"Create pthread error!\000"
	.align	2
.LC13:
	.ascii	"epoll_wait failed \000"
	.align	2
.LC14:
	.ascii	"linux socket(%d) error\012\000"
	.align	2
.LC15:
	.ascii	"socket error: %d, errno %d \012\000"
	.align	2
.LC16:
	.ascii	"Recv data,  len: %d \012\000"
	.align	2
.LC17:
	.ascii	"unknow event %x, fd:%d \012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #5056
	sub	sp, sp, #28
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-968]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-964]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #10
	bl	epoll_create
	str	r0, [r4, #-960]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-960]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L37+4
	bl	puts
	mvn	r3, #0
	b	.L35
.L16:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L37+8
	str	r3, [r2]
	ldr	r3, .L37+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L37+12
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-960]
	bl	close
	mvn	r3, #0
	b	.L35
.L18:
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #924
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #8000
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #924
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L37+16
	bl	inet_addr
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-920]
	ldr	r3, .L37+8
	ldr	r0, [r3]
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r2, #16
	mov	r1, r3
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L37+20
	bl	puts
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-960]
	bl	close
	mvn	r3, #0
	b	.L35
.L19:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	set_nonblocking
	ldr	r3, .L37+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-936]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #-2147483647
	str	r3, [r2, #-944]
	ldr	r3, .L37+8
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #48
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, #1
	ldr	r0, [r0, #-960]
	bl	epoll_ctl
	str	r0, [r4, #-956]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-956]
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L37+24
	bl	puts
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-960]
	bl	close
	mvn	r3, #0
	b	.L35
.L20:
	ldr	r0, .L37+28
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r0, fp, #5056
	sub	r0, r0, #12
	sub	r0, r0, #12
	mov	r3, #0
	ldr	r2, .L37+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [r4, #-956]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-956]
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L37+36
	bl	puts
	mov	r3, #0
	b	.L35
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-952]
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mvn	r3, #0
	mov	r2, #20
	ldr	r1, .L37+40
	ldr	r0, [r0, #-960]
	bl	epoll_wait
	str	r0, [r4, #-952]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-952]
	cmp	r3, #0
	bgt	.L22
	ldr	r0, .L37+44
	bl	puts
	b	.L23
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-968]
	b	.L24
.L33:
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	ldr	r3, [r2, r3, lsl #4]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L25
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	ldr	r3, [r2, r3, lsl #4]
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L25
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	ldr	r3, [r2, r3, lsl #4]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L26
.L25:
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L37+48
	bl	printf
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	close
	ldr	r3, .L37+8
	mvn	r2, #0
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	ldr	r3, [r2, r3, lsl #4]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L28
.L32:
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r0, [r3, #8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4992
	sub	r1, r1, #12
	sub	r1, r1, #12
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L37+52
	bl	recvfrom
	str	r0, [r4, #-948]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-948]
	cmp	r3, #0
	bge	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L27
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-948]
	cmp	r3, #0
	bgt	.L31
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-948]
	ldr	r0, .L37+56
	bl	printf
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	b	.L27
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-948]
	ldr	r0, .L37+60
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-964]
	add	r3, r3, #1
	str	r3, [r2, #-964]
	b	.L32
.L28:
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	ldr	r1, [r2, r3, lsl #4]
	ldr	r2, .L37+40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, .L37+64
	bl	printf
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-968]
	add	r3, r3, #1
	str	r3, [r2, #-968]
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-968]
	ldr	r3, [r3, #-952]
	cmp	r2, r3
	blt	.L33
.L23:
	b	.L34
.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	.LC18
	.word	.LC6
	.word	fd
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	tcp_send_thread
	.word	.LC12
	.word	events
	.word	.LC13
	.word	.LC14
	.word	5000
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
