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<string.h>
#include<math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define INF ((1LL<<62)-(1LL<<31))

ll n,k;
ll ans;
int main(){
	scanf("%lld%lld",&n,&k);
	rep(b,k+1,n+1){
		//商がいくつまでいけるか
		ll up=n/b;
		//商がup未満なら全部いける
		ans+=up*(b-k);
		//ただし0は除く
		if(k==0)ans--;
		//商がupのときはn%bまでいける
		if(n%b>=k)ans+=n%b-k+1;
//		printf("%lld ",ans);
	}
	printf("%lld\n",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	leaq	k(%rip), %rdx
	call	__isoc99_scanf@PLT
	movq	k(%rip), %rdi
	movq	n(%rip), %rsi
	movq	ans(%rip), %r8
	cmpq	%rsi, %rdi
	jge	.L3
	testq	%rdi, %rdi
	je	.L4
	leaq	1(%rsi), %r10
	movl	$1, %ecx
	subq	%rdi, %r10
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	leaq	(%rdi,%rcx), %r9
	cqto
	idivq	%r9
	imulq	%rcx, %rax
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jg	.L5
	subq	%rdi, %rdx
	leaq	1(%r8,%rdx), %r8
.L5:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L6
.L7:
	movq	%r8, ans(%rip)
.L3:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$1, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rcx
.L9:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	imulq	%rcx, %rax
	testq	%rdx, %rdx
	leaq	-1(%r8,%rax), %r8
	leaq	1(%r8,%rdx), %rax
	cmovns	%rax, %r8
	leaq	1(%rcx), %rax
	cmpq	%rcx, %rsi
	jne	.L10
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	leaq	k(%rip), %rdx
	call	__isoc99_scanf@PLT
	movq	k(%rip), %rdi
	movq	n(%rip), %rsi
	movq	ans(%rip), %r8
	cmpq	%rsi, %rdi
	jge	.L3
	testq	%rdi, %rdi
	je	.L4
	leaq	1(%rsi), %r10
	movl	$1, %ecx
	subq	%rdi, %r10
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	leaq	(%rdi,%rcx), %r9
	cqto
	idivq	%r9
	imulq	%rcx, %rax
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jg	.L5
	subq	%rdi, %rdx
	leaq	1(%r8,%rdx), %r8
.L5:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L6
.L7:
	movq	%r8, ans(%rip)
.L3:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$1, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rcx
.L9:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	imulq	%rcx, %rax
	testq	%rdx, %rdx
	leaq	-1(%r8,%rax), %r8
	leaq	1(%r8,%rdx), %rax
	cmovns	%rax, %r8
	leaq	1(%rcx), %rax
	cmpq	%rcx, %rsi
	jne	.L10
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	leaq	k(%rip), %rdx
	call	__isoc99_scanf@PLT
	movq	k(%rip), %rdi
	movq	n(%rip), %rsi
	movq	ans(%rip), %r8
	cmpq	%rsi, %rdi
	jge	.L3
	testq	%rdi, %rdi
	je	.L4
	leaq	1(%rsi), %r10
	movl	$1, %ecx
	subq	%rdi, %r10
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	leaq	(%rdi,%rcx), %r9
	cqto
	idivq	%r9
	imulq	%rcx, %rax
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jg	.L5
	subq	%rdi, %rdx
	leaq	1(%r8,%rdx), %r8
.L5:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L6
.L7:
	movq	%r8, ans(%rip)
.L3:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$1, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rcx
.L9:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	imulq	%rcx, %rax
	testq	%rdx, %rdx
	leaq	-1(%r8,%rax), %r8
	leaq	1(%r8,%rdx), %rax
	cmovns	%rax, %r8
	leaq	1(%rcx), %rax
	cmpq	%rcx, %rsi
	jne	.L10
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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<string.h>
#include<math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define INF ((1LL<<62)-(1LL<<31))

ll n,k;
ll ans;
int main(){
	scanf("%lld%lld",&n,&k);
	rep(b,k+1,n+1){
		//商がいくつまでいけるか
		ll up=n/b;
		//商がup未満なら全部いける
		ans+=up*(b-k);
		//ただし0は除く
		if(k==0)ans--;
		//商がupのときはn%bまでいける
		if(n%b>=k)ans+=n%b-k+1;
//		printf("%lld ",ans);
	}
	printf("%lld\n",ans);
}```
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<string.h>
#include<math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define INF ((1LL<<62)-(1LL<<31))

ll n,k;
ll ans;
int main(){
	scanf("%lld%lld",&n,&k);
	rep(b,k+1,n+1){
		//商がいくつまでいけるか
		ll up=n/b;
		//商がup未満なら全部いける
		ans+=up*(b-k);
		//ただし0は除く
		if(k==0)ans--;
		//商がupのときはn%bまでいける
		if(n%b>=k)ans+=n%b-k+1;
//		printf("%lld ",ans);
	}
	printf("%lld\n",ans);
}```

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:

6 2
 809 9265
 13 0
 8 2
 11 0
 8 4
 8 5
 8 7
 8 0
 4 2

12
 0
 169
 28
 121
 10
 6
 1
 64
 3

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<string.h>
#include<math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define INF ((1LL<<62)-(1LL<<31))

ll n,k;
ll ans;
int main(){
	scanf("%lld%lld",&n,&k);
	rep(b,k+1,n+1){
		//商がいくつまでいけるか
		ll up=n/b;
		//商がup未満なら全部いける
		ans+=up*(b-k);
		//ただし0は除く
		if(k==0)ans--;
		//商がupのときはn%bまでいける
		if(n%b>=k)ans+=n%b-k+1;
//		printf("%lld ",ans);
	}
	printf("%lld\n",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	leaq	k(%rip), %rdx
	call	__isoc99_scanf@PLT
	movq	k(%rip), %rdi
	movq	n(%rip), %rsi
	movq	ans(%rip), %r8
	cmpq	%rsi, %rdi
	jge	.L3
	testq	%rdi, %rdi
	je	.L4
	leaq	1(%rsi), %r10
	movl	$1, %ecx
	subq	%rdi, %r10
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	leaq	(%rdi,%rcx), %r9
	cqto
	idivq	%r9
	imulq	%rcx, %rax
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jg	.L5
	subq	%rdi, %rdx
	leaq	1(%r8,%rdx), %r8
.L5:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L6
.L7:
	movq	%r8, ans(%rip)
.L3:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$1, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rcx
.L9:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	imulq	%rcx, %rax
	testq	%rdx, %rdx
	leaq	-1(%r8,%rax), %r8
	leaq	1(%r8,%rdx), %rax
	cmovns	%rax, %r8
	leaq	1(%rcx), %rax
	cmpq	%rcx, %rsi
	jne	.L10
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	leaq	n(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	leaq	k(%rip), %rdx
	call	__isoc99_scanf@PLT
	movq	k(%rip), %rdi
	movq	n(%rip), %rsi
	movq	ans(%rip), %r8
	cmpq	%rsi, %rdi
	jge	.L3
	testq	%rdi, %rdi
	je	.L4
	leaq	1(%rsi), %r10
	movl	$1, %ecx
	subq	%rdi, %r10
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%rsi, %rax
	leaq	(%rdi,%rcx), %r9
	cqto
	idivq	%r9
	imulq	%rcx, %rax
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jg	.L5
	subq	%rdi, %rdx
	leaq	1(%r8,%rdx), %r8
.L5:
	addq	$1, %rcx
	cmpq	%rcx, %r10
	jne	.L6
.L7:
	movq	%r8, ans(%rip)
.L3:
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$1, %ecx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rax, %rcx
.L9:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	imulq	%rcx, %rax
	testq	%rdx, %rdx
	leaq	-1(%r8,%rax), %r8
	leaq	1(%r8,%rdx), %rax
	cmovns	%rax, %r8
	leaq	1(%rcx), %rax
	cmpq	%rcx, %rsi
	jne	.L10
	jmp	.L7
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	k
	.align 8
	.type	k, @object
	.size	k, 8
k:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.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:
```