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

```c
// C - Conunt Order
#include <stdio.h>
#include <stdlib.h>

int cOrder(int n, int a[]){
    int i, j, cnt=0;
    for(i=0; i<n-1; i++){
        for(j=i; j<n; j++){
            if(a[i] > a[j]) cnt++;
        }
        cnt *= n-i-1;
    }
    return cnt;
}

int main(void){
    int n;
    scanf("%d", &n);
    int p[9], q[9];
    for(int i=0; i<n; i++) scanf("%d", &p[i]);
    for(int i=0; i<n; i++) scanf("%d", &q[i]);
    printf("%d\n", abs(cOrder(n, p) - cOrder(n, q)));
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cOrder
	.type	cOrder, @function
cOrder:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	addl	$1, -4(%rbp)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cOrder, .-cOrder
	.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	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120(%rbp)
	jmp	.L9
.L10:
	leaq	-112(%rbp), %rdx
	movl	-120(%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, -120(%rbp)
.L9:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L10
	movl	$0, -116(%rbp)
	jmp	.L11
.L12:
	leaq	-64(%rbp), %rdx
	movl	-116(%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, -116(%rbp)
.L11:
	movl	-124(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L12
	movl	-124(%rbp), %eax
	leaq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %ebx
	movl	-124(%rbp), %eax
	leaq	-64(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	cOrder
	.type	cOrder, @function
cOrder:
.LFB39:
	.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
	leal	-1(%rdi), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	testl	%ebp, %ebp
	jle	.L13
	movl	%edi, %r10d
	testl	%edi, %edi
	jle	.L13
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	movl	%ebp, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %esi
	movl	(%rdi), %r11d
	subl	%ecx, %esi
	cmpl	%ecx, %r10d
	cmovle	%r12d, %esi
	jle	.L14
	cmpl	$2, %r9d
	jbe	.L14
	movl	%esi, %eax
	movd	%r11d, %xmm4
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	pshufd	$0, %xmm4, %xmm2
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rdx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rax), %xmm3
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	(%rdx,%rcx), %eax
	cmpl	%edx, %esi
	je	.L6
.L4:
	movslq	%eax, %rdx
	cmpl	(%rbx,%rdx,4), %r11d
	leaq	0(,%rdx,4), %rsi
	setg	%dl
	movzbl	%dl, %edx
	addl	%edx, %r8d
	leal	1(%rax), %edx
	cmpl	%edx, %r10d
	jle	.L6
	cmpl	4(%rbx,%rsi), %r11d
	jle	.L8
	addl	$1, %r8d
.L8:
	addl	$2, %eax
	cmpl	%eax, %r10d
	jle	.L6
	cmpl	8(%rbx,%rsi), %r11d
	jle	.L6
	addl	$1, %r8d
.L6:
	addl	$1, %ecx
	imull	%r9d, %r8d
	addq	$4, %rdi
	subl	$1, %r9d
	cmpl	%ecx, %ebp
	jne	.L11
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r8d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L4
	.cfi_endproc
.LFE39:
	.size	cOrder, .-cOrder
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	leaq	64(%rsp), %r15
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L20
	movq	%r14, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L21:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L21
	leaq	64(%rsp), %r15
	testl	%ebp, %ebp
	jle	.L20
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L22
.L20:
	movq	%r14, %rsi
	movl	%ebp, %edi
	call	cOrder
	movq	%r15, %rsi
	movl	%ebp, %edi
	movl	%eax, %ebx
	call	cOrder
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %r8d
	movl	%ebx, %eax
	subl	%r8d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$120, %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
.L31:
	.cfi_restore_state
	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	cOrder
	.type	cOrder, @function
cOrder:
.LFB39:
	.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
	leal	-1(%rdi), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	testl	%ebp, %ebp
	jle	.L13
	movl	%edi, %r10d
	testl	%edi, %edi
	jle	.L13
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	movl	%ebp, %r9d
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	movl	$1, %r12d
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %esi
	movl	(%rdi), %r11d
	subl	%ecx, %esi
	cmpl	%ecx, %r10d
	cmovle	%r12d, %esi
	jle	.L14
	cmpl	$2, %r9d
	jbe	.L14
	movl	%esi, %eax
	movd	%r11d, %xmm4
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	pshufd	$0, %xmm4, %xmm2
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rdi,%rax), %rdx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	(%rax), %xmm3
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rdx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%esi, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %r8d
	leal	(%rdx,%rcx), %eax
	cmpl	%edx, %esi
	je	.L6
.L4:
	movslq	%eax, %rdx
	cmpl	(%rbx,%rdx,4), %r11d
	leaq	0(,%rdx,4), %rsi
	setg	%dl
	movzbl	%dl, %edx
	addl	%edx, %r8d
	leal	1(%rax), %edx
	cmpl	%edx, %r10d
	jle	.L6
	cmpl	4(%rbx,%rsi), %r11d
	jle	.L8
	addl	$1, %r8d
.L8:
	addl	$2, %eax
	cmpl	%eax, %r10d
	jle	.L6
	cmpl	8(%rbx,%rsi), %r11d
	jle	.L6
	addl	$1, %r8d
.L6:
	addl	$1, %ecx
	imull	%r9d, %r8d
	addq	$4, %rdi
	subl	$1, %r9d
	cmpl	%ecx, %ebp
	jne	.L11
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xorl	%r8d, %r8d
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	movl	%r8d, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L4
	.cfi_endproc
.LFE39:
	.size	cOrder, .-cOrder
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	leaq	64(%rsp), %r15
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L20
	movq	%r14, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L21:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L21
	leaq	64(%rsp), %r15
	testl	%ebp, %ebp
	jle	.L20
	movq	%r15, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L22:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$4, %r12
	cmpl	%ebx, %ebp
	jg	.L22
.L20:
	movq	%r14, %rsi
	movl	%ebp, %edi
	call	cOrder
	movq	%r15, %rsi
	movl	%ebp, %edi
	movl	%eax, %ebx
	call	cOrder
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %r8d
	movl	%ebx, %eax
	subl	%r8d, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$120, %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
.L31:
	.cfi_restore_state
	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:

// C - Conunt Order
#include <stdio.h>
#include <stdlib.h>

int cOrder(int n, int a[]){
    int i, j, cnt=0;
    for(i=0; i<n-1; i++){
        for(j=i; j<n; j++){
            if(a[i] > a[j]) cnt++;
        }
        cnt *= n-i-1;
    }
    return cnt;
}

int main(void){
    int n;
    scanf("%d", &n);
    int p[9], q[9];
    for(int i=0; i<n; i++) scanf("%d", &p[i]);
    for(int i=0; i<n; i++) scanf("%d", &q[i]);
    printf("%d\n", abs(cOrder(n, p) - cOrder(n, q)));
    return 0;
}
3
1 3 2
3 1 2

3

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

```c
// C - Conunt Order
#include <stdio.h>
#include <stdlib.h>

