	.file	"804646.c"
	.intel_syntax noprefix
	.text
	.globl	host_port
	.bss
	.align 4
	.type	host_port, @object
	.size	host_port, 4
host_port:
	.zero	4
	.globl	peers
	.align 8
	.type	peers, @object
	.size	peers, 8
peers:
	.zero	8
	.text
	.globl	NET_Init
	.type	NET_Init, @function
NET_Init:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NET_Init, .-NET_Init
	.section	.rodata
	.align 8
.LC0:
	.string	"udpred: can't get \"%s\" service entry\n"
	.align 8
.LC1:
	.string	"udpred: can't get \"%s\" host entry\n"
	.align 8
.LC2:
	.string	"udpred: can't get \"%s\" protocol entry\n"
.LC3:
	.string	"udp"
	.align 8
.LC4:
	.string	"udpred: can't create socket: %s\n"
	.align 8
.LC5:
	.string	"udpred: can't connect to %s.%s: %s\n"
	.text
	.globl	connectsock
	.type	connectsock, @function
connectsock:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getservbyname@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	WORD PTR -30[rbp], ax
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	movzx	eax, WORD PTR -30[rbp]
	test	ax, ax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	getprotobyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -64[rbp], 2
	jmp	.L9
.L8:
	mov	DWORD PTR -64[rbp], 1
