Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

int sqdis(int *a, int *b, int d)
{
	int i = 0;
	int sum = 0;
	while (i < d)
	{
		sum += (a[i]-b[i])*(a[i]-b[i]);
		i++;
	}
	return(sum);
}

int main(void)
{
	int n, d;
	scanf("%d %d",&n, &d);
	int **x;
	x = (int **)malloc(sizeof(int *)*(n));
	int i = 0;
	int j = 0;
	double sq = 0;
	double tmp = 0;
	while (i < n)
	{
		x[i] = (int *)malloc(sizeof(int)*(d));
		j = 0;
		while (j < d)
		{
			scanf("%d",&(x[i][j]));
			j++;
		}
		i++;
	}

	i = 0;
	j = 0;
	int sum = 0;
	double integer;
	while (i < n - 1)
	{
		j = i + 1;
		while(j < n)
		{
			tmp = (double)sqdis(x[i],x[j],d);
			sq = sqrt(tmp);
			if(modf(sq, &integer) == 0.0)
			{
				sum++;
				//printf("debug i:%d, j:%d sq:%.4f, tmp:%.4f\n",i,j,sq,tmp);
			}
			j++;
		}
		i++;
	}
	printf("%d\n",sum);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sqdis
	.type	sqdis, @function
sqdis:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rsi
	movq	-32(%rbp), %rdx
	addq	%rsi, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sqdis, .-sqdis
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rdx
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-76(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L6
.L9:
	movl	-72(%rbp), %eax
	cltq
	salq	$2, %rax
	movl	-68(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$0, -64(%rbp)
	jmp	.L7
.L8:
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L7:
	movl	-72(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L8
	addl	$1, -68(%rbp)
.L6:
	movl	-76(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L9
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L10
.L15:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L11
.L14:
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	sqdis
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	modf@PLT
	movq	%xmm0, %rax
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm1
	ucomisd	%xmm0, %xmm1
	jp	.L12
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm2
	ucomisd	%xmm0, %xmm2
	jne	.L12
	addl	$1, -60(%rbp)
.L12:
	addl	$1, -64(%rbp)
.L11:
	movl	-76(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L14
	addl	$1, -68(%rbp)
.L10:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sqdis
	.type	sqdis, @function
sqdis:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rsi, %rcx
	movl	%edx, %esi
	testl	%edx, %edx
	jle	.L7
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L8
	shrl	$2, %edx
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqu	(%rdi,%rax), %xmm0
	movdqu	(%rcx,%rax), %xmm3
	addq	$16, %rax
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rax, %rdx
	jne	.L4
	movdqa	%xmm2, %xmm0
	movl	%esi, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %sil
	je	.L11
.L3:
	movslq	%r8d, %r10
	movl	(%rdi,%r10,4), %edx
	subl	(%rcx,%r10,4), %edx
	leaq	0(,%r10,4), %r9
	imull	%edx, %edx
	addl	%edx, %eax
	leal	1(%r8), %edx
	cmpl	%edx, %esi
	jle	.L1
	movl	4(%rdi,%r9), %edx
	subl	4(%rcx,%r9), %edx
	addl	$2, %r8d
	imull	%edx, %edx
	addl	%edx, %eax
	cmpl	%r8d, %esi
	jle	.L1
	movl	8(%rdi,%r9), %edx
	subl	8(%rcx,%r9), %edx
	imull	%edx, %edx
	addl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	ret
.L8:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L3
	.cfi_endproc
.LFE39:
	.size	sqdis, .-sqdis
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rdx
	leaq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	56(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	jle	.L35
	movl	60(%rsp), %r14d
	movl	$1, %r12d
	leaq	.LC2(%rip), %rbp
	movl	%ebx, %r13d
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%r14d, %rdx
	leaq	0(,%rdx,4), %r15
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%rax, %rbx
	movq	24(%rsp), %rax
	movq	%rbx, -8(%rax,%r12,8)
	testl	%r14d, %r14d
	jle	.L14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbx
	cmpl	%r13d, %r14d
	jg	.L15
	movl	56(%rsp), %r13d
	cmpl	%r12d, %r13d
	jle	.L47
	addq	$1, %r12
	jmp	.L32
.L14:
	movl	%r13d, %eax
	movl	%r13d, 40(%rsp)
	movq	%r15, %r13
	cmpl	%r12d, %eax
	jle	.L19
	movq	24(%rsp), %rbx
	movl	%eax, %ebp
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r12,8)
	addq	$1, %r12
	cmpl	%r12d, %ebp
	jg	.L18
.L19:
	cmpl	$1, 40(%rsp)
	jle	.L35
	movl	40(%rsp), %ecx
	movl	$0, 12(%rsp)
	movq	$1, 16(%rsp)
	leal	-2(%rcx), %eax
	addq	$2, %rax
	movq	%rax, 32(%rsp)
	leal	-1(%rcx), %eax
	movl	%eax, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	16(%rsp), %rax
	cmpl	%eax, 40(%rsp)
	jle	.L20
	movq	24(%rsp), %rsi
	movq	%rax, %rcx
	movl	60(%rsp), %r15d
	leaq	64(%rsp), %rbp
	movq	-8(%rsi,%rax,8), %r12
	leaq	(%rsi,%rax,8), %r14
	movl	44(%rsp), %eax
	movl	%r15d, %ebx
	andl	$-4, %ebx
	subl	%ecx, %eax
	leaq	-1(%rcx,%rax), %rax
	movq	%r12, %rcx
	movl	%r15d, %r12d
	leaq	16(%rsi,%rax,8), %rax
	movq	%rax, (%rsp)
	leal	-1(%r15), %eax
	movl	%eax, 8(%rsp)
	movl	%r15d, %eax
	movq	%rcx, %r15
	shrl	$2, %eax
	leal	-1(%rax), %esi
	movq	%rbp, %rax
	addq	$1, %rsi
	movq	%rax, %r13
	salq	$4, %rsi
	movq	%rsi, %rbp
	.p2align 4,,10
	.p2align 3
.L30:
	movq	(%r14), %rdx
	testl	%r12d, %r12d
	jle	.L36
	cmpl	$2, 8(%rsp)
	jbe	.L37
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L23:
	movdqu	(%r15,%rax), %xmm0
	movdqu	(%rdx,%rax), %xmm3
	addq	$16, %rax
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rax, %rbp
	jne	.L23
	movdqa	%xmm2, %xmm0
	movl	%ebx, %r9d
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r12d, %ebx
	je	.L24
.L22:
	movslq	%r9d, %r11
	movl	(%r15,%r11,4), %edi
	subl	(%rdx,%r11,4), %edi
	leaq	0(,%r11,4), %r10
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%r9), %edi
	cmpl	%r12d, %edi
	jge	.L24
	movl	4(%r15,%r10), %edi
	subl	4(%rdx,%r10), %edi
	addl	$2, %r9d
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%r9d, %r12d
	jle	.L24
	movl	8(%r15,%r10), %edi
	subl	8(%rdx,%r10), %edi
	movl	%edi, %edx
	imull	%edi, %edx
	addl	%edx, %eax
.L24:
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L48
.L21:
	sqrtsd	%xmm0, %xmm0
.L27:
	movq	%r13, %rdi
	call	modf@PLT
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm0
	jp	.L28
	jne	.L28
	addl	$1, 12(%rsp)
.L28:
	addq	$8, %r14
	cmpq	(%rsp), %r14
	jne	.L30
.L20:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpq	32(%rsp), %rax
	jne	.L31
.L13:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	jmp	.L21
.L37:
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	.L22
.L47:
	movl	%r13d, 40(%rsp)
	jmp	.L19
.L35:
	movl	$0, 12(%rsp)
	jmp	.L13
.L48:
	call	sqrt@PLT
	jmp	.L27
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	sqdis
	.type	sqdis, @function
sqdis:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rsi, %rcx
	movl	%edx, %esi
	testl	%edx, %edx
	jle	.L7
	leal	-1(%rdx), %eax
	cmpl	$2, %eax
	jbe	.L8
	shrl	$2, %edx
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movdqu	(%rdi,%rax), %xmm0
	movdqu	(%rcx,%rax), %xmm3
	addq	$16, %rax
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rax, %rdx
	jne	.L4
	movdqa	%xmm2, %xmm0
	movl	%esi, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %sil
	je	.L11
.L3:
	movslq	%r8d, %r10
	movl	(%rdi,%r10,4), %edx
	subl	(%rcx,%r10,4), %edx
	leaq	0(,%r10,4), %r9
	imull	%edx, %edx
	addl	%edx, %eax
	leal	1(%r8), %edx
	cmpl	%edx, %esi
	jle	.L1
	movl	4(%rdi,%r9), %edx
	subl	4(%rcx,%r9), %edx
	addl	$2, %r8d
	imull	%edx, %edx
	addl	%edx, %eax
	cmpl	%r8d, %esi
	jle	.L1
	movl	8(%rdi,%r9), %edx
	subl	8(%rcx,%r9), %edx
	imull	%edx, %edx
	addl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	xorl	%eax, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	ret
.L8:
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	jmp	.L3
	.cfi_endproc
.LFE39:
	.size	sqdis, .-sqdis
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	60(%rsp), %rdx
	leaq	56(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	56(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, 24(%rsp)
	testl	%ebx, %ebx
	jle	.L35
	movl	60(%rsp), %r14d
	movl	$1, %r12d
	leaq	.LC2(%rip), %rbp
	movl	%ebx, %r13d
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%r14d, %rdx
	leaq	0(,%rdx,4), %r15
	movq	%r15, %rdi
	call	malloc@PLT
	movq	%rax, %rbx
	movq	24(%rsp), %rax
	movq	%rbx, -8(%rax,%r12,8)
	testl	%r14d, %r14d
	jle	.L14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	60(%rsp), %r14d
	addq	$4, %rbx
	cmpl	%r13d, %r14d
	jg	.L15
	movl	56(%rsp), %r13d
	cmpl	%r12d, %r13d
	jle	.L47
	addq	$1, %r12
	jmp	.L32
.L14:
	movl	%r13d, %eax
	movl	%r13d, 40(%rsp)
	movq	%r15, %r13
	cmpl	%r12d, %eax
	jle	.L19
	movq	24(%rsp), %rbx
	movl	%eax, %ebp
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L18:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r12,8)
	addq	$1, %r12
	cmpl	%r12d, %ebp
	jg	.L18
.L19:
	cmpl	$1, 40(%rsp)
	jle	.L35
	movl	40(%rsp), %ecx
	movl	$0, 12(%rsp)
	movq	$1, 16(%rsp)
	leal	-2(%rcx), %eax
	addq	$2, %rax
	movq	%rax, 32(%rsp)
	leal	-1(%rcx), %eax
	movl	%eax, 44(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	16(%rsp), %rax
	cmpl	%eax, 40(%rsp)
	jle	.L20
	movq	24(%rsp), %rsi
	movq	%rax, %rcx
	movl	60(%rsp), %r15d
	leaq	64(%rsp), %rbp
	movq	-8(%rsi,%rax,8), %r12
	leaq	(%rsi,%rax,8), %r14
	movl	44(%rsp), %eax
	movl	%r15d, %ebx
	andl	$-4, %ebx
	subl	%ecx, %eax
	leaq	-1(%rcx,%rax), %rax
	movq	%r12, %rcx
	movl	%r15d, %r12d
	leaq	16(%rsi,%rax,8), %rax
	movq	%rax, (%rsp)
	leal	-1(%r15), %eax
	movl	%eax, 8(%rsp)
	movl	%r15d, %eax
	movq	%rcx, %r15
	shrl	$2, %eax
	leal	-1(%rax), %esi
	movq	%rbp, %rax
	addq	$1, %rsi
	movq	%rax, %r13
	salq	$4, %rsi
	movq	%rsi, %rbp
	.p2align 4,,10
	.p2align 3
.L30:
	movq	(%r14), %rdx
	testl	%r12d, %r12d
	jle	.L36
	cmpl	$2, 8(%rsp)
	jbe	.L37
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L23:
	movdqu	(%r15,%rax), %xmm0
	movdqu	(%rdx,%rax), %xmm3
	addq	$16, %rax
	psubd	%xmm3, %xmm0
	movdqa	%xmm0, %xmm1
	pmuludq	%xmm0, %xmm1
	psrlq	$32, %xmm0
	pmuludq	%xmm0, %xmm0
	pshufd	$8, %xmm1, %xmm1
	pshufd	$8, %xmm0, %xmm0
	punpckldq	%xmm0, %xmm1
	paddd	%xmm1, %xmm2
	cmpq	%rax, %rbp
	jne	.L23
	movdqa	%xmm2, %xmm0
	movl	%ebx, %r9d
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	cmpl	%r12d, %ebx
	je	.L24
.L22:
	movslq	%r9d, %r11
	movl	(%r15,%r11,4), %edi
	subl	(%rdx,%r11,4), %edi
	leaq	0(,%r11,4), %r10
	imull	%edi, %edi
	addl	%edi, %eax
	leal	1(%r9), %edi
	cmpl	%r12d, %edi
	jge	.L24
	movl	4(%r15,%r10), %edi
	subl	4(%rdx,%r10), %edi
	addl	$2, %r9d
	imull	%edi, %edi
	addl	%edi, %eax
	cmpl	%r9d, %r12d
	jle	.L24
	movl	8(%r15,%r10), %edi
	subl	8(%rdx,%r10), %edi
	movl	%edi, %edx
	imull	%edi, %edx
	addl	%edx, %eax
.L24:
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L48
.L21:
	sqrtsd	%xmm0, %xmm0
.L27:
	movq	%r13, %rdi
	call	modf@PLT
	pxor	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm0
	jp	.L28
	jne	.L28
	addl	$1, 12(%rsp)
.L28:
	addq	$8, %r14
	cmpq	(%rsp), %r14
	jne	.L30
.L20:
	addq	$1, 16(%rsp)
	movq	16(%rsp), %rax
	cmpq	32(%rsp), %rax
	jne	.L31
.L13:
	movl	12(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	jmp	.L21
.L37:
	xorl	%eax, %eax
	xorl	%r9d, %r9d
	jmp	.L22
.L47:
	movl	%r13d, 40(%rsp)
	jmp	.L19
.L35:
	movl	$0, 12(%rsp)
	jmp	.L13
.L48:
	call	sqrt@PLT
	jmp	.L27
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

int sqdis(int *a, int *b, int d)
{
	int i = 0;
	int sum = 0;
	while (i < d)
	{
		sum += (a[i]-b[i])*(a[i]-b[i]);
		i++;
	}
	return(sum);
}

int main(void)
{
	int n, d;
	scanf("%d %d",&n, &d);
	int **x;
	x = (int **)malloc(sizeof(int *)*(n));
	int i = 0;
	int j = 0;
	double sq = 0;
	double tmp = 0;
	while (i < n)
	{
		x[i] = (int *)malloc(sizeof(int)*(d));
		j = 0;
		while (j < d)
		{
			scanf("%d",&(x[i][j]));
			j++;
		}
		i++;
	}

	i = 0;
	j = 0;
	int sum = 0;
	double integer;
	while (i < n - 1)
	{
		j = i + 1;
		while(j < n)
		{
			tmp = (double)sqdis(x[i],x[j],d);
			sq = sqrt(tmp);
			if(modf(sq, &integer) == 0.0)
			{
				sum++;
				//printf("debug i:%d, j:%d sq:%.4f, tmp:%.4f\n",i,j,sq,tmp);
			}
			j++;
		}
		i++;
	}
	printf("%d\n",sum);
	return (0);
}

3 4
-3 7 8 2
-12 1 10 2
-2 8 9 0
 1 1
1
2
3
4
5
 5 1
0
2
3
4
5
 3 2
1 8
5 5
-2 8
 3 2
1 4
5 5
-2 8
 3 4
-3 7 8 2
-12 1 10 2
-2 8 13 0
 3 2
2 4
5 5
-2 8
 0 1
1
2
3
4
5
 3 4
-3 7 8 2
-18 1 10 2
-2 8 13 0
 3 2
0 4
5 5
-2 8

1
 0
 10
 2
 1
 1
 0
 0
 0
 0

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>

int sqdis(int *a, int *b, int d)
{
	int i = 0;
	int sum = 0;
	while (i < d)
	{
		sum += (a[i]-b[i])*(a[i]-b[i]);
		i++;
	}
	return(sum);
}

int main(void)
{
	int n, d;
	scanf("%d %d",&n, &d);
	int **x;
	x = (int **)malloc(sizeof(int *)*(n));
	int i = 0;
	int j = 0;
	double sq = 0;
	double tmp = 0;
	while (i < n)
	{
		x[i] = (int *)malloc(sizeof(int)*(d));
		j = 0;
		while (j < d)
		{
			scanf("%d",&(x[i][j]));
			j++;
		}
		i++;
	}

	i = 0;
	j = 0;
	int sum = 0;
	double integer;
	while (i < n - 1)
	{
		j = i + 1;
		while(j < n)
		{
			tmp = (double)sqdis(x[i],x[j],d);
			sq = sqrt(tmp);
			if(modf(sq, &integer) == 0.0)
			{
				sum++;
				//printf("debug i:%d, j:%d sq:%.4f, tmp:%.4f\n",i,j,sq,tmp);
			}
			j++;
		}
		i++;
	}
	printf("%d\n",sum);
	return (0);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	sqdis
	.type	sqdis, @function
sqdis:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rsi
	movq	-32(%rbp), %rdx
	addq	%rsi, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sqdis, .-sqdis
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rdx
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-76(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L6
.L9:
	movl	-72(%rbp), %eax
	cltq
	salq	$2, %rax
	movl	-68(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$0, -64(%rbp)
	jmp	.L7
.L8:
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L7:
	movl	-72(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L8
	addl	$1, -68(%rbp)
.L6:
	movl	-76(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L9
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L10
.L15:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L11
.L14:
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	sqdis
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	modf@PLT
	movq	%xmm0, %rax
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm1
	ucomisd	%xmm0, %xmm1
	jp	.L12
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm2
	ucomisd	%xmm0, %xmm2
	jne	.L12
	addl	$1, -60(%rbp)
.L12:
	addl	$1, -64(%rbp)
.L11:
	movl	-76(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L14
	addl	$1, -68(%rbp)
.L10:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	sqdis
	.type	sqdis, @function
sqdis:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-32(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	-8(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rsi
	movq	-32(%rbp), %rdx
	addq	%rsi, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%eax, -4(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sqdis, .-sqdis
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-72(%rbp), %rdx
	leaq	-76(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-76(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp)
	jmp	.L6
.L9:
	movl	-72(%rbp), %eax
	cltq
	salq	$2, %rax
	movl	-68(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$0, -64(%rbp)
	jmp	.L7
.L8:
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-64(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -64(%rbp)
.L7:
	movl	-72(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L8
	addl	$1, -68(%rbp)
.L6:
	movl	-76(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L9
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	jmp	.L10
.L15:
	movl	-68(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -64(%rbp)
	jmp	.L11
.L14:
	movl	-72(%rbp), %edx
	movl	-64(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-68(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	sqdis
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -32(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -40(%rbp)
	leaq	-56(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rdi
	movq	%rax, %xmm0
	call	modf@PLT
	movq	%xmm0, %rax
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm1
	ucomisd	%xmm0, %xmm1
	jp	.L12
	pxor	%xmm0, %xmm0
	movq	%rax, %xmm2
	ucomisd	%xmm0, %xmm2
	jne	.L12
	addl	$1, -60(%rbp)
.L12:
	addl	$1, -64(%rbp)
.L11:
	movl	-76(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L14
	addl	$1, -68(%rbp)
.L10:
	movl	-76(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -68(%rbp)
	jl	.L15
	movl	-60(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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:
