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

```c
// Aizu Vol-3 0327: Alphametic
// 2017.8.25

#include <stdio.h>

int d[10], f[10];
int b[10] = { 0, 1, 10, 1, 100, 10, 1, 100, 10, 1 };
int cnt;

void combi(int i, int n, int s)
{
	int j, t;

	if (i == 10) { if (n == s) cnt++; return; }
	if (d[i] >= 0) {
		t = d[i] * b[i];
		if (i >= 7)	combi(i + 1, n, s + t);
		else        combi(i + 1, n + t, s);
	} else {
		for (j = 1; j <= 9; j++) {
			if (f[j]) continue;
			f[j] = 1;
			t = j * b[i];
			if (i >= 7)	combi(i + 1, n, s + t);
			else        combi(i + 1, n + t, s);
			f[j] = 0;
		}
	}
}

int main()
{
	int i;

	for (i = 1; i <= 9; i++) f[i] = 0;
	for (i = 1; i <= 9; i++) {
		scanf("%d", d + i);
		if (d[i] >= 0) f[d[i]] = 1;
	}
	cnt = 0;
	combi(1, 0, 0);
	printf("%d\n", cnt);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 40
d:
	.zero	40
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 40
f:
	.zero	40
	.globl	b
	.data
	.align 32
	.type	b, @object
	.size	b, 40
b:
	.long	0
	.long	1
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	combi
	.type	combi, @function
combi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L2
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L13
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	jmp	.L13
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L6
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L6:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L5:
	movl	$1, -8(%rbp)
	jmp	.L7
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L10
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L11
.L10:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L14:
	nop
.L9:
	addl	$1, -8(%rbp)
.L7:
	cmpl	$9, -8(%rbp)
	jle	.L12
	jmp	.L1
.L13:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	combi, .-combi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$1, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	cmpl	$9, -4(%rbp)
	jle	.L17
	movl	$1, -4(%rbp)
	jmp	.L18
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
.L19:
	addl	$1, -4(%rbp)
.L18:
	cmpl	$9, -4(%rbp)
	jle	.L20
	movl	$0, cnt(%rip)
	movl	$0, %edx
	movl	$0, %esi
	movl	$1, %edi
	call	combi
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	combi
	.type	combi, @function
combi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	movl	%edx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$10, %edi
	je	.L2
	leaq	d(%rip), %rax
	movslq	%edi, %rsi
	movl	%edi, %ebx
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L3
	leaq	b(%rip), %rdx
	imull	(%rdx,%rsi,4), %ecx
	leal	1(%rdi), %esi
	cmpl	$6, %edi
	jg	.L4
	addl	%ecx, %ebp
.L5:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	2(%rbx), %edi
	cmpl	$6, %esi
	jg	.L7
	addl	%ecx, %ebp
.L8:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	3(%rbx), %esi
	cmpl	$6, %edi
	jg	.L9
	addl	%ecx, %ebp
.L10:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	4(%rbx), %edi
	cmpl	$6, %esi
	jg	.L11
	addl	%ecx, %ebp
.L12:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	5(%rbx), %esi
	cmpl	$6, %edi
	jg	.L13
	addl	%ecx, %ebp
.L14:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	6(%rbx), %edi
	cmpl	$6, %esi
	jg	.L15
	addl	%ecx, %ebp
.L16:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	7(%rbx), %esi
	cmpl	$6, %edi
	jg	.L17
	addl	%ecx, %ebp
.L18:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	8(%rbx), %edi
	cmpl	$6, %esi
	jg	.L19
	addl	%ecx, %ebp
.L20:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	addl	$9, %ebx
	cmpl	$6, %edi
	jg	.L21
	addl	%ecx, %ebp
.L22:
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	testl	%eax, %eax
	js	.L3
	imull	(%rdx,%rcx,4), %eax
	addl	%eax, %r12d
.L2:
	cmpl	%r12d, %ebp
	je	.L75
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%esi, %ebx
.L3:
	leaq	4+f(%rip), %r13
	movl	$1, %r14d
	leaq	b(%rip), %r15
	cmpl	$6, %ebx
	jg	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movl	0(%r13), %edx
	testl	%edx, %edx
	jne	.L27
	movslq	%ebx, %rax
	leal	1(%rbx), %edi
	movl	%r12d, %edx
	movl	$1, 0(%r13)
	movl	(%r15,%rax,4), %esi
	imull	%r14d, %esi
	addl	%ebp, %esi
	call	combi
	movl	$0, 0(%r13)
.L27:
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	$10, %r14d
	jne	.L28
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	movl	0(%r13), %eax
	testl	%eax, %eax
	jne	.L30
	movslq	%ebx, %rax
	leal	1(%rbx), %edi
	movl	%ebp, %esi
	movl	$1, 0(%r13)
	movl	(%r15,%rax,4), %edx
	imull	%r14d, %edx
	addl	%r12d, %edx
	call	combi
	movl	$0, 0(%r13)
.L30:
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	$10, %r14d
	jne	.L31
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L8
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L12
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L75:
	addl	$1, cnt(%rip)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L16
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L18
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	addl	%ecx, %r12d
	cmpl	$10, %ebx
	jne	.L22
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%edi, %ebx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	combi, .-combi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	leaq	f(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	4+d(%rip), %rbx
	leaq	36(%rbx), %r12
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movups	%xmm0, 4+f(%rip)
	movl	$0, 36+f(%rip)
	movups	%xmm0, 20+f(%rip)
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	testl	%eax, %eax
	js	.L77
	movl	$1, 0(%r13,%rax,4)
.L77:
	addq	$4, %rbx
	cmpq	%r12, %rbx
	jne	.L78
	movl	4+d(%rip), %r8d
	movl	$0, cnt(%rip)
	testl	%r8d, %r8d
	js	.L90
	movl	8+d(%rip), %eax
	imull	4+b(%rip), %r8d
	testl	%eax, %eax
	js	.L91
	imull	8+b(%rip), %eax
	addl	%eax, %r8d
	movl	12+d(%rip), %eax
	testl	%eax, %eax
	js	.L92
	imull	12+b(%rip), %eax
	addl	%eax, %r8d
	movl	16+d(%rip), %eax
	testl	%eax, %eax
	js	.L93
	imull	16+b(%rip), %eax
	addl	%eax, %r8d
	movl	20+d(%rip), %eax
	testl	%eax, %eax
	js	.L94
	imull	20+b(%rip), %eax
	movl	24+d(%rip), %r10d
	addl	%eax, %r8d
	testl	%r10d, %r10d
	js	.L95
	imull	24+b(%rip), %r10d
	movl	28+d(%rip), %r11d
	addl	%r8d, %r10d
	testl	%r11d, %r11d
	js	.L96
	movl	32+d(%rip), %eax
	imull	28+b(%rip), %r11d
	testl	%eax, %eax
	js	.L97
	imull	32+b(%rip), %eax
	movl	$9, %ebx
	addl	%eax, %r11d
	movl	36+d(%rip), %eax
	testl	%eax, %eax
	js	.L80
	imull	36+b(%rip), %eax
	addl	%r11d, %eax
	cmpl	%r10d, %eax
	jne	.L82
	movl	$1, cnt(%rip)
.L82:
	movl	cnt(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L96:
	.cfi_restore_state
	xorl	%r11d, %r11d
	movl	$7, %ebx
.L80:
	leaq	4+f(%rip), %r8
	movl	$1, %r9d
	leaq	b(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L89:
	movl	(%r8), %eax
	testl	%eax, %eax
	jne	.L88
	movslq	%ebx, %rax
	movl	$1, (%r8)
	leal	1(%rbx), %edi
	movl	%r10d, %esi
	movl	0(%rbp,%rax,4), %edx
	imull	%r9d, %edx
	addl	%r11d, %edx
	call	combi
	movl	$0, (%r8)
.L88:
	addl	$1, %r9d
	addq	$4, %r8
	cmpl	$10, %r9d
	jne	.L89
	jmp	.L82
.L90:
	xorl	%r8d, %r8d
	movl	$1, %r11d
.L79:
	leaq	4+f(%rip), %r9
	movl	$1, %r10d
	leaq	b(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L86:
	movl	(%r9), %edx
	testl	%edx, %edx
	jne	.L85
	movslq	%r11d, %rax
	movl	$1, (%r9)
	leal	1(%r11), %edi
	xorl	%edx, %edx
	movl	(%rbx,%rax,4), %esi
	imull	%r10d, %esi
	addl	%r8d, %esi
	call	combi
	movl	$0, (%r9)
.L85:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	$10, %r10d
	jne	.L86
	jmp	.L82
.L91:
	movl	$2, %r11d
	jmp	.L79
.L92:
	movl	$3, %r11d
	jmp	.L79
.L93:
	movl	$4, %r11d
	jmp	.L79
.L94:
	movl	$5, %r11d
	jmp	.L79
.L95:
	movl	$6, %r11d
	jmp	.L79
.L97:
	movl	$8, %ebx
	jmp	.L80
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	b
	.data
	.align 32
	.type	b, @object
	.size	b, 40
b:
	.long	0
	.long	1
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 40
f:
	.zero	40
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 40
d:
	.zero	40
	.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
	.p2align 4
	.globl	combi
	.type	combi, @function
combi:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	movl	%edx, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	cmpl	$10, %edi
	je	.L2
	leaq	d(%rip), %rax
	movslq	%edi, %rsi
	movl	%edi, %ebx
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L3
	leaq	b(%rip), %rdx
	imull	(%rdx,%rsi,4), %ecx
	leal	1(%rdi), %esi
	cmpl	$6, %edi
	jg	.L4
	addl	%ecx, %ebp
.L5:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	2(%rbx), %edi
	cmpl	$6, %esi
	jg	.L7
	addl	%ecx, %ebp
.L8:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	3(%rbx), %esi
	cmpl	$6, %edi
	jg	.L9
	addl	%ecx, %ebp
.L10:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	4(%rbx), %edi
	cmpl	$6, %esi
	jg	.L11
	addl	%ecx, %ebp
.L12:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	5(%rbx), %esi
	cmpl	$6, %edi
	jg	.L13
	addl	%ecx, %ebp
.L14:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	6(%rbx), %edi
	cmpl	$6, %esi
	jg	.L15
	addl	%ecx, %ebp
.L16:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	leal	7(%rbx), %esi
	cmpl	$6, %edi
	jg	.L17
	addl	%ecx, %ebp
.L18:
	movslq	%esi, %rdi
	movl	(%rax,%rdi,4), %ecx
	testl	%ecx, %ecx
	js	.L39
	imull	(%rdx,%rdi,4), %ecx
	leal	8(%rbx), %edi
	cmpl	$6, %esi
	jg	.L19
	addl	%ecx, %ebp
.L20:
	movslq	%edi, %rsi
	movl	(%rax,%rsi,4), %ecx
	testl	%ecx, %ecx
	js	.L40
	imull	(%rdx,%rsi,4), %ecx
	addl	$9, %ebx
	cmpl	$6, %edi
	jg	.L21
	addl	%ecx, %ebp
.L22:
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	testl	%eax, %eax
	js	.L3
	imull	(%rdx,%rcx,4), %eax
	addl	%eax, %r12d
.L2:
	cmpl	%r12d, %ebp
	je	.L75
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L39:
	movl	%esi, %ebx
.L3:
	leaq	4+f(%rip), %r13
	movl	$1, %r14d
	leaq	b(%rip), %r15
	cmpl	$6, %ebx
	jg	.L31
	.p2align 4,,10
	.p2align 3
.L28:
	movl	0(%r13), %edx
	testl	%edx, %edx
	jne	.L27
	movslq	%ebx, %rax
	leal	1(%rbx), %edi
	movl	%r12d, %edx
	movl	$1, 0(%r13)
	movl	(%r15,%rax,4), %esi
	imull	%r14d, %esi
	addl	%ebp, %esi
	call	combi
	movl	$0, 0(%r13)
.L27:
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	$10, %r14d
	jne	.L28
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	movl	0(%r13), %eax
	testl	%eax, %eax
	jne	.L30
	movslq	%ebx, %rax
	leal	1(%rbx), %edi
	movl	%ebp, %esi
	movl	$1, 0(%r13)
	movl	(%r15,%rax,4), %edx
	imull	%r14d, %edx
	addl	%r12d, %edx
	call	combi
	movl	$0, 0(%r13)
.L30:
	addl	$1, %r14d
	addq	$4, %r13
	cmpl	$10, %r14d
	jne	.L31
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L8
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L12
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L75:
	addl	$1, cnt(%rip)
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L16
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	addl	%ecx, %r12d
	cmpl	$10, %esi
	jne	.L18
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	addl	%ecx, %r12d
	cmpl	$10, %edi
	jne	.L20
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	addl	%ecx, %r12d
	cmpl	$10, %ebx
	jne	.L22
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L40:
	movl	%edi, %ebx
	jmp	.L3
	.cfi_endproc
.LFE23:
	.size	combi, .-combi
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	%xmm0, %xmm0
	leaq	f(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	4+d(%rip), %rbx
	leaq	36(%rbx), %r12
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movups	%xmm0, 4+f(%rip)
	movl	$0, 36+f(%rip)
	movups	%xmm0, 20+f(%rip)
	.p2align 4,,10
	.p2align 3
.L78:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	(%rbx), %rax
	testl	%eax, %eax
	js	.L77
	movl	$1, 0(%r13,%rax,4)
.L77:
	addq	$4, %rbx
	cmpq	%r12, %rbx
	jne	.L78
	movl	4+d(%rip), %r8d
	movl	$0, cnt(%rip)
	testl	%r8d, %r8d
	js	.L90
	movl	8+d(%rip), %eax
	imull	4+b(%rip), %r8d
	testl	%eax, %eax
	js	.L91
	imull	8+b(%rip), %eax
	addl	%eax, %r8d
	movl	12+d(%rip), %eax
	testl	%eax, %eax
	js	.L92
	imull	12+b(%rip), %eax
	addl	%eax, %r8d
	movl	16+d(%rip), %eax
	testl	%eax, %eax
	js	.L93
	imull	16+b(%rip), %eax
	addl	%eax, %r8d
	movl	20+d(%rip), %eax
	testl	%eax, %eax
	js	.L94
	imull	20+b(%rip), %eax
	movl	24+d(%rip), %r10d
	addl	%eax, %r8d
	testl	%r10d, %r10d
	js	.L95
	imull	24+b(%rip), %r10d
	movl	28+d(%rip), %r11d
	addl	%r8d, %r10d
	testl	%r11d, %r11d
	js	.L96
	movl	32+d(%rip), %eax
	imull	28+b(%rip), %r11d
	testl	%eax, %eax
	js	.L97
	imull	32+b(%rip), %eax
	movl	$9, %ebx
	addl	%eax, %r11d
	movl	36+d(%rip), %eax
	testl	%eax, %eax
	js	.L80
	imull	36+b(%rip), %eax
	addl	%r11d, %eax
	cmpl	%r10d, %eax
	jne	.L82
	movl	$1, cnt(%rip)
.L82:
	movl	cnt(%rip), %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L96:
	.cfi_restore_state
	xorl	%r11d, %r11d
	movl	$7, %ebx
.L80:
	leaq	4+f(%rip), %r8
	movl	$1, %r9d
	leaq	b(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L89:
	movl	(%r8), %eax
	testl	%eax, %eax
	jne	.L88
	movslq	%ebx, %rax
	movl	$1, (%r8)
	leal	1(%rbx), %edi
	movl	%r10d, %esi
	movl	0(%rbp,%rax,4), %edx
	imull	%r9d, %edx
	addl	%r11d, %edx
	call	combi
	movl	$0, (%r8)
.L88:
	addl	$1, %r9d
	addq	$4, %r8
	cmpl	$10, %r9d
	jne	.L89
	jmp	.L82
.L90:
	xorl	%r8d, %r8d
	movl	$1, %r11d
.L79:
	leaq	4+f(%rip), %r9
	movl	$1, %r10d
	leaq	b(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L86:
	movl	(%r9), %edx
	testl	%edx, %edx
	jne	.L85
	movslq	%r11d, %rax
	movl	$1, (%r9)
	leal	1(%r11), %edi
	xorl	%edx, %edx
	movl	(%rbx,%rax,4), %esi
	imull	%r10d, %esi
	addl	%r8d, %esi
	call	combi
	movl	$0, (%r9)
.L85:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	$10, %r10d
	jne	.L86
	jmp	.L82
.L91:
	movl	$2, %r11d
	jmp	.L79
.L92:
	movl	$3, %r11d
	jmp	.L79
.L93:
	movl	$4, %r11d
	jmp	.L79
.L94:
	movl	$5, %r11d
	jmp	.L79
.L95:
	movl	$6, %r11d
	jmp	.L79
.L97:
	movl	$8, %ebx
	jmp	.L80
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.globl	b
	.data
	.align 32
	.type	b, @object
	.size	b, 40
b:
	.long	0
	.long	1
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 40
f:
	.zero	40
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 40
d:
	.zero	40
	.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:

// Aizu Vol-3 0327: Alphametic
// 2017.8.25

#include <stdio.h>

int d[10], f[10];
int b[10] = { 0, 1, 10, 1, 100, 10, 1, 100, 10, 1 };
int cnt;

void combi(int i, int n, int s)
{
	int j, t;

	if (i == 10) { if (n == s) cnt++; return; }
	if (d[i] >= 0) {
		t = d[i] * b[i];
		if (i >= 7)	combi(i + 1, n, s + t);
		else        combi(i + 1, n + t, s);
	} else {
		for (j = 1; j <= 9; j++) {
			if (f[j]) continue;
			f[j] = 1;
			t = j * b[i];
			if (i >= 7)	combi(i + 1, n, s + t);
			else        combi(i + 1, n + t, s);
			f[j] = 0;
		}
	}
}

int main()
{
	int i;

	for (i = 1; i <= 9; i++) f[i] = 0;
	for (i = 1; i <= 9; i++) {
		scanf("%d", d + i);
		if (d[i] >= 0) f[d[i]] = 1;
	}
	cnt = 0;
	combi(1, 0, 0);
	printf("%d\n", cnt);
	return 0;
}
7 6 5 2 8 9 2 3 4
 7 5 -1 1 -1 9 2 3 4
 7 6 -1 1 -1 14 2 3 4
 7 6 5 2 8 9 1 3 4
 5 6 -1 1 -1 14 2 3 4
 7 6 5 3 8 9 1 3 4
 7 6 5 3 8 3 1 3 4
 7 6 5 3 8 3 1 1 4
 7 6 5 3 0 3 1 1 4
 7 6 2 3 0 3 1 1 4

0
 1
 0
 0
 0
 0
 0
 0
 0
 0

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

```c
// Aizu Vol-3 0327: Alphametic
// 2017.8.25

