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>
int main()
{   long long a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a%2==1||b%2==1||c%2==1){
        printf("0");
        return 0;
    }
    long long ha=a/2,hb=b/2,hc=c/2;
    long long ans=1;
    while(ha%2==hb%2&&hb%2==hc%2&&ha%2==hc%2){
        a=hb+hc;
        b=ha+hc;
        c=ha+hb;
        ha=a/2;
        hb=b/2;
        hc=c/2;
        ans++;
        if(ans>10000000){
            printf("-1");
            return 0;
        }
    }
    printf("%ld",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	"%ld"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	leaq	(%rax,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	8(%rsp), %rsi
	movq	%rsi, %rcx
	shrq	$63, %rcx
	leaq	(%rsi,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	16(%rsp), %r8
	movq	%r8, %rcx
	shrq	$63, %rcx
	leaq	(%r8,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movl	$2, %edi
	cqto
	xorl	%r9d, %r9d
	idivq	%rdi
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rsi
	movq	%r8, %rax
	movl	$1, %r8d
	cqto
	idivq	%rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r10
	shrq	$63, %r10
	leaq	(%rax,%r10), %rdi
	andl	$1, %edi
	subq	%r10, %rdi
	cmpq	%rdi, %rdx
	jne	.L25
	leaq	(%rsi,%rax), %rbx
	leaq	(%rcx,%rax), %rbp
	addq	$1, %r8
	movl	$1, %r9d
	leaq	(%rcx,%rsi), %r12
	movq	%rbx, %rcx
	movq	%rbp, %rsi
	shrq	$63, %rcx
	movq	%r12, %rax
	shrq	$63, %rsi
	shrq	$63, %rax
	addq	%rbx, %rcx
	addq	%rbp, %rsi
	sarq	%rcx
	addq	%r12, %rax
	sarq	%rsi
	sarq	%rax
	cmpq	$10000001, %r8
	je	.L27
.L5:
	movq	%rsi, %rdx
	movq	%rcx, %r10
	shrq	$63, %rdx
	shrq	$63, %r10
	leaq	(%rsi,%rdx), %rdi
	andl	$1, %edi
	subq	%rdx, %rdi
	leaq	(%rcx,%r10), %rdx
	andl	$1, %edx
	subq	%r10, %rdx
	cmpq	%rdi, %rdx
	je	.L6
.L25:
	testb	%r9b, %r9b
	je	.L7
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	movq	%rbx, (%rsp)
.L7:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbx, (%rsp)
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	call	__printf_chk@PLT
	jmp	.L4
.L28:
	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	"%ld"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	leaq	(%rax,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	8(%rsp), %rsi
	movq	%rsi, %rcx
	shrq	$63, %rcx
	leaq	(%rsi,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	16(%rsp), %r8
	movq	%r8, %rcx
	shrq	$63, %rcx
	leaq	(%r8,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movl	$2, %edi
	cqto
	xorl	%r9d, %r9d
	idivq	%rdi
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rsi
	movq	%r8, %rax
	movl	$1, %r8d
	cqto
	idivq	%rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r10
	shrq	$63, %r10
	leaq	(%rax,%r10), %rdi
	andl	$1, %edi
	subq	%r10, %rdi
	cmpq	%rdi, %rdx
	jne	.L25
	leaq	(%rsi,%rax), %rbx
	leaq	(%rcx,%rax), %rbp
	addq	$1, %r8
	movl	$1, %r9d
	leaq	(%rcx,%rsi), %r12
	movq	%rbx, %rcx
	movq	%rbp, %rsi
	shrq	$63, %rcx
	movq	%r12, %rax
	shrq	$63, %rsi
	shrq	$63, %rax
	addq	%rbx, %rcx
	addq	%rbp, %rsi
	sarq	%rcx
	addq	%r12, %rax
	sarq	%rsi
	sarq	%rax
	cmpq	$10000001, %r8
	je	.L27
.L5:
	movq	%rsi, %rdx
	movq	%rcx, %r10
	shrq	$63, %rdx
	shrq	$63, %r10
	leaq	(%rsi,%rdx), %rdi
	andl	$1, %edi
	subq	%rdx, %rdi
	leaq	(%rcx,%r10), %rdx
	andl	$1, %edx
	subq	%r10, %rdx
	cmpq	%rdi, %rdx
	je	.L6
.L25:
	testb	%r9b, %r9b
	je	.L7
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	movq	%rbx, (%rsp)
.L7:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbx, (%rsp)
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	call	__printf_chk@PLT
	jmp	.L4
.L28:
	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	"%ld"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	leaq	(%rax,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	8(%rsp), %rsi
	movq	%rsi, %rcx
	shrq	$63, %rcx
	leaq	(%rsi,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	16(%rsp), %r8
	movq	%r8, %rcx
	shrq	$63, %rcx
	leaq	(%r8,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movl	$2, %edi
	cqto
	xorl	%r9d, %r9d
	idivq	%rdi
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rsi
	movq	%r8, %rax
	movl	$1, %r8d
	cqto
	idivq	%rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r10
	shrq	$63, %r10
	leaq	(%rax,%r10), %rdi
	andl	$1, %edi
	subq	%r10, %rdi
	cmpq	%rdi, %rdx
	jne	.L25
	leaq	(%rsi,%rax), %rbx
	leaq	(%rcx,%rax), %rbp
	addq	$1, %r8
	movl	$1, %r9d
	leaq	(%rcx,%rsi), %r12
	movq	%rbx, %rcx
	movq	%rbp, %rsi
	shrq	$63, %rcx
	movq	%r12, %rax
	shrq	$63, %rsi
	shrq	$63, %rax
	addq	%rbx, %rcx
	addq	%rbp, %rsi
	sarq	%rcx
	addq	%r12, %rax
	sarq	%rsi
	sarq	%rax
	cmpq	$10000001, %r8
	je	.L27
.L5:
	movq	%rsi, %rdx
	movq	%rcx, %r10
	shrq	$63, %rdx
	shrq	$63, %r10
	leaq	(%rsi,%rdx), %rdi
	andl	$1, %edi
	subq	%rdx, %rdi
	leaq	(%rcx,%r10), %rdx
	andl	$1, %edx
	subq	%r10, %rdx
	cmpq	%rdi, %rdx
	je	.L6
.L25:
	testb	%r9b, %r9b
	je	.L7
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	movq	%rbx, (%rsp)
.L7:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbx, (%rsp)
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	call	__printf_chk@PLT
	jmp	.L4
.L28:
	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>
int main()
{   long long a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a%2==1||b%2==1||c%2==1){
        printf("0");
        return 0;
    }
    long long ha=a/2,hb=b/2,hc=c/2;
    long long ans=1;
    while(ha%2==hb%2&&hb%2==hc%2&&ha%2==hc%2){
        a=hb+hc;
        b=ha+hc;
        c=ha+hb;
        ha=a/2;
        hb=b/2;
        hc=c/2;
        ans++;
        if(ans>10000000){
            printf("-1");
            return 0;
        }
    }
    printf("%ld",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>
int main()
{   long long a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a%2==1||b%2==1||c%2==1){
        printf("0");
        return 0;
    }
    long long ha=a/2,hb=b/2,hc=c/2;
    long long ans=1;
    while(ha%2==hb%2&&hb%2==hc%2&&ha%2==hc%2){
        a=hb+hc;
        b=ha+hc;
        c=ha+hb;
        ha=a/2;
        hb=b/2;
        hc=c/2;
        ans++;
        if(ans>10000000){
            printf("-1");
            return 0;
        }
    }
    printf("%ld",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 32 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>
int main()
{   long long a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a%2==1||b%2==1||c%2==1){
        printf("0");
        return 0;
    }
    long long ha=a/2,hb=b/2,hc=c/2;
    long long ans=1;
    while(ha%2==hb%2&&hb%2==hc%2&&ha%2==hc%2){
        a=hb+hc;
        b=ha+hc;
        c=ha+hb;
        ha=a/2;
        hb=b/2;
        hc=c/2;
        ans++;
        if(ans>10000000){
            printf("-1");
            return 0;
        }
    }
    printf("%ld",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	"%ld"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	leaq	(%rax,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	8(%rsp), %rsi
	movq	%rsi, %rcx
	shrq	$63, %rcx
	leaq	(%rsi,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	16(%rsp), %r8
	movq	%r8, %rcx
	shrq	$63, %rcx
	leaq	(%r8,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movl	$2, %edi
	cqto
	xorl	%r9d, %r9d
	idivq	%rdi
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rsi
	movq	%r8, %rax
	movl	$1, %r8d
	cqto
	idivq	%rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r10
	shrq	$63, %r10
	leaq	(%rax,%r10), %rdi
	andl	$1, %edi
	subq	%r10, %rdi
	cmpq	%rdi, %rdx
	jne	.L25
	leaq	(%rsi,%rax), %rbx
	leaq	(%rcx,%rax), %rbp
	addq	$1, %r8
	movl	$1, %r9d
	leaq	(%rcx,%rsi), %r12
	movq	%rbx, %rcx
	movq	%rbp, %rsi
	shrq	$63, %rcx
	movq	%r12, %rax
	shrq	$63, %rsi
	shrq	$63, %rax
	addq	%rbx, %rcx
	addq	%rbp, %rsi
	sarq	%rcx
	addq	%r12, %rax
	sarq	%rsi
	sarq	%rax
	cmpq	$10000001, %r8
	je	.L27
.L5:
	movq	%rsi, %rdx
	movq	%rcx, %r10
	shrq	$63, %rdx
	shrq	$63, %r10
	leaq	(%rsi,%rdx), %rdi
	andl	$1, %edi
	subq	%rdx, %rdi
	leaq	(%rcx,%r10), %rdx
	andl	$1, %edx
	subq	%r10, %rdx
	cmpq	%rdi, %rdx
	je	.L6
.L25:
	testb	%r9b, %r9b
	je	.L7
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	movq	%rbx, (%rsp)
.L7:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbx, (%rsp)
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	call	__printf_chk@PLT
	jmp	.L4
.L28:
	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	"%ld"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$32, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	leaq	(%rax,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	8(%rsp), %rsi
	movq	%rsi, %rcx
	shrq	$63, %rcx
	leaq	(%rsi,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movq	16(%rsp), %r8
	movq	%r8, %rcx
	shrq	$63, %rcx
	leaq	(%r8,%rcx), %rdx
	andl	$1, %edx
	subq	%rcx, %rdx
	cmpq	$1, %rdx
	je	.L2
	movl	$2, %edi
	cqto
	xorl	%r9d, %r9d
	idivq	%rdi
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	movq	%rax, %rsi
	movq	%r8, %rax
	movl	$1, %r8d
	cqto
	idivq	%rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rax, %r10
	shrq	$63, %r10
	leaq	(%rax,%r10), %rdi
	andl	$1, %edi
	subq	%r10, %rdi
	cmpq	%rdi, %rdx
	jne	.L25
	leaq	(%rsi,%rax), %rbx
	leaq	(%rcx,%rax), %rbp
	addq	$1, %r8
	movl	$1, %r9d
	leaq	(%rcx,%rsi), %r12
	movq	%rbx, %rcx
	movq	%rbp, %rsi
	shrq	$63, %rcx
	movq	%r12, %rax
	shrq	$63, %rsi
	shrq	$63, %rax
	addq	%rbx, %rcx
	addq	%rbp, %rsi
	sarq	%rcx
	addq	%r12, %rax
	sarq	%rsi
	sarq	%rax
	cmpq	$10000001, %r8
	je	.L27
.L5:
	movq	%rsi, %rdx
	movq	%rcx, %r10
	shrq	$63, %rdx
	shrq	$63, %r10
	leaq	(%rsi,%rdx), %rdi
	andl	$1, %edi
	subq	%rdx, %rdi
	leaq	(%rcx,%r10), %rdx
	andl	$1, %edx
	subq	%r10, %rdx
	cmpq	%rdi, %rdx
	je	.L6
.L25:
	testb	%r9b, %r9b
	je	.L7
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	movq	%rbx, (%rsp)
.L7:
	movq	%r8, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L4
.L27:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%rbx, (%rsp)
	movq	%r12, 16(%rsp)
	movq	%rbp, 8(%rsp)
	call	__printf_chk@PLT
	jmp	.L4
.L28:
	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:
```