Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=k)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define MOD 1000000007

ll dp[10010][110][2];//dp[i][j][k]=上からi桁目まで決まっていて、modがjで、Nより小さいことが確定して(k?いる:いない)
char s[10010];

int main(){
	ll d;
	scanf("%s%lld",s,&d);
	ll n=strlen(s);
	dp[0][0][0]=1;
	rep(i,0,n)rep(j,0,d){
		rep(dig,0,10)dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][1])%MOD;
		rep(dig,0,s[i]-'0')dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][0])%MOD;
		dp[i+1][(j+s[i]-'0')%d][0]=(dp[i+1][(j+s[i]-'0')%d][0]+dp[i][j][0])%MOD;
	}
	printf("%lld\n",(dp[n][0][0]+dp[n][0][1]-1+MOD)%MOD);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 17617600
dp:
	.zero	17617600
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 10010
s:
	.zero	10010
	.section	.rodata
.LC0:
	.string	"%s%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rdx
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -16(%rbp)
	movq	$1, dp(%rip)
	movq	$0, -48(%rbp)
	jmp	.L2
.L9:
	movq	$0, -40(%rbp)
	jmp	.L3
.L8:
	movq	$0, -32(%rbp)
	jmp	.L4
.L5:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L4:
	cmpq	$9, -32(%rbp)
	jle	.L5
	movq	$0, -24(%rbp)
	jmp	.L6
