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 <math.h>

int is_integer(int *X_i, int *X_j, int D) {
    int sum = 0;
    for (int k = 1; k <= D; k++) {
        sum += (X_i[k] - X_j[k]) * (X_i[k] - X_j[k]);
    }
    int res = (int) sqrt(sum);
    return (res * res) == sum;
}

int main() {
    int N, D;
    scanf("%d", &N);
    scanf("%d", &D);
    int **X = malloc((1 + N) * sizeof(int*));
    for (int i = 1; i <= N; i++) {
        X[i] = malloc((1 + D) * sizeof(int));
        for (int j = 1; j <= D; j++) {
            scanf("%d", &X[i][j]);
        }
    }

    int ans = 0;
    for (int i = 1; i < N; i++) {
        for (int j = i + 1; j <= N; j++) {
            if (is_integer(X[i], X[j], D)) {
                ans += 1;
            }
        }
    }
    
    printf("%d\n", ans);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	is_integer
	.type	is_integer, @function
is_integer:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -12(%rbp)
	movl	$1, -8(%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, -12(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L3
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-12(%rbp), %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -12(%rbp)
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_integer, .-is_integer
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L6
.L9:
	movl	-56(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$1, -48(%rbp)
	jmp	.L7
.L8:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -48(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L8
	addl	$1, -52(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L9
	movl	$0, -44(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L10
.L14:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L11
.L13:
	movl	-56(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_integer
	testl	%eax, %eax
	je	.L12
	addl	$1, -44(%rbp)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L13
	addl	$1, -40(%rbp)
.L10:
	movl	-60(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	is_integer
	.type	is_integer, @function
is_integer:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	testl	%edx, %edx
	jle	.L9
	leal	-1(%rdx), %eax
	movq	%rsi, %rcx
	movl	%edx, %esi
	cmpl	$2, %eax
	jbe	.L10
	movl	%edx, %eax
	pxor	%xmm2, %xmm2
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %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, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm2
	leal	1(%rax), %edx
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %ebx
	cmpl	%esi, %eax
	je	.L5
.L3:
	movslq	%edx, %r9
	movl	(%rdi,%r9,4), %eax
	subl	(%rcx,%r9,4), %eax
	leaq	0(,%r9,4), %r8
	imull	%eax, %eax
	addl	%eax, %ebx
	leal	1(%rdx), %eax
	cmpl	%eax, %esi
	jl	.L5
	movl	4(%rdi,%r8), %eax
	subl	4(%rcx,%r8), %eax
	addl	$2, %edx
	imull	%eax, %eax
	addl	%eax, %ebx
	cmpl	%edx, %esi
	jl	.L5
	movl	8(%rdi,%r8), %eax
	subl	8(%rcx,%r8), %eax
	imull	%eax, %eax
	addl	%eax, %ebx
.L5:
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L15
.L2:
	sqrtsd	%xmm0, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	imull	%eax, %eax
	cmpl	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sete	%al
	movzbl	%al, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	pxor	%xmm0, %xmm0
	jmp	.L2
.L10:
	movl	$1, %edx
	xorl	%ebx, %ebx
	jmp	.L3
.L15:
	call	sqrt@PLT
	jmp	.L8
	.cfi_endproc
.LFE39:
	.size	is_integer, .-is_integer
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.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
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	68(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	64(%rsp), %ebx
	leal	1(%rbx), %edi
	movslq	%edi, %rdi
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rsp)
	testl	%ebx, %ebx
	jle	.L38
	movl	68(%rsp), %r14d
	movl	$2, %r12d
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L35:
	leal	1(%r14), %r13d
	movslq	%r13d, %r13
	salq	$2, %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, -8(%r15,%r12,8)
	testl	%r14d, %r14d
	jle	.L18
	leaq	4(%rax), %rbx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %r14d
	addq	$4, %rbx
	cmpl	%r13d, %r14d
	jge	.L19
	movl	64(%rsp), %ebx
	cmpl	%r12d, %ebx
	jl	.L49
	addq	$1, %r12
	jmp	.L35
.L18:
	movl	%ebx, 32(%rsp)
	cmpl	%r12d, %ebx
	jl	.L23
	movl	%ebx, %ebp
	movq	8(%rsp), %rbx
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r12,8)
	addq	$1, %r12
	cmpl	%r12d, %ebp
	jge	.L22
.L23:
	cmpl	$1, 32(%rsp)
	jle	.L38
	movl	32(%rsp), %eax
	movl	$2, %r10d
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	addl	$1, %eax
	movq	%rax, 16(%rsp)
	movq	8(%rsp), %rax
	addq	$16, %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L34:
	movl	32(%rsp), %ecx
	cmpl	%r10d, %ecx
	jl	.L24
	movq	8(%rsp), %rax
	movl	68(%rsp), %r14d
	movq	-8(%rax,%r10,8), %rbp
	leaq	(%rax,%r10,8), %r13
	movl	%ecx, %eax
	movq	24(%rsp), %rcx
	subl	%r10d, %eax
	movl	%r14d, %r8d
	leal	-1(%r14), %r9d
	leaq	-1(%r10,%rax), %rax
	andl	$-4, %r8d
	leaq	(%rcx,%rax,8), %rdi
	movl	%r14d, %eax
	leal	1(%r8), %r11d
	shrl	$2, %eax
	leal	-1(%rax), %r12d
	salq	$4, %r12
	addq	$20, %r12
	movq	%r12, (%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movq	0(%r13), %rax
	testl	%r14d, %r14d
	jle	.L39
	cmpl	$2, %r9d
	jbe	.L40
	movq	(%rsp), %r12
	movl	$4, %edx
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L27:
	movdqu	0(%rbp,%rdx), %xmm0
	movdqu	(%rax,%rdx), %xmm4
	addq	$16, %rdx
	psubd	%xmm4, %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	%r12, %rdx
	jne	.L27
	movdqa	%xmm2, %xmm0
	movq	%r12, (%rsp)
	movl	%r11d, %edx
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %ebx
	cmpl	%r14d, %r8d
	je	.L28
.L26:
	movslq	%edx, %rsi
	movl	0(%rbp,%rsi,4), %r12d
	subl	(%rax,%rsi,4), %r12d
	leaq	0(,%rsi,4), %rcx
	movl	%r12d, %esi
	imull	%r12d, %esi
	addl	%esi, %ebx
	leal	1(%rdx), %esi
	cmpl	%r14d, %esi
	jg	.L28
	movl	4(%rbp,%rcx), %esi
	subl	4(%rax,%rcx), %esi
	addl	$2, %edx
	imull	%esi, %esi
	addl	%esi, %ebx
	cmpl	%edx, %r14d
	jl	.L28
	movl	8(%rbp,%rcx), %edx
	subl	8(%rax,%rcx), %edx
	movl	%edx, %eax
	imull	%edx, %eax
	addl	%eax, %ebx
.L28:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L50
.L25:
	sqrtsd	%xmm0, %xmm0
.L31:
	cvttsd2sil	%xmm0, %eax
	imull	%eax, %eax
	cmpl	%eax, %ebx
	sete	%al
	addq	$8, %r13
	movzbl	%al, %eax
	addl	%eax, %r15d
	cmpq	%rdi, %r13
	jne	.L33
.L24:
	addq	$1, %r10
	cmpq	16(%rsp), %r10
	jne	.L34
.L17:
	xorl	%eax, %eax
	movl	%r15d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	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
.L39:
	.cfi_restore_state
	xorl	%ebx, %ebx
	movapd	%xmm3, %xmm0
	jmp	.L25
.L40:
	xorl	%ebx, %ebx
	movl	$1, %edx
	jmp	.L26
.L49:
	movl	%ebx, 32(%rsp)
	jmp	.L23
.L38:
	xorl	%r15d, %r15d
	jmp	.L17
.L50:
	movq	%r10, 56(%rsp)
	movq	%rdi, 48(%rsp)
	movl	%r9d, 44(%rsp)
	movl	%r8d, 40(%rsp)
	movl	%r11d, 36(%rsp)
	call	sqrt@PLT
	movq	56(%rsp), %r10
	movq	48(%rsp), %rdi
	pxor	%xmm3, %xmm3
	movl	44(%rsp), %r9d
	movl	40(%rsp), %r8d
	movl	36(%rsp), %r11d
	jmp	.L31
.L51:
	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	is_integer
	.type	is_integer, @function
is_integer:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	testl	%edx, %edx
	jle	.L9
	leal	-1(%rdx), %eax
	movq	%rsi, %rcx
	movl	%edx, %esi
	cmpl	$2, %eax
	jbe	.L10
	movl	%edx, %eax
	pxor	%xmm2, %xmm2
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movl	$4, %eax
	salq	$4, %rdx
	addq	$20, %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, %eax
	psrldq	$8, %xmm0
	andl	$-4, %eax
	paddd	%xmm0, %xmm2
	leal	1(%rax), %edx
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %ebx
	cmpl	%esi, %eax
	je	.L5
.L3:
	movslq	%edx, %r9
	movl	(%rdi,%r9,4), %eax
	subl	(%rcx,%r9,4), %eax
	leaq	0(,%r9,4), %r8
	imull	%eax, %eax
	addl	%eax, %ebx
	leal	1(%rdx), %eax
	cmpl	%eax, %esi
	jl	.L5
	movl	4(%rdi,%r8), %eax
	subl	4(%rcx,%r8), %eax
	addl	$2, %edx
	imull	%eax, %eax
	addl	%eax, %ebx
	cmpl	%edx, %esi
	jl	.L5
	movl	8(%rdi,%r8), %eax
	subl	8(%rcx,%r8), %eax
	imull	%eax, %eax
	addl	%eax, %ebx
.L5:
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L15
.L2:
	sqrtsd	%xmm0, %xmm0
.L8:
	cvttsd2sil	%xmm0, %eax
	imull	%eax, %eax
	cmpl	%ebx, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	sete	%al
	movzbl	%al, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xorl	%ebx, %ebx
	pxor	%xmm0, %xmm0
	jmp	.L2
.L10:
	movl	$1, %edx
	xorl	%ebx, %ebx
	jmp	.L3
.L15:
	call	sqrt@PLT
	jmp	.L8
	.cfi_endproc
.LFE39:
	.size	is_integer, .-is_integer
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.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
	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
	leaq	.LC1(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	68(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	64(%rsp), %ebx
	leal	1(%rbx), %edi
	movslq	%edi, %rdi
	salq	$3, %rdi
	call	malloc@PLT
	movq	%rax, 8(%rsp)
	testl	%ebx, %ebx
	jle	.L38
	movl	68(%rsp), %r14d
	movl	$2, %r12d
	movq	%rax, %r15
	.p2align 4,,10
	.p2align 3
.L35:
	leal	1(%r14), %r13d
	movslq	%r13d, %r13
	salq	$2, %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, -8(%r15,%r12,8)
	testl	%r14d, %r14d
	jle	.L18
	leaq	4(%rax), %rbx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %r14d
	addq	$4, %rbx
	cmpl	%r13d, %r14d
	jge	.L19
	movl	64(%rsp), %ebx
	cmpl	%r12d, %ebx
	jl	.L49
	addq	$1, %r12
	jmp	.L35
.L18:
	movl	%ebx, 32(%rsp)
	cmpl	%r12d, %ebx
	jl	.L23
	movl	%ebx, %ebp
	movq	8(%rsp), %rbx
	movslq	%r12d, %r12
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx,%r12,8)
	addq	$1, %r12
	cmpl	%r12d, %ebp
	jge	.L22
.L23:
	cmpl	$1, 32(%rsp)
	jle	.L38
	movl	32(%rsp), %eax
	movl	$2, %r10d
	xorl	%r15d, %r15d
	pxor	%xmm3, %xmm3
	addl	$1, %eax
	movq	%rax, 16(%rsp)
	movq	8(%rsp), %rax
	addq	$16, %rax
	movq	%rax, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L34:
	movl	32(%rsp), %ecx
	cmpl	%r10d, %ecx
	jl	.L24
	movq	8(%rsp), %rax
	movl	68(%rsp), %r14d
	movq	-8(%rax,%r10,8), %rbp
	leaq	(%rax,%r10,8), %r13
	movl	%ecx, %eax
	movq	24(%rsp), %rcx
	subl	%r10d, %eax
	movl	%r14d, %r8d
	leal	-1(%r14), %r9d
	leaq	-1(%r10,%rax), %rax
	andl	$-4, %r8d
	leaq	(%rcx,%rax,8), %rdi
	movl	%r14d, %eax
	leal	1(%r8), %r11d
	shrl	$2, %eax
	leal	-1(%rax), %r12d
	salq	$4, %r12
	addq	$20, %r12
	movq	%r12, (%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movq	0(%r13), %rax
	testl	%r14d, %r14d
	jle	.L39
	cmpl	$2, %r9d
	jbe	.L40
	movq	(%rsp), %r12
	movl	$4, %edx
	pxor	%xmm2, %xmm2
	.p2align 4,,10
	.p2align 3
.L27:
	movdqu	0(%rbp,%rdx), %xmm0
	movdqu	(%rax,%rdx), %xmm4
	addq	$16, %rdx
	psubd	%xmm4, %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	%r12, %rdx
	jne	.L27
	movdqa	%xmm2, %xmm0
	movq	%r12, (%rsp)
	movl	%r11d, %edx
	psrldq	$8, %xmm0
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %ebx
	cmpl	%r14d, %r8d
	je	.L28
.L26:
	movslq	%edx, %rsi
	movl	0(%rbp,%rsi,4), %r12d
	subl	(%rax,%rsi,4), %r12d
	leaq	0(,%rsi,4), %rcx
	movl	%r12d, %esi
	imull	%r12d, %esi
	addl	%esi, %ebx
	leal	1(%rdx), %esi
	cmpl	%r14d, %esi
	jg	.L28
	movl	4(%rbp,%rcx), %esi
	subl	4(%rax,%rcx), %esi
	addl	$2, %edx
	imull	%esi, %esi
	addl	%esi, %ebx
	cmpl	%edx, %r14d
	jl	.L28
	movl	8(%rbp,%rcx), %edx
	subl	8(%rax,%rcx), %edx
	movl	%edx, %eax
	imull	%edx, %eax
	addl	%eax, %ebx
.L28:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%ebx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L50
.L25:
	sqrtsd	%xmm0, %xmm0
.L31:
	cvttsd2sil	%xmm0, %eax
	imull	%eax, %eax
	cmpl	%eax, %ebx
	sete	%al
	addq	$8, %r13
	movzbl	%al, %eax
	addl	%eax, %r15d
	cmpq	%rdi, %r13
	jne	.L33
.L24:
	addq	$1, %r10
	cmpq	16(%rsp), %r10
	jne	.L34
.L17:
	xorl	%eax, %eax
	movl	%r15d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L51
	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
.L39:
	.cfi_restore_state
	xorl	%ebx, %ebx
	movapd	%xmm3, %xmm0
	jmp	.L25
.L40:
	xorl	%ebx, %ebx
	movl	$1, %edx
	jmp	.L26
.L49:
	movl	%ebx, 32(%rsp)
	jmp	.L23
.L38:
	xorl	%r15d, %r15d
	jmp	.L17
.L50:
	movq	%r10, 56(%rsp)
	movq	%rdi, 48(%rsp)
	movl	%r9d, 44(%rsp)
	movl	%r8d, 40(%rsp)
	movl	%r11d, 36(%rsp)
	call	sqrt@PLT
	movq	56(%rsp), %r10
	movq	48(%rsp), %rdi
	pxor	%xmm3, %xmm3
	movl	44(%rsp), %r9d
	movl	40(%rsp), %r8d
	movl	36(%rsp), %r11d
	jmp	.L31
.L51:
	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 <math.h>

int is_integer(int *X_i, int *X_j, int D) {
    int sum = 0;
    for (int k = 1; k <= D; k++) {
        sum += (X_i[k] - X_j[k]) * (X_i[k] - X_j[k]);
    }
    int res = (int) sqrt(sum);
    return (res * res) == sum;
}

int main() {
    int N, D;
    scanf("%d", &N);
    scanf("%d", &D);
    int **X = malloc((1 + N) * sizeof(int*));
    for (int i = 1; i <= N; i++) {
        X[i] = malloc((1 + D) * sizeof(int));
        for (int j = 1; j <= D; j++) {
            scanf("%d", &X[i][j]);
        }
    }

    int ans = 0;
    for (int i = 1; i < N; i++) {
        for (int j = i + 1; j <= N; j++) {
            if (is_integer(X[i], X[j], D)) {
                ans += 1;
            }
        }
    }
    
    printf("%d\n", ans);
    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 <math.h>

int is_integer(int *X_i, int *X_j, int D) {
    int sum = 0;
    for (int k = 1; k <= D; k++) {
        sum += (X_i[k] - X_j[k]) * (X_i[k] - X_j[k]);
    }
    int res = (int) sqrt(sum);
    return (res * res) == sum;
}

int main() {
    int N, D;
    scanf("%d", &N);
    scanf("%d", &D);
    int **X = malloc((1 + N) * sizeof(int*));
    for (int i = 1; i <= N; i++) {
        X[i] = malloc((1 + D) * sizeof(int));
        for (int j = 1; j <= D; j++) {
            scanf("%d", &X[i][j]);
        }
    }

    int ans = 0;
    for (int i = 1; i < N; i++) {
        for (int j = i + 1; j <= N; j++) {
            if (is_integer(X[i], X[j], D)) {
                ans += 1;
            }
        }
    }
    
    printf("%d\n", ans);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	is_integer
	.type	is_integer, @function
is_integer:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -12(%rbp)
	movl	$1, -8(%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, -12(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L3
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-12(%rbp), %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -12(%rbp)
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_integer, .-is_integer
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L6
.L9:
	movl	-56(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$1, -48(%rbp)
	jmp	.L7
.L8:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -48(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L8
	addl	$1, -52(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L9
	movl	$0, -44(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L10
.L14:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L11
.L13:
	movl	-56(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_integer
	testl	%eax, %eax
	je	.L12
	addl	$1, -44(%rbp)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L13
	addl	$1, -40(%rbp)
.L10:
	movl	-60(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	is_integer
	.type	is_integer, @function
is_integer:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movl	$0, -12(%rbp)
	movl	$1, -8(%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, -12(%rbp)
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jle	.L3
	pxor	%xmm1, %xmm1
	cvtsi2sdl	-12(%rbp), %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	cvttsd2sil	%xmm0, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	imull	%eax, %eax
	cmpl	%eax, -12(%rbp)
	sete	%al
	movzbl	%al, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_integer, .-is_integer
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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	$56, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movl	$1, -52(%rbp)
	jmp	.L6
.L9:
	movl	-56(%rbp), %eax
	addl	$1, %eax
	cltq
	salq	$2, %rax
	movl	-52(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movl	$1, -48(%rbp)
	jmp	.L7
.L8:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-48(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -48(%rbp)
.L7:
	movl	-56(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jle	.L8
	addl	$1, -52(%rbp)
.L6:
	movl	-60(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jle	.L9
	movl	$0, -44(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L10
.L14:
	movl	-40(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -36(%rbp)
	jmp	.L11
.L13:
	movl	-56(%rbp), %edx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movl	-40(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	movq	-32(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	is_integer
	testl	%eax, %eax
	je	.L12
	addl	$1, -44(%rbp)
.L12:
	addl	$1, -36(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L13
	addl	$1, -40(%rbp)
.L10:
	movl	-60(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L14
	movl	-44(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
