	.file	"733158.c"
	.intel_syntax noprefix
	.text
	.globl	univoco
	.bss
	.align 4
	.type	univoco, @object
	.size	univoco, 4
univoco:
	.zero	4
	.text
	.globl	create_contact
	.type	create_contact, @function
create_contact:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 92
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR univoco[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 64
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 69[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 20
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR univoco[rip]
	add	eax, 1
	mov	DWORD PTR univoco[rip], eax
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_contact, .-create_contact
	.section	.rodata
	.align 8
.LC0:
	.string	"person:\t\t id=%d  name='%s' phone='%s'\n"
.LC1:
	.string	"____________________\n"
	.text
	.globl	print_contact
	.type	print_contact, @function
print_contact:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 69[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_contact, .-print_contact
	.section	.rodata
.LC2:
	.string	"errore in create_contact!"
	.text
	.globl	verifica
	.type	verifica, @function
verifica:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 69
	test	rax, rax
	jne	.L7
.L5:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	verifica, .-verifica
	.globl	cmp_contact
	.type	cmp_contact, @function
cmp_contact:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L9
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 69[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 69
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cmp_contact, .-cmp_contact
	.globl	address_book
	.bss
	.align 32
	.type	address_book, @object
	.size	address_book, 2048
address_book:
	.zero	2048
	.globl	address_book_order
	.align 32
	.type	address_book_order, @object
	.size	address_book_order, 2048
address_book_order:
	.zero	2048
	.section	.rodata
	.align 8
.LC3:
	.string	"Il contatto non \303\250 stato inserito, contatto non valido!"
	.align 8
.LC4:
	.string	"Il contatto non \303\250 stato inserito, la rubrica \303\250 piena!"
.LC5:
	.string	"____________________"
	.text
	.globl	add_contact
	.type	add_contact, @function
add_contact:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L14
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L15
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, address_book[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L13
.L15:
	add	DWORD PTR -4[rbp], 1
.L14:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L16
	cmp	DWORD PTR -4[rbp], 255
	jle	.L17
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L13
.L17:
	mov	eax, 0
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_contact, .-add_contact
	.section	.rodata
.LC6:
	.string	"null"
.LC7:
	.string	"pieno"
	.text
	.globl	add_contact_order
	.type	add_contact_order, @function
add_contact_order:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L21
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book_order[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, address_book_order[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L20
.L22:
	add	DWORD PTR -4[rbp], 1
.L21:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L23
	cmp	DWORD PTR -4[rbp], 255
	jle	.L24
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L20
.L24:
	mov	eax, 0
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add_contact_order, .-add_contact_order
	.section	.rodata
	.align 8
.LC8:
	.string	"Il contatto non \303\250 stato rimosso, contatto non valido!"
	.align 8
.LC9:
	.string	"Non \303\250 stato trovato il contatto richiesto!"
	.text
	.globl	remove_contact
	.type	remove_contact, @function
remove_contact:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L28
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L27
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L27
.L29:
	add	DWORD PTR -4[rbp], 1
.L28:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L30
	cmp	DWORD PTR -4[rbp], 255
	jle	.L31
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L27
.L31:
	mov	eax, 0
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	remove_contact, .-remove_contact
	.section	.rodata
	.align 8
.LC10:
	.string	"Trovato!\n Il primo contatto uguale si trova alla posizione %d\n"
	.text
	.globl	search_contact
	.type	search_contact, @function
search_contact:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_contact
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L34
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L34:
	add	DWORD PTR -8[rbp], 1
.L33:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L35
	cmp	DWORD PTR -8[rbp], 255
	jle	.L36
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L37
.L36:
	mov	eax, 0
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	search_contact, .-search_contact
	.section	.rodata
.LC11:
	.string	"____print_address_book____"
.LC12:
	.string	"__________________________"
	.text
	.globl	print_address_book
	.type	print_address_book, @function
print_address_book:
.LFB14:
	.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], 0
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L40
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	print_contact
.L40:
	add	DWORD PTR -4[rbp], 1
.L39:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L41
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	print_address_book, .-print_address_book
	.globl	sort_by_name
	.type	sort_by_name, @function
sort_by_name:
.LFB15:
	.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 -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L51:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L45
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	cmp_contact
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L45
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
.L45:
	add	DWORD PTR -16[rbp], 1
.L44:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L46
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L47
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	add_contact_order
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	remove_contact
.L47:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L48
.L50:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L49
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L49:
	add	DWORD PTR -12[rbp], 1
.L48:
	cmp	DWORD PTR -12[rbp], 255
	jle	.L50
	add	DWORD PTR -24[rbp], 1
.L43:
	cmp	DWORD PTR -24[rbp], 255
	jle	.L51
	mov	DWORD PTR -8[rbp], 0
	jmp	.L52
.L54:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book_order[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L53
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, address_book_order[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	add_contact
.L53:
	add	DWORD PTR -8[rbp], 1
.L52:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L54
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	sort_by_name, .-sort_by_name
	.section	.rodata
.LC13:
	.string	"+391239"
.LC14:
	.string	"dino"
.LC15:
	.string	"filippino"
.LC16:
	.string	"+391235"
.LC17:
	.string	"barbara"
.LC18:
	.string	"+391234"
.LC19:
	.string	"antonio"
.LC20:
	.string	"+391238"
.LC21:
	.string	"enrico"
.LC22:
	.string	"+391236"
.LC23:
	.string	"chiara"
.LC24:
	.string	"+399999"
.LC25:
	.string	"pino"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	call	create_contact
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	add_contact
	lea	rsi, .LC13[rip]
	lea	rdi, .LC15[rip]
	call	create_contact
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	add_contact
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	call	create_contact
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	add_contact
	lea	rsi, .LC18[rip]
	lea	rdi, .LC19[rip]
	call	create_contact
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	add_contact
	lea	rsi, .LC20[rip]
	lea	rdi, .LC21[rip]
	call	create_contact
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	add_contact
	lea	rsi, .LC22[rip]
	lea	rdi, .LC23[rip]
	call	create_contact
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	add_contact
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	remove_contact
	lea	rsi, .LC24[rip]
	lea	rdi, .LC25[rip]
	call	create_contact
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	verifica
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_contact
	mov	eax, 0
	call	print_address_book
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	add_contact
	mov	eax, 0
	call	print_address_book
	mov	eax, 0
	call	sort_by_name
	mov	eax, 0
	call	print_address_book
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"733158.c"
	.text
	.global	univoco
	.bss
	.align	2
	.type	univoco, %object
	.size	univoco, 4
univoco:
	.space	4
	.text
	.align	2
	.global	create_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_contact, %function
create_contact:
	@ 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]
	mov	r0, #92
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, #64
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #69
	mov	r2, #20
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L3
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	univoco
	.size	create_contact, .-create_contact
	.section	.rodata
	.align	2
.LC0:
	.ascii	"person:\011\011 id=%d  name='%s' phone='%s'\012\000"
	.align	2
.LC1:
	.ascii	"____________________\012\000"
	.text
	.align	2
	.global	print_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_contact, %function
print_contact:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	add	r3, r3, #69
	ldr	r0, .L6
	bl	printf
	ldr	r0, .L6+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	print_contact, .-print_contact
	.section	.rodata
	.align	2
.LC2:
	.ascii	"errore in create_contact!\000"
	.text
	.align	2
	.global	verifica
	.syntax unified
	.arm
	.fpu softvfp
	.type	verifica, %function
verifica:
	@ 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]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-8]
	add	r3, r3, #69
	cmp	r3, #0
	bne	.L11
.L9:
	ldr	r0, .L12
	bl	puts
	mov	r0, #1
	bl	exit
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.size	verifica, .-verifica
	.align	2
	.global	cmp_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp_contact, %function
cmp_contact:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r2, r3, #4
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-8]
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
	add	r2, r3, #69
	ldr	r3, [fp, #-20]
	add	r3, r3, #69
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cmp_contact, .-cmp_contact
	.comm	address_book,1024,4
	.comm	address_book_order,1024,4
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Il contatto non \303\250 stato inserito, contatto n"
	.ascii	"on valido!\000"
	.align	2
.LC4:
	.ascii	"Il contatto non \303\250 stato inserito, la rubrica"
	.ascii	" \303\250 piena!\000"
	.align	2
.LC5:
	.ascii	"____________________\000"
	.text
	.align	2
	.global	add_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_contact, %function
add_contact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L24
	bl	printf
	mvn	r3, #0
	b	.L19
.L22:
	ldr	r2, .L24+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L21
	ldr	r1, .L24+4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	b	.L19
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L22
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L23
	ldr	r0, .L24+8
	bl	printf
	ldr	r0, .L24+12
	bl	puts
	mvn	r3, #0
	b	.L19
.L23:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	address_book
	.word	.LC4
	.word	.LC5
	.size	add_contact, .-add_contact
	.section	.rodata
	.align	2
.LC6:
	.ascii	"null\000"
	.align	2
.LC7:
	.ascii	"pieno\000"
	.text
	.align	2
	.global	add_contact_order
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_contact_order, %function
add_contact_order:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L33
	bl	printf
	mvn	r3, #0
	b	.L28
.L31:
	ldr	r2, .L33+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L30
	ldr	r1, .L33+4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L31
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L32
	ldr	r0, .L33+8
	bl	printf
	mvn	r3, #0
	b	.L28
.L32:
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC6
	.word	address_book_order
	.word	.LC7
	.size	add_contact_order, .-add_contact_order
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Il contatto non \303\250 stato rimosso, contatto no"
	.ascii	"n valido!\000"
	.align	2
.LC9:
	.ascii	"Non \303\250 stato trovato il contatto richiesto!\000"
	.text
	.align	2
	.global	remove_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_contact, %function
remove_contact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L38
	ldr	r0, .L42
	bl	puts
	ldr	r0, .L42+4
	bl	puts
	mvn	r3, #0
	b	.L37
.L40:
	ldr	r2, .L42+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L39
	ldr	r2, .L42+8
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	b	.L37
.L39:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L40
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L41
	ldr	r0, .L42+12
	bl	puts
	ldr	r0, .L42+4
	bl	puts
	mvn	r3, #0
	b	.L37
.L41:
	mov	r3, #0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC8
	.word	.LC5
	.word	address_book
	.word	.LC9
	.size	remove_contact, .-remove_contact
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Trovato!\012 Il primo contatto uguale si trova alla"
	.ascii	" posizione %d\012\000"
	.text
	.align	2
	.global	search_contact
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_contact, %function
search_contact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L45
.L47:
	ldr	r2, .L50
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	cmp_contact
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L46
	ldr	r1, [fp, #-12]
	ldr	r0, .L50+4
	bl	printf
.L46:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L45:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L47
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L48
	ldr	r0, .L50+8
	bl	printf
	mvn	r3, #0
	b	.L49
.L48:
	mov	r3, #0
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	address_book
	.word	.LC10
	.word	.LC9
	.size	search_contact, .-search_contact
	.section	.rodata
	.align	2
.LC11:
	.ascii	"____print_address_book____\000"
	.align	2
.LC12:
	.ascii	"__________________________\000"
	.text
	.align	2
	.global	print_address_book
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_address_book, %function
print_address_book:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L56
	bl	puts
	b	.L53
.L55:
	ldr	r2, .L56+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L54
	ldr	r2, .L56+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	print_contact
.L54:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L55
	ldr	r0, .L56+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC11
	.word	address_book
	.word	.LC12
	.size	print_address_book, .-print_address_book
	.align	2
	.global	sort_by_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_by_name, %function
sort_by_name:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L59
.L67:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L60
.L62:
	ldr	r2, .L71
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L61
	ldr	r2, .L71
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L71
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	cmp_contact
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L61
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
.L61:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L60:
	ldr	r3, [fp, #-20]
	cmp	r3, #9
	ble	.L62
	ldr	r2, .L71
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L63
	ldr	r2, .L71
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	add_contact_order
	ldr	r2, .L71
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	remove_contact
.L63:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L64
.L66:
	ldr	r2, .L71
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
.L65:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L64:
	ldr	r3, [fp, #-16]
	cmp	r3, #255
	ble	.L66
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L59:
	ldr	r3, [fp, #-28]
	cmp	r3, #255
	ble	.L67
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L68
.L70:
	ldr	r2, .L71+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L69
	ldr	r2, .L71+4
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	add_contact
.L69:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L68:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L70
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	address_book
	.word	address_book_order
	.size	sort_by_name, .-sort_by_name
	.section	.rodata
	.align	2
.LC13:
	.ascii	"+391239\000"
	.align	2
.LC14:
	.ascii	"dino\000"
	.align	2
.LC15:
	.ascii	"filippino\000"
	.align	2
.LC16:
	.ascii	"+391235\000"
	.align	2
.LC17:
	.ascii	"barbara\000"
	.align	2
.LC18:
	.ascii	"+391234\000"
	.align	2
.LC19:
	.ascii	"antonio\000"
	.align	2
.LC20:
	.ascii	"+391238\000"
	.align	2
.LC21:
	.ascii	"enrico\000"
	.align	2
.LC22:
	.ascii	"+391236\000"
	.align	2
.LC23:
	.ascii	"chiara\000"
	.align	2
.LC24:
	.ascii	"+399999\000"
	.align	2
.LC25:
	.ascii	"pino\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r1, .L75
	ldr	r0, .L75+4
	bl	create_contact
	str	r0, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	verifica
	ldr	r0, [fp, #-32]
	bl	add_contact
	ldr	r1, .L75
	ldr	r0, .L75+8
	bl	create_contact
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	verifica
	ldr	r0, [fp, #-28]
	bl	add_contact
	ldr	r1, .L75+12
	ldr	r0, .L75+16
	bl	create_contact
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	verifica
	ldr	r0, [fp, #-24]
	bl	add_contact
	ldr	r1, .L75+20
	ldr	r0, .L75+24
	bl	create_contact
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	verifica
	ldr	r0, [fp, #-20]
	bl	add_contact
	ldr	r1, .L75+28
	ldr	r0, .L75+32
	bl	create_contact
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	verifica
	ldr	r0, [fp, #-16]
	bl	add_contact
	ldr	r1, .L75+36
	ldr	r0, .L75+40
	bl	create_contact
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	verifica
	ldr	r0, [fp, #-12]
	bl	add_contact
	ldr	r0, [fp, #-20]
	bl	remove_contact
	ldr	r1, .L75+44
	ldr	r0, .L75+48
	bl	create_contact
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	verifica
	ldr	r0, [fp, #-8]
	bl	add_contact
	bl	print_address_book
	ldr	r0, [fp, #-20]
	bl	add_contact
	bl	print_address_book
	bl	sort_by_name
	bl	print_address_book
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
