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 <string.h>
#include <stdint.h>
#include <math.h>
#include <time.h>

typedef int32_t i32;
typedef int64_t i64;
typedef double f64;

void *const null=(void *)0;
i64 const llinf=4611686018427387903LL;
i64 const mod=1000000009LL;
f64 const pi=3.141592653589793;
f64 const rad=57.295779513082323;

#define CODE_

i32 main(void){
    i64 n;
    scanf("%lli%*c",&n);
    i64 *x=(i64 *)calloc(n+1LL,sizeof(i64));
    x[n]=2020LL;
    for(i64 i=0LL;i<n;++i) scanf("%lli%*c",&x[i]);
    i64 m;
    scanf("%lli%*c",&m);
    for(i64 i=0LL;i<m;++i){
        i64 a;
        scanf("%lli%*c",&a);
        if(x[a-1LL]<x[a]-1LL) ++x[a-1LL];
    }
    for(i64 i=0LL;i<n;++i) printf("%lli\n",x[i]);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	null
	.section	.rodata
	.align 8
	.type	null, @object
	.size	null, 8
null:
	.zero	8
	.globl	llinf
	.align 8
	.type	llinf, @object
	.size	llinf, 8
llinf:
	.quad	4611686018427387903
	.globl	mod
	.align 8
	.type	mod, @object
	.size	mod, 8
mod:
	.quad	1000000009
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.long	1413754136
	.long	1074340347
	.globl	rad
	.align 8
	.type	rad, @object
	.size	rad, 8
rad:
	.long	442745336
	.long	1078765020
.LC0:
	.string	"%lli%*c"
.LC1:
	.string	"%lli\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	$2020, (%rax)
	movq	$0, -40(%rbp)
	jmp	.L2
.L3:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L3
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	jmp	.L4
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	addq	$1, %rdx
	movq	%rdx, (%rax)
.L5:
	addq	$1, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L6
	movq	$0, -24(%rbp)
	jmp	.L7
.L8:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L7:
	movq	-64(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%lli%*c"
.LC1:
	.string	"%lli\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r12
	movl	$8, %esi
	leaq	1(%r12), %rdi
	call	calloc@PLT
	movq	$2020, (%rax,%r12,8)
	movq	%rax, %rbp
	testq	%r12, %r12
	jle	.L2
	movq	%rax, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r12, (%rsp)
	jg	.L3
.L2:
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jle	.L4
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	leaq	-8(%rbp,%rax,8), %rcx
	movq	0(%rbp,%rax,8), %rax
	movq	(%rcx), %rdx
	subq	$1, %rax
	cmpq	%rax, %rdx
	jge	.L5
	addq	$1, %rdx
	addq	$1, %r13
	movq	%rdx, (%rcx)
	cmpq	8(%rsp), %r13
	jl	.L7
.L4:
	cmpq	$0, (%rsp)
	jle	.L8
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	0(%rbp,%rbx,8), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, (%rsp)
	jg	.L9
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	addq	$1, %r13
	cmpq	%r13, 8(%rsp)
	jg	.L7
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	rad
	.section	.rodata
	.align 8
	.type	rad, @object
	.size	rad, 8
rad:
	.long	442745336
	.long	1078765020
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.long	1413754136
	.long	1074340347
	.globl	mod
	.align 8
	.type	mod, @object
	.size	mod, 8
mod:
	.quad	1000000009
	.globl	llinf
	.align 8
	.type	llinf, @object
	.size	llinf, 8
llinf:
	.quad	4611686018427387903
	.globl	null
	.align 8
	.type	null, @object
	.size	null, 8
null:
	.zero	8
	.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	"%lli%*c"
.LC1:
	.string	"%lli\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %r12
	movl	$8, %esi
	leaq	1(%r12), %rdi
	call	calloc@PLT
	movq	$2020, (%rax,%r12,8)
	movq	%rax, %rbp
	testq	%r12, %r12
	jle	.L2
	movq	%rax, %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	addq	$8, %r13
	cmpq	%r12, (%rsp)
	jg	.L3
.L2:
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpq	$0, 8(%rsp)
	jle	.L4
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	leaq	-8(%rbp,%rax,8), %rcx
	movq	0(%rbp,%rax,8), %rax
	movq	(%rcx), %rdx
	subq	$1, %rax
	cmpq	%rax, %rdx
	jge	.L5
	addq	$1, %rdx
	addq	$1, %r13
	movq	%rdx, (%rcx)
	cmpq	8(%rsp), %r13
	jl	.L7
.L4:
	cmpq	$0, (%rsp)
	jle	.L8
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	0(%rbp,%rbx,8), %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, (%rsp)
	jg	.L9
.L8:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	addq	$1, %r13
	cmpq	%r13, 8(%rsp)
	jg	.L7
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	rad
	.section	.rodata
	.align 8
	.type	rad, @object
	.size	rad, 8
rad:
	.long	442745336
	.long	1078765020
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.long	1413754136
	.long	1074340347
	.globl	mod
	.align 8
	.type	mod, @object
	.size	mod, 8
mod:
	.quad	1000000009
	.globl	llinf
	.align 8
	.type	llinf, @object
	.size	llinf, 8
llinf:
	.quad	4611686018427387903
	.globl	null
	.align 8
	.type	null, @object
	.size	null, 8
null:
	.zero	8
	.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 <string.h>
#include <stdint.h>
#include <math.h>
#include <time.h>

typedef int32_t i32;
typedef int64_t i64;
typedef double f64;

void *const null=(void *)0;
i64 const llinf=4611686018427387903LL;
i64 const mod=1000000009LL;
f64 const pi=3.141592653589793;
f64 const rad=57.295779513082323;

#define CODE_

i32 main(void){
    i64 n;
    scanf("%lli%*c",&n);
    i64 *x=(i64 *)calloc(n+1LL,sizeof(i64));
    x[n]=2020LL;
    for(i64 i=0LL;i<n;++i) scanf("%lli%*c",&x[i]);
    i64 m;
    scanf("%lli%*c",&m);
    for(i64 i=0LL;i<m;++i){
        i64 a;
        scanf("%lli%*c",&a);
        if(x[a-1LL]<x[a]-1LL) ++x[a-1LL];
    }
    for(i64 i=0LL;i<n;++i) printf("%lli\n",x[i]);
    return 0;
}


3
2 3 6
2
1 3

2
3
7

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 <string.h>
#include <stdint.h>
#include <math.h>
#include <time.h>

typedef int32_t i32;
typedef int64_t i64;
typedef double f64;

void *const null=(void *)0;
i64 const llinf=4611686018427387903LL;
i64 const mod=1000000009LL;
f64 const pi=3.141592653589793;
f64 const rad=57.295779513082323;

#define CODE_

i32 main(void){
    i64 n;
    scanf("%lli%*c",&n);
    i64 *x=(i64 *)calloc(n+1LL,sizeof(i64));
    x[n]=2020LL;
    for(i64 i=0LL;i<n;++i) scanf("%lli%*c",&x[i]);
    i64 m;
    scanf("%lli%*c",&m);
    for(i64 i=0LL;i<m;++i){
        i64 a;
        scanf("%lli%*c",&a);
        if(x[a-1LL]<x[a]-1LL) ++x[a-1LL];
    }
    for(i64 i=0LL;i<n;++i) printf("%lli\n",x[i]);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	null
	.section	.rodata
	.align 8
	.type	null, @object
	.size	null, 8
null:
	.zero	8
	.globl	llinf
	.align 8
	.type	llinf, @object
	.size	llinf, 8
llinf:
	.quad	4611686018427387903
	.globl	mod
	.align 8
	.type	mod, @object
	.size	mod, 8
mod:
	.quad	1000000009
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.long	1413754136
	.long	1074340347
	.globl	rad
	.align 8
	.type	rad, @object
	.size	rad, 8
rad:
	.long	442745336
	.long	1078765020
.LC0:
	.string	"%lli%*c"
.LC1:
	.string	"%lli\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	$2020, (%rax)
	movq	$0, -40(%rbp)
	jmp	.L2
.L3:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L3
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	jmp	.L4
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	addq	$1, %rdx
	movq	%rdx, (%rax)
.L5:
	addq	$1, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L6
	movq	$0, -24(%rbp)
	jmp	.L7
.L8:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L7:
	movq	-64(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	null
	.section	.rodata
	.align 8
	.type	null, @object
	.size	null, 8
null:
	.zero	8
	.globl	llinf
	.align 8
	.type	llinf, @object
	.size	llinf, 8
llinf:
	.quad	4611686018427387903
	.globl	mod
	.align 8
	.type	mod, @object
	.size	mod, 8
mod:
	.quad	1000000009
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.long	1413754136
	.long	1074340347
	.globl	rad
	.align 8
	.type	rad, @object
	.size	rad, 8
rad:
	.long	442745336
	.long	1078765020
.LC0:
	.string	"%lli%*c"
.LC1:
	.string	"%lli\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movl	$8, %esi
	movq	%rax, %rdi
	call	calloc@PLT
	movq	%rax, -16(%rbp)
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	$2020, (%rax)
	movq	$0, -40(%rbp)
	jmp	.L2
.L3:
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -40(%rbp)
.L2:
	movq	-64(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L3
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -32(%rbp)
	jmp	.L4
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-16(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rdx
	subq	$1, %rdx
	cmpq	%rdx, %rax
	jge	.L5
	movq	-48(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	addq	$1, %rdx
	movq	%rdx, (%rax)
.L5:
	addq	$1, -32(%rbp)
.L4:
	movq	-56(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jl	.L6
	movq	$0, -24(%rbp)
	jmp	.L7
.L8:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L7:
	movq	-64(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L8
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