int cOrder(int n, int a[]){
    int i, j, cnt=0;
    for(i=0; i<n-1; i++){
        for(j=i; j<n; j++){
            if(a[i] > a[j]) cnt++;
        }
        cnt *= n-i-1;
    }
    return cnt;
}

int main(void){
    int n;
    scanf("%d", &n);
    int p[9], q[9];
    for(int i=0; i<n; i++) scanf("%d", &p[i]);
    for(int i=0; i<n; i++) scanf("%d", &q[i]);
    printf("%d\n", abs(cOrder(n, p) - cOrder(n, q)));
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cOrder
	.type	cOrder, @function
cOrder:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	addl	$1, -4(%rbp)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cOrder, .-cOrder
	.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	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120(%rbp)
	jmp	.L9
.L10:
	leaq	-112(%rbp), %rdx
	movl	-120(%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, -120(%rbp)
.L9:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L10
	movl	$0, -116(%rbp)
	jmp	.L11
.L12:
	leaq	-64(%rbp), %rdx
	movl	-116(%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, -116(%rbp)
.L11:
	movl	-124(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L12
	movl	-124(%rbp), %eax
	leaq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %ebx
	movl	-124(%rbp), %eax
	leaq	-64(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	cOrder
	.type	cOrder, @function
cOrder:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	.L4
	addl	$1, -4(%rbp)
.L4:
	addl	$1, -8(%rbp)
.L3:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L5
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	addl	$1, -12(%rbp)
.L2:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cOrder, .-cOrder
	.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	$120, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-124(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -120(%rbp)
	jmp	.L9
.L10:
	leaq	-112(%rbp), %rdx
	movl	-120(%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, -120(%rbp)
.L9:
	movl	-124(%rbp), %eax
	cmpl	%eax, -120(%rbp)
	jl	.L10
	movl	$0, -116(%rbp)
	jmp	.L11
.L12:
	leaq	-64(%rbp), %rdx
	movl	-116(%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, -116(%rbp)
.L11:
	movl	-124(%rbp), %eax
	cmpl	%eax, -116(%rbp)
	jl	.L12
	movl	-124(%rbp), %eax
	leaq	-112(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %ebx
	movl	-124(%rbp), %eax
	leaq	-64(%rbp), %rdx
	movq	%rdx, %rsi
	movl	%eax, %edi
	call	cOrder
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %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	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
