	.file	"46712.c"
	.intel_syntax noprefix
	.text
	.globl	g_app_netif_addr
	.bss
	.align 8
	.type	g_app_netif_addr, @object
	.size	g_app_netif_addr, 8
g_app_netif_addr:
	.zero	8
	.globl	g_app_target_addr
	.align 8
	.type	g_app_target_addr, @object
	.size	g_app_target_addr, 8
g_app_target_addr:
	.zero	8
	.globl	g_app_target_port
	.align 4
	.type	g_app_target_port, @object
	.size	g_app_target_port, 4
g_app_target_port:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Test Data: IP Multicast from TinyAra Node to Linux"
	.align 8
.LC1:
	.string	"\n[MCASTSENDER] start multicast sender"
	.align 8
.LC2:
	.string	"[MCASTSENDER] [ERR] opening datagram socket"
	.align 8
.LC3:
	.string	"\n[MCASTSENDER] created socket successfully"
	.align 8
.LC4:
	.string	"\n[MCASTSENDER] [ERR] Failed setting IP_MULTICAST_LOOP:"
	.align 8
.LC5:
	.string	"\n[MCASTSENDER] setsockopt MULTICAST_LOOP success"
	.align 8
.LC6:
	.string	"\n[MCASTSENDER] [ERR] Failed setting local interface"
	.align 8
.LC7:
	.string	"\n[MCASTSENDER] setsockopt IP_MULTICAST_IF success"
.LC8:
	.string	"\n[MCASTSENDER] datalen = %d \n"
	.align 8
.LC9:
	.string	"\n[MCASTSENDER] sending mcast message (%s) length (%d) number (%d)\n"
	.align 8
.LC10:
	.string	"\n[MCASTSENDER] [ERR] sending datagram message"
	.align 8
.LC11:
	.string	"\n[MCASTSENDER] Terminate multicast sender after sending sufficient messages (%d)\n"
	.text
	.globl	ipmcast_sender_thread
	.type	ipmcast_sender_thread, @function
