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>
#define SIZE 6

int bi1[SIZE], bi2[SIZE];
const int disit[SIZE + 1] = {1, 2, 4, 8, 16, 32, 64};

void de_bi1(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi1[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

void de_bi2(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi2[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

int main(void){
  int row, col, n, sum = 0, ans = 0, i, j, k, l;
  char bw[SIZE][SIZE];
  scanf("%d %d %d", &row, &col, &n);
  
  for(i = 0; i < row; i++){
    for(j = 0; j < col; j++){
      scanf(" %c", &bw[i][j]);
    }
  }
  
  for(i = 0; i < disit[row]; i++){
    de_bi1(i);
    for(j = 0; j < disit[col]; j++){
      de_bi2(j);
      for(k = 0; k < row; k++){
        if(bi1[k] == 1){
          for(l = 0; l < col; l++){
            if(bi2[l] == 1){
              if(bw[k][l] == '#')
                sum++;
            }
          }
        }
      }
      if(sum == n)ans++;
      sum = 0;
    }
  }
  
  printf("%d", ans);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bi1
	.bss
	.align 16
	.type	bi1, @object
	.size	bi1, 24
bi1:
	.zero	24
	.globl	bi2
	.align 16
	.type	bi2, @object
	.size	bi2, 24
bi2:
	.zero	24
	.globl	disit
	.section	.rodata
	.align 16
	.type	disit, @object
	.size	disit, 28
disit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.text
	.globl	de_bi1
	.type	de_bi1, @function
de_bi1:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L3
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	de_bi1, .-de_bi1
	.globl	de_bi2
	.type	de_bi2, @function
de_bi2:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	de_bi2, .-de_bi2
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	leaq	-76(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -64(%rbp)
	jmp	.L10
.L13:
	movl	$0, -60(%rbp)
	jmp	.L11
.L12:
	leaq	-48(%rbp), %rcx
	movl	-60(%rbp), %eax
	movslq	%eax, %rsi
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L11:
	movl	-80(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L12
	addl	$1, -64(%rbp)
.L10:
	movl	-84(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L13
	movl	$0, -64(%rbp)
	jmp	.L14
.L24:
	movl	-64(%rbp), %eax
	movl	%eax, %edi
	call	de_bi1
	movl	$0, -60(%rbp)
	jmp	.L15
.L23:
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	de_bi2
	movl	$0, -56(%rbp)
	jmp	.L16
.L21:
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$0, -52(%rbp)
	jmp	.L18
.L20:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$48, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	addl	$1, -72(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L18:
	movl	-80(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L20
.L17:
	addl	$1, -56(%rbp)
.L16:
	movl	-84(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L21
	movl	-76(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jne	.L22
	addl	$1, -68(%rbp)
.L22:
	movl	$0, -72(%rbp)
	addl	$1, -60(%rbp)
.L15:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L23
	addl	$1, -64(%rbp)
.L14:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L24
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	de_bi1
	.type	de_bi1, @function
de_bi1:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	leal	31(%rdi), %ecx
	sarl	$31, %edx
	shrl	$27, %edx
	leal	(%rdi,%rdx), %eax
	andl	$31, %eax
	subl	%edx, %eax
	leal	15(%rax), %edx
	cmovns	%eax, %edx
	sarl	$4, %edx
	testl	%edi, %edi
	cmovns	%edi, %ecx
	movd	%edx, %xmm0
	cltd
	shrl	$28, %edx
	addl	%edx, %eax
	sarl	$5, %ecx
	andl	$15, %eax
	movd	%ecx, %xmm2
	subl	%edx, %eax
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, 16+bi1(%rip)
	cltd
	shrl	$29, %edx
	leal	(%rax,%rdx), %ecx
	andl	$7, %ecx
	subl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$31, %edx
	shrl	$30, %edx
	leal	(%rcx,%rdx), %esi
	andl	$3, %esi
	subl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	leal	(%rsi,%rdi), %edx
	andl	$1, %edx
	subl	%edi, %edx
	movd	%edx, %xmm0
	movl	%edi, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	leal	3(%rcx), %edx
	sarl	%esi
	testl	%ecx, %ecx
	cmovns	%ecx, %edx
	leal	7(%rax), %ecx
	movd	%esi, %xmm4
	punpckldq	%xmm4, %xmm0
	sarl	$2, %edx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	movd	%edx, %xmm1
	sarl	$3, %eax
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, bi1(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	de_bi1, .-de_bi1
	.p2align 4
	.globl	de_bi2
	.type	de_bi2, @function
de_bi2:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	leal	31(%rdi), %ecx
	sarl	$31, %edx
	shrl	$27, %edx
	leal	(%rdi,%rdx), %eax
	andl	$31, %eax
	subl	%edx, %eax
	leal	15(%rax), %edx
	cmovns	%eax, %edx
	sarl	$4, %edx
	testl	%edi, %edi
	cmovns	%edi, %ecx
	movd	%edx, %xmm0
	cltd
	shrl	$28, %edx
	addl	%edx, %eax
	sarl	$5, %ecx
	andl	$15, %eax
	movd	%ecx, %xmm2
	subl	%edx, %eax
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, 16+bi2(%rip)
	cltd
	shrl	$29, %edx
	leal	(%rax,%rdx), %ecx
	andl	$7, %ecx
	subl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$31, %edx
	shrl	$30, %edx
	leal	(%rcx,%rdx), %esi
	andl	$3, %esi
	subl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	leal	(%rsi,%rdi), %edx
	andl	$1, %edx
	subl	%edi, %edx
	movd	%edx, %xmm0
	movl	%edi, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	leal	3(%rcx), %edx
	sarl	%esi
	testl	%ecx, %ecx
	cmovns	%ecx, %edx
	leal	7(%rax), %ecx
	movd	%esi, %xmm4
	punpckldq	%xmm4, %xmm0
	sarl	$2, %edx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	movd	%edx, %xmm1
	sarl	$3, %eax
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, bi2(%rip)
	ret
	.cfi_endproc
.LFE24:
	.size	de_bi2, .-de_bi2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L5
	movl	40(%rsp), %eax
	leaq	48(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	0(%rbp,%rbx), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L7
	movl	36(%rsp), %r14d
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jge	.L5
	addq	$6, %rbp
	testl	%eax, %eax
	jg	.L27
.L5:
	leaq	disit(%rip), %rax
	movslq	%r14d, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, 28(%rsp)
	testl	%edx, %edx
	jle	.L28
	movslq	40(%rsp), %rdx
	movl	$0, 24(%rsp)
	xorl	%r13d, %r13d
	movl	%r14d, 20(%rsp)
	movl	(%rax,%rdx,4), %eax
	movq	%rdx, %rbx
	leaq	4+bi1(%rip), %rdx
	movl	%eax, 12(%rsp)
	movl	44(%rsp), %eax
	movl	%eax, 16(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rdx,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movl	24(%rsp), %edi
	leaq	bi2(%rip), %r14
	movl	%edi, %eax
	movl	%edi, %edx
	andl	$31, %eax
	sarl	$5, %edx
	sarl	$4, %eax
	movd	%edx, %xmm5
	movd	%eax, %xmm0
	movl	%edi, %eax
	punpckldq	%xmm5, %xmm0
	andl	$1, %eax
	movq	%xmm0, 16+bi1(%rip)
	movd	%eax, %xmm0
	movl	%edi, %eax
	andl	$3, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	%edi, %eax
	andl	$15, %edi
	andl	$7, %eax
	movl	%edi, %ecx
	movd	%edx, %xmm7
	sarl	$2, %eax
	sarl	$3, %ecx
	punpckldq	%xmm7, %xmm0
	movd	%eax, %xmm1
	movd	%ecx, %xmm6
	leaq	bi1(%rip), %rax
	xorl	%ecx, %ecx
	punpckldq	%xmm6, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, (%rax)
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%ecx, %r10d
	movl	%ecx, %r12d
	movl	%ecx, %r9d
	movl	%ecx, %r8d
	andl	$31, %r10d
	sarl	$5, %r12d
	movl	%ecx, %edi
	andl	$15, %r9d
	sarl	$4, %r10d
	movd	%r12d, %xmm2
	andl	$7, %r8d
	andl	$3, %edi
	movd	%r10d, %xmm0
	movl	%ecx, %ebp
	sarl	$3, %r9d
	movl	20(%rsp), %edx
	punpckldq	%xmm2, %xmm0
	sarl	$2, %r8d
	andl	$1, %ebp
	movd	%r9d, %xmm3
	sarl	%edi
	movd	%r8d, %xmm1
	xorl	%r11d, %r11d
	movq	%xmm0, 16+bi2(%rip)
	movd	%edi, %xmm4
	movd	%ebp, %xmm0
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, (%r14)
	testl	%edx, %edx
	jle	.L24
	leaq	48(%rsp), %rdx
	leaq	bi1(%rip), %rax
	xorl	%r11d, %r11d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	addq	$6, %rdx
	cmpq	%rax, %rsi
	je	.L24
.L20:
	cmpl	$1, (%rax)
	jne	.L12
	testl	%ebx, %ebx
	jle	.L12
	testl	%ebp, %ebp
	je	.L13
	xorl	%r15d, %r15d
	cmpb	$35, (%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L13:
	cmpl	$1, %ebx
	je	.L12
	cmpl	$1, %edi
	jne	.L15
	xorl	%r15d, %r15d
	cmpb	$35, 1(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L15:
	cmpl	$2, %ebx
	je	.L12
	cmpl	$1, %r8d
	jne	.L16
	xorl	%r15d, %r15d
	cmpb	$35, 2(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L16:
	cmpl	$3, %ebx
	je	.L12
	cmpl	$1, %r9d
	jne	.L17
	xorl	%r15d, %r15d
	cmpb	$35, 3(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L17:
	cmpl	$4, %ebx
	je	.L12
	cmpl	$1, %r10d
	jne	.L18
	xorl	%r15d, %r15d
	cmpb	$35, 4(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L18:
	cmpl	$5, %ebx
	je	.L12
	cmpl	$1, %r12d
	jne	.L12
	xorl	%r15d, %r15d
	cmpb	$35, 5(%rdx)
	sete	%r15b
	addq	$4, %rax
	addq	$6, %rdx
	addl	%r15d, %r11d
	cmpq	%rax, %rsi
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	cmpl	%r11d, 16(%rsp)
	sete	%al
	addl	$1, %ecx
	addl	%eax, %r13d
	cmpl	12(%rsp), %ecx
	jne	.L25
.L22:
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	cmpl	28(%rsp), %eax
	jne	.L11
.L10:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$104, %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
.L28:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L10
.L56:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	disit
	.section	.rodata
	.align 16
	.type	disit, @object
	.size	disit, 28
disit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.globl	bi2
	.bss
	.align 16
	.type	bi2, @object
	.size	bi2, 24
bi2:
	.zero	24
	.globl	bi1
	.align 16
	.type	bi1, @object
	.size	bi1, 24
bi1:
	.zero	24
	.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	de_bi1
	.type	de_bi1, @function
de_bi1:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	leal	31(%rdi), %ecx
	sarl	$31, %edx
	shrl	$27, %edx
	leal	(%rdi,%rdx), %eax
	andl	$31, %eax
	subl	%edx, %eax
	leal	15(%rax), %edx
	cmovns	%eax, %edx
	sarl	$4, %edx
	testl	%edi, %edi
	cmovns	%edi, %ecx
	movd	%edx, %xmm0
	cltd
	shrl	$28, %edx
	addl	%edx, %eax
	sarl	$5, %ecx
	andl	$15, %eax
	movd	%ecx, %xmm2
	subl	%edx, %eax
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, 16+bi1(%rip)
	cltd
	shrl	$29, %edx
	leal	(%rax,%rdx), %ecx
	andl	$7, %ecx
	subl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$31, %edx
	shrl	$30, %edx
	leal	(%rcx,%rdx), %esi
	andl	$3, %esi
	subl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	leal	(%rsi,%rdi), %edx
	andl	$1, %edx
	subl	%edi, %edx
	movd	%edx, %xmm0
	movl	%edi, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	leal	3(%rcx), %edx
	sarl	%esi
	testl	%ecx, %ecx
	cmovns	%ecx, %edx
	leal	7(%rax), %ecx
	movd	%esi, %xmm4
	punpckldq	%xmm4, %xmm0
	sarl	$2, %edx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	movd	%edx, %xmm1
	sarl	$3, %eax
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, bi1(%rip)
	ret
	.cfi_endproc
.LFE23:
	.size	de_bi1, .-de_bi1
	.p2align 4
	.globl	de_bi2
	.type	de_bi2, @function
de_bi2:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %edx
	leal	31(%rdi), %ecx
	sarl	$31, %edx
	shrl	$27, %edx
	leal	(%rdi,%rdx), %eax
	andl	$31, %eax
	subl	%edx, %eax
	leal	15(%rax), %edx
	cmovns	%eax, %edx
	sarl	$4, %edx
	testl	%edi, %edi
	cmovns	%edi, %ecx
	movd	%edx, %xmm0
	cltd
	shrl	$28, %edx
	addl	%edx, %eax
	sarl	$5, %ecx
	andl	$15, %eax
	movd	%ecx, %xmm2
	subl	%edx, %eax
	punpckldq	%xmm2, %xmm0
	movq	%xmm0, 16+bi2(%rip)
	cltd
	shrl	$29, %edx
	leal	(%rax,%rdx), %ecx
	andl	$7, %ecx
	subl	%edx, %ecx
	movl	%ecx, %edx
	sarl	$31, %edx
	shrl	$30, %edx
	leal	(%rcx,%rdx), %esi
	andl	$3, %esi
	subl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	leal	(%rsi,%rdi), %edx
	andl	$1, %edx
	subl	%edi, %edx
	movd	%edx, %xmm0
	movl	%edi, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	leal	3(%rcx), %edx
	sarl	%esi
	testl	%ecx, %ecx
	cmovns	%ecx, %edx
	leal	7(%rax), %ecx
	movd	%esi, %xmm4
	punpckldq	%xmm4, %xmm0
	sarl	$2, %edx
	testl	%eax, %eax
	cmovs	%ecx, %eax
	movd	%edx, %xmm1
	sarl	$3, %eax
	movd	%eax, %xmm3
	punpckldq	%xmm3, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, bi2(%rip)
	ret
	.cfi_endproc
.LFE24:
	.size	de_bi2, .-de_bi2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$104, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rcx
	leaq	40(%rsp), %rdx
	leaq	36(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r14d
	testl	%r14d, %r14d
	jle	.L5
	movl	40(%rsp), %eax
	leaq	48(%rsp), %rbp
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	0(%rbp,%rbx), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	cmpl	%ebx, %eax
	jg	.L7
	movl	36(%rsp), %r14d
	addl	$1, %r13d
	cmpl	%r14d, %r13d
	jge	.L5
	addq	$6, %rbp
	testl	%eax, %eax
	jg	.L27
.L5:
	leaq	disit(%rip), %rax
	movslq	%r14d, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%edx, 28(%rsp)
	testl	%edx, %edx
	jle	.L28
	movslq	40(%rsp), %rdx
	movl	$0, 24(%rsp)
	xorl	%r13d, %r13d
	movl	%r14d, 20(%rsp)
	movl	(%rax,%rdx,4), %eax
	movq	%rdx, %rbx
	leaq	4+bi1(%rip), %rdx
	movl	%eax, 12(%rsp)
	movl	44(%rsp), %eax
	movl	%eax, 16(%rsp)
	leal	-1(%r14), %eax
	leaq	(%rdx,%rax,4), %rsi
	.p2align 4,,10
	.p2align 3
.L11:
	movl	24(%rsp), %edi
	leaq	bi2(%rip), %r14
	movl	%edi, %eax
	movl	%edi, %edx
	andl	$31, %eax
	sarl	$5, %edx
	sarl	$4, %eax
	movd	%edx, %xmm5
	movd	%eax, %xmm0
	movl	%edi, %eax
	punpckldq	%xmm5, %xmm0
	andl	$1, %eax
	movq	%xmm0, 16+bi1(%rip)
	movd	%eax, %xmm0
	movl	%edi, %eax
	andl	$3, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	%edi, %eax
	andl	$15, %edi
	andl	$7, %eax
	movl	%edi, %ecx
	movd	%edx, %xmm7
	sarl	$2, %eax
	sarl	$3, %ecx
	punpckldq	%xmm7, %xmm0
	movd	%eax, %xmm1
	movd	%ecx, %xmm6
	leaq	bi1(%rip), %rax
	xorl	%ecx, %ecx
	punpckldq	%xmm6, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, (%rax)
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L22
	.p2align 4,,10
	.p2align 3
.L25:
	movl	%ecx, %r10d
	movl	%ecx, %r12d
	movl	%ecx, %r9d
	movl	%ecx, %r8d
	andl	$31, %r10d
	sarl	$5, %r12d
	movl	%ecx, %edi
	andl	$15, %r9d
	sarl	$4, %r10d
	movd	%r12d, %xmm2
	andl	$7, %r8d
	andl	$3, %edi
	movd	%r10d, %xmm0
	movl	%ecx, %ebp
	sarl	$3, %r9d
	movl	20(%rsp), %edx
	punpckldq	%xmm2, %xmm0
	sarl	$2, %r8d
	andl	$1, %ebp
	movd	%r9d, %xmm3
	sarl	%edi
	movd	%r8d, %xmm1
	xorl	%r11d, %r11d
	movq	%xmm0, 16+bi2(%rip)
	movd	%edi, %xmm4
	movd	%ebp, %xmm0
	punpckldq	%xmm3, %xmm1
	punpckldq	%xmm4, %xmm0
	punpcklqdq	%xmm1, %xmm0
	movaps	%xmm0, (%r14)
	testl	%edx, %edx
	jle	.L24
	leaq	48(%rsp), %rdx
	leaq	bi1(%rip), %rax
	xorl	%r11d, %r11d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	addq	$6, %rdx
	cmpq	%rax, %rsi
	je	.L24
.L20:
	cmpl	$1, (%rax)
	jne	.L12
	testl	%ebx, %ebx
	jle	.L12
	testl	%ebp, %ebp
	je	.L13
	xorl	%r15d, %r15d
	cmpb	$35, (%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L13:
	cmpl	$1, %ebx
	je	.L12
	cmpl	$1, %edi
	jne	.L15
	xorl	%r15d, %r15d
	cmpb	$35, 1(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L15:
	cmpl	$2, %ebx
	je	.L12
	cmpl	$1, %r8d
	jne	.L16
	xorl	%r15d, %r15d
	cmpb	$35, 2(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L16:
	cmpl	$3, %ebx
	je	.L12
	cmpl	$1, %r9d
	jne	.L17
	xorl	%r15d, %r15d
	cmpb	$35, 3(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L17:
	cmpl	$4, %ebx
	je	.L12
	cmpl	$1, %r10d
	jne	.L18
	xorl	%r15d, %r15d
	cmpb	$35, 4(%rdx)
	sete	%r15b
	addl	%r15d, %r11d
.L18:
	cmpl	$5, %ebx
	je	.L12
	cmpl	$1, %r12d
	jne	.L12
	xorl	%r15d, %r15d
	cmpb	$35, 5(%rdx)
	sete	%r15b
	addq	$4, %rax
	addq	$6, %rdx
	addl	%r15d, %r11d
	cmpq	%rax, %rsi
	jne	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	cmpl	%r11d, 16(%rsp)
	sete	%al
	addl	$1, %ecx
	addl	%eax, %r13d
	cmpl	12(%rsp), %ecx
	jne	.L25
.L22:
	addl	$1, 24(%rsp)
	movl	24(%rsp), %eax
	cmpl	28(%rsp), %eax
	jne	.L11
.L10:
	xorl	%eax, %eax
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L56
	addq	$104, %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
.L28:
	.cfi_restore_state
	xorl	%r13d, %r13d
	jmp	.L10
.L56:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	disit
	.section	.rodata
	.align 16
	.type	disit, @object
	.size	disit, 28
disit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.globl	bi2
	.bss
	.align 16
	.type	bi2, @object
	.size	bi2, 24
bi2:
	.zero	24
	.globl	bi1
	.align 16
	.type	bi1, @object
	.size	bi1, 24
bi1:
	.zero	24
	.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>
#define SIZE 6

int bi1[SIZE], bi2[SIZE];
const int disit[SIZE + 1] = {1, 2, 4, 8, 16, 32, 64};

void de_bi1(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi1[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

void de_bi2(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi2[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

int main(void){
  int row, col, n, sum = 0, ans = 0, i, j, k, l;
  char bw[SIZE][SIZE];
  scanf("%d %d %d", &row, &col, &n);
  
  for(i = 0; i < row; i++){
    for(j = 0; j < col; j++){
      scanf(" %c", &bw[i][j]);
    }
  }
  
  for(i = 0; i < disit[row]; i++){
    de_bi1(i);
    for(j = 0; j < disit[col]; j++){
      de_bi2(j);
      for(k = 0; k < row; k++){
        if(bi1[k] == 1){
          for(l = 0; l < col; l++){
            if(bi2[l] == 1){
              if(bw[k][l] == '#')
                sum++;
            }
          }
        }
      }
      if(sum == n)ans++;
      sum = 0;
    }
  }
  
  printf("%d", ans);
  return 0;
}
2 2 4
..#
 4 3 2
..#
###
 4 3 2
..#
$##
 2 3 0
.-#
 3 3 0
/,#
 6 3 0
/,#
 6 3 1
/,#
 6 3 0
/,$
 6 2 0
/,$
 1 4 0

0 20 16 24 48 384 128 512 256 32
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>
#define SIZE 6

int bi1[SIZE], bi2[SIZE];
const int disit[SIZE + 1] = {1, 2, 4, 8, 16, 32, 64};

void de_bi1(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi1[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

void de_bi2(int de){
  int i;
  for(i = SIZE-1; i >= 0; i--){
    bi2[i] = de / disit[i];
    de %= disit[i];
  }
  return;
}

int main(void){
  int row, col, n, sum = 0, ans = 0, i, j, k, l;
  char bw[SIZE][SIZE];
  scanf("%d %d %d", &row, &col, &n);
  
  for(i = 0; i < row; i++){
    for(j = 0; j < col; j++){
      scanf(" %c", &bw[i][j]);
    }
  }
  
  for(i = 0; i < disit[row]; i++){
    de_bi1(i);
    for(j = 0; j < disit[col]; j++){
      de_bi2(j);
      for(k = 0; k < row; k++){
        if(bi1[k] == 1){
          for(l = 0; l < col; l++){
            if(bi2[l] == 1){
              if(bw[k][l] == '#')
                sum++;
            }
          }
        }
      }
      if(sum == n)ans++;
      sum = 0;
    }
  }
  
  printf("%d", ans);
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bi1
	.bss
	.align 16
	.type	bi1, @object
	.size	bi1, 24
bi1:
	.zero	24
	.globl	bi2
	.align 16
	.type	bi2, @object
	.size	bi2, 24
bi2:
	.zero	24
	.globl	disit
	.section	.rodata
	.align 16
	.type	disit, @object
	.size	disit, 28
disit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.text
	.globl	de_bi1
	.type	de_bi1, @function
de_bi1:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L3
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	de_bi1, .-de_bi1
	.globl	de_bi2
	.type	de_bi2, @function
de_bi2:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	de_bi2, .-de_bi2
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	leaq	-76(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -64(%rbp)
	jmp	.L10
.L13:
	movl	$0, -60(%rbp)
	jmp	.L11
.L12:
	leaq	-48(%rbp), %rcx
	movl	-60(%rbp), %eax
	movslq	%eax, %rsi
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L11:
	movl	-80(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L12
	addl	$1, -64(%rbp)
.L10:
	movl	-84(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L13
	movl	$0, -64(%rbp)
	jmp	.L14
.L24:
	movl	-64(%rbp), %eax
	movl	%eax, %edi
	call	de_bi1
	movl	$0, -60(%rbp)
	jmp	.L15
.L23:
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	de_bi2
	movl	$0, -56(%rbp)
	jmp	.L16
.L21:
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$0, -52(%rbp)
	jmp	.L18
.L20:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$48, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	addl	$1, -72(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L18:
	movl	-80(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L20
.L17:
	addl	$1, -56(%rbp)
.L16:
	movl	-84(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L21
	movl	-76(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jne	.L22
	addl	$1, -68(%rbp)
.L22:
	movl	$0, -72(%rbp)
	addl	$1, -60(%rbp)
.L15:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L23
	addl	$1, -64(%rbp)
.L14:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L24
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	bi1
	.bss
	.align 16
	.type	bi1, @object
	.size	bi1, 24
bi1:
	.zero	24
	.globl	bi2
	.align 16
	.type	bi2, @object
	.size	bi2, 24
bi2:
	.zero	24
	.globl	disit
	.section	.rodata
	.align 16
	.type	disit, @object
	.size	disit, 28
disit:
	.long	1
	.long	2
	.long	4
	.long	8
	.long	16
	.long	32
	.long	64
	.text
	.globl	de_bi1
	.type	de_bi1, @function
de_bi1:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L2
.L3:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L3
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	de_bi1, .-de_bi1
	.globl	de_bi2
	.type	de_bi2, @function
de_bi2:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$5, -4(%rbp)
	jmp	.L6
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-20(%rbp), %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-20(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%edx, -20(%rbp)
	subl	$1, -4(%rbp)
.L6:
	cmpl	$0, -4(%rbp)
	jns	.L7
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	de_bi2, .-de_bi2
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	leaq	-76(%rbp), %rcx
	leaq	-80(%rbp), %rdx
	leaq	-84(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -64(%rbp)
	jmp	.L10
.L13:
	movl	$0, -60(%rbp)
	jmp	.L11
.L12:
	leaq	-48(%rbp), %rcx
	movl	-60(%rbp), %eax
	movslq	%eax, %rsi
	movl	-64(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -60(%rbp)
.L11:
	movl	-80(%rbp), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L12
	addl	$1, -64(%rbp)
.L10:
	movl	-84(%rbp), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L13
	movl	$0, -64(%rbp)
	jmp	.L14
.L24:
	movl	-64(%rbp), %eax
	movl	%eax, %edi
	call	de_bi1
	movl	$0, -60(%rbp)
	jmp	.L15
.L23:
	movl	-60(%rbp), %eax
	movl	%eax, %edi
	call	de_bi2
	movl	$0, -56(%rbp)
	jmp	.L16
.L21:
	movl	-56(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi1(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L17
	movl	$0, -52(%rbp)
	jmp	.L18
.L20:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	bi2(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	jne	.L19
	movl	-52(%rbp), %eax
	movslq	%eax, %rcx
	movl	-56(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$48, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L19
	addl	$1, -72(%rbp)
.L19:
	addl	$1, -52(%rbp)
.L18:
	movl	-80(%rbp), %eax
	cmpl	%eax, -52(%rbp)
	jl	.L20
.L17:
	addl	$1, -56(%rbp)
.L16:
	movl	-84(%rbp), %eax
	cmpl	%eax, -56(%rbp)
	jl	.L21
	movl	-76(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jne	.L22
	addl	$1, -68(%rbp)
.L22:
	movl	$0, -72(%rbp)
	addl	$1, -60(%rbp)
.L15:
	movl	-80(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -60(%rbp)
	jl	.L23
	addl	$1, -64(%rbp)
.L14:
	movl	-84(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	disit(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -64(%rbp)
	jl	.L24
	movl	-68(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
