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 points[101];

int main(){
  int n, i, j;
  scanf("%d", &n);
  for(i = 0;i < n * (n - 1) / 2;i++){
    int ai, bi, ci, di;
    scanf("%d%d%d%d", &ai, &bi, &ci, &di);
    if(ci == di){
      points[ai]++;
      points[bi]++;
    }
    else if(ci > di){
      points[ai] += 3;
    }
    else{
      points[bi] += 3;
    }
  }
  for(i = 1;i <= n;i++){
    int res = 1;
    for(j = 1;j <= n;j++){
      if(points[j] > points[i])res++;
    }
    printf("%d\n", res);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	points
	.bss
	.align 32
	.type	points, @object
	.size	points, 404
points:
	.zero	404
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L6:
	leaq	-24(%rbp), %rsi
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L3:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L4:
	addl	$1, -20(%rbp)
.L2:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L11:
	movl	$1, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	points(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L9
	addl	$1, -12(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -20(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	leal	-1(%rcx), %eax
	imull	%ecx, %eax
	cmpl	$1, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	leaq	points(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L5
	movslq	8(%rsp), %rax
	addl	$3, 0(%r13,%rax,4)
.L4:
	movl	4(%rsp), %ecx
	addl	$1, %ebx
	leal	-1(%rcx), %edx
	imull	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebx, %eax
	jle	.L2
.L6:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jne	.L3
	movslq	8(%rsp), %rax
	addl	$1, 0(%r13,%rax,4)
	movslq	12(%rsp), %rax
	addl	$1, 0(%r13,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	12(%rsp), %rax
	addl	$3, 0(%r13,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	points(%rip), %r13
	movl	$1, %r14d
	movl	$1, %ebp
	leaq	.LC2(%rip), %rbx
	leaq	20(%r13), %r12
	testl	%ecx, %ecx
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%ecx, %ecx
	movl	%ebp, %edi
	movl	0(%r13,%r14,4), %esi
	cmovg	%ecx, %edi
	cmpl	$3, %ecx
	jle	.L18
	movd	%esi, %xmm3
	leaq	4+points(%rip), %rax
	movl	%edi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm3, %xmm2
	pxor	%xmm1, %xmm1
	subl	$1, %edx
	salq	$4, %rdx
	addq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L9
	movdqa	%xmm1, %xmm0
	movl	%edi, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm1
	leal	1(%r8), %eax
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	addl	$1, %edx
	cmpl	%r8d, %edi
	je	.L10
.L8:
	movslq	%eax, %rdi
	cmpl	0(%r13,%rdi,4), %esi
	jge	.L11
	addl	$1, %edx
.L11:
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jl	.L10
	movslq	%edi, %rdi
	cmpl	0(%r13,%rdi,4), %esi
	jge	.L12
	addl	$1, %edx
.L12:
	addl	$2, %eax
	cmpl	%eax, %ecx
	jl	.L10
	cltq
	cmpl	0(%r13,%rax,4), %esi
	jge	.L10
	addl	$1, %edx
.L10:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	movl	4(%rsp), %ecx
	cmpl	%r14d, %ecx
	jge	.L7
.L15:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L18:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %eax
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	points
	.bss
	.align 32
	.type	points, @object
	.size	points, 404
points:
	.zero	404
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%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	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ecx
	leal	-1(%rcx), %eax
	imull	%ecx, %eax
	cmpl	$1, %eax
	jle	.L2
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r15
	leaq	16(%rsp), %r14
	leaq	12(%rsp), %r12
	leaq	8(%rsp), %rbp
	leaq	points(%rip), %r13
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	jle	.L5
	movslq	8(%rsp), %rax
	addl	$3, 0(%r13,%rax,4)
.L4:
	movl	4(%rsp), %ecx
	addl	$1, %ebx
	leal	-1(%rcx), %edx
	imull	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	sarl	%eax
	cmpl	%ebx, %eax
	jle	.L2
.L6:
	movq	%r15, %r8
	movq	%r14, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	cmpl	%eax, 16(%rsp)
	jne	.L3
	movslq	8(%rsp), %rax
	addl	$1, 0(%r13,%rax,4)
	movslq	12(%rsp), %rax
	addl	$1, 0(%r13,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	12(%rsp), %rax
	addl	$3, 0(%r13,%rax,4)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	points(%rip), %r13
	movl	$1, %r14d
	movl	$1, %ebp
	leaq	.LC2(%rip), %rbx
	leaq	20(%r13), %r12
	testl	%ecx, %ecx
	jle	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%ecx, %ecx
	movl	%ebp, %edi
	movl	0(%r13,%r14,4), %esi
	cmovg	%ecx, %edi
	cmpl	$3, %ecx
	jle	.L18
	movd	%esi, %xmm3
	leaq	4+points(%rip), %rax
	movl	%edi, %edx
	shrl	$2, %edx
	pshufd	$0, %xmm3, %xmm2
	pxor	%xmm1, %xmm1
	subl	$1, %edx
	salq	$4, %rdx
	addq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	pcmpgtd	%xmm2, %xmm0
	psubd	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L9
	movdqa	%xmm1, %xmm0
	movl	%edi, %r8d
	psrldq	$8, %xmm0
	andl	$-4, %r8d
	paddd	%xmm0, %xmm1
	leal	1(%r8), %eax
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	addl	$1, %edx
	cmpl	%r8d, %edi
	je	.L10
.L8:
	movslq	%eax, %rdi
	cmpl	0(%r13,%rdi,4), %esi
	jge	.L11
	addl	$1, %edx
.L11:
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jl	.L10
	movslq	%edi, %rdi
	cmpl	0(%r13,%rdi,4), %esi
	jge	.L12
	addl	$1, %edx
.L12:
	addl	$2, %eax
	cmpl	%eax, %ecx
	jl	.L10
	cltq
	cmpl	0(%r13,%rax,4), %esi
	jge	.L10
	addl	$1, %edx
.L10:
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %r14
	call	__printf_chk@PLT
	movl	4(%rsp), %ecx
	cmpl	%r14d, %ecx
	jge	.L7
.L15:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$40, %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
.L18:
	.cfi_restore_state
	movl	$1, %edx
	movl	$1, %eax
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	points
	.bss
	.align 32
	.type	points, @object
	.size	points, 404
points:
	.zero	404
	.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 points[101];

int main(){
  int n, i, j;
  scanf("%d", &n);
  for(i = 0;i < n * (n - 1) / 2;i++){
    int ai, bi, ci, di;
    scanf("%d%d%d%d", &ai, &bi, &ci, &di);
    if(ci == di){
      points[ai]++;
      points[bi]++;
    }
    else if(ci > di){
      points[ai] += 3;
    }
    else{
      points[bi] += 3;
    }
  }
  for(i = 1;i <= n;i++){
    int res = 1;
    for(j = 1;j <= n;j++){
      if(points[j] > points[i])res++;
    }
    printf("%d\n", res);
  }
  return 0;
}
4
1 2 0 1
1 3 2 1
1 4 2 2
2 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 0 1
1 3 2 1
1 4 2 2
4 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 1 1
1 3 2 1
1 4 2 2
4 0 3 1
2 4 3 0
0 4 1 4
 4
1 1 1 1
1 3 2 1
1 4 2 0
4 0 3 1
2 4 3 0
0 4 1 4
 4
1 2 0 1
2 3 2 1
1 4 2 2
2 3 2 1
2 4 3 0
3 4 1 3
 4
1 2 0 1
1 3 2 1
1 4 2 2
4 0 2 1
3 4 3 0
0 4 1 4
 4
1 1 1 1
1 3 2 1
1 3 2 2
4 0 3 2
2 4 3 0
0 4 1 4
 4
1 4 0 1
1 3 2 1
1 4 2 2
4 0 2 1
3 4 3 0
-1 4 1 4
 4
1 1 1 1
1 3 2 1
2 4 2 0
4 0 3 1
2 4 3 0
0 4 2 8
 4
1 2 0 1
1 3 2 1
1 4 2 2
2 3 1 0
2 4 3 0
3 4 1 0

2
1
4
2
 3
2
4
1
 2
3
4
1
 1
3
4
2
 3
1
4
2
 2
3
3
1
 1
3
4
1
 2
4
3
1
 3
1
4
1
 2
1
3
4

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 points[101];

int main(){
  int n, i, j;
  scanf("%d", &n);
  for(i = 0;i < n * (n - 1) / 2;i++){
    int ai, bi, ci, di;
    scanf("%d%d%d%d", &ai, &bi, &ci, &di);
    if(ci == di){
      points[ai]++;
      points[bi]++;
    }
    else if(ci > di){
      points[ai] += 3;
    }
    else{
      points[bi] += 3;
    }
  }
  for(i = 1;i <= n;i++){
    int res = 1;
    for(j = 1;j <= n;j++){
      if(points[j] > points[i])res++;
    }
    printf("%d\n", res);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	points
	.bss
	.align 32
	.type	points, @object
	.size	points, 404
points:
	.zero	404
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L6:
	leaq	-24(%rbp), %rsi
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L3:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L4:
	addl	$1, -20(%rbp)
.L2:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L11:
	movl	$1, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	points(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L9
	addl	$1, -12(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -20(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	points
	.bss
	.align 32
	.type	points, @object
	.size	points, 404
points:
	.zero	404
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d%d%d%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L6:
	leaq	-24(%rbp), %rsi
	leaq	-28(%rbp), %rcx
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L3
	movl	-36(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-32(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	points(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L3:
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L5
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L4
.L5:
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	leal	3(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L4:
	addl	$1, -20(%rbp)
.L2:
	movl	-40(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-40(%rbp), %eax
	imull	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$1, -20(%rbp)
	jmp	.L7
.L11:
	movl	$1, -12(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L8
.L10:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	points(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	points(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jle	.L9
	addl	$1, -12(%rbp)
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	-40(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L10
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -20(%rbp)
.L7:
	movl	-40(%rbp), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
