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<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  const int m=1000000;
  int cnt=0;
  while(a%2==0 && b%2==0 && c%2==0 && cnt<m){
    int x=b/2+c/2;
    int y=a/2+c/2;
    int z=b/2+a/2;
    a=x;b=y;c=z;
    cnt++;
    //printf("%d %d %d\n",a,b,c);
  }
  printf("%d\n",cnt<m?cnt:-1);
}

int main(void){
  run();
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB39:
	.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	12(%rsp), %rsi
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testb	$1, %sil
	jne	.L13
	movl	16(%rsp), %eax
	movl	20(%rsp), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	testb	$1, %dl
	jne	.L7
	cmpl	$1000000, %r8d
	je	.L27
	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	.L25
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L5
.L7:
	testb	%cl, %cl
	je	.L4
.L25:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	cmpl	$1000000, %r8d
	je	.L10
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L10
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L10:
	movl	$-1, %r8d
	jmp	.L2
.L13:
	xorl	%r8d, %r8d
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.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\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB39:
	.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	12(%rsp), %rsi
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testb	$1, %sil
	jne	.L13
	movl	16(%rsp), %eax
	movl	20(%rsp), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	testb	$1, %dl
	jne	.L7
	cmpl	$1000000, %r8d
	je	.L27
	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	.L25
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L5
.L7:
	testb	%cl, %cl
	je	.L4
.L25:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	cmpl	$1000000, %r8d
	je	.L10
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L10
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L10:
	movl	$-1, %r8d
	jmp	.L2
.L13:
	xorl	%r8d, %r8d
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.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\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB39:
	.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	12(%rsp), %rsi
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testb	$1, %sil
	jne	.L13
	movl	16(%rsp), %eax
	movl	20(%rsp), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	testb	$1, %dl
	jne	.L7
	cmpl	$1000000, %r8d
	je	.L27
	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	.L25
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L5
.L7:
	testb	%cl, %cl
	je	.L4
.L25:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	cmpl	$1000000, %r8d
	je	.L10
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L10
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L10:
	movl	$-1, %r8d
	jmp	.L2
.L13:
	xorl	%r8d, %r8d
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.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<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  const int m=1000000;
  int cnt=0;
  while(a%2==0 && b%2==0 && c%2==0 && cnt<m){
    int x=b/2+c/2;
    int y=a/2+c/2;
    int z=b/2+a/2;
    a=x;b=y;c=z;
    cnt++;
    //printf("%d %d %d\n",a,b,c);
  }
  printf("%d\n",cnt<m?cnt:-1);
}

int main(void){
  run();
  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<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  const int m=1000000;
  int cnt=0;
  while(a%2==0 && b%2==0 && c%2==0 && cnt<m){
    int x=b/2+c/2;
    int y=a/2+c/2;
    int z=b/2+a/2;
    a=x;b=y;c=z;
    cnt++;
    //printf("%d %d %d\n",a,b,c);
  }
  printf("%d\n",cnt<m?cnt:-1);
}

int main(void){
  run();
  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>
#include<stdlib.h>
#include<math.h>

typedef long long int int64;

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))

void run(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  const int m=1000000;
  int cnt=0;
  while(a%2==0 && b%2==0 && c%2==0 && cnt<m){
    int x=b/2+c/2;
    int y=a/2+c/2;
    int z=b/2+a/2;
    a=x;b=y;c=z;
    cnt++;
    //printf("%d %d %d\n",a,b,c);
  }
  printf("%d\n",cnt<m?cnt:-1);
}

int main(void){
  run();
  return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB39:
	.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	12(%rsp), %rsi
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testb	$1, %sil
	jne	.L13
	movl	16(%rsp), %eax
	movl	20(%rsp), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	testb	$1, %dl
	jne	.L7
	cmpl	$1000000, %r8d
	je	.L27
	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	.L25
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L5
.L7:
	testb	%cl, %cl
	je	.L4
.L25:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	cmpl	$1000000, %r8d
	je	.L10
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L10
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L10:
	movl	$-1, %r8d
	jmp	.L2
.L13:
	xorl	%r8d, %r8d
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.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\n"
	.text
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB39:
	.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	12(%rsp), %rsi
	leaq	20(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	testb	$1, %sil
	jne	.L13
	movl	16(%rsp), %eax
	movl	20(%rsp), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	testb	$1, %dl
	jne	.L7
	cmpl	$1000000, %r8d
	je	.L27
	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	.L25
	movl	%ebx, %esi
.L3:
	testb	$1, %al
	je	.L5
.L7:
	testb	%cl, %cl
	je	.L4
.L25:
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L4:
	cmpl	$1000000, %r8d
	je	.L10
.L2:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L10
	movl	%edx, 20(%rsp)
	movl	%eax, 16(%rsp)
	movl	%ebx, 12(%rsp)
.L10:
	movl	$-1, %r8d
	jmp	.L2
.L13:
	xorl	%r8d, %r8d
	jmp	.L2
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	run, .-run
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	run
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE40:
	.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:
```