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

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    revrep(i, 2, 0){
        rep(j, 0, i){
            if(a[j] > a[j+1]){
                int b = a[j];
                a[j] = a[j+1];
                a[j+1] = b;
            }
        }
    }
    int ans = 0;
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 1){
        a[0]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 0){
        a[2]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 0 && (a[2] - a[1])%2 == 1){
        a[0]++; a[2]++; ans++;
    }
    ans += (a[2] - a[0]) / 2;
    ans += (a[2] - a[1]) / 2;
    printf("%d", ans);

    return 0;
}```

Assembly Code:

```assembly
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L2
	movq	%xmm1, 8(%rsp)
.L2:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %eax
	movd	%ecx, %xmm1
	movd	%edi, %xmm3
	movd	%ecx, %xmm0
	movd	%eax, %xmm4
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	cmpl	%edi, %ecx
	jge	.L4
	movq	%xmm1, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L16
	movd	%xmm0, %eax
	movq	%xmm0, 8(%rsp)
.L16:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
.L4:
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%r8d, %r8d
	subl	%esi, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	%ecx, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	.L7
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L19
.L7:
	movl	%ecx, %edx
	subl	8(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	subl	%edi, %ecx
	movl	%edx, %eax
	movl	$1, %edi
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%ecx, %edx
	addl	%r8d, %eax
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L21
.L6:
	movl	%ecx, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	.L5
	addl	$1, %ecx
	addl	$1, %edi
	addl	$1, %r8d
	movl	%ecx, 16(%rsp)
	movl	%edi, 12(%rsp)
	jmp	.L5
.L19:
	leal	1(%rsi), %eax
	addl	$1, %ecx
	addl	$1, %r8d
	movl	%eax, 8(%rsp)
	movl	%ecx, 16(%rsp)
	jmp	.L7
.L21:
	addl	$1, %esi
	movl	%ecx, %eax
	addl	$1, %edi
	subl	%esi, %eax
	movl	%esi, 8(%rsp)
	cltd
	movl	%edi, 12(%rsp)
	idivl	%r9d
	movl	%edx, %r8d
	cmpl	$1, %edx
	je	.L6
	movl	$1, %r8d
	jmp	.L5
.L20:
	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	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L2
	movq	%xmm1, 8(%rsp)
.L2:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %eax
	movd	%ecx, %xmm1
	movd	%edi, %xmm3
	movd	%ecx, %xmm0
	movd	%eax, %xmm4
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	cmpl	%edi, %ecx
	jge	.L4
	movq	%xmm1, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L16
	movd	%xmm0, %eax
	movq	%xmm0, 8(%rsp)
.L16:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
.L4:
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%r8d, %r8d
	subl	%esi, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	%ecx, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	.L7
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L19
.L7:
	movl	%ecx, %edx
	subl	8(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	subl	%edi, %ecx
	movl	%edx, %eax
	movl	$1, %edi
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%ecx, %edx
	addl	%r8d, %eax
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L21
.L6:
	movl	%ecx, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	.L5
	addl	$1, %ecx
	addl	$1, %edi
	addl	$1, %r8d
	movl	%ecx, 16(%rsp)
	movl	%edi, 12(%rsp)
	jmp	.L5
.L19:
	leal	1(%rsi), %eax
	addl	$1, %ecx
	addl	$1, %r8d
	movl	%eax, 8(%rsp)
	movl	%ecx, 16(%rsp)
	jmp	.L7
.L21:
	addl	$1, %esi
	movl	%ecx, %eax
	addl	$1, %edi
	subl	%esi, %eax
	movl	%esi, 8(%rsp)
	cltd
	movl	%edi, 12(%rsp)
	idivl	%r9d
	movl	%edx, %r8d
	cmpl	$1, %edx
	je	.L6
	movl	$1, %r8d
	jmp	.L5
.L20:
	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	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L2
	movq	%xmm1, 8(%rsp)
.L2:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %eax
	movd	%ecx, %xmm1
	movd	%edi, %xmm3
	movd	%ecx, %xmm0
	movd	%eax, %xmm4
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	cmpl	%edi, %ecx
	jge	.L4
	movq	%xmm1, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L16
	movd	%xmm0, %eax
	movq	%xmm0, 8(%rsp)
.L16:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
.L4:
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%r8d, %r8d
	subl	%esi, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	%ecx, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	.L7
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L19
.L7:
	movl	%ecx, %edx
	subl	8(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	subl	%edi, %ecx
	movl	%edx, %eax
	movl	$1, %edi
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%ecx, %edx
	addl	%r8d, %eax
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L21
.L6:
	movl	%ecx, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	.L5
	addl	$1, %ecx
	addl	$1, %edi
	addl	$1, %r8d
	movl	%ecx, 16(%rsp)
	movl	%edi, 12(%rsp)
	jmp	.L5
.L19:
	leal	1(%rsi), %eax
	addl	$1, %ecx
	addl	$1, %r8d
	movl	%eax, 8(%rsp)
	movl	%ecx, 16(%rsp)
	jmp	.L7
.L21:
	addl	$1, %esi
	movl	%ecx, %eax
	addl	$1, %edi
	subl	%esi, %eax
	movl	%esi, 8(%rsp)
	cltd
	movl	%edi, 12(%rsp)
	idivl	%r9d
	movl	%edx, %r8d
	cmpl	$1, %edx
	je	.L6
	movl	$1, %r8d
	jmp	.L5
.L20:
	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<string.h>
#include<math.h>
#include<stdlib.h>
#include<limits.h>

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    revrep(i, 2, 0){
        rep(j, 0, i){
            if(a[j] > a[j+1]){
                int b = a[j];
                a[j] = a[j+1];
                a[j+1] = b;
            }
        }
    }
    int ans = 0;
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 1){
        a[0]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 0){
        a[2]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 0 && (a[2] - a[1])%2 == 1){
        a[0]++; a[2]++; ans++;
    }
    ans += (a[2] - a[0]) / 2;
    ans += (a[2] - a[1]) / 2;
    printf("%d", ans);

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

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    revrep(i, 2, 0){
        rep(j, 0, i){
            if(a[j] > a[j+1]){
                int b = a[j];
                a[j] = a[j+1];
                a[j+1] = b;
            }
        }
    }
    int ans = 0;
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 1){
        a[0]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 0){
        a[2]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 0 && (a[2] - a[1])%2 == 1){
        a[0]++; a[2]++; ans++;
    }
    ans += (a[2] - a[0]) / 2;
    ans += (a[2] - a[1]) / 2;
    printf("%d", ans);

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

#define rep(i,begin,end) for(int i=begin; i<end; i++)
#define revrep(i,begin,end) for(int i=begin; i>end; i--)
#define lld long long int

int main(){
    int a[3];
    scanf("%d %d %d", &a[0], &a[1], &a[2]);
    revrep(i, 2, 0){
        rep(j, 0, i){
            if(a[j] > a[j+1]){
                int b = a[j];
                a[j] = a[j+1];
                a[j+1] = b;
            }
        }
    }
    int ans = 0;
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 1){
        a[0]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 1 && (a[2] - a[1])%2 == 0){
        a[2]++; a[1]++; ans++;
    }
    if((a[2] - a[0])%2 == 0 && (a[2] - a[1])%2 == 1){
        a[0]++; a[2]++; ans++;
    }
    ans += (a[2] - a[0]) / 2;
    ans += (a[2] - a[1]) / 2;
    printf("%d", ans);

    return 0;
}```

Assembly Code:

```assembly
	.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:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L2
	movq	%xmm1, 8(%rsp)
