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>


int Compare(int *A, int n, int *B, int m)
{
	int min;
	int i;

	if(m > n)
		min = n;
	else
		min = m;

	for(i = 0; i < min; i++){
		if(A[i] < B[i])
			return -1;
		else if(A[i] > B[i])
			return 1;
	}

	if(n < m)
		return -1;
	else if(m < n)
		return 1;

	return 0;
}


int main()
{
	int A[1000], B[1000];
	int judge;
	int n, m;
	int num;
	int i;

	scanf("%d", &n);
	for(i = 0; i < n; i++)
		scanf("%d", &A[i]);

	scanf("%d", &m);
	for(i = 0; i < m; i++)
		scanf("%d", &B[i]);

	judge = Compare(A, n, B, m);
	if(judge < 0)
		printf("1\n");
	else
		printf("0\n");


	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Compare
	.type	Compare, @function
Compare:
.LFB0:
	.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)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L2
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L2:
	movl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
.L3:
	movl	$0, -4(%rbp)
	jmp	.L4
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
	movl	$-1, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L8
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	$-1, %eax
	jmp	.L6
.L9:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jge	.L10
	movl	$1, %eax
	jmp	.L6
.L10:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Compare, .-Compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L12
.L13:
	leaq	-8016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L12:
	movl	-8032(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L13
	leaq	-8028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L14
.L15:
	leaq	-4016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L14:
	movl	-8028(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L15
	movl	-8028(%rbp), %ecx
	movl	-8032(%rbp), %esi
	leaq	-4016(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rax, %rdi
	call	Compare
	movl	%eax, -8020(%rbp)
	cmpl	$0, -8020(%rbp)
	jns	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	Compare
	.type	Compare, @function
Compare:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %ecx
	movl	%esi, %r8d
	cmovle	%ecx, %r8d
	testl	%r8d, %r8d
	jle	.L2
	movslq	%r8d, %r8
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	jg	.L6
	addq	$1, %rax
	cmpq	%r8, %rax
	je	.L2
.L4:
	movl	(%rdx,%rax,4), %r9d
	cmpl	%r9d, (%rdi,%rax,4)
	jge	.L10
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	movl	$-1, %edx
	setl	%al
	cmovg	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	Compare, .-Compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L13
.L12:
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L14
	leaq	4016(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L15
.L14:
	movslq	8(%rsp), %r8
	movslq	%edx, %rcx
	cmpl	%edx, %r8d
	cmovle	%r8, %rcx
	testl	%ecx, %ecx
	jle	.L16
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4016(%rsp), %rsi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L26:
	jg	.L18
	addq	$1, %rax
	cmpq	%rax, %rcx
	je	.L16
.L19:
	movl	(%rsi,%rax,4), %ebx
	cmpl	%ebx, (%rdi,%rax,4)
	jge	.L26
.L17:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L16:
	cmpl	%edx, %r8d
	jl	.L17
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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	Compare
	.type	Compare, @function
Compare:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %ecx
	movl	%esi, %r8d
	cmovle	%ecx, %r8d
	testl	%r8d, %r8d
	jle	.L2
	movslq	%r8d, %r8
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	jg	.L6
	addq	$1, %rax
	cmpq	%r8, %rax
	je	.L2
.L4:
	movl	(%rdx,%rax,4), %r9d
	cmpl	%r9d, (%rdi,%rax,4)
	jge	.L10
	movl	$-1, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	movl	$-1, %edx
	setl	%al
	cmovg	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$1, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	Compare, .-Compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L12
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, 8(%rsp)
	jg	.L13
.L12:
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	testl	%edx, %edx
	jle	.L14
	leaq	4016(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %rbp
	cmpl	%ebx, %edx
	jg	.L15
.L14:
	movslq	8(%rsp), %r8
	movslq	%edx, %rcx
	cmpl	%edx, %r8d
	cmovle	%r8, %rcx
	testl	%ecx, %ecx
	jle	.L16
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	4016(%rsp), %rsi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L26:
	jg	.L18
	addq	$1, %rax
	cmpq	%rax, %rcx
	je	.L16
.L19:
	movl	(%rsi,%rax,4), %ebx
	cmpl	%ebx, (%rdi,%rax,4)
	jge	.L26
.L17:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L20
.L16:
	cmpl	%edx, %r8d
	jl	.L17
.L18:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>


int Compare(int *A, int n, int *B, int m)
{
	int min;
	int i;

	if(m > n)
		min = n;
	else
		min = m;

	for(i = 0; i < min; i++){
		if(A[i] < B[i])
			return -1;
		else if(A[i] > B[i])
			return 1;
	}

	if(n < m)
		return -1;
	else if(m < n)
		return 1;

	return 0;
}


int main()
{
	int A[1000], B[1000];
	int judge;
	int n, m;
	int num;
	int i;

	scanf("%d", &n);
	for(i = 0; i < n; i++)
		scanf("%d", &A[i]);

	scanf("%d", &m);
	for(i = 0; i < m; i++)
		scanf("%d", &B[i]);

	judge = Compare(A, n, B, m);
	if(judge < 0)
		printf("1\n");
	else
		printf("0\n");


	return 0;
}

3
1 1 2
4
1 2 2 2
 4
1 4 3 1
4
0 4 5 4 2
 3
1 4 3
2
2 4
 4
0 4 7 0
5
1 2 3 4 5
 3
1 1 2
4
1 3 2 2
 3
1 4 3
2
2 2
 4
0 4 7 0
5
1 2 3 4 1
 3
1 1 2
4
1 3 3 2
 3
1 4 3
3
2 2
 4
0 4 7 0
5
1 2 5 4 1

1
 0
 1
 1
 1
 1
 1
 1
 1
 1

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>


int Compare(int *A, int n, int *B, int m)
{
	int min;
	int i;

	if(m > n)
		min = n;
	else
		min = m;

	for(i = 0; i < min; i++){
		if(A[i] < B[i])
			return -1;
		else if(A[i] > B[i])
			return 1;
	}

	if(n < m)
		return -1;
	else if(m < n)
		return 1;

	return 0;
}


int main()
{
	int A[1000], B[1000];
	int judge;
	int n, m;
	int num;
	int i;

	scanf("%d", &n);
	for(i = 0; i < n; i++)
		scanf("%d", &A[i]);

	scanf("%d", &m);
	for(i = 0; i < m; i++)
		scanf("%d", &B[i]);

	judge = Compare(A, n, B, m);
	if(judge < 0)
		printf("1\n");
	else
		printf("0\n");


	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Compare
	.type	Compare, @function
Compare:
.LFB0:
	.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)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L2
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L2:
	movl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
.L3:
	movl	$0, -4(%rbp)
	jmp	.L4
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
	movl	$-1, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L8
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	$-1, %eax
	jmp	.L6
.L9:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jge	.L10
	movl	$1, %eax
	jmp	.L6
.L10:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Compare, .-Compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L12
.L13:
	leaq	-8016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L12:
	movl	-8032(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L13
	leaq	-8028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L14
.L15:
	leaq	-4016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L14:
	movl	-8028(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L15
	movl	-8028(%rbp), %ecx
	movl	-8032(%rbp), %esi
	leaq	-4016(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rax, %rdi
	call	Compare
	movl	%eax, -8020(%rbp)
	cmpl	$0, -8020(%rbp)
	jns	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	Compare
	.type	Compare, @function
Compare:
.LFB0:
	.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)
	movl	%esi, -28(%rbp)
	movq	%rdx, -40(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jle	.L2
	movl	-28(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L2:
	movl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
.L3:
	movl	$0, -4(%rbp)
	jmp	.L4
.L8:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jge	.L5
	movl	$-1, %eax
	jmp	.L6
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L4:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L8
	movl	-28(%rbp), %eax
	cmpl	-32(%rbp), %eax
	jge	.L9
	movl	$-1, %eax
	jmp	.L6
.L9:
	movl	-32(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jge	.L10
	movl	$1, %eax
	jmp	.L6
.L10:
	movl	$0, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Compare, .-Compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"1"
.LC2:
	.string	"0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3936, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-8032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L12
.L13:
	leaq	-8016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L12:
	movl	-8032(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L13
	leaq	-8028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -8024(%rbp)
	jmp	.L14
.L15:
	leaq	-4016(%rbp), %rdx
	movl	-8024(%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, -8024(%rbp)
.L14:
	movl	-8028(%rbp), %eax
	cmpl	%eax, -8024(%rbp)
	jl	.L15
	movl	-8028(%rbp), %ecx
	movl	-8032(%rbp), %esi
	leaq	-4016(%rbp), %rdx
	leaq	-8016(%rbp), %rax
	movq	%rax, %rdi
	call	Compare
	movl	%eax, -8020(%rbp)
	cmpl	$0, -8020(%rbp)
	jns	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
