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>
int main(void)
{
  int A[100],N,i,j,minj,temp,count=0;
  scanf("%d",&N);
  for(i=0;i<N;i++){scanf("%d",&A[i]);}
  
  for(i=0;i<N;i++)
    {
      minj=i;
      for(j=i;j<N;j++){
	if(A[minj]>A[j]){minj=j;}
	}
      if(i!=minj){
      temp=A[i];
      A[i]=A[minj];
      A[minj]=temp;
      count++;
      }
    }
  for(i=0;i<N;i++){printf("%d",A[i]);
      if(i!=(N-1)){printf(" ");}
      }
  printf("\n%d\n",count);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movslq	%esi, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx,%r8,4), %r9d
	movslq	%r8d, %rdi
	movq	%r8, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L4
	movl	%edx, %ecx
	movslq	%eax, %rdi
.L4:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L5
	cmpl	%r8d, %edi
	je	.L6
	movl	%ecx, (%rbx,%r8,4)
	addl	$1, %r12d
	movl	%r9d, 16(%rsp,%rdi,4)
.L6:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L7
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r13,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	%r13d, %edx
	je	.L9
	movl	$32, %edi
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L8
.L11:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$440, %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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L8
	jmp	.L11
.L2:
	xorl	%r12d, %r12d
	jmp	.L11
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movslq	%esi, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx,%r8,4), %r9d
	movslq	%r8d, %rdi
	movq	%r8, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L4
	movl	%edx, %ecx
	movslq	%eax, %rdi
.L4:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L5
	cmpl	%r8d, %edi
	je	.L6
	movl	%ecx, (%rbx,%r8,4)
	addl	$1, %r12d
	movl	%r9d, 16(%rsp,%rdi,4)
.L6:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L7
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r13,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	%r13d, %edx
	je	.L9
	movl	$32, %edi
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L8
.L11:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$440, %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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L8
	jmp	.L11
.L2:
	xorl	%r12d, %r12d
	jmp	.L11
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movslq	%esi, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx,%r8,4), %r9d
	movslq	%r8d, %rdi
	movq	%r8, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L4
	movl	%edx, %ecx
	movslq	%eax, %rdi
.L4:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L5
	cmpl	%r8d, %edi
	je	.L6
	movl	%ecx, (%rbx,%r8,4)
	addl	$1, %r12d
	movl	%r9d, 16(%rsp,%rdi,4)
.L6:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L7
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r13,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	%r13d, %edx
	je	.L9
	movl	$32, %edi
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L8
.L11:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$440, %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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L8
	jmp	.L11
.L2:
	xorl	%r12d, %r12d
	jmp	.L11
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
int main(void)
{
  int A[100],N,i,j,minj,temp,count=0;
  scanf("%d",&N);
  for(i=0;i<N;i++){scanf("%d",&A[i]);}
  
  for(i=0;i<N;i++)
    {
      minj=i;
      for(j=i;j<N;j++){
	if(A[minj]>A[j]){minj=j;}
	}
      if(i!=minj){
      temp=A[i];
      A[i]=A[minj];
      A[minj]=temp;
      count++;
      }
    }
  for(i=0;i<N;i++){printf("%d",A[i]);
      if(i!=(N-1)){printf(" ");}
      }
  printf("\n%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>
int main(void)
{
  int A[100],N,i,j,minj,temp,count=0;
  scanf("%d",&N);
  for(i=0;i<N;i++){scanf("%d",&A[i]);}
  
  for(i=0;i<N;i++)
    {
      minj=i;
      for(j=i;j<N;j++){
	if(A[minj]>A[j]){minj=j;}
	}
      if(i!=minj){
      temp=A[i];
      A[i]=A[minj];
      A[minj]=temp;
      count++;
      }
    }
  for(i=0;i<N;i++){printf("%d",A[i]);
      if(i!=(N-1)){printf(" ");}
      }
  printf("\n%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
5 2 4 6 1 0
 6
5 6 4 4 1 3
 6
6 2 4 6 1 0
 6
5 6 4 4 1 2
 6
6 2 4 6 0 0
 6
5 6 4 3 1 2
 6
6 2 8 6 0 0
 6
5 6 4 2 1 2
 6
6 4 8 6 0 0
 6
9 6 4 2 1 3

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

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>
int main(void)
{
  int A[100],N,i,j,minj,temp,count=0;
  scanf("%d",&N);
  for(i=0;i<N;i++){scanf("%d",&A[i]);}
  
  for(i=0;i<N;i++)
    {
      minj=i;
      for(j=i;j<N;j++){
	if(A[minj]>A[j]){minj=j;}
	}
      if(i!=minj){
      temp=A[i];
      A[i]=A[minj];
      A[minj]=temp;
      count++;
      }
    }
  for(i=0;i<N;i++){printf("%d",A[i]);
      if(i!=(N-1)){printf(" ");}
      }
  printf("\n%d\n",count);
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movslq	%esi, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx,%r8,4), %r9d
	movslq	%r8d, %rdi
	movq	%r8, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L4
	movl	%edx, %ecx
	movslq	%eax, %rdi
.L4:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L5
	cmpl	%r8d, %edi
	je	.L6
	movl	%ecx, (%rbx,%r8,4)
	addl	$1, %r12d
	movl	%r9d, 16(%rsp,%rdi,4)
.L6:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L7
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r13,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	%r13d, %edx
	je	.L9
	movl	$32, %edi
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L8
.L11:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$440, %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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L8
	jmp	.L11
.L2:
	xorl	%r12d, %r12d
	jmp	.L11
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$440, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r13
	cmpl	%r12d, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movslq	%esi, %r10
	xorl	%r8d, %r8d
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L7:
	movl	(%rbx,%r8,4), %r9d
	movslq	%r8d, %rdi
	movq	%r8, %rax
	movl	%r9d, %ecx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	(%rbx,%rax,4), %edx
	cmpl	%ecx, %edx
	jge	.L4
	movl	%edx, %ecx
	movslq	%eax, %rdi
.L4:
	addq	$1, %rax
	cmpl	%eax, %esi
	jg	.L5
	cmpl	%r8d, %edi
	je	.L6
	movl	%ecx, (%rbx,%r8,4)
	addl	$1, %r12d
	movl	%r9d, 16(%rsp,%rdi,4)
.L6:
	addq	$1, %r8
	cmpq	%r10, %r8
	jne	.L7
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%rbx,%r13,4), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	cmpl	%r13d, %edx
	je	.L9
	movl	$32, %edi
	addq	$1, %r13
	call	putchar@PLT
	cmpl	%r13d, 12(%rsp)
	jg	.L8
.L11:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$440, %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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L8
	jmp	.L11
.L2:
	xorl	%r12d, %r12d
	jmp	.L11
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```