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 n,i,j,c;
  while(1){
    scanf("%d",&n);
    if(!n) break;
    int a[n];
    for(i=0;i<n;i++)
      scanf("%d",&a[i]);
    c=0;
    for(i=0;i<n-1;i++){
      for(j=n-1;j>i;j--){
	if(a[j-1]>a[j]){
	  int t=a[j];
	  a[j]=a[j-1];
	  a[j-1]=t;
	  c++;
	}
      }
    }
    printf("%d\n",c);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L4
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L23
.L4:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L5
	orq	$0, -8(%rsp,%rcx)
.L5:
	movq	%rsp, %r15
	testl	%eax, %eax
	jle	.L6
	movq	%r15, %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r13
	cmpl	%r14d, %eax
	jg	.L7
.L6:
	leal	-1(%rax), %edi
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L8
	xorl	%esi, %esi
	movslq	%edi, %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-4(%r15,%rdx,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L9
	movq	%xmm1, -4(%r15,%rdx,4)
	addl	$1, %r8d
.L9:
	subq	$1, %rdx
	cmpl	%edx, %esi
	jl	.L10
	addl	$1, %esi
	cmpl	%edi, %esi
	jne	.L11
.L8:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rsp
	jmp	.L12
.L2:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L4
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L23
.L4:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L5
	orq	$0, -8(%rsp,%rcx)
.L5:
	movq	%rsp, %r15
	testl	%eax, %eax
	jle	.L6
	movq	%r15, %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r13
	cmpl	%r14d, %eax
	jg	.L7
.L6:
	leal	-1(%rax), %edi
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L8
	xorl	%esi, %esi
	movslq	%edi, %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-4(%r15,%rdx,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L9
	movq	%xmm1, -4(%r15,%rdx,4)
	addl	$1, %r8d
.L9:
	subq	$1, %rdx
	cmpl	%edx, %esi
	jl	.L10
	addl	$1, %esi
	cmpl	%edi, %esi
	jne	.L11
.L8:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rsp
	jmp	.L12
.L2:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L4
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L23
.L4:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L5
	orq	$0, -8(%rsp,%rcx)
.L5:
	movq	%rsp, %r15
	testl	%eax, %eax
	jle	.L6
	movq	%r15, %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r13
	cmpl	%r14d, %eax
	jg	.L7
.L6:
	leal	-1(%rax), %edi
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L8
	xorl	%esi, %esi
	movslq	%edi, %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-4(%r15,%rdx,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L9
	movq	%xmm1, -4(%r15,%rdx,4)
	addl	$1, %r8d
.L9:
	subq	$1, %rdx
	cmpl	%edx, %esi
	jl	.L10
	addl	$1, %esi
	cmpl	%edi, %esi
	jne	.L11
.L8:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rsp
	jmp	.L12
.L2:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	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 n,i,j,c;
  while(1){
    scanf("%d",&n);
    if(!n) break;
    int a[n];
    for(i=0;i<n;i++)
      scanf("%d",&a[i]);
    c=0;
    for(i=0;i<n-1;i++){
      for(j=n-1;j>i;j--){
	if(a[j-1]>a[j]){
	  int t=a[j];
	  a[j]=a[j-1];
	  a[j-1]=t;
	  c++;
	}
      }
    }
    printf("%d\n",c);
  }
  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 n,i,j,c;
  while(1){
    scanf("%d",&n);
    if(!n) break;
    int a[n];
    for(i=0;i<n;i++)
      scanf("%d",&a[i]);
    c=0;
    for(i=0;i<n-1;i++){
      for(j=n-1;j>i;j--){
	if(a[j-1]>a[j]){
	  int t=a[j];
	  a[j]=a[j-1];
	  a[j-1]=t;
	  c++;
	}
      }
    }
    printf("%d\n",c);
  }
  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:

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

6
0
3
 6
4
3
 7
0
3
 6
0
2
 6
2
2
 6
13
 9
0
3
 6
3
2
 5
13
 5
11

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 n,i,j,c;
  while(1){
    scanf("%d",&n);
    if(!n) break;
    int a[n];
    for(i=0;i<n;i++)
      scanf("%d",&a[i]);
    c=0;
    for(i=0;i<n-1;i++){
      for(j=n-1;j>i;j--){
	if(a[j-1]>a[j]){
	  int t=a[j];
	  a[j]=a[j-1];
	  a[j-1]=t;
	  c++;
	}
      }
    }
    printf("%d\n",c);
  }
  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L4
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L23
.L4:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L5
	orq	$0, -8(%rsp,%rcx)
.L5:
	movq	%rsp, %r15
	testl	%eax, %eax
	jle	.L6
	movq	%r15, %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r13
	cmpl	%r14d, %eax
	jg	.L7
.L6:
	leal	-1(%rax), %edi
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L8
	xorl	%esi, %esi
	movslq	%edi, %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-4(%r15,%rdx,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L9
	movq	%xmm1, -4(%r15,%rdx,4)
	addl	$1, %r8d
.L9:
	subq	$1, %rdx
	cmpl	%edx, %esi
	jl	.L10
	addl	$1, %esi
	cmpl	%edi, %esi
	jne	.L11
.L8:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rsp
	jmp	.L12
.L2:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	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	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$40, %rsp
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L12:
	movq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	je	.L2
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L4
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L23
.L4:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L5
	orq	$0, -8(%rsp,%rcx)
.L5:
	movq	%rsp, %r15
	testl	%eax, %eax
	jle	.L6
	movq	%r15, %r13
	xorl	%r14d, %r14d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r14d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r13
	cmpl	%r14d, %eax
	jg	.L7
.L6:
	leal	-1(%rax), %edi
	xorl	%r8d, %r8d
	testl	%edi, %edi
	jle	.L8
	xorl	%esi, %esi
	movslq	%edi, %r9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r9, %rdx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	-4(%r15,%rdx,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %ecx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %ecx
	jle	.L9
	movq	%xmm1, -4(%r15,%rdx,4)
	addl	$1, %r8d
.L9:
	subq	$1, %rdx
	cmpl	%edx, %esi
	jl	.L10
	addl	$1, %esi
	cmpl	%edi, %esi
	jne	.L11
.L8:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%r12, %rsp
	jmp	.L12
.L2:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	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:
```