ipmcast_sender_thread:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -52[rbp], 16
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	BYTE PTR -65[rbp], 0
	lea	rdx, -65[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 34
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR g_app_target_addr[rip]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR g_app_netif_addr[rip]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -64[rbp], eax
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 32
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -60[rbp], 1
	jmp	.L6
.L8:
	mov	ecx, DWORD PTR -60[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	edi, DWORD PTR -52[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L7
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -60[rbp], 1
.L6:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jle	.L8
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	jmp	.L12
.L4:
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ipmcast_sender_thread, .-ipmcast_sender_thread
	.section	.rodata
	.align 8
.LC12:
	.string	"\n[MCASTSERV] start multicast receiver"
	.align 8
.LC13:
	.string	"\n[MCASTSERV] ERR : opening datagram socket"
	.align 8
.LC14:
	.string	"\n[MCASTSERV] create socket success"
	.align 8
.LC15:
	.string	"\n[MCASTSERV] ERR: setting SO_REUSEADDR"
	.align 8
.LC16:
	.string	"\n[MCASTSERV] set reusable success"
	.align 8
.LC17:
	.string	"\n[MCASTSERV] ERR: binding datagram socket"
	.align 8
.LC18:
	.string	"\n[MCASTSERV] bind socket success"
	.align 8
.LC19:
	.string	"\n[MCASTSERV] ERR: adding multicast group"
	.align 8
.LC20:
	.string	"\n[MCASTSERV] join multicast success sucess success success success success success success"
	.align 8
.LC21:
	.string	"\n[MCASTSERV] ERR: reading datagram message"
	.align 8
.LC22:
	.string	"\n[MCASTSERV] - Received Msg # %d] read (%s) (%d) bytes, Terminating mcast serv as received sufficient packets for testing\n"
	.align 8
.LC23:
	.string	"\n[MCASTSERV] - Received Msg # %d] read (%s) (%d) bytes\n"
	.text
	.globl	ipmcast_receiver_thread
	.type	ipmcast_receiver_thread, @function
ipmcast_receiver_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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -308[rbp], 0
	mov	DWORD PTR -312[rbp], 0
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -304[rbp], eax
	cmp	DWORD PTR -304[rbp], 0
	jns	.L14
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -316[rbp], 1
	lea	rdx, -316[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L15
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rax, -288[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -288[rbp], 2
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	mov	DWORD PTR -284[rbp], 0
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L17
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L16
.L17:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	rax, QWORD PTR g_app_target_addr[rip]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -296[rbp], eax
	mov	rax, QWORD PTR g_app_netif_addr[rip]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -292[rbp], eax
	lea	rdx, -296[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L18
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L16
.L18:
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L23:
	mov	DWORD PTR -300[rbp], 256
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -304[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L19
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L23
.L19:
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], 0
	add	DWORD PTR -312[rbp], 1
	mov	eax, DWORD PTR -312[rbp]
	cmp	eax, DWORD PTR -324[rbp]
	jle	.L21
	mov	ecx, DWORD PTR -308[rbp]
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	jmp	.L27
.L21:
	mov	ecx, DWORD PTR -308[rbp]
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L16:
	mov	eax, DWORD PTR -304[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ipmcast_receiver_thread, .-ipmcast_receiver_thread
	.section	.rodata
.LC24:
	.string	"%s"
.LC25:
	.string	"%d"
.LC26:
	.string	"_V6"
.LC27:
	.string	"_V4"
	.align 8
.LC28:
	.string	"[UDPCLI%s] getaddrinfo err: %d\n"
	.align 8
.LC29:
	.string	"[UDPCLI%s] addr: %s port:%s family: %d type: %d protocol: %d\n"
	.align 8
.LC30:
	.string	"[UDPCLI%s] fail to open socket\n"
.LC31:
	.string	"[UDPCLI%s] addr: %s port: %d\n"
.LC32:
	.string	"hello, UDP%s"
.LC33:
	.string	"[UDPCLI%s] write err: %d\n"
.LC34:
	.string	"[UDPCLI%s] sendto err: %d\n"
.LC35:
	.string	"read"
.LC36:
	.string	"recvfrom"
.LC37:
	.string	"[UDPCLI%s] %s err: %d\n"
	.align 8
.LC38:
	.string	"[UDPCLI%s infinite test #%d] msg(%s) len(%d)\n"
	.align 8
.LC39:
	.string	"[UDPCLI%s test #%d] msg(%s) len(%d)\n"
.LC40:
	.string	"[UDPCLI%s test done #%d]\n"
	.text
	.globl	udp_client_thread
	.type	udp_client_thread, @function
udp_client_thread:
.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, 640
	mov	DWORD PTR -628[rbp], edi
	mov	DWORD PTR -632[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -616[rbp], 1
	mov	DWORD PTR -612[rbp], 0
	cmp	DWORD PTR -632[rbp], 1
	jne	.L29
	lea	rax, -272[rbp]
	mov	edx, 50
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR g_app_target_addr[rip]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC24[rip]
	mov	esi, 50
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -528[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR g_app_target_port[rip]
	lea	rax, -528[rbp]
	mov	ecx, edx
	lea	rdx, .LC25[rip]
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -592[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -588[rbp], 10
	mov	DWORD PTR -584[rbp], 2
	lea	rax, -592[rbp]
	lea	rdx, 24[rax]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	lea	rcx, -608[rbp]
	lea	rdx, -592[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L30
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -632[rbp], 0
	je	.L31
	lea	rax, .LC26[rip]
	jmp	.L32
.L31:
	lea	rax, .LC27[rip]
.L32:
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -608[rbp]
	mov	QWORD PTR -600[rbp], rax
	jmp	.L33
.L40:
	lea	rax, -272[rbp]
	mov	edx, 50
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -272[rbp]
	mov	ecx, 50
	mov	rsi, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	r8d, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	edi, DWORD PTR 4[rax]
	cmp	DWORD PTR -632[rbp], 0
	je	.L34
	lea	rax, .LC26[rip]
	jmp	.L35
.L34:
	lea	rax, .LC27[rip]
.L35:
	lea	rcx, -528[rbp]
	lea	rdx, -272[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -620[rbp], eax
	cmp	DWORD PTR -620[rbp], 0
	js	.L74
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -620[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L75
	mov	eax, DWORD PTR -620[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L37
.L74:
	nop
.L37:
	mov	rax, QWORD PTR -600[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -600[rbp], rax
.L33:
	cmp	QWORD PTR -600[rbp], 0
	jne	.L40
	jmp	.L39
.L75:
	nop
.L39:
	cmp	QWORD PTR -600[rbp], 0
	jne	.L41
	cmp	DWORD PTR -632[rbp], 0
	je	.L42
	lea	rax, .LC26[rip]
	jmp	.L43
.L42:
	lea	rax, .LC27[rip]
.L43:
	mov	rsi, rax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -608[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	mov	rax, QWORD PTR -608[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	jmp	.L44
.L29:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -620[rbp], eax
	mov	WORD PTR -544[rbp], 2
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -542[rbp], ax
	mov	rax, QWORD PTR g_app_target_addr[rip]
	lea	rdx, -544[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	DWORD PTR -592[rbp], 16
	lea	rax, -272[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 40
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -542[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	ecx, ax
	cmp	DWORD PTR -632[rbp], 0
	je	.L45
	lea	rax, .LC26[rip]
	jmp	.L46
.L45:
	lea	rax, .LC27[rip]
.L46:
	lea	rdx, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	lea	rax, -528[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -632[rbp], 0
	je	.L47
	lea	rax, .LC26[rip]
	jmp	.L48
.L47:
	lea	rax, .LC27[rip]
.L48:
	lea	rdi, -528[rbp]
	mov	rcx, rax
	lea	rdx, .LC32[rip]
	mov	esi, 14
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L71:
	cmp	DWORD PTR -632[rbp], 1
	jne	.L49
	lea	rcx, -528[rbp]
	mov	eax, DWORD PTR -620[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -612[rbp], eax
	cmp	DWORD PTR -612[rbp], 0
	jg	.L50
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -632[rbp], 0
	je	.L51
	lea	rax, .LC26[rip]
	jmp	.L52
.L51:
	lea	rax, .LC27[rip]
.L52:
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L50:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -620[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -612[rbp], eax
	jmp	.L54
.L49:
	mov	ecx, DWORD PTR -592[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -620[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -612[rbp], eax
	cmp	DWORD PTR -612[rbp], 0
	jg	.L55
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -632[rbp], 0
	je	.L56
	lea	rax, .LC26[rip]
	jmp	.L57
.L56:
	lea	rax, .LC27[rip]
.L57:
	mov	rsi, rax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L55:
	lea	rcx, -592[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -620[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -612[rbp], eax
.L54:
	cmp	DWORD PTR -612[rbp], 0
	jg	.L58
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	cmp	DWORD PTR -632[rbp], 0
	je	.L59
	lea	rdx, .LC35[rip]
	jmp	.L60
.L59:
	lea	rdx, .LC36[rip]
.L60:
	cmp	DWORD PTR -632[rbp], 0
	je	.L61
	lea	rax, .LC26[rip]
	jmp	.L62
.L61:
	lea	rax, .LC27[rip]
.L62:
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L58:
	cmp	DWORD PTR -628[rbp], 0
	jne	.L63
	mov	edx, DWORD PTR -616[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L64
	cmp	DWORD PTR -632[rbp], 0
	je	.L65
	lea	rax, .LC26[rip]
	jmp	.L66
.L65:
	lea	rax, .LC27[rip]
.L66:
	mov	esi, DWORD PTR -612[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -616[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L64
.L63:
	cmp	DWORD PTR -632[rbp], 0
	je	.L67
	lea	rax, .LC26[rip]
	jmp	.L68
.L67:
	lea	rax, .LC27[rip]
.L68:
	mov	esi, DWORD PTR -612[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -616[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -616[rbp]
	cmp	eax, DWORD PTR -628[rbp]
	jl	.L64
	cmp	DWORD PTR -632[rbp], 0
	je	.L69
	lea	rax, .LC26[rip]
	jmp	.L70
.L69:
	lea	rax, .LC27[rip]
.L70:
	mov	edx, DWORD PTR -616[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L53
.L64:
	add	DWORD PTR -616[rbp], 1
	jmp	.L71
.L53:
	mov	eax, DWORD PTR -620[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	udp_client_thread, .-udp_client_thread
	.section	.rodata
.LC41:
	.string	"[UDPSERV%s] socket err: %d\n"
.LC42:
	.string	"[UDPSERV%s] bind err: %d\n"
	.align 8
.LC43:
	.string	"[UDPSERV%s] waiting on port %d\n"
.LC44:
	.string	"[UDPSERV%s] select err: %d\n"
.LC45:
	.string	"[UDPSERV%s] sendto err: %d\n"
	.align 8
.LC46:
	.string	"[UDPSERV%s infinite test #%d] echoback msg(%s) len(%d)\n"
	.align 8
.LC47:
	.string	"[UDPSERV%s test #%d] echoback msg(%s) len(%d)\n"
.LC48:
	.string	"[UDPSERV%s test done #%d]\n"
.LC49:
	.string	"[UDPSERV%s] recvfrom err: %d\n"
	.text
	.globl	udp_server_thread
	.type	udp_server_thread, @function
udp_server_thread:
.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, 816
	mov	DWORD PTR -804[rbp], edi
	mov	DWORD PTR -808[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -784[rbp], 0
	mov	DWORD PTR -780[rbp], 1
	mov	DWORD PTR -776[rbp], 0
	cmp	DWORD PTR -808[rbp], 1
	jne	.L77
	mov	edx, 0
	mov	esi, 2
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -792[rbp], eax
	cmp	DWORD PTR -792[rbp], 0
	jns	.L78
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L79
	lea	rax, .LC26[rip]
	jmp	.L80
.L79:
	lea	rax, .LC27[rip]
.L80:
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L78:
	mov	DWORD PTR -796[rbp], 28
	mov	eax, DWORD PTR -796[rbp]
	mov	edx, eax
	lea	rax, -720[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -720[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -712[rbp], rax
	mov	QWORD PTR -704[rbp], rdx
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -718[rbp], ax
	mov	edx, DWORD PTR -796[rbp]
	lea	rcx, -720[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -784[rbp], eax
	jmp	.L81
.L77:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -792[rbp], eax
	cmp	DWORD PTR -792[rbp], 0
	jns	.L82
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L83
	lea	rax, .LC26[rip]
	jmp	.L84
.L83:
	lea	rax, .LC27[rip]
.L84:
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L82:
	mov	DWORD PTR -796[rbp], 16
	mov	eax, DWORD PTR -796[rbp]
	mov	edx, eax
	lea	rax, -752[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -752[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -748[rbp], eax
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -750[rbp], ax
	mov	edx, DWORD PTR -796[rbp]
	lea	rcx, -752[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -784[rbp], eax
.L81:
	cmp	DWORD PTR -784[rbp], 0
	jns	.L85
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L86
	lea	rax, .LC26[rip]
	jmp	.L87
.L86:
	lea	rax, .LC27[rip]
.L87:
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L88:
	mov	eax, DWORD PTR -792[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	mov	edx, DWORD PTR g_app_target_port[rip]
	cmp	DWORD PTR -808[rbp], 0
	je	.L89
	lea	rax, .LC26[rip]
	jmp	.L90
.L89:
	lea	rax, .LC27[rip]
.L90:
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -656[rbp]
	mov	rdi, rdx
#APP
# 384 "the_stack_data/46712.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -772[rbp], edx
	mov	DWORD PTR -768[rbp], eax
	mov	eax, DWORD PTR -792[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -656[rbp+rax*8]
	mov	eax, DWORD PTR -792[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -656[rbp+rax*8], rdx
	mov	eax, DWORD PTR -792[rbp]
	add	eax, 1
	mov	DWORD PTR -764[rbp], eax
.L119:
	mov	rax, QWORD PTR -656[rbp]
	mov	rdx, QWORD PTR -648[rbp]
	mov	QWORD PTR -528[rbp], rax
	mov	QWORD PTR -520[rbp], rdx
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR -632[rbp]
	mov	QWORD PTR -512[rbp], rax
	mov	QWORD PTR -504[rbp], rdx
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	QWORD PTR -496[rbp], rax
	mov	QWORD PTR -488[rbp], rdx
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	QWORD PTR -480[rbp], rax
	mov	QWORD PTR -472[rbp], rdx
	mov	rax, QWORD PTR -592[rbp]
	mov	rdx, QWORD PTR -584[rbp]
	mov	QWORD PTR -464[rbp], rax
	mov	QWORD PTR -456[rbp], rdx
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, QWORD PTR -568[rbp]
	mov	QWORD PTR -448[rbp], rax
	mov	QWORD PTR -440[rbp], rdx
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -432[rbp], rax
	mov	QWORD PTR -424[rbp], rdx
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -416[rbp], rax
	mov	QWORD PTR -408[rbp], rdx
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -400[rbp]
	mov	rdi, rdx
#APP
# 390 "the_stack_data/46712.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -760[rbp], edx
	mov	DWORD PTR -756[rbp], eax
	cmp	DWORD PTR -776[rbp], 0
	je	.L91
	mov	rax, QWORD PTR -656[rbp]
	mov	rdx, QWORD PTR -648[rbp]
	mov	QWORD PTR -400[rbp], rax
	mov	QWORD PTR -392[rbp], rdx
	mov	rax, QWORD PTR -640[rbp]
	mov	rdx, QWORD PTR -632[rbp]
	mov	QWORD PTR -384[rbp], rax
	mov	QWORD PTR -376[rbp], rdx
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR -616[rbp]
	mov	QWORD PTR -368[rbp], rax
	mov	QWORD PTR -360[rbp], rdx
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR -600[rbp]
	mov	QWORD PTR -352[rbp], rax
	mov	QWORD PTR -344[rbp], rdx
	mov	rax, QWORD PTR -592[rbp]
	mov	rdx, QWORD PTR -584[rbp]
	mov	QWORD PTR -336[rbp], rax
	mov	QWORD PTR -328[rbp], rdx
	mov	rax, QWORD PTR -576[rbp]
	mov	rdx, QWORD PTR -568[rbp]
	mov	QWORD PTR -320[rbp], rax
	mov	QWORD PTR -312[rbp], rdx
	mov	rax, QWORD PTR -560[rbp]
	mov	rdx, QWORD PTR -552[rbp]
	mov	QWORD PTR -304[rbp], rax
	mov	QWORD PTR -296[rbp], rdx
	mov	rax, QWORD PTR -544[rbp]
	mov	rdx, QWORD PTR -536[rbp]
	mov	QWORD PTR -288[rbp], rax
	mov	QWORD PTR -280[rbp], rdx
.L91:
	lea	rdx, -400[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -764[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -784[rbp], eax
	cmp	DWORD PTR -784[rbp], 0
	jns	.L92
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L93
	lea	rax, .LC26[rip]
	jmp	.L94
.L93:
	lea	rax, .LC27[rip]
.L94:
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L95
.L92:
	cmp	DWORD PTR -784[rbp], 0
	jle	.L96
	mov	eax, DWORD PTR -792[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -400[rbp+rax*8]
	mov	eax, DWORD PTR -792[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L97
	cmp	DWORD PTR -808[rbp], 1
	jne	.L98
	mov	ecx, DWORD PTR -796[rbp]
	lea	rdx, -688[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
	jmp	.L99
.L98:
	mov	ecx, DWORD PTR -796[rbp]
	lea	rdx, -736[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -788[rbp], eax
.L99:
	cmp	DWORD PTR -788[rbp], 0
	jg	.L100
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L101
	lea	rax, .LC26[rip]
	jmp	.L102
.L101:
	lea	rax, .LC27[rip]
.L102:
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L95
.L100:
	sub	DWORD PTR -776[rbp], 1
	cmp	DWORD PTR -804[rbp], 0
	jne	.L103
	mov	edx, DWORD PTR -780[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L104
	cmp	DWORD PTR -808[rbp], 0
	je	.L105
	lea	rax, .LC26[rip]
	jmp	.L106
.L105:
	lea	rax, .LC27[rip]
.L106:
	mov	esi, DWORD PTR -788[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -780[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L104
.L103:
	cmp	DWORD PTR -808[rbp], 0
	je	.L107
	lea	rax, .LC26[rip]
	jmp	.L108
.L107:
	lea	rax, .LC27[rip]
.L108:
	mov	esi, DWORD PTR -788[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -780[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -780[rbp]
	cmp	eax, DWORD PTR -804[rbp]
	jl	.L104
	cmp	DWORD PTR -808[rbp], 0
	je	.L109
	lea	rax, .LC26[rip]
	jmp	.L110
.L109:
	lea	rax, .LC27[rip]
.L110:
	mov	edx, DWORD PTR -780[rbp]
	mov	rsi, rax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L95
.L104:
	add	DWORD PTR -780[rbp], 1
.L97:
	mov	eax, DWORD PTR -792[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -528[rbp+rax*8]
	mov	eax, DWORD PTR -792[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L119
	cmp	DWORD PTR -808[rbp], 1
	jne	.L112
	lea	rcx, -796[rbp]
	lea	rdx, -688[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -788[rbp], eax
	jmp	.L113
.L112:
	lea	rcx, -796[rbp]
	lea	rdx, -736[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -792[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -788[rbp], eax
.L113:
	cmp	DWORD PTR -788[rbp], 0
	jg	.L114
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L115
	lea	rax, .LC26[rip]
	jmp	.L116
.L115:
	lea	rax, .LC27[rip]
.L116:
	mov	rsi, rax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L95
.L114:
	add	DWORD PTR -776[rbp], 1
	jmp	.L119
.L96:
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -808[rbp], 0
	je	.L117
	lea	rax, .LC26[rip]
	jmp	.L118
.L117:
	lea	rax, .LC27[rip]
.L118:
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
.L95:
	mov	eax, DWORD PTR -792[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	udp_server_thread, .-udp_server_thread
	.section	.rodata
	.align 8
.LC50:
	.string	"[TCPCLI%s] getaddrinfo err: %d\n"
	.align 8
.LC51:
	.string	"[TCPCLI%s] addr: %s port:%s family: %d type: %d protocol: %d\n"
.LC52:
	.string	"[TCPCLI%s] connection fail\n"
.LC53:
	.string	"[TCPCLI%s] addr: %s port: %d\n"
.LC54:
	.string	"[TCPCLI%s] connect err: %d\n"
.LC55:
	.string	"hello, TCP%s"
.LC56:
	.string	"[TCPCLI%s] send err: %d\n"
.LC57:
	.string	"[TCPCLI%s] recv err: %d\n"
	.align 8
.LC58:
	.string	"[TCPCLI%s infinite test #%d] msg(%s) len(%d)\n"
	.align 8
.LC59:
	.string	"[TCPCLI%s test #%d] msg(%s) len(%d)\n"
.LC60:
	.string	"[TCPCLI%s test done #%d]\n"
	.text
	.globl	tcp_client_thread
	.type	tcp_client_thread, @function
tcp_client_thread:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 656
	mov	DWORD PTR -644[rbp], edi
	mov	DWORD PTR -648[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -620[rbp], 1
	mov	DWORD PTR -616[rbp], 0
	cmp	DWORD PTR -648[rbp], 1
	jne	.L124
	lea	rax, -272[rbp]
	mov	edx, 50
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR g_app_target_addr[rip]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC24[rip]
	mov	esi, 50
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -528[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR g_app_target_port[rip]
	lea	rax, -528[rbp]
	mov	ecx, edx
	lea	rdx, .LC25[rip]
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -592[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -588[rbp], 10
	mov	DWORD PTR -584[rbp], 1
	lea	rax, -592[rbp]
	lea	rdx, 24[rax]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	lea	rcx, -608[rbp]
	lea	rdx, -592[rbp]
	lea	rsi, -528[rbp]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -628[rbp], eax
	cmp	DWORD PTR -628[rbp], 0
	je	.L125
	cmp	DWORD PTR -648[rbp], 0
	je	.L126
	lea	rax, .LC26[rip]
	jmp	.L127
.L126:
	lea	rax, .LC27[rip]
.L127:
	mov	edx, DWORD PTR -628[rbp]
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L125:
	mov	rax, QWORD PTR -608[rbp]
	mov	QWORD PTR -600[rbp], rax
	jmp	.L128
.L135:
	lea	rax, -272[rbp]
	mov	edx, 50
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -272[rbp]
	mov	ecx, 50
	mov	rsi, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -600[rbp]
	mov	esi, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	r8d, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	edi, DWORD PTR 4[rax]
	cmp	DWORD PTR -648[rbp], 0
	je	.L129
	lea	rax, .LC26[rip]
	jmp	.L130
.L129:
	lea	rax, .LC27[rip]
.L130:
	lea	rcx, -528[rbp]
	lea	rdx, -272[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	rsi, rax
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -624[rbp], eax
	cmp	DWORD PTR -624[rbp], 0
	js	.L165
	mov	rax, QWORD PTR -600[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -600[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -624[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L166
	mov	eax, DWORD PTR -624[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L132
.L165:
	nop
.L132:
	mov	rax, QWORD PTR -600[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -600[rbp], rax
.L128:
	cmp	QWORD PTR -600[rbp], 0
	jne	.L135
	jmp	.L134
.L166:
	nop
.L134:
	cmp	QWORD PTR -600[rbp], 0
	jne	.L136
	cmp	DWORD PTR -648[rbp], 0
	je	.L137
	lea	rax, .LC26[rip]
	jmp	.L138
.L137:
	lea	rax, .LC27[rip]
.L138:
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -608[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	mov	edi, 1
	call	exit@PLT
.L136:
	mov	rax, QWORD PTR -608[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	jmp	.L139
.L124:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -624[rbp], eax
	mov	WORD PTR -544[rbp], 2
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -542[rbp], ax
	mov	rax, QWORD PTR g_app_target_addr[rip]
	lea	rdx, -544[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	DWORD PTR -612[rbp], 16
	lea	rax, -272[rbp]
	lea	rdx, -544[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 40
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -542[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	ecx, ax
	cmp	DWORD PTR -648[rbp], 0
	je	.L140
	lea	rax, .LC26[rip]
	jmp	.L141
.L140:
	lea	rax, .LC27[rip]
.L141:
	lea	rdx, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -612[rbp]
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -624[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -628[rbp], eax
.L139:
	cmp	DWORD PTR -628[rbp], 0
	jns	.L142
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -648[rbp], 0
	je	.L143
	lea	rax, .LC26[rip]
	jmp	.L144
.L143:
	lea	rax, .LC27[rip]
.L144:
	mov	rsi, rax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -624[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L142:
	lea	rax, -528[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -648[rbp], 0
	je	.L145
	lea	rax, .LC26[rip]
	jmp	.L146
.L145:
	lea	rax, .LC27[rip]
.L146:
	lea	rdi, -528[rbp]
	mov	rcx, rax
	lea	rdx, .LC55[rip]
	mov	esi, 14
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L162:
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -624[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -616[rbp], eax
	cmp	DWORD PTR -616[rbp], 0
	jg	.L147
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -648[rbp], 0
	je	.L148
	lea	rax, .LC26[rip]
	jmp	.L149
.L148:
	lea	rax, .LC27[rip]
.L149:
	mov	rsi, rax
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L150
.L147:
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -624[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -616[rbp], eax
	cmp	DWORD PTR -616[rbp], 0
	jg	.L151
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -648[rbp], 0
	je	.L152
	lea	rax, .LC26[rip]
	jmp	.L153
.L152:
	lea	rax, .LC27[rip]
.L153:
	mov	rsi, rax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L150
.L151:
	cmp	DWORD PTR -644[rbp], 0
	jne	.L154
	mov	edx, DWORD PTR -620[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L155
	cmp	DWORD PTR -648[rbp], 0
	je	.L156
	lea	rax, .LC26[rip]
	jmp	.L157
.L156:
	lea	rax, .LC27[rip]
.L157:
	mov	esi, DWORD PTR -616[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -620[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L155
.L154:
	cmp	DWORD PTR -648[rbp], 0
	je	.L158
	lea	rax, .LC26[rip]
	jmp	.L159
.L158:
	lea	rax, .LC27[rip]
.L159:
	mov	esi, DWORD PTR -616[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -620[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -620[rbp]
	cmp	eax, DWORD PTR -644[rbp]
	jl	.L155
	cmp	DWORD PTR -648[rbp], 0
	je	.L160
	lea	rax, .LC26[rip]
	jmp	.L161
.L160:
	lea	rax, .LC27[rip]
.L161:
	mov	edx, DWORD PTR -620[rbp]
	mov	rsi, rax
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L150
.L155:
	add	DWORD PTR -620[rbp], 1
	jmp	.L162
.L150:
	mov	eax, DWORD PTR -624[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L164
	call	__stack_chk_fail@PLT
.L164:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	tcp_client_thread, .-tcp_client_thread
	.section	.rodata
.LC61:
	.string	"[TCPSERV%s] socket err: %d\n"
	.align 8
.LC62:
	.string	"[TCPSERV%s] setsockopt err: %d\n"
	.align 8
.LC63:
	.string	"[TCPSERV%s] addr6_str: %s, port: %d\n"
	.align 8
.LC64:
	.string	"[TCP_SERV%s] addr_str: %s, port: %d\n"
.LC65:
	.string	"[TCPSERV%s] bind err: %d\n"
.LC66:
	.string	"[TCPSERV%s] listen err: %d\n"
.LC67:
	.string	"[TCPSERV%s] accept err: %d\n"
.LC68:
	.string	"[TCPSERV%s] recv err: %d\n"
.LC69:
	.string	"[TCPSERV%s] send err: %d\n"
	.align 8
.LC70:
	.string	"[TCPSERV%s infinite test #%d] echoback msg(%s) len(%d)\n"
	.align 8
.LC71:
	.string	"[TCPSERV%s test #%d] echoback msg(%s) len(%d)\n"
.LC72:
	.string	"[TCPSERV%s test done #%d]\n"
	.text
	.globl	tcp_server_thread
	.type	tcp_server_thread, @function
tcp_server_thread:
.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, 416
	mov	DWORD PTR -404[rbp], edi
	mov	DWORD PTR -408[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -388[rbp], -1
	mov	DWORD PTR -384[rbp], -1
	mov	DWORD PTR -380[rbp], 0
	mov	DWORD PTR -372[rbp], 0
	mov	DWORD PTR -376[rbp], 1
	cmp	DWORD PTR -408[rbp], 1
	jne	.L168
	mov	edx, 0
	mov	esi, 1
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -388[rbp], eax
	jmp	.L169
.L168:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -388[rbp], eax
.L169:
	cmp	DWORD PTR -388[rbp], 0
	jns	.L170
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L171
	lea	rax, .LC26[rip]
	jmp	.L172
.L171:
	lea	rax, .LC27[rip]
.L172:
	mov	rsi, rax
	lea	rdi, .LC61[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L170:
	mov	DWORD PTR -392[rbp], 1
	lea	rdx, -392[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	jns	.L173
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L174
	lea	rax, .LC26[rip]
	jmp	.L175
.L174:
	lea	rax, .LC27[rip]
.L175:
	mov	rsi, rax
	lea	rdi, .LC62[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L176
.L173:
	cmp	DWORD PTR -408[rbp], 1
	jne	.L177
	mov	DWORD PTR -396[rbp], 28
	mov	eax, DWORD PTR -396[rbp]
	mov	edx, eax
	lea	rax, -336[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -336[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -328[rbp], rax
	mov	QWORD PTR -320[rbp], rdx
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -334[rbp], ax
	lea	rax, -272[rbp]
	lea	rdx, -336[rbp]
	lea	rsi, 8[rdx]
	mov	ecx, 40
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -334[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	ecx, ax
	cmp	DWORD PTR -408[rbp], 0
	je	.L178
	lea	rax, .LC26[rip]
	jmp	.L179
.L178:
	lea	rax, .LC27[rip]
.L179:
	lea	rdx, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -396[rbp]
	lea	rcx, -336[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -380[rbp], eax
	jmp	.L180
.L177:
	mov	DWORD PTR -396[rbp], 16
	mov	eax, DWORD PTR -396[rbp]
	mov	edx, eax
	lea	rax, -368[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -368[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR g_app_target_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -366[rbp], ax
	lea	rax, -272[rbp]
	lea	rdx, -368[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 40
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -366[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	ecx, ax
	cmp	DWORD PTR -408[rbp], 0
	je	.L181
	lea	rax, .LC26[rip]
	jmp	.L182
.L181:
	lea	rax, .LC27[rip]
.L182:
	lea	rdx, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -396[rbp]
	lea	rcx, -368[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -380[rbp], eax
.L180:
	cmp	DWORD PTR -380[rbp], 0
	jns	.L183
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L184
	lea	rax, .LC26[rip]
	jmp	.L185
.L184:
	lea	rax, .LC27[rip]
.L185:
	mov	rsi, rax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L176
.L183:
	mov	eax, DWORD PTR -388[rbp]
	mov	esi, 1024
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -380[rbp], eax
	cmp	DWORD PTR -380[rbp], 0
	jns	.L186
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L187
	lea	rax, .LC26[rip]
	jmp	.L188
.L187:
	lea	rax, .LC27[rip]
.L188:
	mov	rsi, rax
	lea	rdi, .LC66[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L176
.L186:
	cmp	DWORD PTR -408[rbp], 1
	jne	.L189
	lea	rdx, -396[rbp]
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -384[rbp], eax
	jmp	.L190
.L189:
	lea	rdx, -396[rbp]
	lea	rcx, -352[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -384[rbp], eax
.L190:
	cmp	DWORD PTR -384[rbp], 0
	jns	.L191
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L192
	lea	rax, .LC26[rip]
	jmp	.L193
.L192:
	lea	rax, .LC27[rip]
.L193:
	mov	rsi, rax
	lea	rdi, .LC67[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L176
.L191:
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -384[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -372[rbp], eax
	cmp	DWORD PTR -372[rbp], 0
	jg	.L194
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L195
	lea	rax, .LC26[rip]
	jmp	.L196
.L195:
	lea	rax, .LC27[rip]
.L196:
	mov	rsi, rax
	lea	rdi, .LC68[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L197
.L194:
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -384[rbp]
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -372[rbp], eax
	cmp	DWORD PTR -372[rbp], 0
	jg	.L198
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -408[rbp], 0
	je	.L199
	lea	rax, .LC26[rip]
	jmp	.L200
.L199:
	lea	rax, .LC27[rip]
.L200:
	mov	rsi, rax
	lea	rdi, .LC69[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L197
.L198:
	cmp	DWORD PTR -404[rbp], 0
	jne	.L201
	mov	edx, DWORD PTR -376[rbp]
	movsx	rax, edx
	imul	rax, rax, 274877907
	shr	rax, 32
	sar	eax, 6
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 1000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L202
	cmp	DWORD PTR -408[rbp], 0
	je	.L203
	lea	rax, .LC26[rip]
	jmp	.L204
.L203:
	lea	rax, .LC27[rip]
.L204:
	mov	esi, DWORD PTR -372[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -376[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC70[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L202
.L201:
	cmp	DWORD PTR -408[rbp], 0
	je	.L205
	lea	rax, .LC26[rip]
	jmp	.L206
.L205:
	lea	rax, .LC27[rip]
.L206:
	mov	esi, DWORD PTR -372[rbp]
	lea	rcx, -272[rbp]
	mov	edx, DWORD PTR -376[rbp]
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC71[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -376[rbp]
	cmp	eax, DWORD PTR -404[rbp]
	jl	.L202
	cmp	DWORD PTR -408[rbp], 0
	je	.L207
	lea	rax, .LC26[rip]
	jmp	.L208
.L207:
	lea	rax, .LC27[rip]
.L208:
	mov	edx, DWORD PTR -376[rbp]
	mov	rsi, rax
	lea	rdi, .LC72[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L197
.L202:
	add	DWORD PTR -376[rbp], 1
	jmp	.L191
.L197:
	cmp	DWORD PTR -384[rbp], 0
	jle	.L209
	mov	eax, DWORD PTR -384[rbp]
	mov	edi, eax
	call	close@PLT
.L209:
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L212
	jmp	.L213
.L176:
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L213:
	call	__stack_chk_fail@PLT
.L212:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	tcp_server_thread, .-tcp_server_thread
	.section	.rodata
	.align 8
.LC73:
	.string	"\nUsage1: %s proto target_port option1\n"
	.align 8
.LC74:
	.string	"\tUsage1 is for echoback SERVER"
.LC75:
	.string	"Parameter:"
	.align 8
.LC76:
	.string	"\tproto - 0(tcp ipv4 echoback), 1(tcp ipv6 echoback)"
	.align 8
.LC77:
	.string	"\t        2(udp ipv4 echoback), 3(udp ipv6 echoback)"
	.align 8
.LC78:
	.string	"\ttarget_port - port address to bind"
	.align 8
.LC79:
	.string	"\toption1 - number of pakcets to test, default: %d\n"
	.align 8
.LC80:
	.string	"Sample Command(tcp ipv4 echoback server): nettest 0 8888 1000(option1)\n"
	.align 8
.LC81:
	.string	"Usage2: %s proto target_addr target_port option1\n"
	.align 8
.LC82:
	.string	"\tUsage2 is for CLIENT that expects echoing back from the server"
	.align 8
.LC83:
	.string	"\tproto - 10(tcp ipv4 client), 11(tcp ipv6 client)"
	.align 8
.LC84:
	.string	"\t        12(udp ipv4 client), 13(udp ipv6 client)"
	.align 8
.LC85:
	.string	"\ttarget_addr - target IP address to send or connect"
	.align 8
.LC86:
	.string	"\ttarget_port - target port address to send or connect"
	.align 8
.LC87:
	.string	"\toption1 - number of packets to test, default: %d\n\n"
	.align 8
.LC88:
	.string	"Sample Command(udp ipv6 client): nettest 13 fe80::dcc3:3084:cb9b:38ce%%wl1 8888 1000(option1)\n\n"
	.align 8
.LC89:
	.string	"[NETTEST APP] Invalid proto type"
	.align 8
.LC90:
	.string	"\nExiting nettest_main thread, job finished"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	jg	.L215
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC73[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC74[rip]
	call	puts@PLT
	lea	rdi, .LC75[rip]
	call	puts@PLT
	lea	rdi, .LC76[rip]
	call	puts@PLT
	lea	rdi, .LC77[rip]
	call	puts@PLT
	lea	rdi, .LC78[rip]
	call	puts@PLT
	mov	esi, 100
	lea	rdi, .LC79[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC80[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC81[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC82[rip]
	call	puts@PLT
	lea	rdi, .LC75[rip]
	call	puts@PLT
	lea	rdi, .LC83[rip]
	call	puts@PLT
	lea	rdi, .LC84[rip]
	call	puts@PLT
	lea	rdi, .LC85[rip]
	call	puts@PLT
	lea	rdi, .LC86[rip]
	call	puts@PLT
	mov	esi, 100
	lea	rdi, .LC87[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC88[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L216
.L215:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 100
	cmp	DWORD PTR -4[rbp], 0
	js	.L217
	cmp	DWORD PTR -4[rbp], 9
	jg	.L217
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR g_app_target_port[rip], eax
	cmp	DWORD PTR -20[rbp], 3
	jle	.L217
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
.L217:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L218
	cmp	DWORD PTR -4[rbp], 19
	jg	.L218
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR g_app_target_addr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR g_app_target_port[rip], eax
	cmp	DWORD PTR -20[rbp], 4
	jle	.L218
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
.L218:
	cmp	DWORD PTR -4[rbp], 19
	jle	.L219
	cmp	DWORD PTR -4[rbp], 29
	jg	.L219
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR g_app_target_addr[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR g_app_target_port[rip], eax
	cmp	DWORD PTR -20[rbp], 4
	jle	.L220
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
.L220:
	cmp	DWORD PTR -20[rbp], 5
	jle	.L221
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR g_app_netif_addr[rip], rax
	jmp	.L219
.L221:
	mov	QWORD PTR g_app_netif_addr[rip], 0
.L219:
	cmp	DWORD PTR -4[rbp], 21
	ja	.L222
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L224[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L224[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L224:
	.long	.L233-.L224
	.long	.L232-.L224
	.long	.L231-.L224
	.long	.L230-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L229-.L224
	.long	.L228-.L224
	.long	.L227-.L224
	.long	.L226-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L225-.L224
	.long	.L223-.L224
	.text
.L233:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcp_server_thread
	jmp	.L234
.L232:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	tcp_server_thread
	jmp	.L234
.L231:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	udp_server_thread
	jmp	.L234
.L230:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	udp_server_thread
	jmp	.L234
.L229:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcp_client_thread
	jmp	.L234
.L228:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	tcp_client_thread
	jmp	.L234
.L227:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	udp_client_thread
	jmp	.L234
.L226:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	udp_client_thread
	jmp	.L234
.L225:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	ipmcast_sender_thread
	jmp	.L234
.L223:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	ipmcast_receiver_thread
	jmp	.L234
.L222:
	lea	rdi, .LC89[rip]
	call	puts@PLT
	nop
.L234:
	lea	rdi, .LC90[rip]
	call	puts@PLT
	mov	eax, 0
.L216:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"46712.c"
	.text
	.comm	g_app_netif_addr,4,4
	.comm	g_app_target_addr,4,4
	.comm	g_app_target_port,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Test Data: IP Multicast from TinyAra Node to Linux\000"
	.align	2
.LC1:
	.ascii	"\012[MCASTSENDER] start multicast sender\000"
	.align	2
.LC2:
	.ascii	"[MCASTSENDER] [ERR] opening datagram socket\000"
	.align	2
.LC3:
	.ascii	"\012[MCASTSENDER] created socket successfully\000"
	.align	2
.LC4:
	.ascii	"\012[MCASTSENDER] [ERR] Failed setting IP_MULTICAST"
	.ascii	"_LOOP:\000"
	.align	2
.LC5:
	.ascii	"\012[MCASTSENDER] setsockopt MULTICAST_LOOP success"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"\012[MCASTSENDER] [ERR] Failed setting local interf"
	.ascii	"ace\000"
	.align	2
.LC7:
	.ascii	"\012[MCASTSENDER] setsockopt IP_MULTICAST_IF succes"
	.ascii	"s\000"
	.align	2
.LC8:
	.ascii	"\012[MCASTSENDER] datalen = %d \012\000"
	.align	2
.LC9:
	.ascii	"\012[MCASTSENDER] sending mcast message (%s) length"
	.ascii	" (%d) number (%d)\012\000"
	.align	2
.LC10:
	.ascii	"\012[MCASTSENDER] [ERR] sending datagram message\000"
	.align	2
.LC11:
	.ascii	"\012[MCASTSENDER] Terminate multicast sender after "
	.ascii	"sending sufficient messages (%d)\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ipmcast_sender_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipmcast_sender_thread, %function
ipmcast_sender_thread:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, .L13+4
	str	r3, [fp, #-40]
	mov	r3, #16
	str	r3, [fp, #-36]
	ldr	r0, .L13+8
	bl	puts
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L13+12
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L13+16
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-53]
	sub	r3, fp, #53
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #34
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+20
	bl	printf
	b	.L4
.L3:
	ldr	r0, .L13+24
	bl	puts
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L13+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, .L13+32
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, .L13+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-52]
	sub	r3, fp, #52
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #32
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L13+40
	bl	printf
	b	.L4
.L5:
	ldr	r0, .L13+44
	bl	puts
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L13+48
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-48]
	b	.L6
.L8:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, .L13+52
	bl	printf
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	str	r3, [sp, #4]
	sub	r3, fp, #24
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	sendto
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L13+56
	bl	printf
.L7:
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L6:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L8
	ldr	r1, [fp, #-64]
	ldr	r0, .L13+60
	bl	printf
	ldr	r0, [fp, #-32]
	bl	close
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	b	.L12
.L4:
	ldr	r0, [fp, #-32]
	bl	close
	mov	r0, #1
	bl	exit
.L12:
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	g_app_target_addr
	.word	g_app_target_port
	.word	g_app_netif_addr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	ipmcast_sender_thread, .-ipmcast_sender_thread
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012[MCASTSERV] start multicast receiver\000"
	.align	2
.LC14:
	.ascii	"\012[MCASTSERV] ERR : opening datagram socket\000"
	.align	2
.LC15:
	.ascii	"\012[MCASTSERV] create socket success\000"
	.align	2
.LC16:
	.ascii	"\012[MCASTSERV] ERR: setting SO_REUSEADDR\000"
	.align	2
.LC17:
	.ascii	"\012[MCASTSERV] set reusable success\000"
	.align	2
.LC18:
	.ascii	"\012[MCASTSERV] ERR: binding datagram socket\000"
	.align	2
.LC19:
	.ascii	"\012[MCASTSERV] bind socket success\000"
	.align	2
.LC20:
	.ascii	"\012[MCASTSERV] ERR: adding multicast group\000"
	.align	2
.LC21:
	.ascii	"\012[MCASTSERV] join multicast success sucess succe"
	.ascii	"ss success success success success success\000"
	.align	2
.LC22:
	.ascii	"\012[MCASTSERV] ERR: reading datagram message\000"
	.align	2
.LC23:
	.ascii	"\012[MCASTSERV] - Received Msg # %d] read (%s) (%d)"
	.ascii	" bytes, Terminating mcast serv as received sufficie"
	.ascii	"nt packets for testing\012\000"
	.align	2
.LC24:
	.ascii	"\012[MCASTSERV] - Received Msg # %d] read (%s) (%d)"
	.ascii	" bytes\012\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ipmcast_receiver_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipmcast_receiver_thread, %function
ipmcast_receiver_thread:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-312]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-304]
	ldr	r0, .L30+4
	bl	puts
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L30+8
	bl	puts
	mov	r0, #1
	bl	exit
.L16:
	ldr	r0, .L30+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-308]
	sub	r3, fp, #308
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-296]
	bl	setsockopt
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L30+16
	bl	puts
	b	.L18
.L17:
	ldr	r0, .L30+20
	bl	puts
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L30+24
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #276
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-276]
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-296]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L30+28
	bl	puts
	b	.L18
.L19:
	ldr	r0, .L30+32
	bl	puts
	ldr	r3, .L30+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r3, .L30+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-284]
	sub	r3, fp, #288
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #35
	mov	r1, #0
	ldr	r0, [fp, #-296]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L30+44
	bl	puts
	b	.L18
.L20:
	ldr	r0, .L30+48
	bl	puts
.L25:
	mov	r3, #256
	str	r3, [fp, #-292]
	ldr	r2, [fp, #-292]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-296]
	bl	read
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L30+52
	bl	puts
	b	.L25
.L21:
	sub	r2, fp, #264
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-312]
	cmp	r2, r3
	ble	.L23
	sub	r2, fp, #264
	ldr	r3, [fp, #-300]
	ldr	r1, [fp, #-304]
	ldr	r0, .L30+56
	bl	printf
	nop
	ldr	r0, [fp, #-296]
	bl	close
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	b	.L29
.L23:
	sub	r2, fp, #264
	ldr	r3, [fp, #-300]
	ldr	r1, [fp, #-304]
	ldr	r0, .L30+60
	bl	printf
	b	.L25
.L18:
	ldr	r0, [fp, #-296]
	bl	close
	mov	r0, #1
	bl	exit
.L29:
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC25
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	g_app_target_port
	.word	.LC18
	.word	.LC19
	.word	g_app_target_addr
	.word	g_app_netif_addr
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	ipmcast_receiver_thread, .-ipmcast_receiver_thread
	.section	.rodata
	.align	2
.LC26:
	.ascii	"%s\000"
	.align	2
.LC27:
	.ascii	"%d\000"
	.align	2
.LC28:
	.ascii	"_V6\000"
	.align	2
.LC29:
	.ascii	"_V4\000"
	.align	2
.LC30:
	.ascii	"[UDPCLI%s] getaddrinfo err: %d\012\000"
	.align	2
.LC31:
	.ascii	"[UDPCLI%s] addr: %s port:%s family: %d type: %d pro"
	.ascii	"tocol: %d\012\000"
	.align	2
.LC32:
	.ascii	"[UDPCLI%s] fail to open socket\012\000"
	.align	2
.LC33:
	.ascii	"[UDPCLI%s] addr: %s port: %d\012\000"
	.align	2
.LC34:
	.ascii	"hello, UDP%s\000"
	.align	2
.LC35:
	.ascii	"[UDPCLI%s] write err: %d\012\000"
	.align	2
.LC36:
	.ascii	"[UDPCLI%s] sendto err: %d\012\000"
	.align	2
.LC37:
	.ascii	"read\000"
	.align	2
.LC38:
	.ascii	"recvfrom\000"
	.align	2
.LC39:
	.ascii	"[UDPCLI%s] %s err: %d\012\000"
	.align	2
.LC40:
	.ascii	"[UDPCLI%s infinite test #%d] msg(%s) len(%d)\012\000"
	.align	2
.LC41:
	.ascii	"[UDPCLI%s test #%d] msg(%s) len(%d)\012\000"
	.align	2
.LC42:
	.ascii	"[UDPCLI%s test done #%d]\012\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	udp_client_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	udp_client_thread, %function
udp_client_thread:
	@ args = 0, pretend = 0, frame = 592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #608
	str	r0, [fp, #-600]
	str	r1, [fp, #-604]
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-588]
	mov	r3, #0
	str	r3, [fp, #-584]
	ldr	r3, [fp, #-604]
	cmp	r3, #1
	bne	.L33
	sub	r3, fp, #272
	mov	r2, #50
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L80+4
	ldr	r3, [r3]
	sub	r0, fp, #272
	ldr	r2, .L80+8
	mov	r1, #50
	bl	snprintf
	sub	r3, fp, #528
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L80+12
	ldr	r3, [r3]
	sub	r0, fp, #528
	ldr	r2, .L80+16
	mov	r1, #10
	bl	snprintf
	sub	r3, fp, #576
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #10
	str	r3, [fp, #-572]
	mov	r3, #2
	str	r3, [fp, #-568]
	sub	r3, fp, #576
	add	r2, r3, #20
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, #10
	bl	inet_pton
	sub	r3, fp, #596
	sub	r2, fp, #576
	sub	r1, fp, #528
	sub	r0, fp, #272
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L35
	ldr	r4, .L80+20
	b	.L36
.L35:
	ldr	r4, .L80+24
.L36:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L80+28
	bl	printf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-596]
	str	r3, [fp, #-580]
	b	.L37
.L44:
	sub	r3, fp, #272
	mov	r2, #50
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-580]
	ldr	r1, [r3, #20]
	sub	r2, fp, #272
	mov	r3, #50
	mov	r0, #10
	bl	inet_ntop
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L38
	ldr	r0, .L80+20
	b	.L39
.L38:
	ldr	r0, .L80+24
.L39:
	ldr	r3, [fp, #-580]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-580]
	ldr	r2, [r2, #8]
	ldr	r1, [fp, #-580]
	ldr	r1, [r1, #12]
	sub	lr, fp, #528
	sub	ip, fp, #272
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L80+32
	bl	printf
	ldr	r3, [fp, #-580]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-580]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-580]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-592]
	ldr	r3, [fp, #-592]
	cmp	r3, #0
	blt	.L78
	ldr	r3, [fp, #-580]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-580]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-592]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r0, [fp, #-592]
	bl	close
	b	.L41
.L78:
	nop
.L41:
	ldr	r3, [fp, #-580]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-580]
.L37:
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	bne	.L44
	b	.L43
.L79:
	nop
.L43:
	ldr	r3, [fp, #-580]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L80+20
	b	.L47
.L46:
	ldr	r3, .L80+24
.L47:
	mov	r1, r3
	ldr	r0, .L80+36
	bl	printf
	ldr	r3, [fp, #-596]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #1
	bl	exit
.L45:
	ldr	r3, [fp, #-596]
	mov	r0, r3
	bl	freeaddrinfo
	b	.L48
.L33:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-592]
	sub	r3, fp, #12
	sub	r3, r3, #532
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L80+12
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #532
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L80+4
	ldr	r1, [r3]
	sub	r3, fp, #544
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, #16
	str	r3, [fp, #-576]
	sub	r2, fp, #272
	sub	r3, fp, #544
	add	r1, r3, #4
	mov	r3, #40
	mov	r0, #2
	bl	inet_ntop
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L49
	ldr	r4, .L80+20
	b	.L50
.L49:
	ldr	r4, .L80+24
.L50:
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	sub	r2, fp, #272
	mov	r1, r4
	ldr	r0, .L80+40
	bl	printf
.L48:
	sub	r3, fp, #528
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L80+20
	b	.L52
.L51:
	ldr	r3, .L80+24
.L52:
	sub	r0, fp, #528
	ldr	r2, .L80+44
	mov	r1, #14
	bl	snprintf
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L75:
	ldr	r3, [fp, #-604]
	cmp	r3, #1
	bne	.L53
	sub	r3, fp, #528
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-592]
	bl	write
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bgt	.L54
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L55
	ldr	r4, .L80+20
	b	.L56
.L55:
	ldr	r4, .L80+24
.L56:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L80+48
	bl	printf
	b	.L57
.L54:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-592]
	bl	read
	str	r0, [fp, #-584]
	b	.L58
.L53:
	ldr	r3, [fp, #-576]
	sub	r1, fp, #528
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-592]
	bl	sendto
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bgt	.L59
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L60
	ldr	r4, .L80+20
	b	.L61
.L60:
	ldr	r4, .L80+24
.L61:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L80+52
	bl	printf
	b	.L57
.L59:
	sub	r1, fp, #272
	sub	r3, fp, #576
	str	r3, [sp, #4]
	sub	r3, fp, #544
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-592]
	bl	recvfrom
	str	r0, [fp, #-584]
.L58:
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bgt	.L62
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L63
	ldr	r4, .L80+20
	b	.L64
.L63:
	ldr	r4, .L80+24
.L64:
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L65
	ldr	r5, .L80+56
	b	.L66
.L65:
	ldr	r5, .L80+60
.L66:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L80+64
	bl	printf
	b	.L57
.L62:
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	bne	.L67
	ldr	r1, [fp, #-588]
	ldr	r3, .L80+68
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L68
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L69
	ldr	r1, .L80+20
	b	.L70
.L69:
	ldr	r1, .L80+24
.L70:
	sub	r2, fp, #272
	ldr	r3, [fp, #-584]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-588]
	ldr	r0, .L80+72
	bl	printf
	b	.L68
.L67:
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L71
	ldr	r1, .L80+20
	b	.L72
.L71:
	ldr	r1, .L80+24
.L72:
	sub	r2, fp, #272
	ldr	r3, [fp, #-584]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-588]
	ldr	r0, .L80+76
	bl	printf
	ldr	r2, [fp, #-588]
	ldr	r3, [fp, #-600]
	cmp	r2, r3
	blt	.L68
	ldr	r3, [fp, #-604]
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L80+20
	b	.L74
.L73:
	ldr	r3, .L80+24
.L74:
	ldr	r2, [fp, #-588]
	mov	r1, r3
	ldr	r0, .L80+80
	bl	printf
	b	.L57
.L68:
	ldr	r3, [fp, #-588]
	add	r3, r3, #1
	str	r3, [fp, #-588]
	b	.L75
.L57:
	ldr	r0, [fp, #-592]
	bl	close
	nop
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC43
	.word	g_app_target_addr
	.word	.LC26
	.word	g_app_target_port
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	274877907
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	udp_client_thread, .-udp_client_thread
	.section	.rodata
	.align	2
.LC44:
	.ascii	"[UDPSERV%s] socket err: %d\012\000"
	.align	2
.LC45:
	.ascii	"[UDPSERV%s] bind err: %d\012\000"
	.align	2
.LC46:
	.ascii	"[UDPSERV%s] waiting on port %d\012\000"
	.align	2
.LC47:
	.ascii	"[UDPSERV%s] select err: %d\012\000"
	.align	2
.LC48:
	.ascii	"[UDPSERV%s] sendto err: %d\012\000"
	.align	2
.LC49:
	.ascii	"[UDPSERV%s infinite test #%d] echoback msg(%s) len("
	.ascii	"%d)\012\000"
	.align	2
.LC50:
	.ascii	"[UDPSERV%s test #%d] echoback msg(%s) len(%d)\012\000"
	.align	2
.LC51:
	.ascii	"[UDPSERV%s test done #%d]\012\000"
	.align	2
.LC52:
	.ascii	"[UDPSERV%s] recvfrom err: %d\012\000"
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	udp_server_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	udp_server_thread, %function
udp_server_thread:
	@ args = 0, pretend = 0, frame = 784
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #796
	str	r0, [fp, #-792]
	str	r1, [fp, #-796]
	ldr	r3, .L133
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-776]
	mov	r3, #1
	str	r3, [fp, #-772]
	mov	r3, #0
	str	r3, [fp, #-768]
	ldr	r3, [fp, #-796]
	cmp	r3, #1
	bne	.L83
	mov	r2, #0
	mov	r1, #2
	mov	r0, #10
	bl	socket
	str	r0, [fp, #-784]
	ldr	r3, [fp, #-784]
	cmp	r3, #0
	bge	.L84
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L85
	ldr	r4, .L133+4
	b	.L86
.L85:
	ldr	r4, .L133+8
.L86:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+12
	bl	printf
	mov	r0, #1
	bl	exit
.L84:
	mov	r3, #28
	str	r3, [fp, #-788]
	ldr	r2, [fp, #-788]
	sub	r3, fp, #712
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #700
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	ldr	r3, .L133+16
	sub	ip, fp, #704
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L133+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #700
	strh	r2, [r3, #2]	@ movhi
	ldr	r2, [fp, #-788]
	sub	r3, fp, #712
	mov	r1, r3
	ldr	r0, [fp, #-784]
	bl	bind
	str	r0, [fp, #-776]
	b	.L87
.L83:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-784]
	ldr	r3, [fp, #-784]
	cmp	r3, #0
	bge	.L88
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L89
	ldr	r4, .L133+4
	b	.L90
.L89:
	ldr	r4, .L133+8
.L90:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+12
	bl	printf
	mov	r0, #1
	bl	exit
.L88:
	mov	r3, #16
	str	r3, [fp, #-788]
	ldr	r2, [fp, #-788]
	sub	r3, fp, #744
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #732
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-740]
	ldr	r3, .L133+20
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #732
	strh	r2, [r3, #2]	@ movhi
	ldr	r2, [fp, #-788]
	sub	r3, fp, #744
	mov	r1, r3
	ldr	r0, [fp, #-784]
	bl	bind
	str	r0, [fp, #-776]
.L87:
	ldr	r3, [fp, #-776]
	cmp	r3, #0
	bge	.L91
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L92
	ldr	r4, .L133+4
	b	.L93
.L92:
	ldr	r4, .L133+8
.L93:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+24
	bl	printf
	nop
.L94:
	ldr	r0, [fp, #-784]
	bl	close
	mov	r0, #1
	bl	exit
.L91:
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L95
	ldr	r3, .L133+4
	b	.L96
.L95:
	ldr	r3, .L133+8
.L96:
	ldr	r2, .L133+20
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L133+28
	bl	printf
	sub	r3, fp, #656
	str	r3, [fp, #-756]
	mov	r3, #0
	str	r3, [fp, #-764]
	b	.L97
.L98:
	ldr	r3, [fp, #-756]
	ldr	r2, [fp, #-764]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-764]
	add	r3, r3, #1
	str	r3, [fp, #-764]
.L97:
	ldr	r3, [fp, #-764]
	cmp	r3, #31
	bls	.L98
	ldr	r3, [fp, #-784]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-644]
	ldr	r3, [fp, #-784]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-644]
	ldr	r3, [fp, #-784]
	add	r3, r3, #1
	str	r3, [fp, #-752]
.L129:
	sub	r3, fp, #528
	sub	r1, fp, #656
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #400
	str	r3, [fp, #-748]
	mov	r3, #0
	str	r3, [fp, #-760]
	b	.L99
.L100:
	ldr	r3, [fp, #-748]
	ldr	r2, [fp, #-760]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-760]
	add	r3, r3, #1
	str	r3, [fp, #-760]
.L99:
	ldr	r3, [fp, #-760]
	cmp	r3, #31
	bls	.L100
	ldr	r3, [fp, #-768]
	cmp	r3, #0
	beq	.L101
	sub	r3, fp, #400
	sub	r1, fp, #656
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
.L101:
	sub	r2, fp, #400
	sub	r1, fp, #528
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-752]
	bl	select
	str	r0, [fp, #-776]
	ldr	r3, [fp, #-776]
	cmp	r3, #0
	bge	.L102
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L103
	ldr	r4, .L133+4
	b	.L104
.L103:
	ldr	r4, .L133+8
.L104:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+32
	bl	printf
	b	.L105
.L102:
	ldr	r3, [fp, #-776]
	cmp	r3, #0
	ble	.L106
	ldr	r3, [fp, #-784]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-388]
	ldr	r3, [fp, #-784]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L107
	ldr	r3, [fp, #-796]
	cmp	r3, #1
	bne	.L108
	ldr	r3, [fp, #-788]
	sub	r1, fp, #272
	str	r3, [sp, #4]
	sub	r3, fp, #684
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-784]
	bl	sendto
	str	r0, [fp, #-780]
	b	.L109
.L108:
	ldr	r3, [fp, #-788]
	sub	r1, fp, #272
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-784]
	bl	sendto
	str	r0, [fp, #-780]
.L109:
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bgt	.L110
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L111
	ldr	r4, .L133+4
	b	.L112
.L111:
	ldr	r4, .L133+8
.L112:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+36
	bl	printf
	b	.L105
.L110:
	ldr	r3, [fp, #-768]
	sub	r3, r3, #1
	str	r3, [fp, #-768]
	ldr	r3, [fp, #-792]
	cmp	r3, #0
	bne	.L113
	ldr	r1, [fp, #-772]
	ldr	r3, .L133+40
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L114
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L115
	ldr	r1, .L133+4
	b	.L116
.L115:
	ldr	r1, .L133+8
.L116:
	sub	r2, fp, #272
	ldr	r3, [fp, #-780]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-772]
	ldr	r0, .L133+44
	bl	printf
	b	.L114
.L113:
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L117
	ldr	r1, .L133+4
	b	.L118
.L117:
	ldr	r1, .L133+8
.L118:
	sub	r2, fp, #272
	ldr	r3, [fp, #-780]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-772]
	ldr	r0, .L133+48
	bl	printf
	ldr	r2, [fp, #-772]
	ldr	r3, [fp, #-792]
	cmp	r2, r3
	blt	.L114
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L119
	ldr	r3, .L133+4
	b	.L120
.L119:
	ldr	r3, .L133+8
.L120:
	ldr	r2, [fp, #-772]
	mov	r1, r3
	ldr	r0, .L133+52
	bl	printf
	b	.L105
.L114:
	ldr	r3, [fp, #-772]
	add	r3, r3, #1
	str	r3, [fp, #-772]
.L107:
	ldr	r3, [fp, #-784]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-516]
	ldr	r3, [fp, #-784]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L129
	ldr	r3, [fp, #-796]
	cmp	r3, #1
	bne	.L122
	sub	r1, fp, #272
	sub	r3, fp, #788
	str	r3, [sp, #4]
	sub	r3, fp, #684
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-784]
	bl	recvfrom
	str	r0, [fp, #-780]
	b	.L123
.L122:
	sub	r1, fp, #272
	sub	r3, fp, #788
	str	r3, [sp, #4]
	sub	r3, fp, #728
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-784]
	bl	recvfrom
	str	r0, [fp, #-780]
.L123:
	ldr	r3, [fp, #-780]
	cmp	r3, #0
	bgt	.L124
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L125
	ldr	r4, .L133+4
	b	.L126
.L125:
	ldr	r4, .L133+8
.L126:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+56
	bl	printf
	b	.L105
.L124:
	ldr	r3, [fp, #-768]
	add	r3, r3, #1
	str	r3, [fp, #-768]
	b	.L129
.L106:
	ldr	r3, [fp, #-796]
	cmp	r3, #0
	beq	.L127
	ldr	r4, .L133+4
	b	.L128
.L127:
	ldr	r4, .L133+8
.L128:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L133+32
	bl	printf
.L105:
	ldr	r0, [fp, #-784]
	bl	close
	nop
	ldr	r3, .L133
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L132
	bl	__stack_chk_fail
.L132:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L134:
	.align	2
.L133:
	.word	.LC53
	.word	.LC28
	.word	.LC29
	.word	.LC44
	.word	in6addr_any
	.word	g_app_target_port
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	274877907
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.size	udp_server_thread, .-udp_server_thread
	.section	.rodata
	.align	2
.LC54:
	.ascii	"[TCPCLI%s] getaddrinfo err: %d\012\000"
	.align	2
.LC55:
	.ascii	"[TCPCLI%s] addr: %s port:%s family: %d type: %d pro"
	.ascii	"tocol: %d\012\000"
	.align	2
.LC56:
	.ascii	"[TCPCLI%s] connection fail\012\000"
	.align	2
.LC57:
	.ascii	"[TCPCLI%s] addr: %s port: %d\012\000"
	.align	2
.LC58:
	.ascii	"[TCPCLI%s] connect err: %d\012\000"
	.align	2
.LC59:
	.ascii	"hello, TCP%s\000"
	.align	2
.LC60:
	.ascii	"[TCPCLI%s] send err: %d\012\000"
	.align	2
.LC61:
	.ascii	"[TCPCLI%s] recv err: %d\012\000"
	.align	2
.LC62:
	.ascii	"[TCPCLI%s infinite test #%d] msg(%s) len(%d)\012\000"
	.align	2
.LC63:
	.ascii	"[TCPCLI%s test #%d] msg(%s) len(%d)\012\000"
	.align	2
.LC64:
	.ascii	"[TCPCLI%s test done #%d]\012\000"
	.align	2
.LC65:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tcp_client_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_client_thread, %function
tcp_client_thread:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #620
	str	r0, [fp, #-608]
	str	r1, [fp, #-612]
	ldr	r3, .L179
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-592]
	mov	r3, #0
	str	r3, [fp, #-584]
	ldr	r3, [fp, #-612]
	cmp	r3, #1
	bne	.L136
	sub	r3, fp, #272
	mov	r2, #50
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L179+4
	ldr	r3, [r3]
	sub	r0, fp, #272
	ldr	r2, .L179+8
	mov	r1, #50
	bl	snprintf
	sub	r3, fp, #528
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L179+12
	ldr	r3, [r3]
	sub	r0, fp, #528
	ldr	r2, .L179+16
	mov	r1, #10
	bl	snprintf
	sub	r3, fp, #576
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #10
	str	r3, [fp, #-572]
	mov	r3, #1
	str	r3, [fp, #-568]
	sub	r3, fp, #576
	add	r2, r3, #20
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, #10
	bl	inet_pton
	sub	r3, fp, #604
	sub	r2, fp, #576
	sub	r1, fp, #528
	sub	r0, fp, #272
	bl	getaddrinfo
	str	r0, [fp, #-600]
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	beq	.L137
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L138
	ldr	r3, .L179+20
	b	.L139
.L138:
	ldr	r3, .L179+24
.L139:
	ldr	r2, [fp, #-600]
	mov	r1, r3
	ldr	r0, .L179+28
	bl	printf
	mov	r0, #1
	bl	exit
.L137:
	ldr	r3, [fp, #-604]
	str	r3, [fp, #-588]
	b	.L140
.L147:
	sub	r3, fp, #272
	mov	r2, #50
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-588]
	ldr	r1, [r3, #20]
	sub	r2, fp, #272
	mov	r3, #50
	mov	r0, #10
	bl	inet_ntop
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L141
	ldr	r0, .L179+20
	b	.L142
.L141:
	ldr	r0, .L179+24
.L142:
	ldr	r3, [fp, #-588]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-588]
	ldr	r2, [r2, #8]
	ldr	r1, [fp, #-588]
	ldr	r1, [r1, #12]
	sub	lr, fp, #528
	sub	ip, fp, #272
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L179+32
	bl	printf
	ldr	r3, [fp, #-588]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-588]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-588]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-596]
	ldr	r3, [fp, #-596]
	cmp	r3, #0
	blt	.L177
	ldr	r3, [fp, #-588]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-588]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-596]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L178
	ldr	r0, [fp, #-596]
	bl	close
	b	.L144
.L177:
	nop
.L144:
	ldr	r3, [fp, #-588]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-588]
.L140:
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L147
	b	.L146
.L178:
	nop
.L146:
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L148
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L149
	ldr	r3, .L179+20
	b	.L150
.L149:
	ldr	r3, .L179+24
.L150:
	mov	r1, r3
	ldr	r0, .L179+36
	bl	printf
	ldr	r3, [fp, #-604]
	mov	r0, r3
	bl	freeaddrinfo
	mov	r0, #1
	bl	exit
.L148:
	ldr	r3, [fp, #-604]
	mov	r0, r3
	bl	freeaddrinfo
	b	.L151
.L136:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-596]
	sub	r3, fp, #12
	sub	r3, r3, #532
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L179+12
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #532
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L179+4
	ldr	r1, [r3]
	sub	r3, fp, #544
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, #16
	str	r3, [fp, #-580]
	sub	r2, fp, #272
	sub	r3, fp, #544
	add	r1, r3, #4
	mov	r3, #40
	mov	r0, #2
	bl	inet_ntop
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L152
	ldr	r4, .L179+20
	b	.L153
.L152:
	ldr	r4, .L179+24
.L153:
	sub	r3, fp, #12
	sub	r3, r3, #532
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	sub	r2, fp, #272
	mov	r1, r4
	ldr	r0, .L179+40
	bl	printf
	sub	r3, fp, #544
	ldr	r2, [fp, #-580]
	mov	r1, r3
	ldr	r0, [fp, #-596]
	bl	connect
	str	r0, [fp, #-600]
.L151:
	ldr	r3, [fp, #-600]
	cmp	r3, #0
	bge	.L154
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L155
	ldr	r4, .L179+20
	b	.L156
.L155:
	ldr	r4, .L179+24
.L156:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L179+44
	bl	printf
	ldr	r0, [fp, #-596]
	bl	close
	mov	r0, #1
	bl	exit
.L154:
	sub	r3, fp, #528
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L157
	ldr	r3, .L179+20
	b	.L158
.L157:
	ldr	r3, .L179+24
.L158:
	sub	r0, fp, #528
	ldr	r2, .L179+48
	mov	r1, #14
	bl	snprintf
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L174:
	sub	r1, fp, #528
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-596]
	bl	send
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bgt	.L159
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L160
	ldr	r4, .L179+20
	b	.L161
.L160:
	ldr	r4, .L179+24
.L161:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L179+52
	bl	printf
	b	.L162
.L159:
	sub	r1, fp, #272
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-596]
	bl	recv
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bgt	.L163
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L164
	ldr	r4, .L179+20
	b	.L165
.L164:
	ldr	r4, .L179+24
.L165:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L179+56
	bl	printf
	b	.L162
.L163:
	ldr	r3, [fp, #-608]
	cmp	r3, #0
	bne	.L166
	ldr	r1, [fp, #-592]
	ldr	r3, .L179+60
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L167
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L168
	ldr	r1, .L179+20
	b	.L169
.L168:
	ldr	r1, .L179+24
.L169:
	sub	r2, fp, #272
	ldr	r3, [fp, #-584]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-592]
	ldr	r0, .L179+64
	bl	printf
	b	.L167
.L166:
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L170
	ldr	r1, .L179+20
	b	.L171
.L170:
	ldr	r1, .L179+24
.L171:
	sub	r2, fp, #272
	ldr	r3, [fp, #-584]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-592]
	ldr	r0, .L179+68
	bl	printf
	ldr	r2, [fp, #-592]
	ldr	r3, [fp, #-608]
	cmp	r2, r3
	blt	.L167
	ldr	r3, [fp, #-612]
	cmp	r3, #0
	beq	.L172
	ldr	r3, .L179+20
	b	.L173
.L172:
	ldr	r3, .L179+24
.L173:
	ldr	r2, [fp, #-592]
	mov	r1, r3
	ldr	r0, .L179+72
	bl	printf
	b	.L162
.L167:
	ldr	r3, [fp, #-592]
	add	r3, r3, #1
	str	r3, [fp, #-592]
	b	.L174
.L162:
	ldr	r0, [fp, #-596]
	bl	close
	nop
	ldr	r3, .L179
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L176
	bl	__stack_chk_fail
.L176:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L180:
	.align	2
.L179:
	.word	.LC65
	.word	g_app_target_addr
	.word	.LC26
	.word	g_app_target_port
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	274877907
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.size	tcp_client_thread, .-tcp_client_thread
	.section	.rodata
	.align	2
.LC66:
	.ascii	"[TCPSERV%s] socket err: %d\012\000"
	.align	2
.LC67:
	.ascii	"[TCPSERV%s] setsockopt err: %d\012\000"
	.align	2
.LC68:
	.ascii	"[TCPSERV%s] addr6_str: %s, port: %d\012\000"
	.align	2
.LC69:
	.ascii	"[TCP_SERV%s] addr_str: %s, port: %d\012\000"
	.align	2
.LC70:
	.ascii	"[TCPSERV%s] bind err: %d\012\000"
	.align	2
.LC71:
	.ascii	"[TCPSERV%s] listen err: %d\012\000"
	.align	2
.LC72:
	.ascii	"[TCPSERV%s] accept err: %d\012\000"
	.align	2
.LC73:
	.ascii	"[TCPSERV%s] recv err: %d\012\000"
	.align	2
.LC74:
	.ascii	"[TCPSERV%s] send err: %d\012\000"
	.align	2
.LC75:
	.ascii	"[TCPSERV%s infinite test #%d] echoback msg(%s) len("
	.ascii	"%d)\012\000"
	.align	2
.LC76:
	.ascii	"[TCPSERV%s test #%d] echoback msg(%s) len(%d)\012\000"
	.align	2
.LC77:
	.ascii	"[TCPSERV%s test done #%d]\012\000"
	.align	2
.LC78:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tcp_server_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_server_thread, %function
tcp_server_thread:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #396
	str	r0, [fp, #-392]
	str	r1, [fp, #-396]
	ldr	r3, .L228
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-380]
	mvn	r3, #0
	str	r3, [fp, #-376]
	mov	r3, #0
	str	r3, [fp, #-372]
	mov	r3, #0
	str	r3, [fp, #-364]
	mov	r3, #1
	str	r3, [fp, #-368]
	ldr	r3, [fp, #-396]
	cmp	r3, #1
	bne	.L182
	mov	r2, #0
	mov	r1, #1
	mov	r0, #10
	bl	socket
	str	r0, [fp, #-380]
	b	.L183
.L182:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-380]
.L183:
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bge	.L184
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L185
	ldr	r4, .L228+4
	b	.L186
.L185:
	ldr	r4, .L228+8
.L186:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+12
	bl	printf
	mov	r0, #1
	bl	exit
.L184:
	mov	r3, #1
	str	r3, [fp, #-384]
	sub	r3, fp, #384
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-380]
	bl	setsockopt
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L187
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L188
	ldr	r4, .L228+4
	b	.L189
.L188:
	ldr	r4, .L228+8
.L189:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+16
	bl	printf
	b	.L190
.L187:
	ldr	r3, [fp, #-396]
	cmp	r3, #1
	bne	.L191
	mov	r3, #28
	str	r3, [fp, #-388]
	ldr	r2, [fp, #-388]
	sub	r3, fp, #328
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #316
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	ldr	r3, .L228+20
	sub	ip, fp, #320
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L228+24
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #316
	strh	r2, [r3, #2]	@ movhi
	sub	r2, fp, #272
	sub	r3, fp, #328
	add	r1, r3, #8
	mov	r3, #40
	mov	r0, #10
	bl	inet_ntop
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L192
	ldr	r4, .L228+4
	b	.L193
.L192:
	ldr	r4, .L228+8
.L193:
	sub	r3, fp, #12
	sub	r3, r3, #316
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	sub	r2, fp, #272
	mov	r1, r4
	ldr	r0, .L228+28
	bl	printf
	ldr	r2, [fp, #-388]
	sub	r3, fp, #328
	mov	r1, r3
	ldr	r0, [fp, #-380]
	bl	bind
	str	r0, [fp, #-372]
	b	.L194
.L191:
	mov	r3, #16
	str	r3, [fp, #-388]
	ldr	r2, [fp, #-388]
	sub	r3, fp, #360
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #348
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-356]
	ldr	r3, .L228+24
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #348
	strh	r2, [r3, #2]	@ movhi
	sub	r2, fp, #272
	sub	r3, fp, #360
	add	r1, r3, #4
	mov	r3, #40
	mov	r0, #2
	bl	inet_ntop
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L195
	ldr	r4, .L228+4
	b	.L196
.L195:
	ldr	r4, .L228+8
.L196:
	sub	r3, fp, #12
	sub	r3, r3, #348
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	sub	r2, fp, #272
	mov	r1, r4
	ldr	r0, .L228+32
	bl	printf
	ldr	r2, [fp, #-388]
	sub	r3, fp, #360
	mov	r1, r3
	ldr	r0, [fp, #-380]
	bl	bind
	str	r0, [fp, #-372]
.L194:
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L197
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L198
	ldr	r4, .L228+4
	b	.L199
.L198:
	ldr	r4, .L228+8
.L199:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+36
	bl	printf
	b	.L190
.L197:
	mov	r1, #1024
	ldr	r0, [fp, #-380]
	bl	listen
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L200
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L201
	ldr	r4, .L228+4
	b	.L202
.L201:
	ldr	r4, .L228+8
.L202:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+40
	bl	printf
	b	.L190
.L200:
	ldr	r3, [fp, #-396]
	cmp	r3, #1
	bne	.L203
	sub	r2, fp, #388
	sub	r3, fp, #300
	mov	r1, r3
	ldr	r0, [fp, #-380]
	bl	accept
	str	r0, [fp, #-376]
	b	.L204
.L203:
	sub	r2, fp, #388
	sub	r3, fp, #344
	mov	r1, r3
	ldr	r0, [fp, #-380]
	bl	accept
	str	r0, [fp, #-376]
.L204:
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L205
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L206
	ldr	r4, .L228+4
	b	.L207
.L206:
	ldr	r4, .L228+8
.L207:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+44
	bl	printf
	b	.L190
.L205:
	sub	r1, fp, #272
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-376]
	bl	recv
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	bgt	.L208
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L209
	ldr	r4, .L228+4
	b	.L210
.L209:
	ldr	r4, .L228+8
.L210:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+48
	bl	printf
	b	.L211
.L208:
	sub	r1, fp, #272
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-376]
	bl	send
	str	r0, [fp, #-364]
	ldr	r3, [fp, #-364]
	cmp	r3, #0
	bgt	.L212
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L213
	ldr	r4, .L228+4
	b	.L214
.L213:
	ldr	r4, .L228+8
.L214:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L228+52
	bl	printf
	b	.L211
.L212:
	ldr	r3, [fp, #-392]
	cmp	r3, #0
	bne	.L215
	ldr	r1, [fp, #-368]
	ldr	r3, .L228+56
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L216
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L217
	ldr	r1, .L228+4
	b	.L218
.L217:
	ldr	r1, .L228+8
.L218:
	sub	r2, fp, #272
	ldr	r3, [fp, #-364]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-368]
	ldr	r0, .L228+60
	bl	printf
	b	.L216
.L215:
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L219
	ldr	r1, .L228+4
	b	.L220
.L219:
	ldr	r1, .L228+8
.L220:
	sub	r2, fp, #272
	ldr	r3, [fp, #-364]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-368]
	ldr	r0, .L228+64
	bl	printf
	ldr	r2, [fp, #-368]
	ldr	r3, [fp, #-392]
	cmp	r2, r3
	blt	.L216
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L221
	ldr	r3, .L228+4
	b	.L222
.L221:
	ldr	r3, .L228+8
.L222:
	ldr	r2, [fp, #-368]
	mov	r1, r3
	ldr	r0, .L228+68
	bl	printf
	b	.L211
.L216:
	ldr	r3, [fp, #-368]
	add	r3, r3, #1
	str	r3, [fp, #-368]
	b	.L205
.L211:
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	ble	.L223
	ldr	r0, [fp, #-376]
	bl	close
.L223:
	ldr	r0, [fp, #-380]
	bl	close
	nop
	ldr	r3, .L228
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L226
	b	.L227
.L190:
	ldr	r0, [fp, #-380]
	bl	close
	mov	r0, #1
	bl	exit
.L227:
	bl	__stack_chk_fail
.L226:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L229:
	.align	2
.L228:
	.word	.LC78
	.word	.LC28
	.word	.LC29
	.word	.LC66
	.word	.LC67
	.word	in6addr_any
	.word	g_app_target_port
	.word	.LC68
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	274877907
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.size	tcp_server_thread, .-tcp_server_thread
	.section	.rodata
	.align	2
.LC79:
	.ascii	"\012Usage1: %s proto target_port option1\012\000"
	.align	2
.LC80:
	.ascii	"\011Usage1 is for echoback SERVER\000"
	.align	2
.LC81:
	.ascii	"Parameter:\000"
	.align	2
.LC82:
	.ascii	"\011proto - 0(tcp ipv4 echoback), 1(tcp ipv6 echoba"
	.ascii	"ck)\000"
	.align	2
.LC83:
	.ascii	"\011        2(udp ipv4 echoback), 3(udp ipv6 echoba"
	.ascii	"ck)\000"
	.align	2
.LC84:
	.ascii	"\011target_port - port address to bind\000"
	.align	2
.LC85:
	.ascii	"\011option1 - number of pakcets to test, default: %"
	.ascii	"d\012\000"
	.align	2
.LC86:
	.ascii	"Sample Command(tcp ipv4 echoback server): nettest 0"
	.ascii	" 8888 1000(option1)\012\000"
	.align	2
.LC87:
	.ascii	"Usage2: %s proto target_addr target_port option1\012"
	.ascii	"\000"
	.align	2
.LC88:
	.ascii	"\011Usage2 is for CLIENT that expects echoing back "
	.ascii	"from the server\000"
	.align	2
.LC89:
	.ascii	"\011proto - 10(tcp ipv4 client), 11(tcp ipv6 client"
	.ascii	")\000"
	.align	2
.LC90:
	.ascii	"\011        12(udp ipv4 client), 13(udp ipv6 client"
	.ascii	")\000"
	.align	2
.LC91:
	.ascii	"\011target_addr - target IP address to send or conn"
	.ascii	"ect\000"
	.align	2
.LC92:
	.ascii	"\011target_port - target port address to send or co"
	.ascii	"nnect\000"
	.align	2
.LC93:
	.ascii	"\011option1 - number of packets to test, default: %"
	.ascii	"d\012\012\000"
	.align	2
.LC94:
	.ascii	"Sample Command(udp ipv6 client): nettest 13 fe80::d"
	.ascii	"cc3:3084:cb9b:38ce%%wl1 8888 1000(option1)\012\012\000"
	.align	2
.LC95:
	.ascii	"[NETTEST APP] Invalid proto type\000"
	.align	2
.LC96:
	.ascii	"\012Exiting nettest_main thread, job finished\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bgt	.L231
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L251
	bl	printf
	ldr	r0, .L251+4
	bl	puts
	ldr	r0, .L251+8
	bl	puts
	ldr	r0, .L251+12
	bl	puts
	ldr	r0, .L251+16
	bl	puts
	ldr	r0, .L251+20
	bl	puts
	mov	r1, #100
	ldr	r0, .L251+24
	bl	printf
	ldr	r0, .L251+28
	bl	puts
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L251+32
	bl	printf
	ldr	r0, .L251+36
	bl	puts
	ldr	r0, .L251+8
	bl	puts
	ldr	r0, .L251+40
	bl	puts
	ldr	r0, .L251+44
	bl	puts
	ldr	r0, .L251+48
	bl	puts
	ldr	r0, .L251+52
	bl	puts
	mov	r1, #100
	ldr	r0, .L251+56
	bl	printf
	ldr	r0, .L251+60
	bl	printf
	mov	r3, #0
	b	.L232
.L231:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	mov	r3, #100
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L233
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bgt	.L233
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L251+64
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L233
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
.L233:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L234
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	bgt	.L234
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r2, .L251+68
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L251+64
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L234
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
.L234:
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	ble	.L235
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	bgt	.L235
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r2, .L251+68
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L251+64
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L236
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
.L236:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ble	.L237
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #20]
	ldr	r2, .L251+72
	str	r3, [r2]
	b	.L235
.L237:
	ldr	r3, .L251+72
	mov	r2, #0
	str	r2, [r3]
.L235:
	ldr	r3, [fp, #-8]
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L238
.L240:
	.word	.L249
	.word	.L248
	.word	.L247
	.word	.L246
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L245
	.word	.L244
	.word	.L243
	.word	.L242
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L238
	.word	.L241
	.word	.L239
.L249:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	tcp_server_thread
	b	.L250
.L248:
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	tcp_server_thread
	b	.L250
.L247:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	udp_server_thread
	b	.L250
.L246:
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	udp_server_thread
	b	.L250
.L245:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	tcp_client_thread
	b	.L250
.L244:
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	tcp_client_thread
	b	.L250
.L243:
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	udp_client_thread
	b	.L250
.L242:
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	udp_client_thread
	b	.L250
.L241:
	ldr	r0, [fp, #-12]
	bl	ipmcast_sender_thread
	b	.L250
.L239:
	ldr	r0, [fp, #-12]
	bl	ipmcast_receiver_thread
	b	.L250
.L238:
	ldr	r0, .L251+76
	bl	puts
	nop
.L250:
	ldr	r0, .L251+80
	bl	puts
	mov	r3, #0
.L232:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L252:
	.align	2
.L251:
	.word	.LC79
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	.LC84
	.word	.LC85
	.word	.LC86
	.word	.LC87
	.word	.LC88
	.word	.LC89
	.word	.LC90
	.word	.LC91
	.word	.LC92
	.word	.LC93
	.word	.LC94
	.word	g_app_target_port
	.word	g_app_target_addr
	.word	g_app_netif_addr
	.word	.LC95
	.word	.LC96
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