.L2:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %eax
	movd	%ecx, %xmm1
	movd	%edi, %xmm3
	movd	%ecx, %xmm0
	movd	%eax, %xmm4
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	cmpl	%edi, %ecx
	jge	.L4
	movq	%xmm1, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L16
	movd	%xmm0, %eax
	movq	%xmm0, 8(%rsp)
.L16:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
.L4:
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%r8d, %r8d
	subl	%esi, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	%ecx, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	.L7
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L19
.L7:
	movl	%ecx, %edx
	subl	8(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	subl	%edi, %ecx
	movl	%edx, %eax
	movl	$1, %edi
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%ecx, %edx
	addl	%r8d, %eax
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L21
.L6:
	movl	%ecx, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	.L5
	addl	$1, %ecx
	addl	$1, %edi
	addl	$1, %r8d
	movl	%ecx, 16(%rsp)
	movl	%edi, 12(%rsp)
	jmp	.L5
.L19:
	leal	1(%rsi), %eax
	addl	$1, %ecx
	addl	$1, %r8d
	movl	%eax, 8(%rsp)
	movl	%ecx, 16(%rsp)
	jmp	.L7
.L21:
	addl	$1, %esi
	movl	%ecx, %eax
	addl	$1, %edi
	subl	%esi, %eax
	movl	%esi, 8(%rsp)
	cltd
	movl	%edi, 12(%rsp)
	idivl	%r9d
	movl	%edx, %r8d
	cmpl	$1, %edx
	je	.L6
	movl	$1, %r8d
	jmp	.L5
.L20:
	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	"%d %d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rcx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %eax
	pshufd	$225, %xmm0, %xmm1
	cmpl	%eax, %edx
	jle	.L2
	movq	%xmm1, 8(%rsp)
.L2:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
	movl	8(%rsp), %eax
	movd	%ecx, %xmm1
	movd	%edi, %xmm3
	movd	%ecx, %xmm0
	movd	%eax, %xmm4
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	cmpl	%edi, %ecx
	jge	.L4
	movq	%xmm1, 12(%rsp)
	cmpl	%eax, %ecx
	jge	.L16
	movd	%xmm0, %eax
	movq	%xmm0, 8(%rsp)
.L16:
	movl	16(%rsp), %ecx
	movl	12(%rsp), %edi
.L4:
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%r8d, %r8d
	subl	%esi, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L18
.L5:
	movl	%ecx, %eax
	subl	%esi, %eax
	testb	$1, %al
	jne	.L7
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L19
.L7:
	movl	%ecx, %edx
	subl	8(%rsp), %edx
	leaq	.LC1(%rip), %rsi
	subl	%edi, %ecx
	movl	%edx, %eax
	movl	$1, %edi
	shrl	$31, %eax
	addl	%edx, %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%ecx, %edx
	addl	%r8d, %eax
	sarl	%edx
	addl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$2, %r9d
	subl	%edi, %eax
	cltd
	idivl	%r9d
	subl	$1, %edx
	je	.L21
.L6:
	movl	%ecx, %eax
	subl	%edi, %eax
	testb	$1, %al
	jne	.L5
	addl	$1, %ecx
	addl	$1, %edi
	addl	$1, %r8d
	movl	%ecx, 16(%rsp)
	movl	%edi, 12(%rsp)
	jmp	.L5
.L19:
	leal	1(%rsi), %eax
	addl	$1, %ecx
	addl	$1, %r8d
	movl	%eax, 8(%rsp)
	movl	%ecx, 16(%rsp)
	jmp	.L7
.L21:
	addl	$1, %esi
	movl	%ecx, %eax
	addl	$1, %edi
	subl	%esi, %eax
	movl	%esi, 8(%rsp)
	cltd
	movl	%edi, 12(%rsp)
	idivl	%r9d
	movl	%edx, %r8d
	cmpl	$1, %edx
	je	.L6
	movl	$1, %r8d
	jmp	.L5
.L20:
	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:
```