	.file	"631855.c"
	.intel_syntax noprefix
	.text
	.globl	sol
	.bss
	.align 32
	.type	sol, @object
	.size	sol, 60
sol:
	.zero	60
	.globl	solval
	.align 4
	.type	solval, @object
	.size	solval, 4
solval:
	.zero	4
	.globl	cons
	.align 32
	.type	cons, @object
	.size	cons, 40
cons:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"Difficolta massima diagonale: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Difficolta massima totale: "
.LC3:
	.string	"r"
.LC4:
	.string	"elementi.txt"
.LC5:
	.string	"%s %d %d %d %d %d %f %d"
	.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, 88
	.cfi_offset 3, -24
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -68[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -60[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, cons[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -60[rbp], 1
.L2:
	cmp	DWORD PTR -60[rbp], 2
	jle	.L3
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR cons[rip+12], eax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L4
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -48[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	jne	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	DWORD PTR -60[rbp], 0
	jmp	.L6
.L7:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	r9, 124[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	r8, 120[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdi, 116[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rsi, 112[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	r11, 108[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	r10, 104[rax]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rdx, 100[rax]
	mov	rbx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 5
	add	rax, rcx
	sal	rax, 2
	add	rax, rbx
	mov	rbx, rax
	mov	rax, QWORD PTR -56[rbp]
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9, r11
	mov	r8, r10
	mov	rcx, rdx
	mov	rdx, rbx
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	rsp, 32
	add	DWORD PTR -60[rbp], 1
.L6:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L7
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	generaProgramma
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	calcCosto
	.type	calcCosto, @function
calcCosto:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR 136[rbp]
	mov	eax, DWORD PTR 140[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR 116[rbp]
	test	eax, eax
	jle	.L11
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
.L11:
	mov	eax, DWORD PTR cons[rip+36]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR 124[rbp]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, eax
	add	eax, 2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
.L12:
	mov	eax, DWORD PTR cons[rip+28]
	test	eax, eax
	jne	.L13
	cmp	DWORD PTR -40[rbp], 0
	jle	.L13
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR 100[rax]
	test	eax, eax
	jle	.L13
	mov	eax, DWORD PTR 116[rbp]
	test	eax, eax
	jle	.L13
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, eax
	add	eax, 3
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
.L13:
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	calcCosto, .-calcCosto
	.globl	generaProgramma
	.type	generaProgramma, @function
generaProgramma:
.LFB8:
	.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, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	DWORD PTR [rdx+rax], -1
	add	DWORD PTR -32[rbp], 1
.L17:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L18
	add	DWORD PTR -36[rbp], 1
.L16:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L19
	mov	DWORD PTR -32[rbp], 0
	jmp	.L20
.L32:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L21
.L31:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rcx, edx
	mov	rdx, rcx
	sal	rdx, 5
	add	rdx, rcx
	sal	rdx, 2
	mov	rcx, rdx
	mov	rdx, QWORD PTR -24[rbp]
	lea	r12, [rcx+rdx]
	mov	r9d, DWORD PTR -32[rbp]
	mov	r8d, DWORD PTR -36[rbp]
	mov	rdi, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsp, 8
	sub	rsp, 136
	mov	rdx, rsp
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	rcx, QWORD PTR 80[rax]
	mov	rbx, QWORD PTR 88[rax]
	mov	QWORD PTR 80[rdx], rcx
	mov	QWORD PTR 88[rdx], rbx
	mov	rcx, QWORD PTR 96[rax]
	mov	rbx, QWORD PTR 104[rax]
	mov	QWORD PTR 96[rdx], rcx
	mov	QWORD PTR 104[rdx], rbx
	mov	rcx, QWORD PTR 112[rax]
	mov	rbx, QWORD PTR 120[rax]
	mov	QWORD PTR 112[rdx], rcx
	mov	QWORD PTR 120[rdx], rbx
	mov	eax, DWORD PTR 128[rax]
	mov	DWORD PTR 128[rdx], eax
	mov	ecx, r9d
	mov	edx, r8d
	call	calcCosto
	add	rsp, 144
	movd	eax, xmm0
	mov	DWORD PTR 128[r12], eax
	add	DWORD PTR -28[rbp], 1
.L22:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L23
	mov	eax, DWORD PTR -56[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, cmp_elem[rip]
	mov	edx, 132
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L24
.L30:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L25
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 104[rax]
	cmp	eax, 1
	jne	.L26
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 124[rax]
	mov	eax, ecx
	sub	eax, edx
	test	eax, eax
	js	.L26
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsp, 8
	sub	rsp, 136
	mov	rdx, rsp
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	rcx, QWORD PTR 80[rax]
	mov	rbx, QWORD PTR 88[rax]
	mov	QWORD PTR 80[rdx], rcx
	mov	QWORD PTR 88[rdx], rbx
	mov	rcx, QWORD PTR 96[rax]
	mov	rbx, QWORD PTR 104[rax]
	mov	QWORD PTR 96[rdx], rcx
	mov	QWORD PTR 104[rdx], rbx
	mov	rcx, QWORD PTR 112[rax]
	mov	rbx, QWORD PTR 120[rax]
	mov	QWORD PTR 112[rdx], rcx
	mov	QWORD PTR 120[rdx], rbx
	mov	eax, DWORD PTR 128[rax]
	mov	DWORD PTR 128[rdx], eax
	call	getIndex
	add	rsp, 144
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 124[rax]
	sub	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	ecx, DWORD PTR cons[rip+12]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 124[rax]
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR cons[rip+12], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	add	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	ecx, DWORD PTR cons[rip+32]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	cmp	eax, 2
	sete	al
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR cons[rip+32], eax
	mov	ecx, DWORD PTR cons[rip+36]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	cmp	eax, 1
	sete	al
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR cons[rip+36], eax
	jmp	.L27
.L25:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	ecx, DWORD PTR 108[rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 104[rax]
	cmp	ecx, eax
	jne	.L26
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 124[rax]
	mov	eax, ecx
	sub	eax, edx
	test	eax, eax
	js	.L26
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsp, 8
	sub	rsp, 136
	mov	rdx, rsp
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 16[rdx], rcx
	mov	QWORD PTR 24[rdx], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR 32[rdx], rcx
	mov	QWORD PTR 40[rdx], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR 48[rdx], rcx
	mov	QWORD PTR 56[rdx], rbx
	mov	rcx, QWORD PTR 64[rax]
	mov	rbx, QWORD PTR 72[rax]
	mov	QWORD PTR 64[rdx], rcx
	mov	QWORD PTR 72[rdx], rbx
	mov	rcx, QWORD PTR 80[rax]
	mov	rbx, QWORD PTR 88[rax]
	mov	QWORD PTR 80[rdx], rcx
	mov	QWORD PTR 88[rdx], rbx
	mov	rcx, QWORD PTR 96[rax]
	mov	rbx, QWORD PTR 104[rax]
	mov	QWORD PTR 96[rdx], rcx
	mov	QWORD PTR 104[rdx], rbx
	mov	rcx, QWORD PTR 112[rax]
	mov	rbx, QWORD PTR 120[rax]
	mov	QWORD PTR 112[rdx], rcx
	mov	QWORD PTR 120[rdx], rbx
	mov	eax, DWORD PTR 128[rax]
	mov	DWORD PTR 128[rdx], eax
	call	getIndex
	add	rsp, 144
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 124[rax]
	sub	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	ecx, DWORD PTR cons[rip+12]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 124[rax]
	mov	eax, ecx
	sub	eax, edx
	mov	DWORD PTR cons[rip+12], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	add	ecx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	lea	rax, cons[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	ecx, DWORD PTR cons[rip+32]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	cmp	eax, 2
	sete	al
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR cons[rip+32], eax
	mov	ecx, DWORD PTR cons[rip+36]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	cmp	eax, 1
	sete	al
	movzx	eax, al
	add	eax, ecx
	mov	DWORD PTR cons[rip+36], eax
	mov	ecx, DWORD PTR cons[rip+28]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rdi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	eax, DWORD PTR 100[rax]
	test	eax, eax
	jle	.L28
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 100[rax]
	test	eax, eax
	jle	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	add	eax, ecx
	mov	DWORD PTR cons[rip+28], eax
	jmp	.L27
.L26:
	add	DWORD PTR -28[rbp], 1
.L24:
	mov	eax, DWORD PTR -56[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L30
.L27:
	add	DWORD PTR -36[rbp], 1
.L21:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L31
	add	DWORD PTR -32[rbp], 1
.L20:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L32
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	stampaSol
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	generaProgramma, .-generaProgramma
	.section	.rodata
.LC7:
	.string	"%d "
.LC8:
	.string	"DIAG #%d > %.3f"
.LC10:
	.string	" * 1.5 (BONUS)"
.LC11:
	.string	"%s "
.LC14:
	.string	"TOT = %.3f\n"
	.text
	.globl	stampaSol
	.type	stampaSol, @function
stampaSol:
.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, 64
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -20[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L34
.L37:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L35:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L36
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -36[rbp], 1
.L34:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L37
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L38
.L43:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L39
.L42:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L56
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movss	xmm1, DWORD PTR -20[rbp+rax*4]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	movss	xmm0, DWORD PTR 120[rax]
	addss	xmm0, xmm1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movss	DWORD PTR -20[rbp+rax*4], xmm0
	add	DWORD PTR -32[rbp], 1
.L39:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L42
	jmp	.L41
.L56:
	nop
.L41:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	add	DWORD PTR -36[rbp], 1
.L38:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L43
	mov	DWORD PTR -36[rbp], 0
	jmp	.L44
.L51:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	movss	xmm0, DWORD PTR -20[rbp+rax*4]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 1
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	cmp	DWORD PTR -36[rbp], 2
	jne	.L45
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR 124[rax]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	comiss	xmm0, DWORD PTR .LC9[rip]
	jb	.L45
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 1
.L45:
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L47
.L50:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, -1
	je	.L57
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, sol[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L47:
	cmp	DWORD PTR -32[rbp], 4
	jle	.L50
	jmp	.L49
.L57:
	nop
.L49:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -36[rbp], 1
.L44:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L51
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR -16[rbp]
	addss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	cmp	DWORD PTR -24[rbp], 1
	jne	.L52
	movsd	xmm0, QWORD PTR .LC12[rip]
	jmp	.L53
.L52:
	movsd	xmm0, QWORD PTR .LC13[rip]
.L53:
	mulsd	xmm0, xmm2
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stampaSol, .-stampaSol
	.globl	cmp_elem
	.type	cmp_elem, @function
cmp_elem:
.LFB10:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR 128[rax]
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR 128[rax]
	subss	xmm0, xmm1
	cvttss2si	eax, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp_elem, .-cmp_elem
	.globl	getIndex
	.type	getIndex, @function
getIndex:
.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	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L61
.L64:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	lea	rsi, 16[rbp]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L63
.L62:
	add	DWORD PTR -4[rbp], 1
.L61:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L64
	mov	eax, -1
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getIndex, .-getIndex
	.section	.rodata
	.align 4
.LC9:
	.long	1090519040
	.align 8
.LC12:
	.long	0
	.long	1073217536
	.align 8
.LC13:
	.long	0
	.long	1072693248
	.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	"631855.c"
	.text
	.comm	sol,60,4
	.global	solval
	.bss
	.align	2
	.type	solval, %object
	.size	solval, 4
solval:
	.space	4
	.comm	cons,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Difficolta massima diagonale: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Difficolta massima totale: \000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"elementi.txt\000"
	.align	2
.LC5:
	.ascii	"%s %d %d %d %d %d %f %d\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.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	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	printf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r0, .L10+12
	bl	printf
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r2, [fp, #-48]
	ldr	r1, .L10+16
	ldr	r3, [fp, #-40]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L3
	ldr	r3, [fp, #-44]
	ldr	r2, .L10+16
	str	r3, [r2, #12]
	ldr	r1, .L10+20
	ldr	r0, .L10+24
	bl	fopen
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L4
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L10+8
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-28]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L5
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L6
.L7:
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r7, r3
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r6, r3, #100
	ldr	r1, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r1, r3, #104
	ldr	r0, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r0, r3, #108
	ldr	ip, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, ip, r3
	add	ip, r3, #112
	ldr	lr, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, lr, r3
	add	lr, r3, #116
	ldr	r4, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r4, r3
	add	r4, r3, #120
	ldr	r5, [fp, #-32]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r5, r3
	add	r3, r3, #124
	str	r3, [sp, #20]
	str	r4, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	mov	r3, r6
	mov	r2, r7
	ldr	r1, .L10+28
	ldr	r0, [fp, #-36]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L7
	ldr	r0, [fp, #-36]
	bl	fclose
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	bl	generaProgramma
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	cons
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.align	2
	.global	calcCosto
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcCosto, %function
calcCosto:
	@ args = 140, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	sub	ip, fp, #28
	stm	ip, {r0, r1}
	add	r1, fp, #4
	stm	r1, {r2, r3}
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	ldr	r4, [fp, #124]	@ float
	ldr	r3, [fp, #128]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r2, .L17
	ldr	r3, [fp, #136]
	add	r3, r3, #4
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #104]
	cmp	r3, #0
	ble	.L13
	ldr	r3, [fp, #140]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
.L13:
	ldr	r3, .L17
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #112]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #140]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	add	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
.L14:
	ldr	r3, .L17
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #140]
	cmp	r3, #0
	ble	.L15
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #140]
	sub	r0, r3, #1
	ldr	ip, .L17+4
	ldr	r2, [fp, #136]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	ldr	r3, [ip, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #100]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #104]
	cmp	r3, #0
	ble	.L15
	ldr	r3, [fp, #140]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	add	r3, r3, #3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
.L15:
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, lr}
	add	sp, sp, #8
	bx	lr
.L18:
	.align	2
.L17:
	.word	cons
	.word	sol
	.size	calcCosto, .-calcCosto
	.align	2
	.global	generaProgramma
	.syntax unified
	.arm
	.fpu softvfp
	.type	generaProgramma, %function
generaProgramma:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #160
	sub	r3, fp, #36
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-16]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L21
.L22:
	ldr	r1, .L37
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r3, r2
	mvn	r2, #0
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L21:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	ble	.L22
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L20:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L23
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L24
.L36:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L25
.L35:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L26
.L27:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r5, r3, r2
	ldr	r3, [fp, #-24]
	str	r3, [sp, #128]
	ldr	r3, [fp, #-28]
	str	r3, [sp, #124]
	mov	r0, sp
	add	r3, r4, #8
	mov	r2, #124
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r2, r3}
	sub	r1, fp, #36
	ldm	r1, {r0, r1}
	bl	calcCosto
	mov	r3, r0
	str	r3, [r5, #128]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L26:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r3, .L37+4
	mov	r2, #132
	ldr	r0, [fp, #-16]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L28
.L34:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L29
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #104]
	cmp	r3, #1
	bne	.L30
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r3, r1, r3
	cmp	r3, #0
	blt	.L30
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	mov	r0, sp
	add	r3, r4, #8
	mov	r2, #124
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r2, r3}
	sub	r1, fp, #36
	ldm	r1, {r0, r1}
	bl	getIndex
	mov	r1, r0
	ldr	r0, .L37
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r2, r1, r3
	ldr	r1, .L37+8
	ldr	r3, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L37+8
	ldr	r1, [r3, #12]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #12]
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	add	r2, r1, r3
	ldr	r1, .L37+8
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L37+8
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #32]
	ldr	r3, .L37+8
	ldr	r1, [r3, #36]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #36]
	b	.L31
.L29:
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-24]
	sub	r0, r3, #1
	ldr	ip, .L37
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r0
	ldr	r3, [ip, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r1, [r3, #108]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #104]
	cmp	r1, r3
	bne	.L30
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r3, r1, r3
	cmp	r3, #0
	blt	.L30
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	mov	r0, sp
	add	r3, r4, #8
	mov	r2, #124
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r2, r3}
	sub	r1, fp, #36
	ldm	r1, {r0, r1}
	bl	getIndex
	mov	r1, r0
	ldr	r0, .L37
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r2, r1, r3
	ldr	r1, .L37+8
	ldr	r3, [fp, #-28]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L37+8
	ldr	r1, [r3, #12]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #124]
	sub	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #12]
	ldr	r2, .L37+8
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r1, [r2, r3, lsl #2]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	add	r2, r1, r3
	ldr	r1, .L37+8
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L37+8
	ldr	r1, [r3, #32]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #32]
	ldr	r3, .L37+8
	ldr	r1, [r3, #36]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	cmp	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r3, r1, r3
	ldr	r2, .L37+8
	str	r3, [r2, #36]
	ldr	r3, .L37+8
	ldr	r1, [r3, #28]
	ldr	r0, [fp, #-36]
	ldr	ip, .L37
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-24]
	add	r3, r3, r2
	ldr	r3, [ip, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	ldr	r3, [r3, #100]
	cmp	r3, #0
	ble	.L32
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r3, #100]
	cmp	r3, #0
	ble	.L32
	mov	r3, #1
	b	.L33
.L32:
	mov	r3, #0
.L33:
	add	r3, r3, r1
	ldr	r2, .L37+8
	str	r3, [r2, #28]
	b	.L31
.L30:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L28:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L34
.L31:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L25:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L35
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L24:
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	ble	.L36
	sub	r3, fp, #36
	ldm	r3, {r0, r1}
	bl	stampaSol
	ldr	r0, [fp, #-16]
	bl	free
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L38:
	.align	2
.L37:
	.word	sol
	.word	cmp_elem
	.word	cons
	.size	generaProgramma, .-generaProgramma
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%d \000"
	.global	__aeabi_f2d
	.align	2
.LC8:
	.ascii	"DIAG #%d > %.3f\000"
	.global	__aeabi_fcmpge
	.align	2
.LC9:
	.ascii	" * 1.5 (BONUS)\000"
	.align	2
.LC10:
	.ascii	"%s \000"
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
.LC11:
	.ascii	"TOT = %.3f\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stampaSol
	.syntax unified
	.arm
	.fpu softvfp
	.type	stampaSol, %function
stampaSol:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	sub	r3, fp, #52
	stm	r3, {r0, r1}
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #28
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L40
.L43:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L41
.L42:
	ldr	r1, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L64+8
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L41:
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	ble	.L42
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L40:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L43
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L44
.L49:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L45
.L48:
	ldr	r1, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmn	r3, #1
	beq	.L62
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r0, [r3, #-16]	@ float
	ldr	r1, [fp, #-52]
	ldr	ip, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [ip, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #120]	@ float
	mov	r1, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-16]	@ float
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L45:
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	ble	.L48
	b	.L47
.L62:
	nop
.L47:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L44:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L49
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L50
.L57:
	ldr	r3, [fp, #-44]
	add	r4, r3, #1
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L64+12
	bl	printf
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bne	.L51
	ldr	r1, [fp, #-52]
	ldr	r0, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-36]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #124]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, #1090519040
	mov	r0, r3
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r0, .L64+16
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-32]
.L51:
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L53
.L56:
	ldr	r1, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmn	r3, #1
	beq	.L63
	ldr	r1, [fp, #-52]
	ldr	r0, .L64+4
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r3, r3, r2
	ldr	r3, [r0, r3, lsl #2]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L64+20
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L53:
	ldr	r3, [fp, #-40]
	cmp	r3, #4
	ble	.L56
	b	.L55
.L63:
	nop
.L55:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L50:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L57
	ldr	r3, [fp, #-28]	@ float
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	cmp	r1, #1
	bne	.L58
	mov	r0, #0
	ldr	r1, .L64+24
	b	.L59
.L58:
	mov	r0, #0
	ldr	r1, .L64+28
.L59:
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L64+32
	bl	printf
	nop
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC12
	.word	sol
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	1073217536
	.word	1072693248
	.word	.LC11
	.size	stampaSol, .-stampaSol
	.global	__aeabi_fsub
	.global	__aeabi_f2iz
	.align	2
	.global	cmp_elem
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp_elem, %function
cmp_elem:
	@ 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]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #128]	@ float
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #128]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cmp_elem, .-cmp_elem
	.align	2
	.global	getIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	getIndex, %function
getIndex:
	@ args = 132, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	add	r1, fp, #4
	stm	r1, {r2, r3}
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L69
.L72:
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r2, r3
	add	r3, fp, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-8]
	b	.L71
.L70:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L69:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L72
	mvn	r3, #0
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
	.size	getIndex, .-getIndex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
