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>

/*
 * 1: (b/2 + c/2), (a/2 + c/2), (a/2 + b/2)
 * 2: (a/2 + b/4 + c/4), (b/2 + a/4 + c/4), (c/2 + a/4 + b/4)
 * 3: (a/4 + 3b/8 + 3c/8), 
 *
 */

int main()
{
	int a, b, c;
	int ans = 0;
	scanf("%d %d %d", &a, &b, &c);

	if (!(a & 1 || b & 1 || c & 1) &&
			a == b && b == c) {
		printf("-1\n");
		return 0;
	}

	while (a % 2 == 0 && b % 2 == 0 && c % 2 == 0) {
		int aa = a;
		int bb = b;
		int cc = c;

		a = bb / 2 + cc / 2;
		b = aa / 2 + cc / 2;
		c = aa / 2 + bb / 2;

		ans++;
	}

	printf("%d\n", ans);

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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), %eax
	movl	20(%rsp), %edx
	movl	12(%rsp), %esi
	movl	%eax, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	cmpl	%eax, %esi
	notl	%edi
	sete	%cl
	andl	%edi, %ecx
	cmpl	%edx, %eax
	sete	%dil
	andb	%dil, %cl
	jne	.L2
	xorl	%r8d, %r8d
	testb	$1, %sil
	je	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %dl
	jne	.L22
	movl	%eax, %ecx
	addl	$1, %r8d
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	%ecx
	addl	%edx, %eax
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%esi, %edx
	leal	(%rcx,%rax), %ebx
	sarl	%edx
	addl	%edx, %eax
	addl	%ecx, %edx
	movl	$1, %ecx
	testb	$1, %bl
	jne	.L21
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L6
.L22:
	testb	%cl, %cl
	je	.L4