#include <stdio.h>

int d[10], f[10];
int b[10] = { 0, 1, 10, 1, 100, 10, 1, 100, 10, 1 };
int cnt;

void combi(int i, int n, int s)
{
	int j, t;

	if (i == 10) { if (n == s) cnt++; return; }
	if (d[i] >= 0) {
		t = d[i] * b[i];
		if (i >= 7)	combi(i + 1, n, s + t);
		else        combi(i + 1, n + t, s);
	} else {
		for (j = 1; j <= 9; j++) {
			if (f[j]) continue;
			f[j] = 1;
			t = j * b[i];
			if (i >= 7)	combi(i + 1, n, s + t);
			else        combi(i + 1, n + t, s);
			f[j] = 0;
		}
	}
}

int main()
{
	int i;

	for (i = 1; i <= 9; i++) f[i] = 0;
	for (i = 1; i <= 9; i++) {
		scanf("%d", d + i);
		if (d[i] >= 0) f[d[i]] = 1;
	}
	cnt = 0;
	combi(1, 0, 0);
	printf("%d\n", cnt);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 40
d:
	.zero	40
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 40
f:
	.zero	40
	.globl	b
	.data
	.align 32
	.type	b, @object
	.size	b, 40
b:
	.long	0
	.long	1
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	combi
	.type	combi, @function
combi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L2
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L13
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	jmp	.L13
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L6
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L6:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L5:
	movl	$1, -8(%rbp)
	jmp	.L7
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L10
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L11
.L10:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L14:
	nop
.L9:
	addl	$1, -8(%rbp)
.L7:
	cmpl	$9, -8(%rbp)
	jle	.L12
	jmp	.L1
.L13:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	combi, .-combi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$1, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	cmpl	$9, -4(%rbp)
	jle	.L17
	movl	$1, -4(%rbp)
	jmp	.L18
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
.L19:
	addl	$1, -4(%rbp)
.L18:
	cmpl	$9, -4(%rbp)
	jle	.L20
	movl	$0, cnt(%rip)
	movl	$0, %edx
	movl	$0, %esi
	movl	$1, %edi
	call	combi
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 40
d:
	.zero	40
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 40
f:
	.zero	40
	.globl	b
	.data
	.align 32
	.type	b, @object
	.size	b, 40
b:
	.long	0
	.long	1
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.long	100
	.long	10
	.long	1
	.globl	cnt
	.bss
	.align 4
	.type	cnt, @object
	.size	cnt, 4
cnt:
	.zero	4
	.text
	.globl	combi
	.type	combi, @function
combi:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	cmpl	$10, -20(%rbp)
	jne	.L2
	movl	-24(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jne	.L13
	movl	cnt(%rip), %eax
	addl	$1, %eax
	movl	%eax, cnt(%rip)
	jmp	.L13
.L2:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L5
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L6
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L6:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
	jmp	.L1
.L5:
	movl	$1, -8(%rbp)
	jmp	.L7
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-8(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	cmpl	$6, -20(%rbp)
	jle	.L10
	movl	-28(%rbp), %edx
	movl	-4(%rbp), %eax
	addl	%eax, %edx
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%ecx, %edi
	call	combi
	jmp	.L11
.L10:
	movl	-24(%rbp), %edx
	movl	-4(%rbp), %eax
	leal	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-28(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %edi
	call	combi
.L11:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L14:
	nop
.L9:
	addl	$1, -8(%rbp)
.L7:
	cmpl	$9, -8(%rbp)
	jle	.L12
	jmp	.L1
.L13:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	combi, .-combi
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$1, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	cmpl	$9, -4(%rbp)
	jle	.L17
	movl	$1, -4(%rbp)
	jmp	.L18
.L20:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L19
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	f(%rip), %rax
	movl	$1, (%rdx,%rax)
.L19:
	addl	$1, -4(%rbp)
.L18:
	cmpl	$9, -4(%rbp)
	jle	.L20
	movl	$0, cnt(%rip)
	movl	$0, %edx
	movl	$0, %esi
	movl	$1, %edi
	call	combi
	movl	cnt(%rip), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
