Given the following C code and 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}
```
Given the following C 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;
}
```

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.
Optimized Assembly Code:

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 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;
}
```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```