.L9:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, sys_errlist[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L10:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, sys_errlist[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -60[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	connectsock, .-connectsock
	.section	.rodata
	.align 8
.LC6:
	.string	"Usage:  %s <port> <remote server> <remote server port>\n"
.LC7:
	.string	"socket"
.LC8:
	.string	"bind"
.LC9:
	.string	"peer %s:%d added"
.LC10:
	.string	"peer %s:%d removed (timeout)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	DWORD PTR -4356[rbp], edi
	mov	QWORD PTR -4368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4356[rbp], 2
	jg	.L15
	mov	rax, QWORD PTR -4368[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L37
.L15:
	call	NET_Init
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4336[rbp], eax
	cmp	DWORD PTR -4336[rbp], -1
	jne	.L17
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L37
.L17:
	mov	WORD PTR -4272[rbp], 2
	mov	DWORD PTR -4268[rbp], 0
	mov	rax, QWORD PTR -4368[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -4270[rbp], ax
	lea	rcx, -4272[rbp]
	mov	eax, DWORD PTR -4336[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L36
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L36:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -4256[rbp]
	mov	rdi, rdx
#APP
# 196 "the_stack_data/804646.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -4332[rbp], edx
	mov	DWORD PTR -4328[rbp], eax
	mov	eax, DWORD PTR -4336[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4256[rbp+rax*8]
	mov	eax, DWORD PTR -4336[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 -4256[rbp+rax*8], rdx
	mov	eax, DWORD PTR -4336[rbp]
	mov	DWORD PTR -4340[rbp], eax
	mov	rax, QWORD PTR peers[rip]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -4256[rbp+rax*8]
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	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 -4256[rbp+rax*8], rdx
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	cmp	DWORD PTR -4340[rbp], eax
	jg	.L20
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	add	eax, 1
	mov	DWORD PTR -4340[rbp], eax
.L20:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -4320[rbp], rax
.L19:
	cmp	QWORD PTR -4320[rbp], 0
	jne	.L21
	mov	QWORD PTR -4304[rbp], 2
	mov	QWORD PTR -4296[rbp], 0
	lea	rdx, -4304[rbp]
	lea	rsi, -4256[rbp]
	mov	eax, DWORD PTR -4340[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -4324[rbp], eax
	cmp	DWORD PTR -4324[rbp], 0
	jle	.L22
	mov	eax, DWORD PTR -4336[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4256[rbp+rax*8]
	mov	eax, DWORD PTR -4336[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	.L23
	mov	DWORD PTR -4344[rbp], 16
	lea	rcx, -4344[rbp]
	lea	rdx, -4288[rbp]
	lea	rsi, -4128[rbp]
	mov	eax, DWORD PTR -4336[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -4340[rbp], eax
	cmp	DWORD PTR -4340[rbp], 0
	jle	.L23
	mov	rax, QWORD PTR peers[rip]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L24
.L27:
	mov	rax, QWORD PTR -4320[rbp]
	add	rax, 12
	lea	rdx, -4288[rbp]
	lea	rcx, 4[rdx]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -4320[rbp]
	add	rax, 10
	lea	rdx, -4288[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 2
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L25
	mov	eax, DWORD PTR -4340[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	rsi, -4128[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdi, rax
	call	time@PLT
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -4320[rbp], rax
.L24:
	cmp	QWORD PTR -4320[rbp], 0
	jne	.L27
.L26:
	cmp	QWORD PTR -4320[rbp], 0
	jne	.L23
	movzx	eax, WORD PTR -4286[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -4284[rbp]
	mov	edi, eax
	mov	eax, 0
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -4320[rbp], rax
	mov	rcx, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR -4288[rbp]
	mov	rdx, QWORD PTR -4280[rbp]
	mov	QWORD PTR 8[rcx], rax
	mov	QWORD PTR 16[rcx], rdx
	mov	rax, QWORD PTR -4368[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4368[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, .LC3[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	connectsock
	mov	rdx, QWORD PTR -4320[rbp]
	mov	DWORD PTR 40[rdx], eax
	mov	rdx, QWORD PTR peers[rip]
	mov	rax, QWORD PTR -4320[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -4320[rbp]
	mov	QWORD PTR peers[rip], rax
	mov	eax, DWORD PTR -4340[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	rsi, -4128[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdi, rax
	call	time@PLT
.L23:
	mov	rax, QWORD PTR peers[rip]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -4256[rbp+rax*8]
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	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	.L29
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	rsi, -4128[rbp]
	mov	ecx, 0
	mov	edx, 4096
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -4340[rbp], eax
	cmp	DWORD PTR -4340[rbp], 0
	jle	.L29
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	rax, QWORD PTR -4320[rbp]
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -4340[rbp]
	movsx	rdx, eax
	lea	rsi, -4128[rbp]
	mov	eax, DWORD PTR -4336[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
.L29:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -4320[rbp], rax
.L28:
	cmp	QWORD PTR -4320[rbp], 0
	jne	.L30
	jmp	.L36
.L22:
	mov	QWORD PTR -4312[rbp], 0
	mov	rax, QWORD PTR peers[rip]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L32
.L35:
	mov	edi, 0
	call	time@PLT
	mov	rdx, QWORD PTR -4320[rbp]
	mov	rdx, QWORD PTR [rdx]
	sub	rax, rdx
	cmp	rax, 300
	jle	.L33
	cmp	QWORD PTR -4312[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L34
	mov	rax, QWORD PTR -4320[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	mov	eax, 0
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -4312[rbp], 0
	mov	rax, QWORD PTR -4312[rbp]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L32
.L34:
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -4312[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -4320[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	rax, QWORD PTR -4320[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	mov	eax, 0
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4320[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -4312[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -4320[rbp], rax
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -4320[rbp]
	mov	QWORD PTR -4312[rbp], rax
	mov	rax, QWORD PTR -4320[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -4320[rbp], rax
.L32:
	cmp	QWORD PTR -4320[rbp], 0
	jne	.L35
	jmp	.L36
.L37:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"804646.c"
	.text
	.comm	host_port,4,4
	.comm	peers,4,4
	.align	2
	.global	NET_Init
	.syntax unified
	.arm
	.fpu softvfp
	.type	NET_Init, %function
NET_Init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	NET_Init, .-NET_Init
	.section	.rodata
	.align	2
.LC0:
	.ascii	"udpred: can't get \"%s\" service entry\012\000"
	.align	2
.LC1:
	.ascii	"udpred: can't get \"%s\" host entry\012\000"
	.align	2
.LC2:
	.ascii	"udpred: can't get \"%s\" protocol entry\012\000"
	.align	2
.LC3:
	.ascii	"udp\000"
	.align	2
.LC4:
	.ascii	"udpred: can't create socket: %s\012\000"
	.align	2
.LC5:
	.ascii	"udpred: can't connect to %s.%s: %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connectsock
	.syntax unified
	.arm
	.fpu softvfp
	.type	connectsock, %function
connectsock:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-60]
	bl	getservbyname
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-30]	@ movhi
	b	.L4
.L3:
	ldr	r0, [fp, #-60]
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldrh	r3, [fp, #-30]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	ldr	r1, .L14+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L4:
	ldr	r0, [fp, #-56]
	bl	gethostbyname
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	b	.L6
.L5:
	ldr	r0, [fp, #-56]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L6:
	ldr	r0, [fp, #-64]
	bl	getprotobyname
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	ldr	r1, .L14+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L7:
	ldr	r1, .L14+20
	ldr	r0, [fp, #-64]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #2
	str	r3, [fp, #-52]
	b	.L9
.L8:
	mov	r3, #1
	str	r3, [fp, #-52]
.L9:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, [fp, #-52]
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L14+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L14+24
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, .L14+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #2
	bl	exit
.L10:
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L14+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, .L14+24
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [sp]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r1, .L14+32
	mov	r0, r4
	bl	fprintf
	mov	r0, #2
	bl	exit
.L11:
	ldr	r3, [fp, #-36]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	sys_errlist
	.word	.LC4
	.word	.LC5
	.size	connectsock, .-connectsock
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Usage:  %s <port> <remote server> <remote server po"
	.ascii	"rt>\012\000"
	.align	2
.LC8:
	.ascii	"socket\000"
	.align	2
.LC9:
	.ascii	"bind\000"
	.align	2
.LC10:
	.ascii	"peer %s:%d added\000"
	.align	2
.LC11:
	.ascii	"peer %s:%d removed (timeout)\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4288
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-212]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-216]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-212]
	cmp	r3, #2
	bgt	.L17
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+4
	bl	printf
	mov	r3, #1
	b	.L41
.L17:
	bl	NET_Init
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-184]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L43+8
	bl	perror
	mov	r3, #1
	b	.L41
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-148]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-144]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-146]	@ movhi
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-184]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L43+12
	bl	perror
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-180]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-192]
	b	.L21
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-180]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-192]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	add	r3, r3, #1
	str	r3, [r2, #-192]
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	cmp	r3, #31
	bls	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	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
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	str	r3, [r2, #-200]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L43+16
	ldr	r3, [r3]
	str	r3, [r2, #-196]
	b	.L23
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	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
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-200]
	cmp	r2, r3
	bgt	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r3, #1
	str	r3, [r2, #-200]
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #40]
	str	r3, [r2, #-196]
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #0
	bne	.L25
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-172]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-168]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4224
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #44
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [r0, #-200]
	bl	select
	str	r0, [r4, #-176]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-176]
	cmp	r3, #0
	ble	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-184]
	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	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-204]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4288
	sub	r3, r3, #12
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #4096
	ldr	r0, [r0, #-184]
	bl	recvfrom
	str	r0, [r4, #-200]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-200]
	cmp	r3, #0
	ble	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L43+16
	ldr	r3, [r3]
	str	r3, [r2, #-196]
	b	.L28
.L31:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	add	r0, r3, #8
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	add	r0, r3, #6
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #2
	mov	r2, #2
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r0, [r3, #36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-200]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	bl	send
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	mov	r0, r3
	bl	time
	b	.L30
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #40]
	str	r3, [r2, #-196]
.L28:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #0
	bne	.L31
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #0
	bne	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-160]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrh	r3, [r3, #-162]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L43+20
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #44
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-196]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	ip, r3, #4
	sub	r3, r2, #164
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	add	r3, r3, #8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, .L43+24
	mov	r1, r3
	bl	connectsock
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	str	r2, [r3, #36]
	ldr	r3, .L43+16
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	str	r2, [r3, #40]
	ldr	r2, .L43+16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r0, [r3, #36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-200]
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	bl	send
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	mov	r0, r3
	bl	time
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L43+16
	ldr	r3, [r3]
	str	r3, [r2, #-196]
	b	.L32
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #4096
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #36]
	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	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r0, [r3, #36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #4096
	bl	recv
	str	r0, [r4, #-200]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-200]
	cmp	r3, #0
	ble	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	mov	r0, r3
	bl	time
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-200]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	add	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #4096
	sub	r0, r0, #12
	mov	ip, r0
	mov	r0, #16
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [ip, #-184]
	bl	sendto
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #40]
	str	r3, [r2, #-196]
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #0
	bne	.L34
	b	.L40
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L43+16
	ldr	r3, [r3]
	str	r3, [r2, #-196]
	b	.L36
.L39:
	mov	r0, #0
	bl	time
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3]
	sub	r3, r2, r3
	cmp	r3, #300
	ble	.L37
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r0, [r3, #8]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L43+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-196]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	str	r3, [r2, #-196]
	b	.L36
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r2, [r3, #40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	str	r2, [r3, #40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r0, [r3, #8]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L43+28
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-196]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	ldr	r3, [r3, #40]
	str	r3, [r2, #-196]
	b	.L36
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	str	r3, [r2, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	ldr	r3, [r3, #40]
	str	r3, [r2, #-196]
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	cmp	r3, #0
	bne	.L39
	b	.L40
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC12
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	peers
	.word	.LC10
	.word	.LC3
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
