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>
int main()
{
    int a,b,c,temp,inc,inc2;
    scanf("%d%d%d",&a,&b,&c);
    if(a>=b && a>=c)
    {
        if(b<c)
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(b>=a && b>=c)
    {
        temp=b;
        b=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(c>=a && c>=b)
    {
        temp=c;
        c=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    if(a!=b || a!=c || b!=c)
    {
        inc=a-b;
        b=b+inc;
        c=c+inc;
        inc2=inc;
    }
    if(a!=c)
    {
        inc2=(a-c)/2;
         c=c+(inc2*2);
        inc2=inc2+inc;

    }
    if(a!=c)
    {
        inc2=inc2+2;
    }
    printf("%d",inc2);

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L2:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L8
.L7:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L8:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	-32(%rbp), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -16(%rbp)
.L9:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L10
	addl	$2, -16(%rbp)
.L10:
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edx
	movl	12(%rsp), %ecx
	movl	20(%rsp), %eax
	movl	%edx, %esi
	cmpl	%edx, %ecx
	jge	.L20
	movl	%eax, %edi
	cmpl	%eax, %edx
	jge	.L21
.L6:
	cmpl	%edx, %ecx
	movl	%edx, %esi
	cmovge	%ecx, %esi
	cmpl	%esi, %eax
	jge	.L7
.L5:
	movl	%ecx, %esi
	movl	%edx, %edi
	cmpl	%edx, %ecx
	je	.L22
.L9:
	movl	%esi, %r12d
	movl	%esi, 16(%rsp)
	subl	%edi, %r12d
	leal	(%r12,%rax), %ecx
	cmpl	%esi, %ecx
	je	.L23
	movl	%esi, %eax
	movl	$2, %edi
	subl	%ecx, %eax
	cltd
	idivl	%edi
	leal	(%rcx,%rax,2), %edx
	addl	%eax, %r12d
	movl	%edx, 20(%rsp)
	cmpl	%esi, %edx
	je	.L13
	addl	$2, %r12d
.L13:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%eax, %ecx
	jl	.L3
	cmpl	%eax, %edx
	jge	.L5
	movl	%eax, 16(%rsp)
	movl	%edx, 20(%rsp)
	movl	%eax, %edx
	movl	%esi, %eax
	jmp	.L5
.L3:
	cmpl	%edx, %ecx
	je	.L6
.L7:
	movl	%ecx, 20(%rsp)
	movl	%eax, 12(%rsp)
	cmpl	%edx, %ecx
	jg	.L16
	movl	%eax, %ecx
	movl	20(%rsp), %eax
	jmp	.L5
.L22:
	cmpl	%eax, %edx
	jne	.L9
	jmp	.L13
.L23:
	movl	%esi, 20(%rsp)
	jmp	.L13
.L21:
	movl	%edx, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L8
	movl	%ecx, %eax
	jmp	.L9
.L16:
	movl	%ecx, %edi
	movl	%edx, %esi
	movl	%ecx, 16(%rsp)
	movl	%eax, %ecx
	movl	%edx, 20(%rsp)
	movl	%esi, %eax
	movl	%edi, %edx
	jmp	.L5
.L8:
	movl	%ecx, %edi
	jmp	.L9
.L24:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %edx
	movl	12(%rsp), %ecx
	movl	20(%rsp), %eax
	movl	%edx, %esi
	cmpl	%edx, %ecx
	jge	.L20
	movl	%eax, %edi
	cmpl	%eax, %edx
	jge	.L21
.L6:
	cmpl	%edx, %ecx
	movl	%edx, %esi
	cmovge	%ecx, %esi
	cmpl	%esi, %eax
	jge	.L7
.L5:
	movl	%ecx, %esi
	movl	%edx, %edi
	cmpl	%edx, %ecx
	je	.L22
.L9:
	movl	%esi, %r12d
	movl	%esi, 16(%rsp)
	subl	%edi, %r12d
	leal	(%r12,%rax), %ecx
	cmpl	%esi, %ecx
	je	.L23
	movl	%esi, %eax
	movl	$2, %edi
	subl	%ecx, %eax
	cltd
	idivl	%edi
	leal	(%rcx,%rax,2), %edx
	addl	%eax, %r12d
	movl	%edx, 20(%rsp)
	cmpl	%esi, %edx
	je	.L13
	addl	$2, %r12d
.L13:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	cmpl	%eax, %ecx
	jl	.L3
	cmpl	%eax, %edx
	jge	.L5
	movl	%eax, 16(%rsp)
	movl	%edx, 20(%rsp)
	movl	%eax, %edx
	movl	%esi, %eax
	jmp	.L5
.L3:
	cmpl	%edx, %ecx
	je	.L6
.L7:
	movl	%ecx, 20(%rsp)
	movl	%eax, 12(%rsp)
	cmpl	%edx, %ecx
	jg	.L16
	movl	%eax, %ecx
	movl	20(%rsp), %eax
	jmp	.L5
.L22:
	cmpl	%eax, %edx
	jne	.L9
	jmp	.L13
.L23:
	movl	%esi, 20(%rsp)
	jmp	.L13
.L21:
	movl	%edx, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L8
	movl	%ecx, %eax
	jmp	.L9
.L16:
	movl	%ecx, %edi
	movl	%edx, %esi
	movl	%ecx, 16(%rsp)
	movl	%eax, %ecx
	movl	%edx, 20(%rsp)
	movl	%esi, %eax
	movl	%edi, %edx
	jmp	.L5
.L8:
	movl	%ecx, %edi
	jmp	.L9
.L24:
	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:

#include<stdio.h>
int main()
{
    int a,b,c,temp,inc,inc2;
    scanf("%d%d%d",&a,&b,&c);
    if(a>=b && a>=c)
    {
        if(b<c)
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(b>=a && b>=c)
    {
        temp=b;
        b=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(c>=a && c>=b)
    {
        temp=c;
        c=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    if(a!=b || a!=c || b!=c)
    {
        inc=a-b;
        b=b+inc;
        c=c+inc;
        inc2=inc;
    }
    if(a!=c)
    {
        inc2=(a-c)/2;
         c=c+(inc2*2);
        inc2=inc2+inc;

    }
    if(a!=c)
    {
        inc2=inc2+2;
    }
    printf("%d",inc2);

}
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>
int main()
{
    int a,b,c,temp,inc,inc2;
    scanf("%d%d%d",&a,&b,&c);
    if(a>=b && a>=c)
    {
        if(b<c)
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(b>=a && b>=c)
    {
        temp=b;
        b=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    else if(c>=a && c>=b)
    {
        temp=c;
        c=a;
        a=temp;
        if(b>=c)
            ;
        else
        {
            temp=b;
            b=c;
            c=temp;
        }
    }
    if(a!=b || a!=c || b!=c)
    {
        inc=a-b;
        b=b+inc;
        c=c+inc;
        inc2=inc;
    }
    if(a!=c)
    {
        inc2=(a-c)/2;
         c=c+(inc2*2);
        inc2=inc2+inc;

    }
    if(a!=c)
    {
        inc2=inc2+2;
    }
    printf("%d",inc2);

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L2:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L8
.L7:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L8:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	-32(%rbp), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -16(%rbp)
.L9:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L10
	addl	$2, -16(%rbp)
.L10:
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%d%d%d"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L2
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L2:
	movl	-28(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L5
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L4
.L5:
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	-24(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jge	.L4
	movl	-28(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L8
.L7:
	movl	-32(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -16(%rbp)
.L8:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	-32(%rbp), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-24(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -24(%rbp)
	movl	-20(%rbp), %eax
	addl	%eax, -16(%rbp)
.L9:
	movl	-32(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	je	.L10
	addl	$2, -16(%rbp)
.L10:
	movl	-16(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
