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>

#define WL '#' /* WALL  */
#define BL ' ' /* BLANK */

int main(){
  char g[100][101];
  int d,i,j,k,n,px,py,v,w;
  int dx[]={-1,0,1,0},dy[]={0,-1,0,1};

  scanf("%d\n",&d);
  for(i=0;i<d;i++){
    if(i!=0) printf("\n");
    scanf("%d\n",&n);
    for(j=0;j<n;j++){
      for(k=1;k<n-1;k++) g[j][k]=BL;
      g[j][0]=g[0][j]=g[j][n-1]=WL;
      g[j][n]=0;
    }
    px=py=n-1;
    v=0;w=0;
    while(1){
      if(g[py+dy[v]][px+dx[v]]==BL){
        g[py][px]=WL; px+=dx[v]; py+=dy[v]; w++;
      } else {
        if(g[py][px]==WL || w==2){
          break;
        } else {
          px-=dx[v]; py-=dy[v]; v=(v==3?0:v+1); w=0;
        }
      }
    }
    if(n==2) g[1][1]=BL;
    for(j=0;j<n;j++) printf("%s\n",g[j]);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -10144(%rbp)
	movl	$0, -10140(%rbp)
	movl	$1, -10136(%rbp)
	movl	$0, -10132(%rbp)
	movl	$0, -10128(%rbp)
	movl	$-1, -10124(%rbp)
	movl	$0, -10120(%rbp)
	movl	$1, -10116(%rbp)
	leaq	-10180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10172(%rbp)
	jmp	.L2
.L17:
	cmpl	$0, -10172(%rbp)
	je	.L3
	movl	$10, %edi
	call	putchar@PLT
.L3:
	leaq	-10176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10168(%rbp)
	jmp	.L4
.L7:
	movl	$1, -10164(%rbp)
	jmp	.L5
.L6:
	movl	-10164(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$32, (%rax)
	addl	$1, -10164(%rbp)
.L5:
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10164(%rbp)
	jl	.L6
	movl	-10176(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movslq	%ecx, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %edx
	movl	-10168(%rbp), %eax
	cltq
	movb	%dl, -10112(%rbp,%rax)
	movl	-10168(%rbp), %eax
	cltq
	movzbl	-10112(%rbp,%rax), %ecx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$10112, %rax
	movb	%cl, (%rax)
	movl	-10176(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$0, (%rax)
	addl	$1, -10168(%rbp)
.L4:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L7
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -10156(%rbp)
	movl	-10156(%rbp), %eax
	movl	%eax, -10160(%rbp)
	movl	$0, -10152(%rbp)
	movl	$0, -10148(%rbp)
.L13:
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %edx
	movl	-10156(%rbp), %eax
	addl	%eax, %edx
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %ecx
	movl	-10160(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L8
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	addl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	addl	%eax, -10156(%rbp)
	addl	$1, -10148(%rbp)
	jmp	.L13
.L8:
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L10
	cmpl	$2, -10148(%rbp)
	je	.L10
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	subl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	subl	%eax, -10156(%rbp)
	cmpl	$3, -10152(%rbp)
	je	.L11
	movl	-10152(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	movl	%eax, -10152(%rbp)
	movl	$0, -10148(%rbp)
	jmp	.L13
.L10:
	movl	-10176(%rbp), %eax
	cmpl	$2, %eax
	jne	.L14
	movb	$32, -10010(%rbp)
.L14:
	movl	$0, -10168(%rbp)
	jmp	.L15
.L16:
	leaq	-10112(%rbp), %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -10168(%rbp)
.L15:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L16
	addl	$1, -10172(%rbp)
.L2:
	movl	-10180(%rbp), %eax
	cmpl	%eax, -10172(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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
.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1992, %rsp
	.cfi_def_cfa_offset 10240
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10168(%rsp)
	xorl	%eax, %eax
	movq	.LC0(%rip), %rax
	leaq	24(%rsp), %rsi
	movl	$0, 44(%rsp)
	movl	$1, 60(%rsp)
	movq	%rax, 36(%rsp)
	movq	.LC1(%rip), %rax
	movq	%rax, 52(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	leaq	28(%rsp), %rax
	movl	$0, (%rsp)
	movq	%rax, 8(%rsp)
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	jle	.L3
	leal	-1(%rax), %ebx
	leaq	65(%rsp), %rcx
	movslq	%eax, %r12
	movq	%rbx, %r15
	leaq	64(%rsp), %rbp
	leal	-3(%rax), %r14d
	addq	%rcx, %rbx
	movslq	%r15d, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %r15d
	jle	.L29
	movl	%r14d, %edx
	movq	%rcx, %rdi
	movl	$32, %esi
	addq	$1, %rbp
	addq	$1, %rdx
	call	memset@PLT
	movb	$35, -1(%rax,%r13)
	movq	%rax, %rcx
	movb	$35, -1(%rbp)
	addq	$101, %rcx
	movb	$35, -1(%rax)
	movb	$0, -1(%rax,%r12)
	cmpq	%rbx, %rbp
	jne	.L4
.L6:
	movl	%r15d, %eax
	movl	$-1, %r8d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	leaq	10176(%rdx), %rsi
	leaq	(%rsp,%rsi), %rdx
	cmpb	$35, -10112(%rdx,%r13)
	je	.L12
	cmpl	$2, %ebx
	je	.L12
	subl	%r8d, %r15d
	subl	%edi, %eax
	cmpl	$3, %r10d
	je	.L21
	addl	$1, %r10d
	xorl	%ebx, %ebx
	movslq	%r10d, %rdx
	movl	48(%rsp,%rdx,4), %edi
	movl	32(%rsp,%rdx,4), %r8d
.L11:
	movslq	%r15d, %r13
.L9:
	leal	(%rax,%rdi), %r9d
	leal	(%r15,%r8), %esi
	movslq	%r9d, %rdx
	movslq	%esi, %r11
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	leaq	10176(%rdx), %rcx
	leaq	(%rsp,%rcx), %rdx
	cmpb	$32, -10112(%r11,%rdx)
	jne	.L10
	cltq
	addl	$1, %ebx
	movl	%esi, %r15d
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	$10176, %rax
	addq	%rsp, %rax
	movb	$35, -10112(%rax,%r13)
	movl	%r9d, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	movb	$35, -1(%rcx,%r13)
	addq	$1, %rbp
	addq	$101, %rcx
	movb	$35, -1(%rbp)
	movb	$35, -102(%rcx)
	movb	$0, -102(%rcx,%r12)
	cmpq	%rbp, %rbx
	jne	.L4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$-1, %r8d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$2, 4(%rsp)
	je	.L30
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L18
.L14:
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rbp, %rdi
	addl	$1, %ebx
	addq	$101, %rbp
	call	puts@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L17
.L18:
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 24(%rsp)
	jle	.L16
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
.L30:
	movb	$32, 166(%rsp)
	jmp	.L14
.L16:
	movq	10168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10184, %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
.L3:
	.cfi_restore_state
	leal	-1(%rax), %r15d
	movslq	%r15d, %r13
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1
	.align 8
.LC1:
	.long	-1
	.long	0
	.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
.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$1992, %rsp
	.cfi_def_cfa_offset 10240
	leaq	.LC2(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10168(%rsp)
	xorl	%eax, %eax
	movq	.LC0(%rip), %rax
	leaq	24(%rsp), %rsi
	movl	$0, 44(%rsp)
	movl	$1, 60(%rsp)
	movq	%rax, 36(%rsp)
	movq	.LC1(%rip), %rax
	movq	%rax, 52(%rsp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %edx
	leaq	28(%rsp), %rax
	movl	$0, (%rsp)
	movq	%rax, 8(%rsp)
	testl	%edx, %edx
	jle	.L16
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	jle	.L3
	leal	-1(%rax), %ebx
	leaq	65(%rsp), %rcx
	movslq	%eax, %r12
	movq	%rbx, %r15
	leaq	64(%rsp), %rbp
	leal	-3(%rax), %r14d
	addq	%rcx, %rbx
	movslq	%r15d, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	cmpl	$1, %r15d
	jle	.L29
	movl	%r14d, %edx
	movq	%rcx, %rdi
	movl	$32, %esi
	addq	$1, %rbp
	addq	$1, %rdx
	call	memset@PLT
	movb	$35, -1(%rax,%r13)
	movq	%rax, %rcx
	movb	$35, -1(%rbp)
	addq	$101, %rcx
	movb	$35, -1(%rax)
	movb	$0, -1(%rax,%r12)
	cmpq	%rbx, %rbp
	jne	.L4
.L6:
	movl	%r15d, %eax
	movl	$-1, %r8d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movslq	%eax, %rdx
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	leaq	10176(%rdx), %rsi
	leaq	(%rsp,%rsi), %rdx
	cmpb	$35, -10112(%rdx,%r13)
	je	.L12
	cmpl	$2, %ebx
	je	.L12
	subl	%r8d, %r15d
	subl	%edi, %eax
	cmpl	$3, %r10d
	je	.L21
	addl	$1, %r10d
	xorl	%ebx, %ebx
	movslq	%r10d, %rdx
	movl	48(%rsp,%rdx,4), %edi
	movl	32(%rsp,%rdx,4), %r8d
.L11:
	movslq	%r15d, %r13
.L9:
	leal	(%rax,%rdi), %r9d
	leal	(%r15,%r8), %esi
	movslq	%r9d, %rdx
	movslq	%esi, %r11
	leaq	(%rdx,%rdx,4), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,4), %rdx
	leaq	10176(%rdx), %rcx
	leaq	(%rsp,%rcx), %rdx
	cmpb	$32, -10112(%r11,%rdx)
	jne	.L10
	cltq
	addl	$1, %ebx
	movl	%esi, %r15d
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %rax
	addq	$10176, %rax
	addq	%rsp, %rax
	movb	$35, -10112(%rax,%r13)
	movl	%r9d, %eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	movb	$35, -1(%rcx,%r13)
	addq	$1, %rbp
	addq	$101, %rcx
	movb	$35, -1(%rbp)
	movb	$35, -102(%rcx)
	movb	$0, -102(%rcx,%r12)
	cmpq	%rbp, %rbx
	jne	.L4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	movl	$-1, %r8d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	xorl	%r10d, %r10d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	cmpl	$2, 4(%rsp)
	je	.L30
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L18
.L14:
	leaq	64(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rbp, %rdi
	addl	$1, %ebx
	addq	$101, %rbp
	call	puts@PLT
	cmpl	%ebx, 28(%rsp)
	jg	.L17
.L18:
	addl	$1, (%rsp)
	movl	(%rsp), %eax
	cmpl	%eax, 24(%rsp)
	jle	.L16
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L2
.L30:
	movb	$32, 166(%rsp)
	jmp	.L14
.L16:
	movq	10168(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10184, %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
.L3:
	.cfi_restore_state
	leal	-1(%rax), %r15d
	movslq	%r15d, %r13
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1
	.align 8
.LC1:
	.long	-1
	.long	0
	.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>

#define WL '#' /* WALL  */
#define BL ' ' /* BLANK */

int main(){
  char g[100][101];
  int d,i,j,k,n,px,py,v,w;
  int dx[]={-1,0,1,0},dy[]={0,-1,0,1};

  scanf("%d\n",&d);
  for(i=0;i<d;i++){
    if(i!=0) printf("\n");
    scanf("%d\n",&n);
    for(j=0;j<n;j++){
      for(k=1;k<n-1;k++) g[j][k]=BL;
      g[j][0]=g[0][j]=g[j][n-1]=WL;
      g[j][n]=0;
    }
    px=py=n-1;
    v=0;w=0;
    while(1){
      if(g[py+dy[v]][px+dx[v]]==BL){
        g[py][px]=WL; px+=dx[v]; py+=dy[v]; w++;
      } else {
        if(g[py][px]==WL || w==2){
          break;
        } else {
          px-=dx[v]; py-=dy[v]; v=(v==3?0:v+1); w=0;
        }
      }
    }
    if(n==2) g[1][1]=BL;
    for(j=0;j<n;j++) printf("%s\n",g[j]);
  }
  return 0;
}
2
5
5
 2
8
5
 2
12
5
 2
12
3
 2
5
9
 2
5
7
 2
8
9
 2
16
3
 2
9
9
 2
10
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>

#define WL '#' /* WALL  */
#define BL ' ' /* BLANK */

int main(){
  char g[100][101];
  int d,i,j,k,n,px,py,v,w;
  int dx[]={-1,0,1,0},dy[]={0,-1,0,1};

  scanf("%d\n",&d);
  for(i=0;i<d;i++){
    if(i!=0) printf("\n");
    scanf("%d\n",&n);
    for(j=0;j<n;j++){
      for(k=1;k<n-1;k++) g[j][k]=BL;
      g[j][0]=g[0][j]=g[j][n-1]=WL;
      g[j][n]=0;
    }
    px=py=n-1;
    v=0;w=0;
    while(1){
      if(g[py+dy[v]][px+dx[v]]==BL){
        g[py][px]=WL; px+=dx[v]; py+=dy[v]; w++;
      } else {
        if(g[py][px]==WL || w==2){
          break;
        } else {
          px-=dx[v]; py-=dy[v]; v=(v==3?0:v+1); w=0;
        }
      }
    }
    if(n==2) g[1][1]=BL;
    for(j=0;j<n;j++) printf("%s\n",g[j]);
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -10144(%rbp)
	movl	$0, -10140(%rbp)
	movl	$1, -10136(%rbp)
	movl	$0, -10132(%rbp)
	movl	$0, -10128(%rbp)
	movl	$-1, -10124(%rbp)
	movl	$0, -10120(%rbp)
	movl	$1, -10116(%rbp)
	leaq	-10180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10172(%rbp)
	jmp	.L2
.L17:
	cmpl	$0, -10172(%rbp)
	je	.L3
	movl	$10, %edi
	call	putchar@PLT
.L3:
	leaq	-10176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10168(%rbp)
	jmp	.L4
.L7:
	movl	$1, -10164(%rbp)
	jmp	.L5
.L6:
	movl	-10164(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$32, (%rax)
	addl	$1, -10164(%rbp)
.L5:
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10164(%rbp)
	jl	.L6
	movl	-10176(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movslq	%ecx, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %edx
	movl	-10168(%rbp), %eax
	cltq
	movb	%dl, -10112(%rbp,%rax)
	movl	-10168(%rbp), %eax
	cltq
	movzbl	-10112(%rbp,%rax), %ecx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$10112, %rax
	movb	%cl, (%rax)
	movl	-10176(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$0, (%rax)
	addl	$1, -10168(%rbp)
.L4:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L7
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -10156(%rbp)
	movl	-10156(%rbp), %eax
	movl	%eax, -10160(%rbp)
	movl	$0, -10152(%rbp)
	movl	$0, -10148(%rbp)
.L13:
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %edx
	movl	-10156(%rbp), %eax
	addl	%eax, %edx
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %ecx
	movl	-10160(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L8
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	addl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	addl	%eax, -10156(%rbp)
	addl	$1, -10148(%rbp)
	jmp	.L13
.L8:
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L10
	cmpl	$2, -10148(%rbp)
	je	.L10
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	subl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	subl	%eax, -10156(%rbp)
	cmpl	$3, -10152(%rbp)
	je	.L11
	movl	-10152(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	movl	%eax, -10152(%rbp)
	movl	$0, -10148(%rbp)
	jmp	.L13
.L10:
	movl	-10176(%rbp), %eax
	cmpl	$2, %eax
	jne	.L14
	movb	$32, -10010(%rbp)
.L14:
	movl	$0, -10168(%rbp)
	jmp	.L15
.L16:
	leaq	-10112(%rbp), %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -10168(%rbp)
.L15:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L16
	addl	$1, -10172(%rbp)
.L2:
	movl	-10180(%rbp), %eax
	cmpl	%eax, -10172(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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
	.section	.rodata
.LC0:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2000, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$-1, -10144(%rbp)
	movl	$0, -10140(%rbp)
	movl	$1, -10136(%rbp)
	movl	$0, -10132(%rbp)
	movl	$0, -10128(%rbp)
	movl	$-1, -10124(%rbp)
	movl	$0, -10120(%rbp)
	movl	$1, -10116(%rbp)
	leaq	-10180(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10172(%rbp)
	jmp	.L2
.L17:
	cmpl	$0, -10172(%rbp)
	je	.L3
	movl	$10, %edi
	call	putchar@PLT
.L3:
	leaq	-10176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10168(%rbp)
	jmp	.L4
.L7:
	movl	$1, -10164(%rbp)
	jmp	.L5
.L6:
	movl	-10164(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$32, (%rax)
	addl	$1, -10164(%rbp)
.L5:
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10164(%rbp)
	jl	.L6
	movl	-10176(%rbp), %eax
	leal	-1(%rax), %ecx
	movslq	%ecx, %rsi
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdi
	addq	%rdi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rsi, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movslq	%ecx, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %edx
	movl	-10168(%rbp), %eax
	cltq
	movb	%dl, -10112(%rbp,%rax)
	movl	-10168(%rbp), %eax
	cltq
	movzbl	-10112(%rbp,%rax), %ecx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	subq	$10112, %rax
	movb	%cl, (%rax)
	movl	-10176(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$0, (%rax)
	addl	$1, -10168(%rbp)
.L4:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L7
	movl	-10176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -10156(%rbp)
	movl	-10156(%rbp), %eax
	movl	%eax, -10160(%rbp)
	movl	$0, -10152(%rbp)
	movl	$0, -10148(%rbp)
.L13:
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %edx
	movl	-10156(%rbp), %eax
	addl	%eax, %edx
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %ecx
	movl	-10160(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movslq	%edx, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$32, %al
	jne	.L8
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movb	$35, (%rax)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	addl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	addl	%eax, -10156(%rbp)
	addl	$1, -10148(%rbp)
	jmp	.L13
.L8:
	movl	-10160(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10156(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10112, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	je	.L10
	cmpl	$2, -10148(%rbp)
	je	.L10
	movl	-10152(%rbp), %eax
	cltq
	movl	-10144(%rbp,%rax,4), %eax
	subl	%eax, -10160(%rbp)
	movl	-10152(%rbp), %eax
	cltq
	movl	-10128(%rbp,%rax,4), %eax
	subl	%eax, -10156(%rbp)
	cmpl	$3, -10152(%rbp)
	je	.L11
	movl	-10152(%rbp), %eax
	addl	$1, %eax
	jmp	.L12
.L11:
	movl	$0, %eax
.L12:
	movl	%eax, -10152(%rbp)
	movl	$0, -10148(%rbp)
	jmp	.L13
.L10:
	movl	-10176(%rbp), %eax
	cmpl	$2, %eax
	jne	.L14
	movb	$32, -10010(%rbp)
.L14:
	movl	$0, -10168(%rbp)
	jmp	.L15
.L16:
	leaq	-10112(%rbp), %rcx
	movl	-10168(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -10168(%rbp)
.L15:
	movl	-10176(%rbp), %eax
	cmpl	%eax, -10168(%rbp)
	jl	.L16
	addl	$1, -10172(%rbp)
.L2:
	movl	-10180(%rbp), %eax
	cmpl	%eax, -10172(%rbp)
	jl	.L17
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
