	.file	"285453.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"AF_INET"
.LC1:
	.string	"AF_INET6"
.LC2:
	.string	"?"
	.text
	.globl	decode_ai_family
	.type	decode_ai_family, @function
decode_ai_family:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	je	.L2
	cmp	DWORD PTR -4[rbp], 10
	je	.L3
	jmp	.L6
.L2:
	lea	rax, .LC0[rip]
	jmp	.L5
.L3:
	lea	rax, .LC1[rip]
	jmp	.L5
.L6:
	lea	rax, .LC2[rip]
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	decode_ai_family, .-decode_ai_family
	.section	.rodata
.LC3:
	.string	"SOCK_STREAM"
.LC4:
	.string	"SOCK_DGRAM"
	.text
	.globl	decode_ai_socktype
	.type	decode_ai_socktype, @function
decode_ai_socktype:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	je	.L8
	cmp	DWORD PTR -4[rbp], 2
	je	.L9
	jmp	.L12
.L8:
	lea	rax, .LC3[rip]
	jmp	.L11
.L9:
	lea	rax, .LC4[rip]
	jmp	.L11
.L12:
	lea	rax, .LC2[rip]
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decode_ai_socktype, .-decode_ai_socktype
	.section	.rodata
.LC5:
	.string	"TCP"
.LC6:
	.string	"UDP"
	.text
	.globl	decode_ai_protocol
	.type	decode_ai_protocol, @function
decode_ai_protocol:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 6
	je	.L14
	cmp	DWORD PTR -4[rbp], 17
	je	.L15
	jmp	.L18
.L14:
	lea	rax, .LC5[rip]
	jmp	.L17
.L15:
	lea	rax, .LC6[rip]
	jmp	.L17
.L18:
	lea	rax, .LC2[rip]
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	decode_ai_protocol, .-decode_ai_protocol
	.section	.rodata
.LC7:
	.string	"40000"
.LC8:
	.string	"localhost"
.LC9:
	.string	"getaddrinfo"
	.align 8
.LC10:
	.string	"client - getaddrinfo #%d: ai_family=%s ai_socktype=%s ai_protocol=%s\n"
	.align 8
.LC11:
	.string	"client - apertura socket fallito #%d\n"
.LC12:
	.string	"socket"
	.align 8
.LC13:
	.string	"client - apertura socket riuscita #%d\n"
.LC14:
	.string	"hello!"
	.align 8
.LC15:
	.string	"client - mando i dati al server"
	.align 8
.LC16:
	.string	"client - dati ricevuti dal server: %s\n"
.LC17:
	.string	"sh"
.LC18:
	.string	"-c"
.LC19:
	.string	"netstat -ant | grep 40000"
	.align 8
.LC20:
	.string	"\nesecuzione del comando netstat -ant | grep 40000"
.LC21:
	.string	"/bin/sh"
.LC22:
	.string	"client - socket chiuso"
	.text
	.globl	connetti_al_server
	.type	connetti_al_server, @function
connetti_al_server:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 1168
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -1152[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -1120[rbp], 0
	mov	QWORD PTR -1128[rbp], 0
	mov	QWORD PTR -1112[rbp], 0
	mov	DWORD PTR -1148[rbp], 0
	mov	DWORD PTR -1144[rbp], 1
	mov	DWORD PTR -1152[rbp], 1024
	lea	rdx, -1176[rbp]
	lea	rax, -1152[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	getaddrinfo@PLT
	test	eax, eax
	je	.L20
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	DWORD PTR -1180[rbp], 0
	mov	rax, QWORD PTR -1176[rbp]
	mov	QWORD PTR -1168[rbp], rax
	jmp	.L21
.L26:
	mov	rax, QWORD PTR -1168[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	decode_ai_protocol
	mov	r12, rax
	mov	rax, QWORD PTR -1168[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	decode_ai_socktype
	mov	rbx, rax
	mov	rax, QWORD PTR -1168[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	decode_ai_family
	mov	rdx, rax
	mov	eax, DWORD PTR -1180[rbp]
	mov	r8, r12
	mov	rcx, rbx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1168[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -1168[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1168[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1184[rbp], eax
	cmp	DWORD PTR -1184[rbp], -1
	jne	.L22
	mov	eax, DWORD PTR -1180[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -1168[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1168[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1184[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	je	.L24
	mov	eax, DWORD PTR -1180[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -1184[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -1180[rbp], 1
.L23:
	mov	rax, QWORD PTR -1168[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -1168[rbp], rax
.L21:
	cmp	QWORD PTR -1168[rbp], 0
	jne	.L26
.L25:
	lea	rax, .LC14[rip]
	mov	QWORD PTR -1160[rbp], rax
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1160[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rcx, QWORD PTR -1160[rbp]
	mov	eax, DWORD PTR -1184[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1184[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jle	.L27
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	call	fork@PLT
	test	eax, eax
	jne	.L28
	lea	rax, .LC17[rip]
	mov	QWORD PTR -1088[rbp], rax
	lea	rax, .LC18[rip]
	mov	QWORD PTR -1080[rbp], rax
	lea	rax, .LC19[rip]
	mov	QWORD PTR -1072[rbp], rax
	mov	QWORD PTR -1064[rbp], 0
	mov	QWORD PTR -1096[rbp], 0
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdx, -1096[rbp]
	lea	rax, -1088[rbp]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	call	execve@PLT
	jmp	.L29
.L28:
	mov	edi, 0
	call	wait@PLT
	mov	edi, 10
	call	putchar@PLT
.L29:
	mov	eax, DWORD PTR -1184[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	add	rsp, 1168
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	connetti_al_server, .-connetti_al_server
	.section	.rodata
.LC23:
	.string	"tcp server using IPv6"
.LC24:
	.string	"server - socket ok"
.LC25:
	.string	"bind"
.LC26:
	.string	"server - bind ok"
.LC27:
	.string	"listen"
.LC28:
	.string	"server - listen ok"
.LC29:
	.string	"server - before accept"
.LC30:
	.string	"inet_ntop"
	.align 8
.LC31:
	.string	"server - nuova connessione in ingresso da %s\n"
	.align 8
.LC32:
	.string	"server - ricevuti dati dal client, len=%d, %s\n"
.LC33:
	.string	"read"
.LC34:
	.string	"ciao! sei il client numero %d"
.LC35:
	.string	"write"
	.align 8
.LC36:
	.string	"server - risultato secondo read: %d\n"
.LC37:
	.string	"shutdown"
.LC38:
	.string	"accept"
.LC39:
	.string	"server - close server_socket"
	.align 8
.LC40:
	.string	"server - close server_socket ok"
	.text
	.globl	simple_server_ipv6
	.type	simple_server_ipv6, @function
simple_server_ipv6:
.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, 1184
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], -1
	jne	.L32
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rax, -1152[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	DWORD PTR 24[rax], 0
	mov	WORD PTR -1152[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -1144[rbp], rax
	mov	QWORD PTR -1136[rbp], rdx
	mov	edi, 40000
	call	htons@PLT
	mov	WORD PTR -1150[rbp], ax
	lea	rcx, -1152[rbp]
	mov	eax, DWORD PTR -1164[rbp]
	mov	edx, 28
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L33
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1164[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L34
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	DWORD PTR -1172[rbp], 28
	mov	DWORD PTR -1168[rbp], 0
	jmp	.L35
.L43:
	lea	rax, -1088[rbp]
	lea	rdx, -1120[rbp]
	lea	rsi, 8[rdx]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	test	rax, rax
	jne	.L36
	lea	rdi, .LC30[rip]
	call	perror@PLT
.L36:
	lea	rax, -1088[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1160[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1156[rbp], eax
	cmp	DWORD PTR -1156[rbp], 0
	jle	.L37
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1156[rbp]
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L38
.L37:
	cmp	DWORD PTR -1156[rbp], -1
	jne	.L38
	lea	rdi, .LC33[rip]
	call	perror@PLT
.L38:
	mov	eax, DWORD PTR -1168[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1168[rbp], edx
	lea	rcx, -1040[rbp]
	mov	edx, eax
	lea	rsi, .LC34[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1160[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L39
	lea	rdi, .LC35[rip]
	call	perror@PLT
.L39:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1160[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1156[rbp], eax
	mov	eax, DWORD PTR -1156[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1160[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	cmp	eax, -1
	jne	.L40
	lea	rdi, .LC37[rip]
	call	perror@PLT
.L40:
	cmp	DWORD PTR -1168[rbp], 0
	jg	.L48
.L35:
	lea	rdx, -1172[rbp]
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1160[rbp], eax
	cmp	DWORD PTR -1160[rbp], -1
	jne	.L43
	jmp	.L42
.L48:
	nop
.L42:
	cmp	DWORD PTR -1160[rbp], -1
	jne	.L44
	lea	rdi, .LC38[rip]
	call	perror@PLT
.L44:
	mov	eax, DWORD PTR -1164[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L45
	lea	rdi, .LC39[rip]
	call	perror@PLT
	jmp	.L49
.L45:
	lea	rdi, .LC40[rip]
	call	puts@PLT
.L49:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	simple_server_ipv6, .-simple_server_ipv6
	.globl	simple_server
	.type	simple_server, @function
simple_server:
.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, 1120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1100[rbp], eax
	cmp	DWORD PTR -1100[rbp], -1
	jne	.L51
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rax, -1088[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1088[rbp], 2
	mov	DWORD PTR -1084[rbp], 0
	mov	edi, 40000
	call	htons@PLT
	mov	WORD PTR -1086[rbp], ax
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L52
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L52:
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -1100[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L53
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	lea	rdi, .LC28[rip]
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	DWORD PTR -1108[rbp], 16
	mov	DWORD PTR -1104[rbp], 0
	jmp	.L54
.L62:
	lea	rax, -1056[rbp]
	lea	rdx, -1072[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	test	rax, rax
	jne	.L55
	lea	rdi, .LC30[rip]
	call	perror@PLT
.L55:
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1096[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1092[rbp], eax
	cmp	DWORD PTR -1092[rbp], 0
	jle	.L56
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1092[rbp]
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L57
.L56:
	cmp	DWORD PTR -1092[rbp], -1
	jne	.L57
	lea	rdi, .LC33[rip]
	call	perror@PLT
.L57:
	mov	eax, DWORD PTR -1104[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1104[rbp], edx
	lea	rcx, -1040[rbp]
	mov	edx, eax
	lea	rsi, .LC34[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1096[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L58
	lea	rdi, .LC35[rip]
	call	perror@PLT
.L58:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1096[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1092[rbp], eax
	mov	eax, DWORD PTR -1092[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1096[rbp]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	cmp	eax, -1
	jne	.L59
	lea	rdi, .LC37[rip]
	call	perror@PLT
.L59:
	cmp	DWORD PTR -1104[rbp], 0
	jg	.L67
.L54:
	lea	rdx, -1108[rbp]
	lea	rcx, -1072[rbp]
	mov	eax, DWORD PTR -1100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1096[rbp], eax
	cmp	DWORD PTR -1096[rbp], -1
	jne	.L62
	jmp	.L61
.L67:
	nop
.L61:
	cmp	DWORD PTR -1096[rbp], -1
	jne	.L63
	lea	rdi, .LC38[rip]
	call	perror@PLT
.L63:
	mov	eax, DWORD PTR -1100[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L64
	lea	rdi, .LC39[rip]
	call	perror@PLT
	jmp	.L68
.L64:
	lea	rdi, .LC40[rip]
	call	puts@PLT
.L68:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	simple_server, .-simple_server
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	fork@PLT
	test	eax, eax
	jne	.L70
	mov	eax, 0
	call	simple_server_ipv6
	mov	edi, 0
	call	exit@PLT
.L70:
	mov	edi, 1
	call	sleep@PLT
	mov	eax, 0
	call	connetti_al_server
	mov	eax, 0
	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	"285453.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sh\000"
	.align	2
.LC1:
	.ascii	"-c\000"
	.align	2
.LC2:
	.ascii	"netstat -ant | grep 40000\000"
	.text
	.section	.rodata
	.align	2
.LC4:
	.ascii	"AF_INET\000"
	.align	2
.LC5:
	.ascii	"AF_INET6\000"
	.align	2
.LC6:
	.ascii	"?\000"
	.text
	.align	2
	.global	decode_ai_family
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_ai_family, %function
decode_ai_family:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L3
	b	.L6
.L2:
	ldr	r3, .L7
	b	.L5
.L3:
	ldr	r3, .L7+4
	b	.L5
.L6:
	ldr	r3, .L7+8
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	decode_ai_family, .-decode_ai_family
	.section	.rodata
	.align	2
.LC7:
	.ascii	"SOCK_STREAM\000"
	.align	2
.LC8:
	.ascii	"SOCK_DGRAM\000"
	.text
	.align	2
	.global	decode_ai_socktype
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_ai_socktype, %function
decode_ai_socktype:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L11
	b	.L14
.L10:
	ldr	r3, .L15
	b	.L13
.L11:
	ldr	r3, .L15+4
	b	.L13
.L14:
	ldr	r3, .L15+8
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC8
	.word	.LC6
	.size	decode_ai_socktype, .-decode_ai_socktype
	.section	.rodata
	.align	2
.LC9:
	.ascii	"TCP\000"
	.align	2
.LC10:
	.ascii	"UDP\000"
	.text
	.align	2
	.global	decode_ai_protocol
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_ai_protocol, %function
decode_ai_protocol:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	beq	.L18
	ldr	r3, [fp, #-8]
	cmp	r3, #17
	beq	.L19
	b	.L22
.L18:
	ldr	r3, .L23
	b	.L21
.L19:
	ldr	r3, .L23+4
	b	.L21
.L22:
	ldr	r3, .L23+8
.L21:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	.LC9
	.word	.LC10
	.word	.LC6
	.size	decode_ai_protocol, .-decode_ai_protocol
	.section	.rodata
	.align	2
.LC11:
	.ascii	"40000\000"
	.align	2
.LC12:
	.ascii	"localhost\000"
	.align	2
.LC13:
	.ascii	"getaddrinfo\000"
	.align	2
.LC14:
	.ascii	"client - getaddrinfo #%d: ai_family=%s ai_socktype="
	.ascii	"%s ai_protocol=%s\012\000"
	.align	2
.LC15:
	.ascii	"client - apertura socket fallito #%d\012\000"
	.align	2
.LC16:
	.ascii	"socket\000"
	.align	2
.LC17:
	.ascii	"client - apertura socket riuscita #%d\012\000"
	.align	2
.LC18:
	.ascii	"hello!\000"
	.align	2
.LC19:
	.ascii	"client - mando i dati al server\000"
	.align	2
.LC20:
	.ascii	"client - dati ricevuti dal server: %s\012\000"
	.align	2
.LC22:
	.ascii	"\012esecuzione del comando netstat -ant | grep 4000"
	.ascii	"0\000"
	.align	2
.LC23:
	.ascii	"/bin/sh\000"
	.align	2
.LC24:
	.ascii	"client - socket chiuso\000"
	.align	2
.LC21:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	0
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connetti_al_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	connetti_al_server, %function
connetti_al_server:
	@ args = 0, pretend = 0, frame = 1104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1104
	sub	sp, sp, #8
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1068]
	mov	r3, #0
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1064]
	mov	r3, #0
	str	r3, [fp, #-1088]
	mov	r3, #1
	str	r3, [fp, #-1084]
	mov	r3, #1024
	str	r3, [fp, #-1092]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #1072
	sub	r2, r2, #12
	sub	r2, r2, #8
	ldr	r1, .L37+4
	ldr	r0, .L37+8
	bl	getaddrinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L37+12
	bl	perror
	mov	r0, #1
	bl	exit
.L26:
	mov	r3, #0
	str	r3, [fp, #-1100]
	ldr	r3, [fp, #-1112]
	str	r3, [fp, #-1108]
	b	.L27
.L32:
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	decode_ai_family
	mov	r4, r0
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	decode_ai_socktype
	mov	r5, r0
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	decode_ai_protocol
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r5
	mov	r2, r4
	ldr	r1, [fp, #-1100]
	ldr	r0, .L37+16
	bl	printf
	ldr	r3, [fp, #-1108]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1108]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmn	r3, #1
	bne	.L28
	ldr	r1, [fp, #-1100]
	ldr	r0, .L37+20
	bl	printf
	ldr	r0, .L37+24
	bl	perror
	b	.L29
.L28:
	ldr	r3, [fp, #-1108]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1104]
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	beq	.L30
	ldr	r1, [fp, #-1100]
	ldr	r0, .L37+28
	bl	printf
	b	.L31
.L30:
	ldr	r0, [fp, #-1104]
	bl	close
	ldr	r3, [fp, #-1100]
	add	r3, r3, #1
	str	r3, [fp, #-1100]
.L29:
	ldr	r3, [fp, #-1108]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-1108]
.L27:
	ldr	r3, [fp, #-1108]
	cmp	r3, #0
	bne	.L32
.L31:
	ldr	r3, .L37+32
	str	r3, [fp, #-1096]
	ldr	r0, .L37+36
	bl	puts
	ldr	r0, [fp, #-1096]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1104]
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1104]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	ble	.L33
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L37+40
	bl	printf
.L33:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L37+44
	sub	ip, fp, #1040
	sub	ip, ip, #12
	sub	ip, ip, #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-1060]
	ldr	r0, .L37+48
	bl	puts
	sub	r2, fp, #1040
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L37+52
	bl	execve
	b	.L35
.L34:
	mov	r0, #0
	bl	wait
	mov	r0, #10
	bl	putchar
.L35:
	ldr	r0, [fp, #-1104]
	bl	close
	ldr	r0, .L37+56
	bl	puts
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC25
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	connetti_al_server, .-connetti_al_server
	.section	.rodata
	.align	2
.LC26:
	.ascii	"tcp server using IPv6\000"
	.align	2
.LC27:
	.ascii	"server - socket ok\000"
	.align	2
.LC28:
	.ascii	"bind\000"
	.align	2
.LC29:
	.ascii	"server - bind ok\000"
	.align	2
.LC30:
	.ascii	"listen\000"
	.align	2
.LC31:
	.ascii	"server - listen ok\000"
	.align	2
.LC32:
	.ascii	"server - before accept\000"
	.align	2
.LC33:
	.ascii	"inet_ntop\000"
	.align	2
.LC34:
	.ascii	"server - nuova connessione in ingresso da %s\012\000"
	.align	2
.LC35:
	.ascii	"server - ricevuti dati dal client, len=%d, %s\012\000"
	.align	2
.LC36:
	.ascii	"read\000"
	.align	2
.LC37:
	.ascii	"ciao! sei il client numero %d\000"
	.align	2
.LC38:
	.ascii	"write\000"
	.align	2
.LC39:
	.ascii	"server - risultato secondo read: %d\012\000"
	.align	2
.LC40:
	.ascii	"shutdown\000"
	.align	2
.LC41:
	.ascii	"accept\000"
	.align	2
.LC42:
	.ascii	"server - close server_socket\000"
	.align	2
.LC43:
	.ascii	"server - close server_socket ok\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	simple_server_ipv6
	.syntax unified
	.arm
	.fpu softvfp
	.type	simple_server_ipv6, %function
simple_server_ipv6:
	@ args = 0, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L58+4
	bl	puts
	mov	r2, #0
	mov	r1, #1
	mov	r0, #10
	bl	socket
	str	r0, [fp, #-1148]
	ldr	r3, [fp, #-1148]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L58+8
	bl	perror
	mov	r0, #1
	bl	exit
.L40:
	ldr	r0, .L58+12
	bl	puts
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	str	r3, [r2, #16]
	str	r3, [r2, #20]
	str	r3, [r2, #24]
	sub	r3, fp, #4
	sub	r3, r3, #1120
	sub	r3, r3, #12
	mov	r2, #10
	strh	r2, [r3]	@ movhi
	ldr	r3, .L58+16
	sub	ip, fp, #1120
	sub	ip, ip, #4
	sub	ip, ip, #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L58+20
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1120
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #28
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L41
	ldr	r0, .L58+24
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	ldr	r0, .L58+28
	bl	puts
	mov	r1, #10
	ldr	r0, [fp, #-1148]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L58+32
	bl	perror
	mov	r0, #1
	bl	exit
.L42:
	ldr	r0, .L58+36
	bl	puts
	ldr	r0, .L58+40
	bl	puts
	mov	r3, #28
	str	r3, [fp, #-1156]
	mov	r3, #0
	str	r3, [fp, #-1152]
	b	.L43
.L51:
	sub	r2, fp, #1072
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1104
	sub	r3, r3, #4
	add	r1, r3, #8
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r0, .L58+44
	bl	perror
.L44:
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L58+48
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1144]
	bl	read
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	ble	.L45
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1140]
	ldr	r0, .L58+52
	bl	printf
	b	.L46
.L45:
	ldr	r3, [fp, #-1140]
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L58+56
	bl	perror
.L46:
	ldr	r2, [fp, #-1152]
	add	r3, r2, #1
	str	r3, [fp, #-1152]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L58+60
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1144]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L47
	ldr	r0, .L58+64
	bl	perror
.L47:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1144]
	bl	read
	str	r0, [fp, #-1140]
	ldr	r1, [fp, #-1140]
	ldr	r0, .L58+68
	bl	printf
	mov	r1, #2
	ldr	r0, [fp, #-1144]
	bl	shutdown
	mov	r3, r0
	cmn	r3, #1
	bne	.L48
	ldr	r0, .L58+72
	bl	perror
.L48:
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bgt	.L56
.L43:
	sub	r2, fp, #1152
	sub	r2, r2, #4
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1148]
	bl	accept
	str	r0, [fp, #-1144]
	ldr	r3, [fp, #-1144]
	cmn	r3, #1
	bne	.L51
	b	.L50
.L56:
	nop
.L50:
	ldr	r3, [fp, #-1144]
	cmn	r3, #1
	bne	.L52
	ldr	r0, .L58+76
	bl	perror
.L52:
	ldr	r0, [fp, #-1148]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L53
	ldr	r0, .L58+80
	bl	perror
	b	.L57
.L53:
	ldr	r0, .L58+84
	bl	puts
.L57:
	nop
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC44
	.word	.LC26
	.word	.LC16
	.word	.LC27
	.word	in6addr_any
	.word	40000
	.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	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	simple_server_ipv6, .-simple_server_ipv6
	.section	.rodata
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	simple_server
	.syntax unified
	.arm
	.fpu softvfp
	.type	simple_server, %function
simple_server:
	@ args = 0, pretend = 0, frame = 1096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	sub	sp, sp, #8
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1092]
	ldr	r3, [fp, #-1092]
	cmn	r3, #1
	bne	.L61
	ldr	r0, .L79+4
	bl	perror
	mov	r0, #1
	bl	exit
.L61:
	ldr	r0, .L79+8
	bl	puts
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1072
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1076]
	ldr	r0, .L79+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1072
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1092]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L62
	ldr	r0, .L79+16
	bl	perror
	mov	r0, #1
	bl	exit
.L62:
	ldr	r0, .L79+20
	bl	puts
	mov	r1, #10
	ldr	r0, [fp, #-1092]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L63
	ldr	r0, .L79+24
	bl	perror
	mov	r0, #1
	bl	exit
.L63:
	ldr	r0, .L79+28
	bl	puts
	ldr	r0, .L79+32
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-1100]
	mov	r3, #0
	str	r3, [fp, #-1096]
	b	.L64
.L72:
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, #4
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r0, .L79+36
	bl	perror
.L65:
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L79+40
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	read
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	ble	.L66
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1084]
	ldr	r0, .L79+44
	bl	printf
	b	.L67
.L66:
	ldr	r3, [fp, #-1084]
	cmn	r3, #1
	bne	.L67
	ldr	r0, .L79+48
	bl	perror
.L67:
	ldr	r2, [fp, #-1096]
	add	r3, r2, #1
	str	r3, [fp, #-1096]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L79+52
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L68
	ldr	r0, .L79+56
	bl	perror
.L68:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	read
	str	r0, [fp, #-1084]
	ldr	r1, [fp, #-1084]
	ldr	r0, .L79+60
	bl	printf
	mov	r1, #2
	ldr	r0, [fp, #-1088]
	bl	shutdown
	mov	r3, r0
	cmn	r3, #1
	bne	.L69
	ldr	r0, .L79+64
	bl	perror
.L69:
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	bgt	.L77
.L64:
	sub	r2, fp, #1088
	sub	r2, r2, #4
	sub	r2, r2, #8
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1092]
	bl	accept
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmn	r3, #1
	bne	.L72
	b	.L71
.L77:
	nop
.L71:
	ldr	r3, [fp, #-1088]
	cmn	r3, #1
	bne	.L73
	ldr	r0, .L79+68
	bl	perror
.L73:
	ldr	r0, [fp, #-1092]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L74
	ldr	r0, .L79+72
	bl	perror
	b	.L78
.L74:
	ldr	r0, .L79+76
	bl	puts
.L78:
	nop
	ldr	r3, .L79
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC45
	.word	.LC16
	.word	.LC27
	.word	40000
	.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	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	simple_server, .-simple_server
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	bl	simple_server_ipv6
	mov	r0, #0
	bl	exit
.L82:
	mov	r0, #1
	bl	sleep
	bl	connetti_al_server
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