.L21:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	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	%rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.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:
```

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	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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), %eax
	movl	20(%rsp), %edx
	movl	12(%rsp), %esi
	movl	%eax, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	cmpl	%eax, %esi
	notl	%edi
	sete	%cl
	andl	%edi, %ecx
	cmpl	%edx, %eax
	sete	%dil
	andb	%dil, %cl
	jne	.L2
	xorl	%r8d, %r8d
	testb	$1, %sil
	je	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %dl
	jne	.L22
	movl	%eax, %ecx
	addl	$1, %r8d
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	%ecx
	addl	%edx, %eax
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%esi, %edx
	leal	(%rcx,%rax), %ebx
	sarl	%edx
	addl	%edx, %eax
	addl	%ecx, %edx
	movl	$1, %ecx
	testb	$1, %bl
	jne	.L21
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L6
.L22:
	testb	%cl, %cl
	je	.L4
.L21:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	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	%rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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), %eax
	movl	20(%rsp), %edx
	movl	12(%rsp), %esi
	movl	%eax, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	cmpl	%eax, %esi
	notl	%edi
	sete	%cl
	andl	%edi, %ecx
	cmpl	%edx, %eax
	sete	%dil
	andb	%dil, %cl
	jne	.L2
	xorl	%r8d, %r8d
	testb	$1, %sil
	je	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %dl
	jne	.L22
	movl	%eax, %ecx
	addl	$1, %r8d
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	%ecx
	addl	%edx, %eax
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%esi, %edx
	leal	(%rcx,%rax), %ebx
	sarl	%edx
	addl	%edx, %eax
	addl	%ecx, %edx
	movl	$1, %ecx
	testb	$1, %bl
	jne	.L21
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L6
.L22:
	testb	%cl, %cl
	je	.L4
.L21:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	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	%rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.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:
```
```c
#include <stdio.h>

/*
 * 1: (b/2 + c/2), (a/2 + c/2), (a/2 + b/2)
 * 2: (a/2 + b/4 + c/4), (b/2 + a/4 + c/4), (c/2 + a/4 + b/4)
 * 3: (a/4 + 3b/8 + 3c/8), 
 *
 */

int main()
{
	int a, b, c;
	int ans = 0;
	scanf("%d %d %d", &a, &b, &c);

	if (!(a & 1 || b & 1 || c & 1) &&
			a == b && b == c) {
		printf("-1\n");
		return 0;
	}

	while (a % 2 == 0 && b % 2 == 0 && c % 2 == 0) {
		int aa = a;
		int bb = b;
		int cc = c;

		a = bb / 2 + cc / 2;
		b = aa / 2 + cc / 2;
		c = aa / 2 + bb / 2;

		ans++;
	}

	printf("%d\n", 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>

/*
 * 1: (b/2 + c/2), (a/2 + c/2), (a/2 + b/2)
 * 2: (a/2 + b/4 + c/4), (b/2 + a/4 + c/4), (c/2 + a/4 + b/4)
 * 3: (a/4 + 3b/8 + 3c/8), 
 *
 */

int main()
{
	int a, b, c;
	int ans = 0;
	scanf("%d %d %d", &a, &b, &c);

	if (!(a & 1 || b & 1 || c & 1) &&
			a == b && b == c) {
		printf("-1\n");
		return 0;
	}

	while (a % 2 == 0 && b % 2 == 0 && c % 2 == 0) {
		int aa = a;
		int bb = b;
		int cc = c;

		a = bb / 2 + cc / 2;
		b = aa / 2 + cc / 2;
		c = aa / 2 + bb / 2;

		ans++;
	}

	printf("%d\n", 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:

15 14 14
 454 414 846
 454 414 1200
 1390 18 4202
 0 0 0
 4 12 13
 15 14 7
 4 0 13
 15 17 7
 781 414 1200

0
 3
 1
 2
 -1
 0
 0
 0
 0
 0

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>

/*
 * 1: (b/2 + c/2), (a/2 + c/2), (a/2 + b/2)
 * 2: (a/2 + b/4 + c/4), (b/2 + a/4 + c/4), (c/2 + a/4 + b/4)
 * 3: (a/4 + 3b/8 + 3c/8), 
 *
 */

int main()
{
	int a, b, c;
	int ans = 0;
	scanf("%d %d %d", &a, &b, &c);

	if (!(a & 1 || b & 1 || c & 1) &&
			a == b && b == c) {
		printf("-1\n");
		return 0;
	}

	while (a % 2 == 0 && b % 2 == 0 && c % 2 == 0) {
		int aa = a;
		int bb = b;
		int cc = c;

		a = bb / 2 + cc / 2;
		b = aa / 2 + cc / 2;
		c = aa / 2 + bb / 2;

		ans++;
	}

	printf("%d\n", ans);

	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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), %eax
	movl	20(%rsp), %edx
	movl	12(%rsp), %esi
	movl	%eax, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	cmpl	%eax, %esi
	notl	%edi
	sete	%cl
	andl	%edi, %ecx
	cmpl	%edx, %eax
	sete	%dil
	andb	%dil, %cl
	jne	.L2
	xorl	%r8d, %r8d
	testb	$1, %sil
	je	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %dl
	jne	.L22
	movl	%eax, %ecx
	addl	$1, %r8d
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	%ecx
	addl	%edx, %eax
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%esi, %edx
	leal	(%rcx,%rax), %ebx
	sarl	%edx
	addl	%edx, %eax
	addl	%ecx, %edx
	movl	$1, %ecx
	testb	$1, %bl
	jne	.L21
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L6
.L22:
	testb	%cl, %cl
	je	.L4
.L21:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	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	%rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.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:
```

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	"-1"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -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), %eax
	movl	20(%rsp), %edx
	movl	12(%rsp), %esi
	movl	%eax, %edi
	orl	%edx, %edi
	orl	%esi, %edi
	cmpl	%eax, %esi
	notl	%edi
	sete	%cl
	andl	%edi, %ecx
	cmpl	%edx, %eax
	sete	%dil
	andb	%dil, %cl
	jne	.L2
	xorl	%r8d, %r8d
	testb	$1, %sil
	je	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %dl
	jne	.L22
	movl	%eax, %ecx
	addl	$1, %r8d
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	%ecx
	addl	%edx, %eax
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	%eax
	addl	%esi, %edx
	leal	(%rcx,%rax), %ebx
	sarl	%edx
	addl	%edx, %eax
	addl	%ecx, %edx
	movl	$1, %ecx
	testb	$1, %bl
	jne	.L21
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L6
.L22:
	testb	%cl, %cl
	je	.L4
.L21:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	movl	%r8d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	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	%rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.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:
```