	.file	"313224.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"socket() fallito err: %d \"%s\"\n"
.LC1:
	.string	"socket() ok"
.LC2:
	.string	"bind() fllita err: %d \"%s\"\n"
	.align 8
.LC3:
	.string	"bind() sul server ok, ora mi pongo in attesa:"
.LC4:
	.string	"recvfrom() failed [err %d] "
.LC5:
	.string	"ho ricevuto un messaggio: "
	.align 8
.LC6:
	.string	"ricevuto  msg: \"%s\" lunghezza: %d \n"
.LC7:
	.string	"host mittente: %s:%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2936
	.cfi_offset 3, -24
	mov	DWORD PTR -11124[rbp], edi
	mov	QWORD PTR -11136[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	WORD PTR -11088[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -11084[rbp], eax
	mov	edi, 1313
	call	htons@PLT
	mov	WORD PTR -11086[rbp], ax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -11100[rbp], eax
	cmp	DWORD PTR -11100[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rcx, -11088[rbp]
	mov	eax, DWORD PTR -11100[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -11096[rbp], eax
	cmp	DWORD PTR -11096[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -11104[rbp], 16
	lea	rcx, -11104[rbp]
	lea	rdx, -11072[rbp]
	lea	rsi, -10032[rbp]
	mov	eax, DWORD PTR -11100[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 10000
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -11092[rbp], eax
	cmp	DWORD PTR -11092[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	lea	rax, -11056[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -11056[rbp]
	mov	rdi, rax
	call	perror@PLT
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -11092[rbp]
	lea	rax, -10032[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -11056[rbp]
	lea	rdx, -11072[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 15
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -11070[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -11106[rbp], ax
	movsx	edx, WORD PTR -11106[rbp]
	lea	rax, -11056[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -11100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"313224.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket() fallito err: %d \"%s\"\012\000"
	.align	2
.LC1:
	.ascii	"socket() ok\000"
	.align	2
.LC2:
	.ascii	"bind() fllita err: %d \"%s\"\012\000"
	.align	2
.LC3:
	.ascii	"bind() sul server ok, ora mi pongo in attesa:\000"
	.align	2
.LC4:
	.ascii	"recvfrom() failed [err %d] \000"
	.align	2
.LC5:
	.ascii	"ho ricevuto un messaggio: \000"
	.align	2
.LC6:
	.ascii	"ricevuto  msg: \"%s\" lunghezza: %d \012\000"
	.align	2
.LC7:
	.ascii	"host mittente: %s:%d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 11088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #11072
	sub	sp, sp, #28
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2892]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2896]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2864
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2864]
	ldr	r0, .L7+4
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2864
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-2880]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2880]
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L7+8
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L7+12
	bl	puts
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #52
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2880]
	bl	bind
	str	r0, [r4, #-2876]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2876]
	cmn	r3, #1
	bne	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L7+20
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L7+24
	bl	puts
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-2884]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #9984
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #11072
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L7+28
	ldr	r0, [r0, #-2880]
	bl	recvfrom
	str	r0, [r4, #-2872]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2872]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L7+32
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	perror
.L4:
	ldr	r0, .L7+36
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r2, [r2, #-2872]
	mov	r1, r3
	ldr	r0, .L7+40
	bl	printf
	sub	r2, fp, #11008
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r1, r3, #4
	mov	r3, #15
	mov	r0, #2
	bl	inet_ntop
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2848
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2880
	sub	r3, r3, #6
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2880
	sub	r3, r3, #6
	ldrsh	r2, [r3]
	sub	r3, fp, #11008
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L7+44
	bl	printf
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2880]
	bl	close
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	1313
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	10000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
