	.file	"735133.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nScrivo file..."
.LC1:
	.string	"w"
	.align 8
.LC2:
	.string	"/Users/matteofraschini/Downloads/nums.txt"
.LC3:
	.string	"%d "
.LC4:
	.string	"\nFile scritto con successo."
.LC5:
	.string	"r"
	.align 8
.LC6:
	.string	"\nFile aperto. Valori presenti nel file: "
	.align 8
.LC7:
	.string	"\nArray caricato con %d elementi singoli (non duplicati) letti dal file:\n"
.LC8:
	.string	"\nArray ordinato:"
	.align 8
.LC9:
	.string	"\nLista (valore - posizione nell'array ordinato): "
.LC10:
	.string	"\nFile insesistente!"
	.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
	sub	rsp, 496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -464[rbp], 3
	mov	DWORD PTR -460[rbp], 4
	mov	DWORD PTR -456[rbp], 2
	mov	DWORD PTR -452[rbp], 1
	mov	DWORD PTR -448[rbp], 7
	mov	DWORD PTR -444[rbp], 6
	mov	DWORD PTR -440[rbp], 2
	mov	DWORD PTR -436[rbp], 4
	mov	DWORD PTR -432[rbp], 0
	mov	DWORD PTR -428[rbp], 0
	mov	DWORD PTR -488[rbp], 0
	mov	DWORD PTR -484[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -472[rbp], rax
	mov	DWORD PTR -492[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -492[rbp]
	cdqe
	mov	edx, DWORD PTR -464[rbp+rax*4]
	mov	rax, QWORD PTR -472[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -492[rbp], 1
.L2:
	cmp	DWORD PTR -492[rbp], 9
	jle	.L3
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -472[rbp], rax
	cmp	QWORD PTR -472[rbp], 0
	je	.L4
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L7:
	lea	rdx, -496[rbp]
	mov	rax, QWORD PTR -472[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -496[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -496[rbp]
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -416[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_single
	cmp	eax, 1
	jne	.L5
	mov	edx, DWORD PTR -496[rbp]
	mov	eax, DWORD PTR -488[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	add	DWORD PTR -488[rbp], 1
.L5:
	mov	rax, QWORD PTR -472[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L6
	cmp	DWORD PTR -488[rbp], 49
	jle	.L7
.L6:
	mov	eax, DWORD PTR -488[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	show_array
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -488[rbp]
	lea	rcx, -208[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	copy_array
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -208[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	ord_array
	mov	edx, DWORD PTR -488[rbp]
	lea	rax, -208[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	show_array
	mov	DWORD PTR -492[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -492[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	edx, DWORD PTR -488[rbp]
	lea	rcx, -208[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	search_pos
	mov	DWORD PTR -484[rbp], eax
	mov	eax, DWORD PTR -492[rbp]
	cdqe
	mov	ecx, DWORD PTR -416[rbp+rax*4]
	mov	edx, DWORD PTR -484[rbp]
	mov	rax, QWORD PTR -480[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	copy_to_list
	mov	QWORD PTR -480[rbp], rax
	add	DWORD PTR -492[rbp], 1
.L8:
	mov	eax, DWORD PTR -492[rbp]
	cmp	eax, DWORD PTR -488[rbp]
	jl	.L9
	cmp	QWORD PTR -480[rbp], 0
	je	.L10
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -480[rbp]
	mov	rdi, rax
	call	show_list
	jmp	.L10
.L4:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC11:
	.string	"Numero %d in posizione %d\n"
	.text
	.globl	show_array
	.type	show_array, @function
show_array:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	show_array, .-show_array
	.globl	check_single
	.type	check_single, @function
check_single:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L18
	mov	DWORD PTR -8[rbp], 0
.L18:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L19
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_single, .-check_single
	.globl	copy_to_list
	.type	copy_to_list, @function
copy_to_list:
.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 4[rax], edx
	cmp	QWORD PTR -24[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L23:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	copy_to_list, .-copy_to_list
	.section	.rodata
.LC12:
	.string	"%d - %d \n"
	.text
	.globl	show_list
	.type	show_list, @function
show_list:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L28:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L29
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	show_list, .-show_list
	.globl	copy_array
	.type	copy_array, @function
copy_array:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L32
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	copy_array, .-copy_array
	.globl	ord_array
	.type	ord_array, @function
ord_array:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L34
.L38:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L36
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
.L36:
	add	DWORD PTR -8[rbp], 1
.L35:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L37
	add	DWORD PTR -12[rbp], 1
.L34:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	jl	.L38
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ord_array, .-ord_array
	.globl	search_pos
	.type	search_pos, @function
search_pos:
.LFB13:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -24[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L40
.L42:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L41
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
.L41:
	add	DWORD PTR -4[rbp], 1
.L40:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L42
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	search_pos, .-search_pos
	.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	"735133.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Scrivo file...\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"/Users/matteofraschini/Downloads/nums.txt\000"
	.align	2
.LC4:
	.ascii	"%d \000"
	.align	2
.LC5:
	.ascii	"\012File scritto con successo.\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"\012File aperto. Valori presenti nel file: \000"
	.align	2
.LC8:
	.ascii	"\012Array caricato con %d elementi singoli (non dup"
	.ascii	"licati) letti dal file:\012\000"
	.align	2
.LC9:
	.ascii	"\012Array ordinato:\000"
	.align	2
.LC10:
	.ascii	"\012Lista (valore - posizione nell'array ordinato):"
	.ascii	" \000"
	.align	2
.LC11:
	.ascii	"\012File insesistente!\000"
	.align	2
.LC0:
	.word	3
	.word	4
	.word	2
	.word	1
	.word	7
	.word	6
	.word	2
	.word	4
	.word	0
	.word	0
	.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 = 472
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #472
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L13+4
	sub	ip, fp, #448
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-464]
	mov	r3, #0
	str	r3, [fp, #-456]
	mov	r3, #0
	str	r3, [fp, #-460]
	ldr	r0, .L13+8
	bl	printf
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-452]
	mov	r3, #0
	str	r3, [fp, #-468]
	b	.L2
.L3:
	ldr	r3, [fp, #-468]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-444]
	mov	r2, r3
	ldr	r1, .L13+20
	ldr	r0, [fp, #-452]
	bl	fprintf
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-468]
.L2:
	ldr	r3, [fp, #-468]
	cmp	r3, #9
	ble	.L3
	ldr	r0, [fp, #-452]
	bl	fclose
	ldr	r0, .L13+24
	bl	puts
	ldr	r1, .L13+28
	ldr	r0, .L13+16
	bl	fopen
	str	r0, [fp, #-452]
	ldr	r3, [fp, #-452]
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L13+32
	bl	printf
	b	.L5
.L7:
	sub	r3, fp, #472
	mov	r2, r3
	ldr	r1, .L13+20
	ldr	r0, [fp, #-452]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-472]
	mov	r1, r3
	ldr	r0, .L13+20
	bl	printf
	ldr	r1, [fp, #-472]
	sub	r3, fp, #408
	ldr	r2, [fp, #-464]
	mov	r0, r3
	bl	check_single
	mov	r3, r0
	cmp	r3, #1
	bne	.L5
	ldr	r2, [fp, #-472]
	ldr	r3, [fp, #-464]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-464]
	add	r3, r3, #1
	str	r3, [fp, #-464]
.L5:
	ldr	r0, [fp, #-452]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-464]
	cmp	r3, #49
	ble	.L7
.L6:
	ldr	r1, [fp, #-464]
	ldr	r0, .L13+36
	bl	printf
	sub	r3, fp, #408
	ldr	r1, [fp, #-464]
	mov	r0, r3
	bl	show_array
	ldr	r0, .L13+40
	bl	puts
	sub	r1, fp, #208
	sub	r3, fp, #408
	ldr	r2, [fp, #-464]
	mov	r0, r3
	bl	copy_array
	sub	r3, fp, #208
	ldr	r1, [fp, #-464]
	mov	r0, r3
	bl	ord_array
	sub	r3, fp, #208
	ldr	r1, [fp, #-464]
	mov	r0, r3
	bl	show_array
	mov	r3, #0
	str	r3, [fp, #-468]
	b	.L8
.L9:
	ldr	r3, [fp, #-468]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	sub	r1, fp, #208
	ldr	r2, [fp, #-464]
	mov	r0, r3
	bl	search_pos
	str	r0, [fp, #-456]
	ldr	r3, [fp, #-468]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	ldr	r2, [fp, #-456]
	mov	r1, r3
	ldr	r0, [fp, #-460]
	bl	copy_to_list
	str	r0, [fp, #-460]
	ldr	r3, [fp, #-468]
	add	r3, r3, #1
	str	r3, [fp, #-468]
.L8:
	ldr	r2, [fp, #-468]
	ldr	r3, [fp, #-464]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-460]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L13+44
	bl	puts
	ldr	r0, [fp, #-460]
	bl	show_list
	b	.L10
.L4:
	ldr	r0, .L13+48
	bl	printf
.L10:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Numero %d in posizione %d\012\000"
	.text
	.align	2
	.global	show_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_array, %function
show_array:
	@ 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]
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC13
	.size	show_array, .-show_array
	.align	2
	.global	check_single
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_single, %function
check_single:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L23:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L22
	mov	r3, #0
	str	r3, [fp, #-12]
.L22:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_single, .-check_single
	.align	2
	.global	copy_to_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_to_list, %function
copy_to_list:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L27
.L26:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L28
.L29:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
.L27:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	copy_to_list, .-copy_to_list
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%d - %d \012\000"
	.text
	.align	2
	.global	show_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_list, %function
show_list:
	@ 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]
	b	.L32
.L33:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L34
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC14
	.size	show_list, .-show_list
	.align	2
	.global	copy_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_array, %function
copy_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L38:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L38
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	copy_array, .-copy_array
	.align	2
	.global	ord_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	ord_array, %function
ord_array:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L44:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L41
.L43:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L42
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L42:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L41:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L44
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ord_array, .-ord_array
	.align	2
	.global	search_pos
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_pos, %function
search_pos:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L48:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L47
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	search_pos, .-search_pos
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
