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 int t1, t2;
	scanf("%lld %lld", &t1, &t2);
	long long int a1, a2;
	scanf("%lld %lld", &a1, &a2);
	long long int b1, b2;
	scanf("%lld %lld", &b1, &b2);
	if (a1 * t1 + a2 * t2 == b1 * t1 + b2 * t2)
	{
		printf("infinity\n");
		return 0;
	}
	if (a1 * t1 + a2 * t2 < b1 * t1 + b2 * t2)
	{
		a1 ^= b1;
		b1 ^= a1;
		a1 ^= b1;
		a2 ^= b2;
		b2 ^= a2;
		a2 ^= b2;
	}
	if (a1 > b1)
	{
		printf("0\n");
		return 0;
	}
	long long int d = a1 * t1 + a2 * t2 - b1 * t1 - b2 * t2;
	long long int ans = 1;
	ans += 2 * (((b1 - a1) * t1 - 1) / d);
	if ((b1 - a1) * t1 % d == 0)ans++;
	printf("%lld\n", ans);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"infinity"
.LC2:
	.string	"0"
.LC3:
	.string	"%lld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rbp
	movq	%rcx, %r10
	movq	%rdi, %r8
	movq	%rbx, %r11
	imulq	%rdi, %r10
	imulq	%rax, %r11
	imulq	%rdx, %r8
	imulq	%rbp, %rax
	leaq	(%r10,%r11), %rsi
	leaq	(%r8,%rax), %r9
	cmpq	%r9, %rsi
	je	.L11
	jl	.L12
.L4:
	cmpq	%rdx, %rcx
	jg	.L13
	subq	%rcx, %rdx
	subq	%r8, %rsi
	movq	%rdx, %rcx
	subq	%rax, %rsi
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L6
	leaq	(%rdi,%rdi), %rax
	leaq	1(%rax), %rdx
.L7:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$64, %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
.L12:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rcx, 40(%rsp)
	movq	%r11, %rax
	movq	%rdx, %rcx
	movq	%rdx, 24(%rsp)
	movq	%r10, %r8
	movq	%r9, %rsi
	movq	%r12, %rdx
	movq	%rbx, 48(%rsp)
	movq	%rbp, 32(%rsp)
	jmp	.L4
.L6:
	leaq	1(%rdi), %rdx
	addq	%rdx, %rdx
	jmp	.L7
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L14:
	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	"%lld %lld"
.LC1:
	.string	"infinity"
.LC2:
	.string	"0"
.LC3:
	.string	"%lld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rbp
	movq	%rcx, %r10
	movq	%rdi, %r8
	movq	%rbx, %r11
	imulq	%rdi, %r10
	imulq	%rax, %r11
	imulq	%rdx, %r8
	imulq	%rbp, %rax
	leaq	(%r10,%r11), %rsi
	leaq	(%r8,%rax), %r9
	cmpq	%r9, %rsi
	je	.L11
	jl	.L12
.L4:
	cmpq	%rdx, %rcx
	jg	.L13
	subq	%rcx, %rdx
	subq	%r8, %rsi
	movq	%rdx, %rcx
	subq	%rax, %rsi
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L6
	leaq	(%rdi,%rdi), %rax
	leaq	1(%rax), %rdx
.L7:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$64, %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
.L12:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rcx, 40(%rsp)
	movq	%r11, %rax
	movq	%rdx, %rcx
	movq	%rdx, 24(%rsp)
	movq	%r10, %r8
	movq	%r9, %rsi
	movq	%r12, %rdx
	movq	%rbx, 48(%rsp)
	movq	%rbp, 32(%rsp)
	jmp	.L4
.L6:
	leaq	1(%rdi), %rdx
	addq	%rdx, %rdx
	jmp	.L7
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L14:
	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	"%lld %lld"
.LC1:
	.string	"infinity"
.LC2:
	.string	"0"
