	.file	"732793.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Inserisci coordinate intere punto (%d,%d): "
.LC1:
	.string	"%d%d"
.LC2:
	.string	"La matrice \303\250 regolare"
.LC3:
	.string	"La matrice NON \303\250 regolare"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L3
.L4:
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -148[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	sal	rax, 2
	add	rax, rsi
	sal	rax, 3
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -148[rbp], 1
.L3:
	cmp	DWORD PTR -148[rbp], 3
	jle	.L4
	add	DWORD PTR -152[rbp], 1
.L2:
	cmp	DWORD PTR -152[rbp], 3
	jle	.L5
	lea	rax, -144[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	regolare
	test	eax, eax
	je	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	dist
	.type	dist, @function
dist:
.LFB1:
	.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	eax, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	sub	eax, ecx
	imul	edx, eax
	mov	ecx, edx
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -28[rbp]
	sub	eax, esi
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -28[rbp]
	sub	eax, esi
	imul	eax, edx
	add	eax, ecx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dist, .-dist
	.globl	regolare
	.type	regolare, @function
regolare:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -24[rbp], 1
	pxor	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	movsx	rax, esi
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	dist
	movss	xmm1, DWORD PTR -12[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	add	DWORD PTR -20[rbp], 1
.L13:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L14
	mov	DWORD PTR -20[rbp], 0
	jmp	.L15
.L22:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, 1
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	dist
	movss	xmm1, DWORD PTR -8[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -8[rbp], xmm0
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	movsx	rax, esi
	mov	rdx, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	dist
	movss	xmm1, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -16[rbp], 1
.L16:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 1
	cmp	DWORD PTR -16[rbp], eax
	jl	.L17
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR -12[rbp]
	ja	.L18
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR -12[rbp]
	jbe	.L19
.L18:
	mov	DWORD PTR -24[rbp], 0
.L19:
	add	DWORD PTR -20[rbp], 1
.L15:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jge	.L21
	cmp	DWORD PTR -24[rbp], 0
	jne	.L22
.L21:
	mov	eax, DWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	regolare, .-regolare
	.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	"732793.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Inserisci coordinate intere punto (%d,%d): \000"
	.align	2
.LC1:
	.ascii	"%d%d\000"
	.align	2
.LC2:
	.ascii	"La matrice \303\250 regolare\000"
	.align	2
.LC3:
	.ascii	"La matrice NON \303\250 regolare\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L3
.L4:
	ldr	r2, [fp, #-140]
	ldr	r1, [fp, #-144]
	ldr	r0, .L10+4
	bl	printf
	sub	r2, fp, #136
	ldr	r3, [fp, #-144]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-140]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r0, r2, r3
	sub	r2, fp, #136
	ldr	r3, [fp, #-144]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-140]
	add	r3, r1, r3
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, r3
	mov	r1, r0
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	str	r3, [fp, #-140]
.L3:
	ldr	r3, [fp, #-140]
	cmp	r3, #3
	ble	.L4
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L2:
	ldr	r3, [fp, #-144]
	cmp	r3, #3
	ble	.L5
	sub	r3, fp, #136
	mov	r1, #4
	mov	r0, r3
	bl	regolare
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L10+12
	bl	puts
	b	.L7
.L6:
	ldr	r0, .L10+16
	bl	puts
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_d2f
	.align	2
	.global	dist
	.syntax unified
	.arm
	.fpu softvfp
	.type	dist, %function
dist:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-28]
	sub	r2, r1, r2
	mul	r2, r3, r2
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	ldr	r0, [fp, #-16]
	ldr	r1, [fp, #-24]
	sub	r1, r0, r1
	mul	r3, r1, r3
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dist, .-dist
	.global	__aeabi_fadd
	.global	__aeabi_fcmpgt
	.align	2
	.global	regolare
	.syntax unified
	.arm
	.fpu softvfp
	.type	regolare, %function
regolare:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-12]	@ float
	mov	r3, #0
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L15
.L16:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r1, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r2, r3}
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldm	r1, {r0, r1}
	bl	dist
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L15:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L17
.L24:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L19:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r2, r3}
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldm	r1, {r0, r1}
	bl	dist
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, [fp, #-20]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldm	r3, {r2, r3}
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldm	r1, {r0, r1}
	bl	dist
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L19
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
.L20:
	mov	r3, #0
	str	r3, [fp, #-28]
.L21:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L24
.L23:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	regolare, .-regolare
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
