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 <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <malloc.h>

int n;
char *b[300];

int main()
{
  int i,x,y,cnt=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    b[i] = (char*)malloc(310);
    scanf("%s",b[i]);
  }
  if( n==1 ){
    printf("1\n");
    exit(0);
  }
  for(i=0;i<n;i++){
    int no = 0;
    for(x=1;x<n;x++){
      for(y=0;y<x;y++){
        if( b[(x+i)%n][y] != b[(y+i)%n][x] ){
          no = 1;
          break;
        }
      }
      if( no==1 ) break;
    }
    if( no != 1 ) cnt += n;
  }
  printf("%d\n",cnt);
  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	b
	.align 32
	.type	b, @object
	.size	b, 2400
b:
	.zero	2400
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\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	$32, %rsp
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	$310, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L3
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L4
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L4:
	movl	$0, -20(%rbp)
	jmp	.L5
.L15:
	movl	$0, -4(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L13:
	movl	$0, -12(%rbp)
	jmp	.L7
.L10:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %esi
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L8
	movl	$1, -4(%rbp)
	jmp	.L9
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
.L9:
	cmpl	$1, -4(%rbp)
	je	.L17
	addl	$1, -16(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	jmp	.L12
.L17:
	nop
.L12:
	cmpl	$1, -4(%rbp)
	je	.L14
	movl	n(%rip), %eax
	addl	%eax, -8(%rbp)
.L14:
	addl	$1, -20(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L15
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	b(%rip), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$310, %edi
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, (%rbx,%r12,8)
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movl	n(%rip), %esi
	cmpl	%r12d, %esi
	jg	.L3
	cmpl	$1, %esi
	je	.L4
	testl	%esi, %esi
	jle	.L2
	leal	-2(%rsi), %r11d
	xorl	%r12d, %r12d
	xorl	%r10d, %r10d
	addq	$2, %r11
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	leal	(%r10,%rdi), %eax
	movl	%r10d, %r8d
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movq	(%rbx,%rdx,8), %rcx
	leaq	(%rdi,%rcx), %r9
	subl	%ecx, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%r8,%rcx), %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movq	(%rbx,%rdx,8), %rax
	movzbl	(%rax,%rdi), %eax
	cmpb	%al, (%rcx)
	jne	.L6
	addq	$1, %rcx
	cmpq	%rcx, %r9
	jne	.L7
	addq	$1, %rdi
	cmpq	%r11, %rdi
	jne	.L10
	addl	%esi, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r10d
	cmpl	%r10d, %esi
	jne	.L5
.L9:
	movl	%r12d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L2:
	xorl	%r12d, %r12d
	jmp	.L9
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 2400
b:
	.zero	2400
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L2
	xorl	%r12d, %r12d
	leaq	b(%rip), %rbx
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$310, %edi
	call	malloc@PLT
	movq	%rbp, %rdi
	movq	%rax, (%rbx,%r12,8)
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$1, %r12
	call	__isoc99_scanf@PLT
	movl	n(%rip), %esi
	cmpl	%r12d, %esi
	jg	.L3
	cmpl	$1, %esi
	je	.L4
	testl	%esi, %esi
	jle	.L2
	leal	-2(%rsi), %r11d
	xorl	%r12d, %r12d
	xorl	%r10d, %r10d
	addq	$2, %r11
	.p2align 4,,10
	.p2align 3
.L5:
	movl	$1, %edi
	.p2align 4,,10
	.p2align 3
.L10:
	leal	(%r10,%rdi), %eax
	movl	%r10d, %r8d
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movq	(%rbx,%rdx,8), %rcx
	leaq	(%rdi,%rcx), %r9
	subl	%ecx, %r8d
	.p2align 4,,10
	.p2align 3
.L7:
	leal	(%r8,%rcx), %eax
	cltd
	idivl	%esi
	movslq	%edx, %rdx
	movq	(%rbx,%rdx,8), %rax
	movzbl	(%rax,%rdi), %eax
	cmpb	%al, (%rcx)
	jne	.L6
	addq	$1, %rcx
	cmpq	%rcx, %r9
	jne	.L7
	addq	$1, %rdi
	cmpq	%r11, %rdi
	jne	.L10
	addl	%esi, %r12d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %r10d
	cmpl	%r10d, %esi
	jne	.L5
.L9:
	movl	%r12d, %edx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L2:
	xorl	%r12d, %r12d
	jmp	.L9
	.cfi_endproc
.LFE53:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 2400
b:
	.zero	2400
	.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>
#include <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <malloc.h>

int n;
char *b[300];

int main()
{
  int i,x,y,cnt=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    b[i] = (char*)malloc(310);
    scanf("%s",b[i]);
  }
  if( n==1 ){
    printf("1\n");
    exit(0);
  }
  for(i=0;i<n;i++){
    int no = 0;
    for(x=1;x<n;x++){
      for(y=0;y<x;y++){
        if( b[(x+i)%n][y] != b[(y+i)%n][x] ){
          no = 1;
          break;
        }
      }
      if( no==1 ) break;
    }
    if( no != 1 ) cnt += n;
  }
  printf("%d\n",cnt);
  return 0;
}

2
ab
da
 5
abcde
fghij
klmno
pqrst
uvvxy
 4
aaaa
aaaa
aaaa
baaa
 2
ab
ad
 5
abcde
fghij
onmlk
pqrst
uvwxy
 4
baaa
aaaa
aaaa
baaa
 2
ab
ac
 5
edcba
fghij
onmlk
pqrst
uvwxy
 4
baaa
aaa`
aaaa
baaa
 2
ba
ca

2
 0
 4
 0
 0
 0
 0
 0
 0
 0

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 <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <malloc.h>

int n;
char *b[300];

int main()
{
  int i,x,y,cnt=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    b[i] = (char*)malloc(310);
    scanf("%s",b[i]);
  }
  if( n==1 ){
    printf("1\n");
    exit(0);
  }
  for(i=0;i<n;i++){
    int no = 0;
    for(x=1;x<n;x++){
      for(y=0;y<x;y++){
        if( b[(x+i)%n][y] != b[(y+i)%n][x] ){
          no = 1;
          break;
        }
      }
      if( no==1 ) break;
    }
    if( no != 1 ) cnt += n;
  }
  printf("%d\n",cnt);
  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	b
	.align 32
	.type	b, @object
	.size	b, 2400
b:
	.zero	2400
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\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	$32, %rsp
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	$310, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L3
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L4
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L4:
	movl	$0, -20(%rbp)
	jmp	.L5
.L15:
	movl	$0, -4(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L13:
	movl	$0, -12(%rbp)
	jmp	.L7
.L10:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %esi
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L8
	movl	$1, -4(%rbp)
	jmp	.L9
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
.L9:
	cmpl	$1, -4(%rbp)
	je	.L17
	addl	$1, -16(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	jmp	.L12
.L17:
	nop
.L12:
	cmpl	$1, -4(%rbp)
	je	.L14
	movl	n(%rip), %eax
	addl	%eax, -8(%rbp)
.L14:
	addl	$1, -20(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L15
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 2400
b:
	.zero	2400
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"1"
.LC3:
	.string	"%d\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	$32, %rsp
	movl	$0, -8(%rbp)
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L3:
	movl	$310, %edi
	call	malloc@PLT
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L3
	movl	n(%rip), %eax
	cmpl	$1, %eax
	jne	.L4
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %edi
	call	exit@PLT
.L4:
	movl	$0, -20(%rbp)
	jmp	.L5
.L15:
	movl	$0, -4(%rbp)
	movl	$1, -16(%rbp)
	jmp	.L6
.L13:
	movl	$0, -12(%rbp)
	jmp	.L7
.L10:
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-12(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-12(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	n(%rip), %esi
	cltd
	idivl	%esi
	movl	%edx, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	b(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %cl
	je	.L8
	movl	$1, -4(%rbp)
	jmp	.L9
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-12(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jl	.L10
.L9:
	cmpl	$1, -4(%rbp)
	je	.L17
	addl	$1, -16(%rbp)
.L6:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	jmp	.L12
.L17:
	nop
.L12:
	cmpl	$1, -4(%rbp)
	je	.L14
	movl	n(%rip), %eax
	addl	%eax, -8(%rbp)
.L14:
	addl	$1, -20(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L15
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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:
