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 cnt = 0;

void Insert(int A[],int n,int g)
{
  int i,j,v;

  for(i = g;i < n;i++)
  {
    v = A[i];
    j = i - g;
    while(j >= 0 && A[j] > v)
    {
      A[j + g] = A[j];
      j = j - g;
      cnt++;
    }
    A[j + g] = v;
  }
}

void Shell(int A[],int n)
{
  int i,m,h,G[100];

  for(i = 0,h = 1;i < n;i++)
  {
    if(h > n) break;
    G[i] = h;
    h = 3 * h + 1;
  }
  m = i;

  printf("%d\n",m);
  for(i = m - 1;i >= 0;i--)
  {
    printf("%d",G[i]);
    if(i) printf(" ");
  }
  printf("\n");

  for(i = m - 1;i >= 0;i--) Insert(A,n,G[i]);
}

int main()
{
  int i,n,A[1000000];

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

  Shell(A,n);

  printf("%d\n",cnt);
  for(i = 0;i < n;i++)
  {
    printf("%d\n",A[i]);
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	Insert
	.type	Insert, @function
Insert:
.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)
	movl	%edx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %ecx
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	subl	%eax, -8(%rbp)
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	cmpl	$0, -8(%rbp)
	js	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insert, .-Insert
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%rdi, -440(%rbp)
	movl	%esi, -444(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -428(%rbp)
	movl	$1, -424(%rbp)
	jmp	.L8
.L11:
	movl	-424(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jg	.L18
	movl	-428(%rbp), %eax
	cltq
	movl	-424(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-424(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jl	.L11
	jmp	.L10
.L18:
	nop
.L10:
	movl	-428(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L12
.L14:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -428(%rbp)
	je	.L13
	movl	$32, %edi
	call	putchar@PLT
.L13:
	subl	$1, -428(%rbp)
.L12:
	cmpl	$0, -428(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L15
.L16:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-444(%rbp), %ecx
	movq	-440(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Insert
	subl	$1, -428(%rbp)
.L15:
	cmpl	$0, -428(%rbp)
	jns	.L16
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shell, .-Shell
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L20
.L21:
	leaq	-4000016(%rbp), %rdx
	movl	-4000020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4000020(%rbp)
.L20:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L21
	movl	-4000024(%rbp), %edx
	leaq	-4000016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Shell
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L22
.L23:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L22:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	Insert
	.type	Insert, @function
Insert:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edx
	jge	.L10
	movslq	%edx, %r9
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	salq	$2, %r9
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subl	%edx, %ebp
	xorl	%ebx, %ebx
	leaq	(%rdi,%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	movl	(%rsi), %r10d
	movl	%ebx, %edi
	movq	%rsi, %rcx
	subq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%rax), %r8d
	movq	%rax, %r11
	cmpl	%r10d, %r8d
	jle	.L14
	movl	%r8d, (%rcx)
	subq	%r9, %rax
	subq	%r9, %rcx
	addl	$1, cnt(%rip)
	subl	%edx, %edi
	jns	.L3
	addl	$1, %ebx
	movl	%r10d, (%r11)
	addq	$4, %rsi
	cmpl	%ebp, %ebx
	jne	.L6
.L15:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rcx, %r11
	addl	$1, %ebx
	addq	$4, %rsi
	movl	%r10d, (%r11)
	cmpl	%ebp, %ebx
	jne	.L6
	jmp	.L15
.L10:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	Insert, .-Insert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB24:
	.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
	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	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%rdi, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	.L17
	leaq	16(%rsp), %r12
	movl	%esi, %ebx
	movl	$1, %eax
	xorl	%edx, %edx
	movq	%r12, %rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edx, %ebx
	jle	.L18
.L19:
	movl	%eax, (%rcx)
	movl	%eax, %r13d
	leal	1(%rax,%rax,2), %eax
	movslq	%edx, %rbp
	addq	$4, %rcx
	addl	$1, %edx
	cmpl	%eax, %ebx
	jge	.L38
.L18:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	leaq	(%r12,%rbp,4), %rbp
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-4(%r12), %rax
	movq	%rbp, %r15
	leaq	.LC0(%rip), %r14
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r15), %edx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpq	%r12, %r15
	jne	.L39
.L20:
	movl	$10, %edi
	call	putchar@PLT
.L30:
	cmpl	%r13d, %ebx
	jle	.L29
	movq	8(%rsp), %rax
	movslq	%r13d, %rdi
	movl	%ebx, %r15d
	xorl	%r14d, %r14d
	salq	$2, %rdi
	subl	%r13d, %r15d
	leaq	(%rax,%rdi), %r11
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r11, %rax
	movl	(%r11), %r9d
	movl	%r14d, %ecx
	movq	%r11, %rdx
	subq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rax), %esi
	movq	%rax, %r10
	cmpl	%esi, %r9d
	jge	.L40
	movl	%esi, (%rdx)
	subq	%rdi, %rax
	subq	%rdi, %rdx
	addl	$1, cnt(%rip)
	subl	%r13d, %ecx
	jns	.L25
	addl	$1, %r14d
	movl	%r9d, (%r10)
	addq	$4, %r11
	cmpl	%r14d, %r15d
	jne	.L28
.L29:
	cmpq	%r12, %rbp
	je	.L41
	movl	-4(%rbp), %r13d
	subq	$4, %rbp
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%rdx, %r10
	addl	$1, %r14d
	addq	$4, %r11
	movl	%r9d, (%r10)
	cmpl	%r14d, %r15d
	jne	.L28
	jmp	.L29
.L39:
	movl	$32, %edi
	subq	$4, %r15
	call	putchar@PLT
	cmpq	(%rsp), %r15
	jne	.L21
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$10, %edi
	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
	jmp	putchar@PLT
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	Shell, .-Shell
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997736
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2344, %rsp
	.cfi_def_cfa_offset 4000080
	leaq	.LC0(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L44
.L43:
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	call	Shell
	movl	cnt(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L45
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L46:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L46
.L45:
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$4000040, %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
.L53:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.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	Insert
	.type	Insert, @function
Insert:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edx
	jge	.L10
	movslq	%edx, %r9
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movl	%esi, %ebp
	salq	$2, %r9
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subl	%edx, %ebp
	xorl	%ebx, %ebx
	leaq	(%rdi,%r9), %rsi
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	movl	(%rsi), %r10d
	movl	%ebx, %edi
	movq	%rsi, %rcx
	subq	%r9, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	(%rax), %r8d
	movq	%rax, %r11
	cmpl	%r10d, %r8d
	jle	.L14
	movl	%r8d, (%rcx)
	subq	%r9, %rax
	subq	%r9, %rcx
	addl	$1, cnt(%rip)
	subl	%edx, %edi
	jns	.L3
	addl	$1, %ebx
	movl	%r10d, (%r11)
	addq	$4, %rsi
	cmpl	%ebp, %ebx
	jne	.L6
.L15:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movq	%rcx, %r11
	addl	$1, %ebx
	addq	$4, %rsi
	movl	%r10d, (%r11)
	cmpl	%ebp, %ebx
	jne	.L6
	jmp	.L15
.L10:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE23:
	.size	Insert, .-Insert
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB24:
	.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
	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	$440, %rsp
	.cfi_def_cfa_offset 496
	movq	%rdi, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	.L17
	leaq	16(%rsp), %r12
	movl	%esi, %ebx
	movl	$1, %eax
	xorl	%edx, %edx
	movq	%r12, %rcx
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L38:
	cmpl	%edx, %ebx
	jle	.L18
.L19:
	movl	%eax, (%rcx)
	movl	%eax, %r13d
	leal	1(%rax,%rax,2), %eax
	movslq	%edx, %rbp
	addq	$4, %rcx
	addl	$1, %edx
	cmpl	%eax, %ebx
	jge	.L38
.L18:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	leaq	(%r12,%rbp,4), %rbp
	xorl	%eax, %eax
	call	__printf_chk@PLT
	leaq	-4(%r12), %rax
	movq	%rbp, %r15
	leaq	.LC0(%rip), %r14
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L21:
	movl	(%r15), %edx
	xorl	%eax, %eax
	movq	%r14, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpq	%r12, %r15
	jne	.L39
.L20:
	movl	$10, %edi
	call	putchar@PLT
.L30:
	cmpl	%r13d, %ebx
	jle	.L29
	movq	8(%rsp), %rax
	movslq	%r13d, %rdi
	movl	%ebx, %r15d
	xorl	%r14d, %r14d
	salq	$2, %rdi
	subl	%r13d, %r15d
	leaq	(%rax,%rdi), %r11
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%r11, %rax
	movl	(%r11), %r9d
	movl	%r14d, %ecx
	movq	%r11, %rdx
	subq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L25:
	movl	(%rax), %esi
	movq	%rax, %r10
	cmpl	%esi, %r9d
	jge	.L40
	movl	%esi, (%rdx)
	subq	%rdi, %rax
	subq	%rdi, %rdx
	addl	$1, cnt(%rip)
	subl	%r13d, %ecx
	jns	.L25
	addl	$1, %r14d
	movl	%r9d, (%r10)
	addq	$4, %r11
	cmpl	%r14d, %r15d
	jne	.L28
.L29:
	cmpq	%r12, %rbp
	je	.L41
	movl	-4(%rbp), %r13d
	subq	$4, %rbp
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L40:
	movq	%rdx, %r10
	addl	$1, %r14d
	addq	$4, %r11
	movl	%r9d, (%r10)
	cmpl	%r14d, %r15d
	jne	.L28
	jmp	.L29
.L39:
	movl	$32, %edi
	subq	$4, %r15
	call	putchar@PLT
	cmpq	(%rsp), %r15
	jne	.L21
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L17:
	.cfi_restore_state
	xorl	%edx, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L37
	addq	$440, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	$10, %edi
	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
	jmp	putchar@PLT
.L37:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	Shell, .-Shell
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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	-3997696(%rsp), %r11
	.cfi_def_cfa 11, 3997736
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2344, %rsp
	.cfi_def_cfa_offset 4000080
	leaq	.LC0(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 4000024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testl	%esi, %esi
	jle	.L43
	.p2align 4,,10
	.p2align 3
.L44:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L44
.L43:
	movq	%r12, %rdi
	leaq	.LC1(%rip), %rbp
	call	Shell
	movl	cnt(%rip), %edx
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L45
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L46:
	movl	(%r12,%rbx,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, 12(%rsp)
	jg	.L46
.L45:
	movq	4000024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L53
	addq	$4000040, %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
.L53:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.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 cnt = 0;

void Insert(int A[],int n,int g)
{
  int i,j,v;

  for(i = g;i < n;i++)
  {
    v = A[i];
    j = i - g;
    while(j >= 0 && A[j] > v)
    {
      A[j + g] = A[j];
      j = j - g;
      cnt++;
    }
    A[j + g] = v;
  }
}

void Shell(int A[],int n)
{
  int i,m,h,G[100];

  for(i = 0,h = 1;i < n;i++)
  {
    if(h > n) break;
    G[i] = h;
    h = 3 * h + 1;
  }
  m = i;

  printf("%d\n",m);
  for(i = m - 1;i >= 0;i--)
  {
    printf("%d",G[i]);
    if(i) printf(" ");
  }
  printf("\n");

  for(i = m - 1;i >= 0;i--) Insert(A,n,G[i]);
}

int main()
{
  int i,n,A[1000000];

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

  Shell(A,n);

  printf("%d\n",cnt);
  for(i = 0;i < n;i++)
  {
    printf("%d\n",A[i]);
  }

  return 0;
}


5
5
1
4
5
2
 3
6
2
1
 5
6
1
4
5
2
 3
0
2
1
 5
6
1
4
9
2
 3
-1
2
1
 5
6
1
4
6
2
 3
0
2
0
 5
5
1
4
9
2
 3
0
1
0

2
4 1
2
1
2
4
5
5
 1
1
3
1
2
6
 2
4 1
2
1
2
4
5
6
 1
1
1
0
1
2
 2
4 1
3
1
2
4
6
9
 1
1
1
-1
1
2
 2
4 1
2
1
2
4
6
6
 1
1
1
0
0
2
 2
4 1
3
1
2
4
5
9
 1
1
1
0
0
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 cnt = 0;

void Insert(int A[],int n,int g)
{
  int i,j,v;

  for(i = g;i < n;i++)
  {
    v = A[i];
    j = i - g;
    while(j >= 0 && A[j] > v)
    {
      A[j + g] = A[j];
      j = j - g;
      cnt++;
    }
    A[j + g] = v;
  }
}

void Shell(int A[],int n)
{
  int i,m,h,G[100];

  for(i = 0,h = 1;i < n;i++)
  {
    if(h > n) break;
    G[i] = h;
    h = 3 * h + 1;
  }
  m = i;

  printf("%d\n",m);
  for(i = m - 1;i >= 0;i--)
  {
    printf("%d",G[i]);
    if(i) printf(" ");
  }
  printf("\n");

  for(i = m - 1;i >= 0;i--) Insert(A,n,G[i]);
}

int main()
{
  int i,n,A[1000000];

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

  Shell(A,n);

  printf("%d\n",cnt);
  for(i = 0;i < n;i++)
  {
    printf("%d\n",A[i]);
  }

  return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	Insert
	.type	Insert, @function
Insert:
.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)
	movl	%edx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %ecx
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	subl	%eax, -8(%rbp)
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	cmpl	$0, -8(%rbp)
	js	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insert, .-Insert
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%rdi, -440(%rbp)
	movl	%esi, -444(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -428(%rbp)
	movl	$1, -424(%rbp)
	jmp	.L8
.L11:
	movl	-424(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jg	.L18
	movl	-428(%rbp), %eax
	cltq
	movl	-424(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-424(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jl	.L11
	jmp	.L10
.L18:
	nop
.L10:
	movl	-428(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L12
.L14:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -428(%rbp)
	je	.L13
	movl	$32, %edi
	call	putchar@PLT
.L13:
	subl	$1, -428(%rbp)
.L12:
	cmpl	$0, -428(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L15
.L16:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-444(%rbp), %ecx
	movq	-440(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Insert
	subl	$1, -428(%rbp)
.L15:
	cmpl	$0, -428(%rbp)
	jns	.L16
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shell, .-Shell
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L20
.L21:
	leaq	-4000016(%rbp), %rdx
	movl	-4000020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4000020(%rbp)
.L20:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L21
	movl	-4000024(%rbp), %edx
	leaq	-4000016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Shell
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L22
.L23:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L22:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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.
val
	.file	"temp.c"
	.text
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	Insert
	.type	Insert, @function
Insert:
.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)
	movl	%edx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-32(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-8(%rbp), %ecx
	movl	-32(%rbp), %edx
	addl	%ecx, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	-32(%rbp), %eax
	subl	%eax, -8(%rbp)
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
.L3:
	cmpl	$0, -8(%rbp)
	js	.L4
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-32(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L6
	nop
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insert, .-Insert
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
	.text
	.globl	Shell
	.type	Shell, @function
Shell:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$448, %rsp
	movq	%rdi, -440(%rbp)
	movl	%esi, -444(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -428(%rbp)
	movl	$1, -424(%rbp)
	jmp	.L8
.L11:
	movl	-424(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jg	.L18
	movl	-428(%rbp), %eax
	cltq
	movl	-424(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
	movl	-424(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -424(%rbp)
	addl	$1, -428(%rbp)
.L8:
	movl	-428(%rbp), %eax
	cmpl	-444(%rbp), %eax
	jl	.L11
	jmp	.L10
.L18:
	nop
.L10:
	movl	-428(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L12
.L14:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	cmpl	$0, -428(%rbp)
	je	.L13
	movl	$32, %edi
	call	putchar@PLT
.L13:
	subl	$1, -428(%rbp)
.L12:
	cmpl	$0, -428(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	-420(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L15
.L16:
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-444(%rbp), %ecx
	movq	-440(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %rdi
	call	Insert
	subl	$1, -428(%rbp)
.L15:
	cmpl	$0, -428(%rbp)
	jns	.L16
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shell, .-Shell
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-3997696(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-4000024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L20
.L21:
	leaq	-4000016(%rbp), %rdx
	movl	-4000020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4000020(%rbp)
.L20:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L21
	movl	-4000024(%rbp), %edx
	leaq	-4000016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	Shell
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -4000020(%rbp)
	jmp	.L22
.L23:
	movl	-4000020(%rbp), %eax
	cltq
	movl	-4000016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -4000020(%rbp)
.L22:
	movl	-4000024(%rbp), %eax
	cmpl	%eax, -4000020(%rbp)
	jl	.L23
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
