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

int main(void){
  int a[3],i,j,buff,count;
  char str[100],*p;
  
  fgets(str,sizeof(str),stdin);
  p=strtok(str," \n");
  a[0]=atoi(p);
  p=strtok(NULL," \n");
  a[1]=atoi(p);
  p=strtok(NULL," \n");
  a[2]=atoi(p);
  
  for(i=0;i<2;i++){
   for(j=2;j>i;j--){
    if(a[j-1]<a[j]){
     buff=a[j-1],a[j-1]=a[j],a[j]=buff; 
    }
   }
  }
  
  if((a[1]-a[2])%2==1){
    count=0;
    a[0]++,a[1]++;
    count++;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
  if((a[1]-a[2])%2==0){
    count=0;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
 return 0; 
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	" \n"
.LC1:
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -124(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -120(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -116(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L2
.L6:
	movl	$2, -148(%rbp)
	jmp	.L3
.L5:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	movl	%eax, -140(%rbp)
	movl	-148(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -124(%rbp,%rax,4)
	movl	-148(%rbp), %eax
	cltq
	movl	-140(%rbp), %edx
	movl	%edx, -124(%rbp,%rax,4)
.L4:
	subl	$1, -148(%rbp)
.L3:
	movl	-148(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jg	.L5
	addl	$1, -152(%rbp)
.L2:
	cmpl	$1, -152(%rbp)
	jle	.L6
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$0, -144(%rbp)
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L8:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -152(%rbp)
	jmp	.L10
.L11:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L10:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L7:
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L14:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L15
	movl	$0, -152(%rbp)
	jmp	.L16
.L17:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L16:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L13:
	movl	$0, %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	" \n"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %esi
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	movq	%rbp, %rdi
	movq	%r14, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%rax, %rbp
	movl	%eax, %r13d
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%rax, %rbx
	movl	%eax, %r12d
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	%ebx, %eax
	cmovg	%eax, %ebx
	cmovle	%eax, %r12d
	cmpl	%ebp, %ebx
	jle	.L15
	cmpl	%r12d, %ebp
	jge	.L4
	movl	%r12d, %r13d
	movl	%ebp, %r12d
.L4:
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	cmpl	$1, %edx
	je	.L20
	testb	$1, %al
	je	.L21
.L8:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$112, %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
.L15:
	.cfi_restore_state
	movl	%ebx, %r13d
	movl	%ebp, %ebx
	jmp	.L4
.L21:
	cmpl	%r13d, %r12d
	jge	.L14
	leal	-1(%r13), %edx
	subl	%r12d, %edx
	shrl	%edx
	addl	$1, %edx
.L9:
	cmpl	%ebx, %r13d
	jge	.L10
.L18:
	subl	%r13d, %ebx
	addl	%ebx, %edx
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L20:
	leal	1(%r13), %ecx
	cmpl	%r12d, %ecx
	jle	.L6
	shrl	%eax
	leal	2(%rax), %edx
.L6:
	cmpl	%ebx, %ecx
	jle	.L18
	jmp	.L10
.L14:
	xorl	%edx, %edx
	jmp	.L9
.L22:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" \n"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %esi
	leaq	.LC0(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	fgets@PLT
	movq	%rbp, %rdi
	movq	%r14, %rsi
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%rax, %rbp
	movl	%eax, %r13d
	call	strtok@PLT
	movl	$10, %edx
	xorl	%esi, %esi
	movq	%rax, %rdi
	call	strtol@PLT
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%rax, %rbx
	movl	%eax, %r12d
	call	strtok@PLT
	xorl	%esi, %esi
	movl	$10, %edx
	movq	%rax, %rdi
	call	strtol@PLT
	cmpl	%ebx, %eax
	cmovg	%eax, %ebx
	cmovle	%eax, %r12d
	cmpl	%ebp, %ebx
	jle	.L15
	cmpl	%r12d, %ebp
	jge	.L4
	movl	%r12d, %r13d
	movl	%ebp, %r12d
.L4:
	movl	%r13d, %eax
	subl	%r12d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %edx
	andl	$1, %edx
	subl	%ecx, %edx
	cmpl	$1, %edx
	je	.L20
	testb	$1, %al
	je	.L21
.L8:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$112, %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
.L15:
	.cfi_restore_state
	movl	%ebx, %r13d
	movl	%ebp, %ebx
	jmp	.L4
.L21:
	cmpl	%r13d, %r12d
	jge	.L14
	leal	-1(%r13), %edx
	subl	%r12d, %edx
	shrl	%edx
	addl	$1, %edx
.L9:
	cmpl	%ebx, %r13d
	jge	.L10
.L18:
	subl	%r13d, %ebx
	addl	%ebx, %edx
.L10:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L8
.L20:
	leal	1(%r13), %ecx
	cmpl	%r12d, %ecx
	jle	.L6
	shrl	%eax
	leal	2(%rax), %edx
.L6:
	cmpl	%ebx, %ecx
	jle	.L18
	jmp	.L10
.L14:
	xorl	%edx, %edx
	jmp	.L9
.L22:
	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:

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

int main(void){
  int a[3],i,j,buff,count;
  char str[100],*p;
  
  fgets(str,sizeof(str),stdin);
  p=strtok(str," \n");
  a[0]=atoi(p);
  p=strtok(NULL," \n");
  a[1]=atoi(p);
  p=strtok(NULL," \n");
  a[2]=atoi(p);
  
  for(i=0;i<2;i++){
   for(j=2;j>i;j--){
    if(a[j-1]<a[j]){
     buff=a[j-1],a[j-1]=a[j],a[j]=buff; 
    }
   }
  }
  
  if((a[1]-a[2])%2==1){
    count=0;
    a[0]++,a[1]++;
    count++;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
  if((a[1]-a[2])%2==0){
    count=0;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
 return 0; 
}
2 5 4

2

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

int main(void){
  int a[3],i,j,buff,count;
  char str[100],*p;
  
  fgets(str,sizeof(str),stdin);
  p=strtok(str," \n");
  a[0]=atoi(p);
  p=strtok(NULL," \n");
  a[1]=atoi(p);
  p=strtok(NULL," \n");
  a[2]=atoi(p);
  
  for(i=0;i<2;i++){
   for(j=2;j>i;j--){
    if(a[j-1]<a[j]){
     buff=a[j-1],a[j-1]=a[j],a[j]=buff; 
    }
   }
  }
  
  if((a[1]-a[2])%2==1){
    count=0;
    a[0]++,a[1]++;
    count++;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
  if((a[1]-a[2])%2==0){
    count=0;
   for(i=0;a[2]<a[1];i++){
    a[2]+=2;
    count++;
   }
   for(i=0;a[1]<a[0];i++){
    a[2]++,a[1]++;
    count++;
   }
    printf("%d\n",count);
    return 0;
  }
  
 return 0; 
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	" \n"
.LC1:
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -124(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -120(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -116(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L2
.L6:
	movl	$2, -148(%rbp)
	jmp	.L3
.L5:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	movl	%eax, -140(%rbp)
	movl	-148(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -124(%rbp,%rax,4)
	movl	-148(%rbp), %eax
	cltq
	movl	-140(%rbp), %edx
	movl	%edx, -124(%rbp,%rax,4)
.L4:
	subl	$1, -148(%rbp)
.L3:
	movl	-148(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jg	.L5
	addl	$1, -152(%rbp)
.L2:
	cmpl	$1, -152(%rbp)
	jle	.L6
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$0, -144(%rbp)
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L8:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -152(%rbp)
	jmp	.L10
.L11:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L10:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L7:
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L14:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L15
	movl	$0, -152(%rbp)
	jmp	.L16
.L17:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L16:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L13:
	movl	$0, %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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
	.section	.rodata
.LC0:
	.string	" \n"
.LC1:
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	leaq	-112(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -124(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -120(%rbp)
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %edi
	call	strtok@PLT
	movq	%rax, -136(%rbp)
	movq	-136(%rbp), %rax
	movq	%rax, %rdi
	call	atoi@PLT
	movl	%eax, -116(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L2
.L6:
	movl	$2, -148(%rbp)
	jmp	.L3
.L5:
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-148(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-124(%rbp,%rax,4), %eax
	movl	%eax, -140(%rbp)
	movl	-148(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	-148(%rbp), %eax
	cltq
	movl	-124(%rbp,%rax,4), %edx
	movslq	%ecx, %rax
	movl	%edx, -124(%rbp,%rax,4)
	movl	-148(%rbp), %eax
	cltq
	movl	-140(%rbp), %edx
	movl	%edx, -124(%rbp,%rax,4)
.L4:
	subl	$1, -148(%rbp)
.L3:
	movl	-148(%rbp), %eax
	cmpl	-152(%rbp), %eax
	jg	.L5
	addl	$1, -152(%rbp)
.L2:
	cmpl	$1, -152(%rbp)
	jle	.L6
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$0, -144(%rbp)
	movl	-124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -124(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L8:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -152(%rbp)
	jmp	.L10
.L11:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L10:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L11
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L7:
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %edx
	subl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L13
	movl	$0, -144(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L14
.L15:
	movl	-116(%rbp), %eax
	addl	$2, %eax
	movl	%eax, -116(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L14:
	movl	-116(%rbp), %edx
	movl	-120(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L15
	movl	$0, -152(%rbp)
	jmp	.L16
.L17:
	movl	-116(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	addl	$1, -144(%rbp)
	addl	$1, -152(%rbp)
.L16:
	movl	-120(%rbp), %edx
	movl	-124(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L17
	movl	-144(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L18
.L13:
	movl	$0, %eax
.L18:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
