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 n, cnt;
int A[1000000];
 
 int Insertionsort(int g) {
 	int v;
 	int i,j;
 	
 	for(i=g;i < n; i++) {
 		v = A[i];
 		j = i-g;
 		while(j >= 0&& A[j] > v) {
 			A[j+g] = A[j];
 			j -= g;
 			cnt++;
 		}
 		A[j+g] = v;
 	}
 }
 
 
 
 int Shellsort() {
 	int G[100];
 	int i,m = 0,g=0;
 	while(3 * g + 1 <= n) {
 		g = 3 * g + 1;
 		G[m++]=g;
 	}
 	printf("%d\n",m);
 	
 	for(i=m-1;i>=0;i--) {
 		if(i<m-1) printf(" ");
 		printf("%d",G[i]);
 		Insertionsort(G[i]);
 	}
	puts("");
	printf("%d\n",cnt);
	
	for(i = 0; i < n; i++) {
		printf("%d\n",A[i]);
	}
}
 
 
int main(void) {
   
  int i;
   
  scanf("%d", &n);
   
  for(i = 0; i < n; i++) {
    scanf("%d", A+i);
  }
 
  Shellsort();
 
  return 0;
 
}
 
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 4000000
A:
	.zero	4000000
	.text
	.globl	Insertionsort
	.type	Insertionsort, @function
Insertionsort:
.LFB0:
	.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)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%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
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insertionsort, .-Insertionsort
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.text
	.globl	Shellsort
	.type	Shellsort, @function
Shellsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	jmp	.L8
.L9:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -420(%rbp)
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -424(%rbp)
	cltq
	movl	-420(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L8:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	-424(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-424(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L10
.L12:
	movl	-424(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jge	.L11
	movl	$32, %edi
	call	putchar@PLT
.L11:
	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
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %edi
	call	Insertionsort
	subl	$1, -428(%rbp)
.L10:
	cmpl	$0, -428(%rbp)
	jns	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -428(%rbp)
	jmp	.L13
.L14:
	movl	-428(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -428(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L14
	nop
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shellsort, .-Shellsort
	.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
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L17
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	movl	$0, %eax
	call	Shellsort
	movl	$0, %eax
	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	Insertionsort
	.type	Insertionsort, @function
Insertionsort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	cmpl	%eax, %edi
	jge	.L15
	movl	%edi, %r10d
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	cnt(%rip), %ecx
	movl	%r10d, %r11d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	-1(%rax), %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	negl	%r11d
	subl	%edi, %r14d
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%r11d, %r11
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edi, %rbp
	leaq	A(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	salq	$2, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	0(%r13,%rbp), %r8
	movl	(%rdi,%rbp), %r9d
	movq	%r12, %rax
	addq	%rdi, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rdi,%rax,4), %edx
	movslq	%eax, %rsi
	leal	(%r10,%rax), %r15d
	cmpl	%r9d, %edx
	jle	.L19
	movl	%edx, (%r8,%rax,4)
	addq	%r11, %rax
	addl	$1, %ecx
	movl	$1, %ebx
	testl	%eax, %eax
	jns	.L4
.L5:
	movl	%r9d, (%rdi,%rsi,4)
	leaq	1(%r12), %rax
	subq	$4, %r13
	addq	$4, %rbp
	cmpq	%r14, %r12
	je	.L20
	movq	%rax, %r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r15d, %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testb	%bl, %bl
	je	.L3
	movl	%ecx, cnt(%rip)
.L3:
	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
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE23:
	.size	Insertionsort, .-Insertionsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	Shellsort
	.type	Shellsort, @function
Shellsort:
.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	$456, %rsp
	.cfi_def_cfa_offset 512
	movl	n(%rip), %ecx
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L22
	leaq	32(%rsp), %rdx
	xorl	%r8d, %r8d
	movq	%rdx, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %eax
	movl	%r8d, %esi
	leal	1(%r8), %r8d
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	leal	(%rax,%rax,2), %eax
	cmpl	%ecx, %eax
	jl	.L23
	leaq	.LC2(%rip), %rax
	movl	%esi, 12(%rsp)
	movl	%r8d, %edx
	movl	$1, %edi
	movq	%rax, 24(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	leaq	A(%rip), %rbx
	call	__printf_chk@PLT
	movslq	12(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%rsp), %ecx
	cmpl	%ecx, 12(%rsp)
	jle	.L25
	movl	$32, %edi
	call	putchar@PLT
.L25:
	movq	16(%rsp), %rax
	movq	(%rsp), %rcx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rax,%rcx,4), %ebp
	xorl	%eax, %eax
	movl	%ebp, %edx
	call	__printf_chk@PLT
	movl	n(%rip), %eax
	cmpl	%eax, %ebp
	jge	.L27
	movl	%ebp, %r10d
	movslq	%ebp, %r12
	leal	-1(%rax), %r15d
	movl	cnt(%rip), %ecx
	negl	%r10d
	salq	$2, %r12
	subl	%ebp, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movslq	%r10d, %r10
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	(%r14,%r12), %rdi
	movl	(%rbx,%r12), %r8d
	movq	%r13, %rax
	addq	%rbx, %rdi
	.p2align 4,,10
	.p2align 3
.L28:
	movl	(%rbx,%rax,4), %edx
	movslq	%eax, %rsi
	leal	0(%rbp,%rax), %r9d
	cmpl	%edx, %r8d
	jge	.L53
	movl	%edx, (%rdi,%rax,4)
	addq	%r10, %rax
	addl	$1, %ecx
	movl	$1, %r11d
	testl	%eax, %eax
	jns	.L28
.L29:
	movl	%r8d, (%rbx,%rsi,4)
	leaq	1(%r13), %rax
	subq	$4, %r14
	addq	$4, %r12
	cmpq	%r15, %r13
	je	.L54
	movq	%rax, %r13
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r9d, %rsi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L54:
	testb	%r11b, %r11b
	je	.L27
	movl	%ecx, cnt(%rip)
.L27:
	subq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpl	$-1, %eax
	jne	.L33
.L36:
	leaq	.LC1(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	A(%rip), %rbp
	call	puts@PLT
	movl	cnt(%rip), %edx
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	n(%rip), %eax
	movq	24(%rsp), %r12
	testl	%eax, %eax
	jle	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	movl	0(%rbp,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jg	.L34
.L35:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	addq	$456, %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
.L22:
	.cfi_restore_state
	leaq	.LC2(%rip), %rax
	xorl	%edx, %edx
	movl	$1, %edi
	movq	%rax, 24(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	Shellsort, .-Shellsort
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L57
	leaq	A(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L58:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, n(%rip)
	jg	.L58
.L57:
	xorl	%eax, %eax
	call	Shellsort
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 4000000
A:
	.zero	4000000
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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	Insertionsort
	.type	Insertionsort, @function
Insertionsort:
.LFB23:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	cmpl	%eax, %edi
	jge	.L15
	movl	%edi, %r10d
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	cnt(%rip), %ecx
	movl	%r10d, %r11d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leal	-1(%rax), %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	negl	%r11d
	subl	%edi, %r14d
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movslq	%r11d, %r11
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movslq	%edi, %rbp
	leaq	A(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	salq	$2, %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	0(%r13,%rbp), %r8
	movl	(%rdi,%rbp), %r9d
	movq	%r12, %rax
	addq	%rdi, %r8
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rdi,%rax,4), %edx
	movslq	%eax, %rsi
	leal	(%r10,%rax), %r15d
	cmpl	%r9d, %edx
	jle	.L19
	movl	%edx, (%r8,%rax,4)
	addq	%r11, %rax
	addl	$1, %ecx
	movl	$1, %ebx
	testl	%eax, %eax
	jns	.L4
.L5:
	movl	%r9d, (%rdi,%rsi,4)
	leaq	1(%r12), %rax
	subq	$4, %r13
	addq	$4, %rbp
	cmpq	%r14, %r12
	je	.L20
	movq	%rax, %r12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	movslq	%r15d, %rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	testb	%bl, %bl
	je	.L3
	movl	%ecx, cnt(%rip)
.L3:
	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
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE23:
	.size	Insertionsort, .-Insertionsort
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	""
.LC2:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	Shellsort
	.type	Shellsort, @function
Shellsort:
.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	$456, %rsp
	.cfi_def_cfa_offset 512
	movl	n(%rip), %ecx
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	.L22
	leaq	32(%rsp), %rdx
	xorl	%r8d, %r8d
	movq	%rdx, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %eax
	movl	%r8d, %esi
	leal	1(%r8), %r8d
	addq	$4, %rdx
	movl	%eax, -4(%rdx)
	leal	(%rax,%rax,2), %eax
	cmpl	%ecx, %eax
	jl	.L23
	leaq	.LC2(%rip), %rax
	movl	%esi, 12(%rsp)
	movl	%r8d, %edx
	movl	$1, %edi
	movq	%rax, 24(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	leaq	A(%rip), %rbx
	call	__printf_chk@PLT
	movslq	12(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%rsp), %ecx
	cmpl	%ecx, 12(%rsp)
	jle	.L25
	movl	$32, %edi
	call	putchar@PLT
.L25:
	movq	16(%rsp), %rax
	movq	(%rsp), %rcx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	movl	(%rax,%rcx,4), %ebp
	xorl	%eax, %eax
	movl	%ebp, %edx
	call	__printf_chk@PLT
	movl	n(%rip), %eax
	cmpl	%eax, %ebp
	jge	.L27
	movl	%ebp, %r10d
	movslq	%ebp, %r12
	leal	-1(%rax), %r15d
	movl	cnt(%rip), %ecx
	negl	%r10d
	salq	$2, %r12
	subl	%ebp, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r11d, %r11d
	movslq	%r10d, %r10
	.p2align 4,,10
	.p2align 3
.L31:
	leaq	(%r14,%r12), %rdi
	movl	(%rbx,%r12), %r8d
	movq	%r13, %rax
	addq	%rbx, %rdi
	.p2align 4,,10
	.p2align 3
.L28:
	movl	(%rbx,%rax,4), %edx
	movslq	%eax, %rsi
	leal	0(%rbp,%rax), %r9d
	cmpl	%edx, %r8d
	jge	.L53
	movl	%edx, (%rdi,%rax,4)
	addq	%r10, %rax
	addl	$1, %ecx
	movl	$1, %r11d
	testl	%eax, %eax
	jns	.L28
.L29:
	movl	%r8d, (%rbx,%rsi,4)
	leaq	1(%r13), %rax
	subq	$4, %r14
	addq	$4, %r12
	cmpq	%r15, %r13
	je	.L54
	movq	%rax, %r13
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L53:
	movslq	%r9d, %rsi
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L54:
	testb	%r11b, %r11b
	je	.L27
	movl	%ecx, cnt(%rip)
.L27:
	subq	$1, (%rsp)
	movq	(%rsp), %rax
	cmpl	$-1, %eax
	jne	.L33
.L36:
	leaq	.LC1(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	A(%rip), %rbp
	call	puts@PLT
	movl	cnt(%rip), %edx
	movq	24(%rsp), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movl	n(%rip), %eax
	movq	24(%rsp), %r12
	testl	%eax, %eax
	jle	.L35
	.p2align 4,,10
	.p2align 3
.L34:
	movl	0(%rbp,%rbx,4), %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpl	%ebx, n(%rip)
	jg	.L34
.L35:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	addq	$456, %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
.L22:
	.cfi_restore_state
	leaq	.LC2(%rip), %rax
	xorl	%edx, %edx
	movl	$1, %edi
	movq	%rax, 24(%rsp)
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L36
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	Shellsort, .-Shellsort
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %r12
	leaq	n(%rip), %rsi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L57
	leaq	A(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L58:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	addq	$4, %rbp
	cmpl	%ebx, n(%rip)
	jg	.L58
.L57:
	xorl	%eax, %eax
	call	Shellsort
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 4000000
A:
	.zero	4000000
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.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 n, cnt;
int A[1000000];
 
 int Insertionsort(int g) {
 	int v;
 	int i,j;
 	
 	for(i=g;i < n; i++) {
 		v = A[i];
 		j = i-g;
 		while(j >= 0&& A[j] > v) {
 			A[j+g] = A[j];
 			j -= g;
 			cnt++;
 		}
 		A[j+g] = v;
 	}
 }
 
 
 
 int Shellsort() {
 	int G[100];
 	int i,m = 0,g=0;
 	while(3 * g + 1 <= n) {
 		g = 3 * g + 1;
 		G[m++]=g;
 	}
 	printf("%d\n",m);
 	
 	for(i=m-1;i>=0;i--) {
 		if(i<m-1) printf(" ");
 		printf("%d",G[i]);
 		Insertionsort(G[i]);
 	}
	puts("");
	printf("%d\n",cnt);
	
	for(i = 0; i < n; i++) {
		printf("%d\n",A[i]);
	}
}
 
 
int main(void) {
   
  int i;
   
  scanf("%d", &n);
   
  for(i = 0; i < n; i++) {
    scanf("%d", A+i);
  }
 
  Shellsort();
 
  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 n, cnt;
int A[1000000];
 
 int Insertionsort(int g) {
 	int v;
 	int i,j;
 	
 	for(i=g;i < n; i++) {
 		v = A[i];
 		j = i-g;
 		while(j >= 0&& A[j] > v) {
 			A[j+g] = A[j];
 			j -= g;
 			cnt++;
 		}
 		A[j+g] = v;
 	}
 }
 
 
 
 int Shellsort() {
 	int G[100];
 	int i,m = 0,g=0;
 	while(3 * g + 1 <= n) {
 		g = 3 * g + 1;
 		G[m++]=g;
 	}
 	printf("%d\n",m);
 	
 	for(i=m-1;i>=0;i--) {
 		if(i<m-1) printf(" ");
 		printf("%d",G[i]);
 		Insertionsort(G[i]);
 	}
	puts("");
	printf("%d\n",cnt);
	
	for(i = 0; i < n; i++) {
		printf("%d\n",A[i]);
	}
}
 
 
int main(void) {
   
  int i;
   
  scanf("%d", &n);
   
  for(i = 0; i < n; i++) {
    scanf("%d", A+i);
  }
 
  Shellsort();
 
  return 0;
 
}
 
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 4000000
A:
	.zero	4000000
	.text
	.globl	Insertionsort
	.type	Insertionsort, @function
Insertionsort:
.LFB0:
	.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)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%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
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insertionsort, .-Insertionsort
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.text
	.globl	Shellsort
	.type	Shellsort, @function
Shellsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	jmp	.L8
.L9:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -420(%rbp)
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -424(%rbp)
	cltq
	movl	-420(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L8:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	-424(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-424(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L10
.L12:
	movl	-424(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jge	.L11
	movl	$32, %edi
	call	putchar@PLT
.L11:
	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
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %edi
	call	Insertionsort
	subl	$1, -428(%rbp)
.L10:
	cmpl	$0, -428(%rbp)
	jns	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -428(%rbp)
	jmp	.L13
.L14:
	movl	-428(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -428(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L14
	nop
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shellsort, .-Shellsort
	.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
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L17
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	movl	$0, %eax
	call	Shellsort
	movl	$0, %eax
	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.
train
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	cnt
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	A
	.align 32
	.type	A, @object
	.size	A, 4000000
A:
	.zero	4000000
	.text
	.globl	Insertionsort
	.type	Insertionsort, @function
Insertionsort:
.LFB0:
	.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)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L2
.L6:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-12(%rbp), %eax
	subl	-20(%rbp), %eax
	movl	%eax, -8(%rbp)
	jmp	.L3
.L5:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	leal	(%rdx,%rax), %ecx
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	A(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-20(%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
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L5
.L4:
	movl	-8(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	A(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L6
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Insertionsort, .-Insertionsort
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%d"
.LC2:
	.string	""
	.text
	.globl	Shellsort
	.type	Shellsort, @function
Shellsort:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -424(%rbp)
	movl	$0, -420(%rbp)
	jmp	.L8
.L9:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%edx, %eax
	addl	$1, %eax
	movl	%eax, -420(%rbp)
	movl	-424(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -424(%rbp)
	cltq
	movl	-420(%rbp), %edx
	movl	%edx, -416(%rbp,%rax,4)
.L8:
	movl	-420(%rbp), %edx
	movl	%edx, %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	-424(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-424(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -428(%rbp)
	jmp	.L10
.L12:
	movl	-424(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -428(%rbp)
	jge	.L11
	movl	$32, %edi
	call	putchar@PLT
.L11:
	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
	movl	-428(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	%eax, %edi
	call	Insertionsort
	subl	$1, -428(%rbp)
.L10:
	cmpl	$0, -428(%rbp)
	jns	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -428(%rbp)
	jmp	.L13
.L14:
	movl	-428(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -428(%rbp)
.L13:
	movl	n(%rip), %eax
	cmpl	%eax, -428(%rbp)
	jl	.L14
	nop
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Shellsort, .-Shellsort
	.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
	subq	$16, %rsp
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -4(%rbp)
	jmp	.L17
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	A(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L18
	movl	$0, %eax
	call	Shellsort
	movl	$0, %eax
	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:
