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 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; 
}```

Assembly Code:

```assembly
	.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:
```

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	" \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
```assembly
	.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:
```
```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; 
}```
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 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; 
}```

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:

2 5 4

2

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 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; 
}```

Assembly Code:

```assembly
	.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:
```

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	" \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:
```