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(){
  int x,y,i,j,s=0,sum=0;
  int n[100];
  while(scanf("%d",&x)!=EOF){
    for(i=0;i<x;i++){
      scanf("%d",&n[i]);
    }

    for(i=0;i<(x-1);i++){
      for(j=i;j<x;j++){
	if(n[i]>=n[j]){
	  y=n[i];
	  n[i]=n[j];
	  n[j]=y;
	}      
      }
    }

    s+=n[0];
    sum+=n[0];
    for(i=1;i<x;i++){
      sum+=n[i];
      s+=sum;
    } 
    printf("%d\n",s);
    s=0;
    sum=0;
  }  

  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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	12(%rsp), %r8d
	leaq	16(%rsp), %r14
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
.L12:
	leal	-1(%r8), %r10d
	testl	%r10d, %r10d
	jle	.L4
	leaq	16(%rsp), %rdi
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdi, %rax
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %ecx
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L5
	movl	%esi, (%rdi)
	movl	%ecx, (%rax)
.L5:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%r8d, %edx
	jl	.L6
	addl	$1, %r9d
	addq	$4, %rdi
	cmpl	%r9d, %r10d
	jne	.L7
.L4:
	movl	16(%rsp), %edx
	cmpl	$1, %r8d
	jle	.L14
	leal	-2(%r8), %ecx
	leaq	20(%rsp), %rax
	movl	%edx, %r8d
	leaq	24(%rsp,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rax), %edx
	addq	$4, %rax
	addl	%edx, %r8d
	cmpq	%rax, %rcx
	jne	.L9
.L8:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L10:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	%edx, %r8d
	jmp	.L8
.L22:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	12(%rsp), %r8d
	leaq	16(%rsp), %r14
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
.L12:
	leal	-1(%r8), %r10d
	testl	%r10d, %r10d
	jle	.L4
	leaq	16(%rsp), %rdi
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdi, %rax
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %ecx
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L5
	movl	%esi, (%rdi)
	movl	%ecx, (%rax)
.L5:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%r8d, %edx
	jl	.L6
	addl	$1, %r9d
	addq	$4, %rdi
	cmpl	%r9d, %r10d
	jne	.L7
.L4:
	movl	16(%rsp), %edx
	cmpl	$1, %r8d
	jle	.L14
	leal	-2(%r8), %ecx
	leaq	20(%rsp), %rax
	movl	%edx, %r8d
	leaq	24(%rsp,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rax), %edx
	addq	$4, %rax
	addl	%edx, %r8d
	cmpq	%rax, %rcx
	jne	.L9
.L8:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L10:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	%edx, %r8d
	jmp	.L8
.L22:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	12(%rsp), %r8d
	leaq	16(%rsp), %r14
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
.L12:
	leal	-1(%r8), %r10d
	testl	%r10d, %r10d
	jle	.L4
	leaq	16(%rsp), %rdi
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdi, %rax
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %ecx
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L5
	movl	%esi, (%rdi)
	movl	%ecx, (%rax)
.L5:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%r8d, %edx
	jl	.L6
	addl	$1, %r9d
	addq	$4, %rdi
	cmpl	%r9d, %r10d
	jne	.L7
.L4:
	movl	16(%rsp), %edx
	cmpl	$1, %r8d
	jle	.L14
	leal	-2(%r8), %ecx
	leaq	20(%rsp), %rax
	movl	%edx, %r8d
	leaq	24(%rsp,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rax), %edx
	addq	$4, %rax
	addl	%edx, %r8d
	cmpq	%rax, %rcx
	jne	.L9
.L8:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L10:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	%edx, %r8d
	jmp	.L8
.L22:
	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(){
  int x,y,i,j,s=0,sum=0;
  int n[100];
  while(scanf("%d",&x)!=EOF){
    for(i=0;i<x;i++){
      scanf("%d",&n[i]);
    }

    for(i=0;i<(x-1);i++){
      for(j=i;j<x;j++){
	if(n[i]>=n[j]){
	  y=n[i];
	  n[i]=n[j];
	  n[j]=y;
	}      
      }
    }

    s+=n[0];
    sum+=n[0];
    for(i=1;i<x;i++){
      sum+=n[i];
      s+=sum;
    } 
    printf("%d\n",s);
    s=0;
    sum=0;
  }  

  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(){
  int x,y,i,j,s=0,sum=0;
  int n[100];
  while(scanf("%d",&x)!=EOF){
    for(i=0;i<x;i++){
      scanf("%d",&n[i]);
    }

    for(i=0;i<(x-1);i++){
      for(j=i;j<x;j++){
	if(n[i]>=n[j]){
	  y=n[i];
	  n[i]=n[j];
	  n[j]=y;
	}      
      }
    }

    s+=n[0];
    sum+=n[0];
    for(i=1;i<x;i++){
      sum+=n[i];
      s+=sum;
    } 
    printf("%d\n",s);
    s=0;
    sum=0;
  }  

  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:

3
10 20 30
7
56 26 62 43 38 80 7
 3
10 20 47
7
56 26 62 43 38 80 7
 3
19 20 47
7
56 26 62 43 38 80 7
 3
19 20 47
7
56 26 49 43 38 80 7
 3
19 20 2
7
56 26 49 43 38 80 7
 3
19 20 2
7
72 26 49 43 38 80 7
 3
19 20 2
7
72 26 49 43 38 80 3
 3
19 20 2
7
72 26 20 43 38 80 3
 3
19 20 2
7
72 26 20 43 66 80 3
 3
19 21 2
7
72 26 20 43 66 80 3

100
939
 117
939
 144
939
 144
906
 64
906
 64
938
 64
910
 64
776
 64
865
 65
865

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(){
  int x,y,i,j,s=0,sum=0;
  int n[100];
  while(scanf("%d",&x)!=EOF){
    for(i=0;i<x;i++){
      scanf("%d",&n[i]);
    }

    for(i=0;i<(x-1);i++){
      for(j=i;j<x;j++){
	if(n[i]>=n[j]){
	  y=n[i];
	  n[i]=n[j];
	  n[j]=y;
	}      
      }
    }

    s+=n[0];
    sum+=n[0];
    for(i=1;i<x;i++){
      sum+=n[i];
      s+=sum;
    } 
    printf("%d\n",s);
    s=0;
    sum=0;
  }  

  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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	12(%rsp), %r8d
	leaq	16(%rsp), %r14
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
.L12:
	leal	-1(%r8), %r10d
	testl	%r10d, %r10d
	jle	.L4
	leaq	16(%rsp), %rdi
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdi, %rax
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %ecx
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L5
	movl	%esi, (%rdi)
	movl	%ecx, (%rax)
.L5:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%r8d, %edx
	jl	.L6
	addl	$1, %r9d
	addq	$4, %rdi
	cmpl	%r9d, %r10d
	jne	.L7
.L4:
	movl	16(%rsp), %edx
	cmpl	$1, %r8d
	jle	.L14
	leal	-2(%r8), %ecx
	leaq	20(%rsp), %rax
	movl	%edx, %r8d
	leaq	24(%rsp,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rax), %edx
	addq	$4, %rax
	addl	%edx, %r8d
	cmpq	%rax, %rcx
	jne	.L9
.L8:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L10:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	%edx, %r8d
	jmp	.L8
.L22:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$432, %rsp
	.cfi_def_cfa_offset 480
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L10
	movl	12(%rsp), %r8d
	leaq	16(%rsp), %r14
	xorl	%r13d, %r13d
	testl	%r8d, %r8d
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
.L12:
	leal	-1(%r8), %r10d
	testl	%r10d, %r10d
	jle	.L4
	leaq	16(%rsp), %rdi
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rdi, %rax
	movl	%r9d, %edx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %ecx
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L5
	movl	%esi, (%rdi)
	movl	%ecx, (%rax)
.L5:
	addl	$1, %edx
	addq	$4, %rax
	cmpl	%r8d, %edx
	jl	.L6
	addl	$1, %r9d
	addq	$4, %rdi
	cmpl	%r9d, %r10d
	jne	.L7
.L4:
	movl	16(%rsp), %edx
	cmpl	$1, %r8d
	jle	.L14
	leal	-2(%r8), %ecx
	leaq	20(%rsp), %rax
	movl	%edx, %r8d
	leaq	24(%rsp,%rcx,4), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	addl	(%rax), %edx
	addq	$4, %rax
	addl	%edx, %r8d
	cmpq	%rax, %rcx
	jne	.L9
.L8:
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L10:
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$432, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	movl	%edx, %r8d
	jmp	.L8
.L22:
	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:
```