.LC3:
	.string	"%lld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rbp
	movq	%rcx, %r10
	movq	%rdi, %r8
	movq	%rbx, %r11
	imulq	%rdi, %r10
	imulq	%rax, %r11
	imulq	%rdx, %r8
	imulq	%rbp, %rax
	leaq	(%r10,%r11), %rsi
	leaq	(%r8,%rax), %r9
	cmpq	%r9, %rsi
	je	.L11
	jl	.L12
.L4:
	cmpq	%rdx, %rcx
	jg	.L13
	subq	%rcx, %rdx
	subq	%r8, %rsi
	movq	%rdx, %rcx
	subq	%rax, %rsi
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L6
	leaq	(%rdi,%rdi), %rax
	leaq	1(%rax), %rdx
.L7:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$64, %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
.L12:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rcx, 40(%rsp)
	movq	%r11, %rax
	movq	%rdx, %rcx
	movq	%rdx, 24(%rsp)
	movq	%r10, %r8
	movq	%r9, %rsi
	movq	%r12, %rdx
	movq	%rbx, 48(%rsp)
	movq	%rbp, 32(%rsp)
	jmp	.L4
.L6:
	leaq	1(%rdi), %rdx
	addq	%rdx, %rdx
	jmp	.L7
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L14:
	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 int t1, t2;
	scanf("%lld %lld", &t1, &t2);
	long long int a1, a2;
	scanf("%lld %lld", &a1, &a2);
	long long int b1, b2;
	scanf("%lld %lld", &b1, &b2);
	if (a1 * t1 + a2 * t2 == b1 * t1 + b2 * t2)
	{
		printf("infinity\n");
		return 0;
	}
	if (a1 * t1 + a2 * t2 < b1 * t1 + b2 * t2)
	{
		a1 ^= b1;
		b1 ^= a1;
		a1 ^= b1;
		a2 ^= b2;
		b2 ^= a2;
		a2 ^= b2;
	}
	if (a1 > b1)
	{
		printf("0\n");
		return 0;
	}
	long long int d = a1 * t1 + a2 * t2 - b1 * t1 - b2 * t2;
	long long int ans = 1;
	ans += 2 * (((b1 - a1) * t1 - 1) / d);
	if ((b1 - a1) * t1 % d == 0)ans++;
	printf("%lld\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>
int main()
{
	long long int t1, t2;
	scanf("%lld %lld", &t1, &t2);
	long long int a1, a2;
	scanf("%lld %lld", &a1, &a2);
	long long int b1, b2;
	scanf("%lld %lld", &b1, &b2);
	if (a1 * t1 + a2 * t2 == b1 * t1 + b2 * t2)
	{
		printf("infinity\n");
		return 0;
	}
	if (a1 * t1 + a2 * t2 < b1 * t1 + b2 * t2)
	{
		a1 ^= b1;
		b1 ^= a1;
		a1 ^= b1;
		a2 ^= b2;
		b2 ^= a2;
		a2 ^= b2;
	}
	if (a1 > b1)
	{
		printf("0\n");
		return 0;
	}
	long long int d = a1 * t1 + a2 * t2 - b1 * t1 - b2 * t2;
	long long int ans = 1;
	ans += 2 * (((b1 - a1) * t1 - 1) / d);
	if ((b1 - a1) * t1 % d == 0)ans++;
	printf("%lld\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:

1 2
10 10
12 5
 100 1
111 101
102 1
 100 2
100 101
102 1
 1 1
1 20
12 5
 100 2
100 101
102 0
 1 1
2 20
12 5
 100 2
100 111
102 0
 1 1
0 20
12 5
 30901 15700
2647944172 11366428589
5864465524 4464634034
 1 -2
-2 1
1 3

1
 0
 infinity
 5
 200
 4
 19
 8
 23
 6

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 int t1, t2;
	scanf("%lld %lld", &t1, &t2);
	long long int a1, a2;
	scanf("%lld %lld", &a1, &a2);
	long long int b1, b2;
	scanf("%lld %lld", &b1, &b2);
	if (a1 * t1 + a2 * t2 == b1 * t1 + b2 * t2)
	{
		printf("infinity\n");
		return 0;
	}
	if (a1 * t1 + a2 * t2 < b1 * t1 + b2 * t2)
	{
		a1 ^= b1;
		b1 ^= a1;
		a1 ^= b1;
		a2 ^= b2;
		b2 ^= a2;
		a2 ^= b2;
	}
	if (a1 > b1)
	{
		printf("0\n");
		return 0;
	}
	long long int d = a1 * t1 + a2 * t2 - b1 * t1 - b2 * t2;
	long long int ans = 1;
	ans += 2 * (((b1 - a1) * t1 - 1) / d);
	if ((b1 - a1) * t1 % d == 0)ans++;
	printf("%lld\n", ans);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"infinity"
.LC2:
	.string	"0"
.LC3:
	.string	"%lld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rbp
	movq	%rcx, %r10
	movq	%rdi, %r8
	movq	%rbx, %r11
	imulq	%rdi, %r10
	imulq	%rax, %r11
	imulq	%rdx, %r8
	imulq	%rbp, %rax
	leaq	(%r10,%r11), %rsi
	leaq	(%r8,%rax), %r9
	cmpq	%r9, %rsi
	je	.L11
	jl	.L12
.L4:
	cmpq	%rdx, %rcx
	jg	.L13
	subq	%rcx, %rdx
	subq	%r8, %rsi
	movq	%rdx, %rcx
	subq	%rax, %rsi
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L6
	leaq	(%rdi,%rdi), %rax
	leaq	1(%rax), %rdx
.L7:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$64, %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
.L12:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rcx, 40(%rsp)
	movq	%r11, %rax
	movq	%rdx, %rcx
	movq	%rdx, 24(%rsp)
	movq	%r10, %r8
	movq	%r9, %rsi
	movq	%r12, %rdx
	movq	%rbx, 48(%rsp)
	movq	%rbp, 32(%rsp)
	jmp	.L4
.L6:
	leaq	1(%rdi), %rdx
	addq	%rdx, %rdx
	jmp	.L7
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L14:
	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	"%lld %lld"
.LC1:
	.string	"infinity"
.LC2:
	.string	"0"
.LC3:
	.string	"%lld\n"
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rbp, %rdi
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	32(%rsp), %rdx
	xorl	%eax, %eax
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	leaq	48(%rsp), %rdx
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rbx
	movq	16(%rsp), %rax
	movq	40(%rsp), %rdx
	movq	48(%rsp), %rbp
	movq	%rcx, %r10
	movq	%rdi, %r8
	movq	%rbx, %r11
	imulq	%rdi, %r10
	imulq	%rax, %r11
	imulq	%rdx, %r8
	imulq	%rbp, %rax
	leaq	(%r10,%r11), %rsi
	leaq	(%r8,%rax), %r9
	cmpq	%r9, %rsi
	je	.L11
	jl	.L12
.L4:
	cmpq	%rdx, %rcx
	jg	.L13
	subq	%rcx, %rdx
	subq	%r8, %rsi
	movq	%rdx, %rcx
	subq	%rax, %rsi
	imulq	%rdi, %rcx
	leaq	-1(%rcx), %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	je	.L6
	leaq	(%rdi,%rdi), %rax
	leaq	1(%rax), %rdx
.L7:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$64, %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
.L12:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rcx, 40(%rsp)
	movq	%r11, %rax
	movq	%rdx, %rcx
	movq	%rdx, 24(%rsp)
	movq	%r10, %r8
	movq	%r9, %rsi
	movq	%r12, %rdx
	movq	%rbx, 48(%rsp)
	movq	%rbp, 32(%rsp)
	jmp	.L4
.L6:
	leaq	1(%rdi), %rdx
	addq	%rdx, %rdx
	jmp	.L7
.L13:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L14:
	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:
```