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>

typedef long long ll;

void solve(ll *low, ll *f,ll b) {

ll i;

for (i = 1ll; i <= 100000ll; i += 1ll) {
if ((i*i) - i > 2ll * b) {
break;
}
ll x = -(i*i) + i + (2ll * b);
if (x > 0ll && x % (2ll * i) == 0ll) {
*low = x / (2ll * i);
*f = i;
}
}


}

int main() {

ll low,floor,b;

while (1) {
scanf("%lld",&b);
if (b == 0ll) { break; }
solve(&low,&floor,b);
printf("%lld %lld\n", low, floor);
}

return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	movl	$1, %ecx
	leaq	(%rdx,%rdx), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	testq	%rax, %rax
	jle	.L3
	leaq	(%rcx,%rcx), %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, (%r9)
	movq	%rcx, (%rsi)
.L3:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L1
.L4:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rdi, %rax
	jle	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	je	.L9
	addq	%rsi, %rsi
	movl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	testq	%rax, %rax
	jle	.L11
	cqto
	leaq	(%rcx,%rcx), %rdi
	idivq	%rdi
	testq	%rdx, %rdx
	cmove	%rax, %r13
	cmove	%rcx, %r14
.L11:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L10
.L12:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rsi, %rax
	jle	.L17
.L10:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L9:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	movl	$1, %ecx
	leaq	(%rdx,%rdx), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	testq	%rax, %rax
	jle	.L3
	leaq	(%rcx,%rcx), %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, (%r9)
	movq	%rcx, (%rsi)
.L3:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L1
.L4:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rdi, %rax
	jle	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	je	.L9
	addq	%rsi, %rsi
	movl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	testq	%rax, %rax
	jle	.L11
	cqto
	leaq	(%rcx,%rcx), %rdi
	idivq	%rdi
	testq	%rdx, %rdx
	cmove	%rax, %r13
	cmove	%rcx, %r14
.L11:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L10
.L12:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rsi, %rax
	jle	.L17
.L10:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L9:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	movl	$1, %ecx
	leaq	(%rdx,%rdx), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	testq	%rax, %rax
	jle	.L3
	leaq	(%rcx,%rcx), %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, (%r9)
	movq	%rcx, (%rsi)
.L3:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L1
.L4:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rdi, %rax
	jle	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	je	.L9
	addq	%rsi, %rsi
	movl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	testq	%rax, %rax
	jle	.L11
	cqto
	leaq	(%rcx,%rcx), %rdi
	idivq	%rdi
	testq	%rdx, %rdx
	cmove	%rax, %r13
	cmove	%rcx, %r14
.L11:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L10
.L12:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rsi, %rax
	jle	.L17
.L10:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L9:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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>

typedef long long ll;

void solve(ll *low, ll *f,ll b) {

ll i;

for (i = 1ll; i <= 100000ll; i += 1ll) {
if ((i*i) - i > 2ll * b) {
break;
}
ll x = -(i*i) + i + (2ll * b);
if (x > 0ll && x % (2ll * i) == 0ll) {
*low = x / (2ll * i);
*f = i;
}
}


}

int main() {

ll low,floor,b;

while (1) {
scanf("%lld",&b);
if (b == 0ll) { break; }
solve(&low,&floor,b);
printf("%lld %lld\n", low, floor);
}

return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

typedef long long ll;

void solve(ll *low, ll *f,ll b) {

ll i;

for (i = 1ll; i <= 100000ll; i += 1ll) {
if ((i*i) - i > 2ll * b) {
break;
}
ll x = -(i*i) + i + (2ll * b);
if (x > 0ll && x % (2ll * i) == 0ll) {
*low = x / (2ll * i);
*f = i;
}
}


}

int main() {

ll low,floor,b;

while (1) {
scanf("%lld",&b);
if (b == 0ll) { break; }
solve(&low,&floor,b);
printf("%lld %lld\n", low, floor);
}

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
16
2
3
9699690
116276261
847288609
900660121
987698769
999999999
0
 15
16
2
3
9699690
223092870
869854515
900660121
987698769
999999999
0
 15
26
2
3
9699690
223092870
869854515
900660121
987698769
999999999
0
 15
26
3
3
9699690
223092870
869854515
900660121
987698769
999999999
0
 15
26
3
3
6561145
223092870
869854515
900660121
987698769
999999999
0
 15
26
3
5
6561145
223092870
869854515
900660121
987698769
999999999
0
 15
16
4
3
9699690
223092870
847288609
900660121
987698769
999999999
0
 15
16
2
3
9699690
116276261
932780910
900660121
987698769
999999999
0
 15
26
3
3
9699690
219653957
869854515
900660121
987698769
999999999
0
 15
26
3
5
6561145
223092870
151086107
900660121
987698769
999999999
0

1 5
16 1
2 1
1 2
16 4389
1236935 94
4112949 206
15006 30011
46887 17718
163837 5994
 1 5
16 1
2 1
1 2
16 4389
129 20995
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
5 4
2 1
1 2
16 4389
129 20995
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
5 4
1 2
1 2
16 4389
129 20995
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
5 4
1 2
1 2
656110 10
129 20995
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
5 4
1 2
2 2
656110 10
129 20995
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
16 1
4 1
1 2
16 4389
129 20995
4112949 206
15006 30011
46887 17718
163837 5994
 1 5
16 1
2 1
1 2
16 4389
1236935 94
342 42852
15006 30011
46887 17718
163837 5994
 1 5
5 4
1 2
1 2
16 4389
6460394 34
28995136 30
15006 30011
46887 17718
163837 5994
 1 5
5 4
1 2
2 2
656110 10
129 20995
1842473 82
15006 30011
46887 17718
163837 5994

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>

typedef long long ll;

void solve(ll *low, ll *f,ll b) {

ll i;

for (i = 1ll; i <= 100000ll; i += 1ll) {
if ((i*i) - i > 2ll * b) {
break;
}
ll x = -(i*i) + i + (2ll * b);
if (x > 0ll && x % (2ll * i) == 0ll) {
*low = x / (2ll * i);
*f = i;
}
}


}

int main() {

ll low,floor,b;

while (1) {
scanf("%lld",&b);
if (b == 0ll) { break; }
solve(&low,&floor,b);
printf("%lld %lld\n", low, floor);
}

return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	movl	$1, %ecx
	leaq	(%rdx,%rdx), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	testq	%rax, %rax
	jle	.L3
	leaq	(%rcx,%rcx), %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, (%r9)
	movq	%rcx, (%rsi)
.L3:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L1
.L4:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rdi, %rax
	jle	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	je	.L9
	addq	%rsi, %rsi
	movl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	testq	%rax, %rax
	jle	.L11
	cqto
	leaq	(%rcx,%rcx), %rdi
	idivq	%rdi
	testq	%rdx, %rdx
	cmove	%rax, %r13
	cmove	%rcx, %r14
.L11:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L10
.L12:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rsi, %rax
	jle	.L17
.L10:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L9:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %r9
	movl	$1, %ecx
	leaq	(%rdx,%rdx), %rdi
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rdi, %rax
	testq	%rax, %rax
	jle	.L3
	leaq	(%rcx,%rcx), %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L3
	movq	%rax, (%r9)
	movq	%rcx, (%rsi)
.L3:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L1
.L4:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rdi, %rax
	jle	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld %lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	je	.L9
	addq	%rsi, %rsi
	movl	$1, %ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	testq	%rax, %rax
	jle	.L11
	cqto
	leaq	(%rcx,%rcx), %rdi
	idivq	%rdi
	testq	%rdx, %rdx
	cmove	%rax, %r13
	cmove	%rcx, %r14
.L11:
	addq	$1, %rcx
	cmpq	$100001, %rcx
	je	.L10
.L12:
	movq	%rcx, %rdx
	imulq	%rcx, %rdx
	movq	%rdx, %rax
	subq	%rcx, %rax
	cmpq	%rsi, %rax
	jle	.L17
.L10:
	movq	%r14, %rcx
	movq	%r13, %rdx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L13
.L9:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
```