.L7:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L6:
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L7
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -40(%rbp)
.L3:
	movq	-56(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L8
	addq	$1, -48(%rbp)
.L2:
	movq	-48(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L9
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	(%rax,%rdx), %rcx
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	8+dp(%rip), %rdx
	movq	(%rax,%rdx), %rax
	addq	%rcx, %rax
	leaq	1000000006(%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	dp(%rip), %r10
	movq	$1, dp(%rip)
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L2
	movq	16(%rsp), %r8
	testq	%r8, %r8
	jle	.L2
	leaq	8(%r10), %rax
	xorl	%r15d, %r15d
	movabsq	$-8543223828751151131, %r11
	movq	%rax, (%rsp)
.L4:
	addq	$1, %r15
	leaq	-1+s(%rip), %rax
	movq	(%rsp), %rbx
	xorl	%r13d, %r13d
	movsbq	(%rax,%r15), %rbp
	imulq	$110, %r15, %r9
	movq	%rbp, %r14
	subq	$48, %rbp
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rax
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	addq	$1, %r13
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%r13, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	cqto
	idivq	%r8
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	2(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	3(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	4(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	5(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	6(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	7(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	8(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	9(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rcx)
	cmpb	$48, %r14b
	jle	.L8
	movq	-8(%rbx), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rdi, %rax
	addq	$1, %rdi
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	movq	8(%rcx), %rsi
	addq	%r12, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%rdi, %rbp
	jne	.L5
.L8:
	movq	%rbp, %rax
	movq	-8(%rbx), %rsi
	addq	$1, %rbp
	addq	$16, %rbx
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, (%rcx)
	cmpq	%r8, %r13
	jne	.L9
	addq	$1760, (%rsp)
	cmpq	%r15, 8(%rsp)
	jne	.L4
.L2:
	imulq	$1760, 8(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	addq	%rax, %r10
	movq	8(%r10), %rcx
	addq	(%r10), %rcx
	addq	$1000000006, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 10010
s:
	.zero	10010
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 17617600
dp:
	.zero	17617600
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	s(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	leaq	dp(%rip), %r10
	movq	$1, dp(%rip)
	movq	%rax, 8(%rsp)
	testq	%rax, %rax
	je	.L2
	movq	16(%rsp), %r8
	testq	%r8, %r8
	jle	.L2
	leaq	8(%r10), %rax
	xorl	%r15d, %r15d
	movabsq	$-8543223828751151131, %r11
	movq	%rax, (%rsp)
.L4:
	addq	$1, %r15
	leaq	-1+s(%rip), %rax
	movq	(%rsp), %rbx
	xorl	%r13d, %r13d
	movsbq	(%rax,%r15), %rbp
	imulq	$110, %r15, %r9
	movq	%rbp, %r14
	subq	$48, %rbp
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rax
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	addq	$1, %r13
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%r13, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	cqto
	idivq	%r8
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	2(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	3(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	4(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	5(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	6(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	7(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	8(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	9(%rdi), %rax
	cqto
	movq	%rsi, 8(%rcx)
	movq	(%rbx), %rsi
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	8(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	movq	%rsi, 8(%rcx)
	cmpb	$48, %r14b
	jle	.L8
	movq	-8(%rbx), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rdi, %rax
	addq	$1, %rdi
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	movq	8(%rcx), %rsi
	addq	%r12, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, 8(%rcx)
	cmpq	%rdi, %rbp
	jne	.L5
.L8:
	movq	%rbp, %rax
	movq	-8(%rbx), %rsi
	addq	$1, %rbp
	addq	$16, %rbx
	cqto
	idivq	%r8
	addq	%r9, %rdx
	salq	$4, %rdx
	leaq	(%r10,%rdx), %rcx
	addq	(%rcx), %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	movq	%rsi, (%rcx)
	cmpq	%r8, %r13
	jne	.L9
	addq	$1760, (%rsp)
	cmpq	%r15, 8(%rsp)
	jne	.L4
.L2:
	imulq	$1760, 8(%rsp), %rax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	addq	%rax, %r10
	movq	8(%r10), %rcx
	addq	(%r10), %rcx
	addq	$1000000006, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 10010
s:
	.zero	10010
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 17617600
dp:
	.zero	17617600
	.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:

#include <stdio.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=k)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define MOD 1000000007

ll dp[10010][110][2];//dp[i][j][k]=上からi桁目まで決まっていて、modがjで、Nより小さいことが確定して(k?いる:いない)
char s[10010];

int main(){
	ll d;
	scanf("%s%lld",s,&d);
	ll n=strlen(s);
	dp[0][0][0]=1;
	rep(i,0,n)rep(j,0,d){
		rep(dig,0,10)dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][1])%MOD;
		rep(dig,0,s[i]-'0')dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][0])%MOD;
		dp[i+1][(j+s[i]-'0')%d][0]=(dp[i+1][(j+s[i]-'0')%d][0]+dp[i][j][0])%MOD;
	}
	printf("%lld\n",(dp[n][0][0]+dp[n][0][1]-1+MOD)%MOD);
	return 0;
}
98765432109876543210
66
 30
1
 1000000009
2
 98765432109876543210
18
 1000000009
4
 98765432109876543210
11
 1000000009
5
 98765432109876543210
12
 1000000009
9
 98765432109876543210
10

678072802
 30
 500000004
 852803440
 250000009
 501683936
 200000001
 209841644
 111111112
 851852334

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>
#include <math.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=k)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define MOD 1000000007

ll dp[10010][110][2];//dp[i][j][k]=上からi桁目まで決まっていて、modがjで、Nより小さいことが確定して(k?いる:いない)
char s[10010];

int main(){
	ll d;
	scanf("%s%lld",s,&d);
	ll n=strlen(s);
	dp[0][0][0]=1;
	rep(i,0,n)rep(j,0,d){
		rep(dig,0,10)dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][1])%MOD;
		rep(dig,0,s[i]-'0')dp[i+1][(j+dig)%d][1]=(dp[i+1][(j+dig)%d][1]+dp[i][j][0])%MOD;
		dp[i+1][(j+s[i]-'0')%d][0]=(dp[i+1][(j+s[i]-'0')%d][0]+dp[i][j][0])%MOD;
	}
	printf("%lld\n",(dp[n][0][0]+dp[n][0][1]-1+MOD)%MOD);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 17617600
dp:
	.zero	17617600
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 10010
s:
	.zero	10010
	.section	.rodata
.LC0:
	.string	"%s%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rdx
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -16(%rbp)
	movq	$1, dp(%rip)
	movq	$0, -48(%rbp)
	jmp	.L2
.L9:
	movq	$0, -40(%rbp)
	jmp	.L3
.L8:
	movq	$0, -32(%rbp)
	jmp	.L4
.L5:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L4:
	cmpq	$9, -32(%rbp)
	jle	.L5
	movq	$0, -24(%rbp)
	jmp	.L6
.L7:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L6:
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L7
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -40(%rbp)
.L3:
	movq	-56(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L8
	addq	$1, -48(%rbp)
.L2:
	movq	-48(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L9
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	(%rax,%rdx), %rcx
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	8+dp(%rip), %rdx
	movq	(%rax,%rdx), %rax
	addq	%rcx, %rax
	leaq	1000000006(%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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.
train
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 17617600
dp:
	.zero	17617600
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 10010
s:
	.zero	10010
	.section	.rodata
.LC0:
	.string	"%s%lld"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rdx
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -16(%rbp)
	movq	$1, dp(%rip)
	movq	$0, -48(%rbp)
	jmp	.L2
.L9:
	movq	$0, -40(%rbp)
	jmp	.L3
.L8:
	movq	$0, -32(%rbp)
	jmp	.L4
.L5:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L4:
	cmpq	$9, -32(%rbp)
	jle	.L5
	movq	$0, -24(%rbp)
	jmp	.L6
.L7:
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	-40(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L6:
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	subl	$48, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L7
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rsi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rcx
	cqto
	idivq	%rcx
	imulq	$110, %rsi, %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rcx
	movq	-48(%rbp), %rax
	imulq	$110, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	dp(%rip), %rax
	movq	(%rdx,%rax), %rax
	addq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	leaq	s(%rip), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	subq	$48, %rax
	movq	-56(%rbp), %rsi
	cqto
	idivq	%rsi
	movq	%rdx, %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	imulq	$110, %rdi, %rdx
	addq	%rsi, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	dp(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -40(%rbp)
.L3:
	movq	-56(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L8
	addq	$1, -48(%rbp)
.L2:
	movq	-48(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jl	.L9
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	dp(%rip), %rdx
	movq	(%rax,%rdx), %rcx
	movq	-16(%rbp), %rax
	imulq	$1760, %rax, %rax
	leaq	8+dp(%rip), %rdx
	movq	(%rax,%rdx), %rax
	addq	%rcx, %rax
	leaq	1000000006(%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
