Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
  int N;
  int num[256] = { 0 };
  int count = 0;
  char *tok = NULL;
  char buf[4096] = { 0 };
  
  //個数読み込み
  fgets(buf, sizeof(buf), stdin);
  sscanf(buf, "%d", &N);
  
  //数字読み込み
  fgets(buf, sizeof(buf), stdin);
  tok = strtok(buf, " ");
  for(int i = 0; i < N; i++){
    num[i] = atoi(tok);
    tok = strtok(NULL, " ");
  }
  
  //偶数チェック
  int i;
  for(;;){
    for(i = 0; i < N; i++){
      if(num[i] % 2 != 0) break;
  	  num[i] = num[i] / 2;
    }
    if(i != N) break;
    count++;
  }
  printf("%d\n", count);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$1056, %rsp
	.cfi_def_cfa_offset 5184
	movl	$128, %ecx
	pxor	%xmm0, %xmm0
	movl	$4096, %esi
	movq	stdin(%rip), %rdx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 5144(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	1040(%rsp), %r12
	movaps	%xmm0, 1040(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	1056(%rsp), %rdi
	movl	$510, %ecx
	rep stosq
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movq	stdin(%rip), %rdx
	movl	$4096, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	strtok@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbp, %rsi
	movl	%eax, (%rbx,%r12,4)
	addq	$1, %r12
	call	strtok@PLT
	movl	12(%rsp), %edi
	cmpl	%r12d, %edi
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%edi, %edi
	jle	.L4
	movq	%rbx, %rdx
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ecx, %eax
	addl	$1, %esi
	addq	$4, %rdx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, -4(%rdx)
	cmpl	%edi, %esi
	je	.L7
.L6:
	movl	(%rdx), %ecx
	testb	$1, %cl
	je	.L14
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	5144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$5152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	jne	.L5
.L7:
	addl	$1, %r8d
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$1056, %rsp
	.cfi_def_cfa_offset 5184
	movl	$128, %ecx
	pxor	%xmm0, %xmm0
	movl	$4096, %esi
	movq	stdin(%rip), %rdx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 5144(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	1040(%rsp), %r12
	movaps	%xmm0, 1040(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	1056(%rsp), %rdi
	movl	$510, %ecx
	rep stosq
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movq	stdin(%rip), %rdx
	movl	$4096, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	strtok@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbp, %rsi
	movl	%eax, (%rbx,%r12,4)
	addq	$1, %r12
	call	strtok@PLT
	movl	12(%rsp), %edi
	cmpl	%r12d, %edi
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%edi, %edi
	jle	.L4
	movq	%rbx, %rdx
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ecx, %eax
	addl	$1, %esi
	addq	$4, %rdx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, -4(%rdx)
	cmpl	%edi, %esi
	je	.L7
.L6:
	movl	(%rdx), %ecx
	testb	$1, %cl
	je	.L14
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	5144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$5152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	jne	.L5
.L7:
	addl	$1, %r8d
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$1056, %rsp
	.cfi_def_cfa_offset 5184
	movl	$128, %ecx
	pxor	%xmm0, %xmm0
	movl	$4096, %esi
	movq	stdin(%rip), %rdx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 5144(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	1040(%rsp), %r12
	movaps	%xmm0, 1040(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	1056(%rsp), %rdi
	movl	$510, %ecx
	rep stosq
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movq	stdin(%rip), %rdx
	movl	$4096, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	strtok@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbp, %rsi
	movl	%eax, (%rbx,%r12,4)
	addq	$1, %r12
	call	strtok@PLT
	movl	12(%rsp), %edi
	cmpl	%r12d, %edi
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%edi, %edi
	jle	.L4
	movq	%rbx, %rdx
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ecx, %eax
	addl	$1, %esi
	addq	$4, %rdx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, -4(%rdx)
	cmpl	%edi, %esi
	je	.L7
.L6:
	movl	(%rdx), %ecx
	testb	$1, %cl
	je	.L14
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	5144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$5152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	jne	.L5
.L7:
	addl	$1, %r8d
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
  int N;
  int num[256] = { 0 };
  int count = 0;
  char *tok = NULL;
  char buf[4096] = { 0 };
  
  //個数読み込み
  fgets(buf, sizeof(buf), stdin);
  sscanf(buf, "%d", &N);
  
  //数字読み込み
  fgets(buf, sizeof(buf), stdin);
  tok = strtok(buf, " ");
  for(int i = 0; i < N; i++){
    num[i] = atoi(tok);
    tok = strtok(NULL, " ");
  }
  
  //偶数チェック
  int i;
  for(;;){
    for(i = 0; i < N; i++){
      if(num[i] % 2 != 0) break;
  	  num[i] = num[i] / 2;
    }
    if(i != N) break;
    count++;
  }
  printf("%d\n", count);
  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
  int N;
  int num[256] = { 0 };
  int count = 0;
  char *tok = NULL;
  char buf[4096] = { 0 };
  
  //個数読み込み
  fgets(buf, sizeof(buf), stdin);
  sscanf(buf, "%d", &N);
  
  //数字読み込み
  fgets(buf, sizeof(buf), stdin);
  tok = strtok(buf, " ");
  for(int i = 0; i < N; i++){
    num[i] = atoi(tok);
    tok = strtok(NULL, " ");
  }
  
  //偶数チェック
  int i;
  for(;;){
    for(i = 0; i < N; i++){
      if(num[i] % 2 != 0) break;
  	  num[i] = num[i] / 2;
    }
    if(i != N) break;
    count++;
  }
  printf("%d\n", count);
  return 0;
}```

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.
Optimized Assembly Code:

6
382253568 723152896 37802240 379425024 590201381 471526144
 3
10 12 40
 3
16 36 16
 4
5 6 13 10
 6
382253568 723152896 32183854 379425024 590201381 471526144
 4
5 6 22 10
 3
10 12 27
 6
348324507 723152896 32183854 379425024 590201381 471526144
 4
5 6 24 10
 3
10 12 31

0
 1
 2
 0
 0
 0
 0
 0
 0
 0

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
  int N;
  int num[256] = { 0 };
  int count = 0;
  char *tok = NULL;
  char buf[4096] = { 0 };
  
  //個数読み込み
  fgets(buf, sizeof(buf), stdin);
  sscanf(buf, "%d", &N);
  
  //数字読み込み
  fgets(buf, sizeof(buf), stdin);
  tok = strtok(buf, " ");
  for(int i = 0; i < N; i++){
    num[i] = atoi(tok);
    tok = strtok(NULL, " ");
  }
  
  //偶数チェック
  int i;
  for(;;){
    for(i = 0; i < N; i++){
      if(num[i] % 2 != 0) break;
  	  num[i] = num[i] / 2;
    }
    if(i != N) break;
    count++;
  }
  printf("%d\n", count);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$1056, %rsp
	.cfi_def_cfa_offset 5184
	movl	$128, %ecx
	pxor	%xmm0, %xmm0
	movl	$4096, %esi
	movq	stdin(%rip), %rdx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 5144(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	1040(%rsp), %r12
	movaps	%xmm0, 1040(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	1056(%rsp), %rdi
	movl	$510, %ecx
	rep stosq
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movq	stdin(%rip), %rdx
	movl	$4096, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	strtok@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbp, %rsi
	movl	%eax, (%rbx,%r12,4)
	addq	$1, %r12
	call	strtok@PLT
	movl	12(%rsp), %edi
	cmpl	%r12d, %edi
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%edi, %edi
	jle	.L4
	movq	%rbx, %rdx
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ecx, %eax
	addl	$1, %esi
	addq	$4, %rdx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, -4(%rdx)
	cmpl	%edi, %esi
	je	.L7
.L6:
	movl	(%rdx), %ecx
	testb	$1, %cl
	je	.L14
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	5144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$5152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	jne	.L5
.L7:
	addl	$1, %r8d
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" "
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4128
	orq	$0, (%rsp)
	subq	$1056, %rsp
	.cfi_def_cfa_offset 5184
	movl	$128, %ecx
	pxor	%xmm0, %xmm0
	movl	$4096, %esi
	movq	stdin(%rip), %rdx
	leaq	.LC1(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 5144(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	1040(%rsp), %r12
	movaps	%xmm0, 1040(%rsp)
	movq	%rbx, %rdi
	rep stosq
	leaq	1056(%rsp), %rdi
	movl	$510, %ecx
	rep stosq
	movq	%r12, %rdi
	call	fgets@PLT
	leaq	12(%rsp), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	__isoc99_sscanf@PLT
	movq	stdin(%rip), %rdx
	movl	$4096, %esi
	movq	%r12, %rdi
	call	fgets@PLT
	movq	%r12, %rdi
	movq	%rbp, %rsi
	call	strtok@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%rbp, %rsi
	movl	%eax, (%rbx,%r12,4)
	addq	$1, %r12
	call	strtok@PLT
	movl	12(%rsp), %edi
	cmpl	%r12d, %edi
	jg	.L3
.L2:
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L8:
	testl	%edi, %edi
	jle	.L4
	movq	%rbx, %rdx
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ecx, %eax
	addl	$1, %esi
	addq	$4, %rdx
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, -4(%rdx)
	cmpl	%edi, %esi
	je	.L7
.L6:
	movl	(%rdx), %ecx
	testb	$1, %cl
	je	.L14
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	5144(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$5152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	jne	.L5
.L7:
	addl	$1, %r8d
	jmp	.L8
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```