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<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
long ans=0;


int count_753(long s,long N,int a, int b, int c){
    if(s>N) return ans;

    if(a+b+c==3) ans++;

    count_753((s*10+3),N,1,b,c);
    count_753((s*10+5),N,a,1,c);
    count_753((s*10+7),N,a,b,1);
}

int main(void){
    long N;
    scanf("%ld",&N);

    ans=count_753(0,N,0,0,0);

    printf("%ld\n",ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	count_753
	.type	count_753, @function
count_753:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -28(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	ans(%rip), %rax
	jmp	.L1
.L2:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	$3, %eax
	jne	.L4
	movq	ans(%rip), %rax
	addq	$1, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	$1, %edx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	5(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	$1, %ecx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	7(%rax), %rdi
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	$1, %r8d
	movq	%rax, %rsi
	call	count_753
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count_753, .-count_753
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movl	$0, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movq	%rax, %rsi
	movl	$0, %edi
	call	count_753
	cltq
	movq	%rax, ans(%rip)
	movq	ans(%rip), %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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	count_753
	.type	count_753, @function
count_753:
.LFB39:
	.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
	movq	%rsi, %r13
	movl	%edx, %esi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edx, 72(%rsp)
	addl	%ecx, %edx
	movl	%ecx, 76(%rsp)
	movl	%edx, 68(%rsp)
	cmpq	%r13, %rdi
	jg	.L38
	addl	$1, %ecx
	movq	%r13, %r14
	movq	%rdi, %rax
	movl	%r8d, %r13d
	movl	%ecx, 40(%rsp)
	leal	1(%rsi), %ecx
	addl	$2, %esi
	movl	%ecx, 44(%rsp)
	movl	%esi, 64(%rsp)
.L39:
	movl	68(%rsp), %esi
	leal	0(%r13,%rsi), %edx
	cmpl	$3, %edx
	jne	.L3
	addq	$1, ans(%rip)
.L3:
	leaq	(%rax,%rax,4), %rax
	movl	%r13d, 8(%rsp)
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, 48(%rsp)
	cmpq	%r14, %rdx
	jg	.L28
	movl	%r13d, 56(%rsp)
	movl	76(%rsp), %r13d
.L29:
	movl	8(%rsp), %eax
	addl	40(%rsp), %eax
	cmpl	$3, %eax
	jne	.L7
	addq	$1, ans(%rip)
.L7:
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	movq	%rax, 32(%rsp)
	leaq	3(%rax), %r15
	movl	8(%rsp), %eax
	movl	%eax, (%rsp)
	cmpq	%r15, %r14
	jl	.L25
	movq	%r15, %rbp
	movq	%r14, %r15
.L8:
	movl	(%rsp), %eax
	addl	40(%rsp), %eax
	cmpl	$3, %eax
	jne	.L11
	addq	$1, ans(%rip)
.L11:
	leaq	0(%rbp,%rbp,4), %rbp
	leaq	(%rbp,%rbp), %rax
	movl	(%rsp), %ebp
	leaq	3(%rax), %rbx
	movq	%rax, 24(%rsp)
	movl	%ebp, %r12d
	cmpq	%rbx, %r15
	jl	.L22
.L12:
	movl	40(%rsp), %eax
	addl	%r12d, %eax
	cmpl	$3, %eax
	jne	.L15
	addq	$1, ans(%rip)
.L15:
	leaq	(%rbx,%rbx,4), %r14
	movl	%r12d, %ebp
	addq	%r14, %r14
	leaq	3(%r14), %rax
	cmpq	%rax, %r15
	jl	.L20
	movl	%r12d, 16(%rsp)
	movl	%r13d, %r12d
	movl	%ebp, %r13d
	movl	40(%rsp), %ebp
	leal	0(%r13,%rbp), %edx
	cmpl	$3, %edx
	jne	.L19
.L122:
	addq	$1, ans(%rip)
.L19:
	leaq	(%rax,%rax,4), %rax
	movl	%r13d, %r8d
	movl	%r12d, %ecx
	movl	$1, %edx
	leaq	(%rax,%rax), %rbx
	movq	%r15, %rsi
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r13d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jl	.L112
	movl	$1, %r13d
	leal	0(%r13,%rbp), %edx
	cmpl	$3, %edx
	jne	.L19
	jmp	.L122
	.p2align 4,,10
	.p2align 3
.L112:
	movl	%r12d, %r13d
	movl	16(%rsp), %r12d
.L20:
	leaq	5(%r14), %rax
	cmpq	%rax, %r15
	jl	.L17
	cmpl	$1, %r12d
	jne	.L23
.L24:
	addq	$1, ans(%rip)
	movl	$1, %r12d
.L23:
	leaq	(%rax,%rax,4), %rax
	movl	%r12d, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r12d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jge	.L24
	.p2align 4,,10
	.p2align 3
.L17:
	leaq	7(%r14), %rbx
	movl	$1, %r12d
	cmpq	%rbx, %r15
	jge	.L12
.L22:
	movq	24(%rsp), %rax
	addq	$5, %rax
	cmpq	%rax, %r15
	jl	.L13
	cmpl	$1, (%rsp)
	jne	.L26
.L27:
	addq	$1, ans(%rip)
	movl	$1, (%rsp)
.L26:
	movl	(%rsp), %r14d
	leaq	(%rax,%rax,4), %rax
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	movl	%r14d, %r8d
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r14d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jge	.L27
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rbp
	movl	$1, (%rsp)
	addq	$7, %rbp
	cmpq	%rbp, %r15
	jge	.L8
	movq	%r15, %r14
.L25:
	movq	32(%rsp), %rax
	leaq	5(%rax), %rdx
	cmpq	%rdx, %r14
	jl	.L9
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	cmpl	$1, 8(%rsp)
	leaq	3(%rbp), %rbx
	je	.L36
	cmpq	%rbx, %r14
	jl	.L83
	movl	8(%rsp), %r15d
	leaq	5(%rbp), %r9
	jmp	.L84
.L123:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rax
	movl	$1, %r15d
	movq	%rax, ans(%rip)
.L84:
	leaq	(%rbx,%rbx,4), %rbx
	movl	%r15d, %r8d
	movl	$1, %ecx
	movq	%r14, %rsi
	addq	%rbx, %rbx
	movl	$1, %edx
	movq	%r9, (%rsp)
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r15d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	movq	(%rsp), %r9
	movq	%r9, %rax
	cmpq	%rbx, %r14
	jge	.L123
	cmpq	%rax, %r14
	jl	.L32
	cmpl	$1, 8(%rsp)
	jne	.L37
.L33:
	addq	$1, ans(%rip)
	movl	$1, 8(%rsp)
.L37:
	movl	8(%rsp), %r15d
	leaq	(%rax,%rax,4), %rbx
	movl	$1, %ecx
	movq	%r14, %rsi
	addq	%rbx, %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	movl	%r15d, %r8d
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r15d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r14
	jge	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	7(%rbp), %rdx
	cmpq	%rdx, %r14
	jl	.L9
.L36:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	addq	$1, %rax
	leaq	3(%rbp), %rbx
	movq	%rax, ans(%rip)
	cmpq	%rbx, %r14
	jl	.L124
	movl	$1, 8(%rsp)
	leaq	5(%rbp), %r9
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rdx
	movl	$1, 8(%rsp)
	addq	$7, %rdx
	cmpq	%rdx, %r14
	jge	.L29
	movl	56(%rsp), %r13d
.L28:
	movq	48(%rsp), %rax
	movl	72(%rsp), %r12d
	addq	$5, %rax
	cmpq	%r14, %rax
	jg	.L5
.L55:
	movl	44(%rsp), %esi
	leal	0(%r13,%rsi), %r9d
	cmpl	$3, %r9d
	jne	.L40
	addq	$1, ans(%rip)
.L40:
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, 8(%rsp)
	cmpq	%rdx, %r14
	jl	.L52
	leaq	(%rdx,%rdx,4), %r15
	addq	%r15, %r15
	leaq	3(%r15), %rax
	cmpl	$1, %r13d
	je	.L53
	cmpq	%rax, %r14
	jl	.L125
	leaq	(%rax,%rax,4), %rbx
	movl	%r13d, %r10d
	movl	%r13d, %ebp
	addq	%rbx, %rbx
	leaq	3(%rbx), %rdx
	cmpq	%rdx, %r14
	jl	.L93
	movl	%r13d, %r8d
	leaq	5(%r15), %r11
	jmp	.L80
.L126:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$1, %rax
	movl	$1, %r8d
	movq	%rax, ans(%rip)
.L80:
	leaq	(%rdx,%rdx,4), %rax
	movl	$1, %ecx
	movl	$1, %edx
	movq	%r14, %rsi
	addq	%rax, %rax
	movq	%r11, 56(%rsp)
	leaq	3(%rax), %rdi
	movl	%r9d, 32(%rsp)
	movl	%r10d, 24(%rsp)
	movl	%r8d, 16(%rsp)
	movq	%rax, (%rsp)
	call	count_753
	movq	(%rsp), %rax
	movl	16(%rsp), %r8d
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	leaq	5(%rax), %rdi
	call	count_753
	movq	(%rsp), %rax
	movl	24(%rsp), %r10d
	movl	32(%rsp), %r9d
	movq	56(%rsp), %r11
	leaq	7(%rax), %rdx
	cmpq	%rdx, %r14
	jge	.L126
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L50:
	cmpq	%rbx, %r14
	jl	.L46
	cmpl	$1, %ebp
	jne	.L54
.L47:
	addq	$1, ans(%rip)
	movl	$1, %ebp
.L54:
	leaq	(%rbx,%rbx,4), %rax
	movl	%ebp, %r8d
	movl	$1, %ecx
	movq	%r14, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	movl	%r9d, (%rsp)
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%ebp, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	cmpq	%rbx, %r14
	movl	(%rsp), %r9d
	jge	.L47
	.p2align 4,,10
	.p2align 3
.L46:
	leaq	7(%r15), %rdx
	cmpq	%rdx, %r14
	jl	.L52
.L53:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %r15
	addq	%r15, %r15
	addq	$1, %rax
	leaq	3(%r15), %rdx
	movq	%rax, ans(%rip)
	cmpq	%rdx, %r14
	jl	.L127
	movl	$1, %ebp
	leaq	5(%r15), %r11
.L45:
	leaq	(%rdx,%rdx,4), %rbx
	addq	$1, %rax
	movl	$1, %r10d
	addq	%rbx, %rbx
	movq	%rax, ans(%rip)
	leaq	3(%rbx), %rdx
	cmpq	%rdx, %r14
	jge	.L49
.L51:
	leaq	5(%rbx), %rdi
	movl	$1, %edx
	movl	%r10d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movq	%r11, 16(%rsp)
	movl	%r9d, (%rsp)
	call	count_753
	leaq	7(%rbx), %rdx
	movq	16(%rsp), %r11
	movl	(%rsp), %r9d
	cmpq	%rdx, %r14
	movq	%r11, %rbx
	jl	.L50
	movq	ans(%rip), %rax
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L52:
	movq	8(%rsp), %rax
	leaq	5(%rax), %r15
	cmpq	%r15, %r14
	jl	.L42
	movq	%r15, %rax
	movq	%r14, %r15
	movl	%r13d, %r14d
	movl	64(%rsp), %r13d
.L43:
	cmpl	$3, %r9d
	jne	.L56
	addq	$1, ans(%rip)
.L56:
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, (%rsp)
	cmpq	%rdx, %r15
	jl	.L66
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	leaq	3(%rbp), %rcx
	cmpl	$1, %r14d
	je	.L67
	cmpq	%rcx, %r15
	jl	.L78
	movl	%r14d, %ebx
	movl	%r14d, %r8d
	leaq	5(%rbp), %r10
	jmp	.L79
.L128:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L61:
	addq	$1, %rax
	movl	$1, %r8d
	movq	%rax, ans(%rip)
.L79:
	leaq	(%rcx,%rcx,4), %rax
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r15, %rsi
	addq	%rax, %rax
	movl	%r9d, 56(%rsp)
	leaq	3(%rax), %rdi
	movq	%r10, 32(%rsp)
	movl	%r8d, 24(%rsp)
	movq	%rax, 16(%rsp)
	call	count_753
	movq	16(%rsp), %rax
	movl	24(%rsp), %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	leaq	5(%rax), %rdi
	call	count_753
	movq	16(%rsp), %rax
	movq	32(%rsp), %r10
	movl	56(%rsp), %r9d
	leaq	7(%rax), %rcx
	movq	%r10, %rax
	cmpq	%rcx, %r15
	jge	.L128
	cmpq	%rax, %r15
	jl	.L62
	cmpl	$1, %ebx
	jne	.L68
.L63:
	addq	$1, ans(%rip)
	movl	$1, %ebx
.L68:
	leaq	(%rax,%rax,4), %rax
	movl	%ebx, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	addq	%rax, %rax
	movl	$1, %edx
	movl	%r9d, 24(%rsp)
	leaq	3(%rax), %rdi
	movq	%rax, 16(%rsp)
	call	count_753
	movq	16(%rsp), %rax
	movl	%ebx, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	leaq	5(%rax), %rdi
	call	count_753
	movq	16(%rsp), %rax
	movl	24(%rsp), %r9d
	addq	$7, %rax
	cmpq	%rax, %r15
	jge	.L63
	.p2align 4,,10
	.p2align 3
.L62:
	leaq	7(%rbp), %rdx
	cmpq	%rdx, %r15
	jl	.L66
.L67:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	addq	$1, %rax
	leaq	3(%rbp), %rcx
	movq	%rax, ans(%rip)
	cmpq	%rcx, %r15
	jl	.L129
	movl	$1, %ebx
	leaq	5(%rbp), %r10
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L66:
	movq	(%rsp), %rax
	leaq	5(%rax), %rbp
	cmpq	%rbp, %r15
	jl	.L58
.L59:
	cmpl	$3, %r9d
	jne	.L69
	addq	$1, ans(%rip)
.L69:
	leaq	0(%rbp,%rbp,4), %rbp
	addq	%rbp, %rbp
	leaq	3(%rbp), %rbx
	cmpq	%rbx, %r15
	jl	.L74
	movl	%r14d, %r8d
	cmpl	$1, %r14d
	jne	.L73
.L75:
	addq	$1, ans(%rip)
	movl	$1, %r8d
.L73:
	leaq	(%rbx,%rbx,4), %rbx
	movl	$1, %ecx
	movl	$1, %edx
	movq	%r15, %rsi
	addq	%rbx, %rbx
	movl	%r9d, 24(%rsp)
	leaq	3(%rbx), %rdi
	movl	%r8d, 16(%rsp)
	call	count_753
	movl	16(%rsp), %r8d
	leaq	5(%rbx), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	cmpq	%rbx, %r15
	movl	24(%rsp), %r9d
	jge	.L75
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jl	.L71
	cmpl	$3, %r9d
	jne	.L76
.L130:
	addq	$1, ans(%rip)
.L76:
	leaq	(%rax,%rax,4), %rax
	movl	%r14d, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r14d, %r8d
	movl	%r12d, %edx
	movl	$1, %ecx
	movq	%r15, %rsi
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jl	.L71
	movl	%r13d, %r9d
	movl	$1, %r14d
	cmpl	$3, %r9d
	jne	.L76
	jmp	.L130
	.p2align 4,,10
	.p2align 3
.L71:
	addq	$7, %rbp
	movl	$1, %r14d
	cmpq	%rbp, %r15
	jl	.L58
	movl	%r13d, %r9d
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L58:
	movq	(%rsp), %rax
	movl	$1, %r14d
	addq	$7, %rax
	cmpq	%rax, %r15
	jl	.L115
	movl	%r13d, %r9d
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%r15, %r14
.L42:
	movq	8(%rsp), %rax
	movl	$1, %r13d
	addq	$7, %rax
	cmpq	%rax, %r14
	jge	.L55
.L5:
	movq	48(%rsp), %rax
	movl	$1, %r13d
	addq	$7, %rax
	cmpq	%r14, %rax
	jle	.L39
.L38:
	movl	ans(%rip), %eax
	addq	$88, %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
.L83:
	.cfi_restore_state
	leaq	5(%rbp), %rax
	cmpq	%rax, %r14
	jge	.L37
	jmp	.L32
.L129:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jge	.L63
	jmp	.L62
.L78:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jl	.L62
	movl	%r14d, %ebx
	jmp	.L68
.L127:
	leaq	5(%r15), %rbx
	cmpq	%rbx, %r14
	jge	.L47
	jmp	.L46
.L93:
	leaq	5(%r15), %r11
	jmp	.L51
.L125:
	leaq	5(%r15), %rbx
	cmpq	%rbx, %r14
	jl	.L46
	movl	%r13d, %ebp
	jmp	.L54
.L124:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r14
	jge	.L33
	jmp	.L32
	.cfi_endproc
.LFE39:
	.size	count_753, .-count_753
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	xorl	%edx, %edx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	call	count_753
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movslq	%eax, %rdx
	xorl	%eax, %eax
	movq	%rdx, ans(%rip)
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L134
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L134:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	count_753
	.type	count_753, @function
count_753:
.LFB39:
	.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
	movq	%rsi, %r13
	movl	%edx, %esi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	%edx, 72(%rsp)
	addl	%ecx, %edx
	movl	%ecx, 76(%rsp)
	movl	%edx, 68(%rsp)
	cmpq	%r13, %rdi
	jg	.L38
	addl	$1, %ecx
	movq	%r13, %r14
	movq	%rdi, %rax
	movl	%r8d, %r13d
	movl	%ecx, 40(%rsp)
	leal	1(%rsi), %ecx
	addl	$2, %esi
	movl	%ecx, 44(%rsp)
	movl	%esi, 64(%rsp)
.L39:
	movl	68(%rsp), %esi
	leal	0(%r13,%rsi), %edx
	cmpl	$3, %edx
	jne	.L3
	addq	$1, ans(%rip)
.L3:
	leaq	(%rax,%rax,4), %rax
	movl	%r13d, 8(%rsp)
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, 48(%rsp)
	cmpq	%r14, %rdx
	jg	.L28
	movl	%r13d, 56(%rsp)
	movl	76(%rsp), %r13d
.L29:
	movl	8(%rsp), %eax
	addl	40(%rsp), %eax
	cmpl	$3, %eax
	jne	.L7
	addq	$1, ans(%rip)
.L7:
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	movq	%rax, 32(%rsp)
	leaq	3(%rax), %r15
	movl	8(%rsp), %eax
	movl	%eax, (%rsp)
	cmpq	%r15, %r14
	jl	.L25
	movq	%r15, %rbp
	movq	%r14, %r15
.L8:
	movl	(%rsp), %eax
	addl	40(%rsp), %eax
	cmpl	$3, %eax
	jne	.L11
	addq	$1, ans(%rip)
.L11:
	leaq	0(%rbp,%rbp,4), %rbp
	leaq	(%rbp,%rbp), %rax
	movl	(%rsp), %ebp
	leaq	3(%rax), %rbx
	movq	%rax, 24(%rsp)
	movl	%ebp, %r12d
	cmpq	%rbx, %r15
	jl	.L22
.L12:
	movl	40(%rsp), %eax
	addl	%r12d, %eax
	cmpl	$3, %eax
	jne	.L15
	addq	$1, ans(%rip)
.L15:
	leaq	(%rbx,%rbx,4), %r14
	movl	%r12d, %ebp
	addq	%r14, %r14
	leaq	3(%r14), %rax
	cmpq	%rax, %r15
	jl	.L20
	movl	%r12d, 16(%rsp)
	movl	%r13d, %r12d
	movl	%ebp, %r13d
	movl	40(%rsp), %ebp
	leal	0(%r13,%rbp), %edx
	cmpl	$3, %edx
	jne	.L19
.L122:
	addq	$1, ans(%rip)
.L19:
	leaq	(%rax,%rax,4), %rax
	movl	%r13d, %r8d
	movl	%r12d, %ecx
	movl	$1, %edx
	leaq	(%rax,%rax), %rbx
	movq	%r15, %rsi
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r13d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jl	.L112
	movl	$1, %r13d
	leal	0(%r13,%rbp), %edx
	cmpl	$3, %edx
	jne	.L19
	jmp	.L122
	.p2align 4,,10
	.p2align 3
.L112:
	movl	%r12d, %r13d
	movl	16(%rsp), %r12d
.L20:
	leaq	5(%r14), %rax
	cmpq	%rax, %r15
	jl	.L17
	cmpl	$1, %r12d
	jne	.L23
.L24:
	addq	$1, ans(%rip)
	movl	$1, %r12d
.L23:
	leaq	(%rax,%rax,4), %rax
	movl	%r12d, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r12d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jge	.L24
	.p2align 4,,10
	.p2align 3
.L17:
	leaq	7(%r14), %rbx
	movl	$1, %r12d
	cmpq	%rbx, %r15
	jge	.L12
.L22:
	movq	24(%rsp), %rax
	addq	$5, %rax
	cmpq	%rax, %r15
	jl	.L13
	cmpl	$1, (%rsp)
	jne	.L26
.L27:
	addq	$1, ans(%rip)
	movl	$1, (%rsp)
.L26:
	movl	(%rsp), %r14d
	leaq	(%rax,%rax,4), %rax
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	movl	%r14d, %r8d
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r14d, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jge	.L27
	.p2align 4,,10
	.p2align 3
.L13:
	movq	24(%rsp), %rbp
	movl	$1, (%rsp)
	addq	$7, %rbp
	cmpq	%rbp, %r15
	jge	.L8
	movq	%r15, %r14
.L25:
	movq	32(%rsp), %rax
	leaq	5(%rax), %rdx
	cmpq	%rdx, %r14
	jl	.L9
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	cmpl	$1, 8(%rsp)
	leaq	3(%rbp), %rbx
	je	.L36
	cmpq	%rbx, %r14
	jl	.L83
	movl	8(%rsp), %r15d
	leaq	5(%rbp), %r9
	jmp	.L84
.L123:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L31:
	addq	$1, %rax
	movl	$1, %r15d
	movq	%rax, ans(%rip)
.L84:
	leaq	(%rbx,%rbx,4), %rbx
	movl	%r15d, %r8d
	movl	$1, %ecx
	movq	%r14, %rsi
	addq	%rbx, %rbx
	movl	$1, %edx
	movq	%r9, (%rsp)
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r15d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	movq	(%rsp), %r9
	movq	%r9, %rax
	cmpq	%rbx, %r14
	jge	.L123
	cmpq	%rax, %r14
	jl	.L32
	cmpl	$1, 8(%rsp)
	jne	.L37
.L33:
	addq	$1, ans(%rip)
	movl	$1, 8(%rsp)
.L37:
	movl	8(%rsp), %r15d
	leaq	(%rax,%rax,4), %rbx
	movl	$1, %ecx
	movq	%r14, %rsi
	addq	%rbx, %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	movl	%r15d, %r8d
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r15d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r14
	jge	.L33
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	7(%rbp), %rdx
	cmpq	%rdx, %r14
	jl	.L9
.L36:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	addq	$1, %rax
	leaq	3(%rbp), %rbx
	movq	%rax, ans(%rip)
	cmpq	%rbx, %r14
	jl	.L124
	movl	$1, 8(%rsp)
	leaq	5(%rbp), %r9
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L9:
	movq	32(%rsp), %rdx
	movl	$1, 8(%rsp)
	addq	$7, %rdx
	cmpq	%rdx, %r14
	jge	.L29
	movl	56(%rsp), %r13d
.L28:
	movq	48(%rsp), %rax
	movl	72(%rsp), %r12d
	addq	$5, %rax
	cmpq	%r14, %rax
	jg	.L5
.L55:
	movl	44(%rsp), %esi
	leal	0(%r13,%rsi), %r9d
	cmpl	$3, %r9d
	jne	.L40
	addq	$1, ans(%rip)
.L40:
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, 8(%rsp)
	cmpq	%rdx, %r14
	jl	.L52
	leaq	(%rdx,%rdx,4), %r15
	addq	%r15, %r15
	leaq	3(%r15), %rax
	cmpl	$1, %r13d
	je	.L53
	cmpq	%rax, %r14
	jl	.L125
	leaq	(%rax,%rax,4), %rbx
	movl	%r13d, %r10d
	movl	%r13d, %ebp
	addq	%rbx, %rbx
	leaq	3(%rbx), %rdx
	cmpq	%rdx, %r14
	jl	.L93
	movl	%r13d, %r8d
	leaq	5(%r15), %r11
	jmp	.L80
.L126:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$1, %rax
	movl	$1, %r8d
	movq	%rax, ans(%rip)
.L80:
	leaq	(%rdx,%rdx,4), %rax
	movl	$1, %ecx
	movl	$1, %edx
	movq	%r14, %rsi
	addq	%rax, %rax
	movq	%r11, 56(%rsp)
	leaq	3(%rax), %rdi
	movl	%r9d, 32(%rsp)
	movl	%r10d, 24(%rsp)
	movl	%r8d, 16(%rsp)
	movq	%rax, (%rsp)
	call	count_753
	movq	(%rsp), %rax
	movl	16(%rsp), %r8d
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	leaq	5(%rax), %rdi
	call	count_753
	movq	(%rsp), %rax
	movl	24(%rsp), %r10d
	movl	32(%rsp), %r9d
	movq	56(%rsp), %r11
	leaq	7(%rax), %rdx
	cmpq	%rdx, %r14
	jge	.L126
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L50:
	cmpq	%rbx, %r14
	jl	.L46
	cmpl	$1, %ebp
	jne	.L54
.L47:
	addq	$1, ans(%rip)
	movl	$1, %ebp
.L54:
	leaq	(%rbx,%rbx,4), %rax
	movl	%ebp, %r8d
	movl	$1, %ecx
	movq	%r14, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	movl	%r9d, (%rsp)
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%ebp, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	cmpq	%rbx, %r14
	movl	(%rsp), %r9d
	jge	.L47
	.p2align 4,,10
	.p2align 3
.L46:
	leaq	7(%r15), %rdx
	cmpq	%rdx, %r14
	jl	.L52
.L53:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %r15
	addq	%r15, %r15
	addq	$1, %rax
	leaq	3(%r15), %rdx
	movq	%rax, ans(%rip)
	cmpq	%rdx, %r14
	jl	.L127
	movl	$1, %ebp
	leaq	5(%r15), %r11
.L45:
	leaq	(%rdx,%rdx,4), %rbx
	addq	$1, %rax
	movl	$1, %r10d
	addq	%rbx, %rbx
	movq	%rax, ans(%rip)
	leaq	3(%rbx), %rdx
	cmpq	%rdx, %r14
	jge	.L49
.L51:
	leaq	5(%rbx), %rdi
	movl	$1, %edx
	movl	%r10d, %r8d
	movq	%r14, %rsi
	movl	$1, %ecx
	movq	%r11, 16(%rsp)
	movl	%r9d, (%rsp)
	call	count_753
	leaq	7(%rbx), %rdx
	movq	16(%rsp), %r11
	movl	(%rsp), %r9d
	cmpq	%rdx, %r14
	movq	%r11, %rbx
	jl	.L50
	movq	ans(%rip), %rax
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L52:
	movq	8(%rsp), %rax
	leaq	5(%rax), %r15
	cmpq	%r15, %r14
	jl	.L42
	movq	%r15, %rax
	movq	%r14, %r15
	movl	%r13d, %r14d
	movl	64(%rsp), %r13d
.L43:
	cmpl	$3, %r9d
	jne	.L56
	addq	$1, ans(%rip)
.L56:
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdx
	movq	%rax, (%rsp)
	cmpq	%rdx, %r15
	jl	.L66
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	leaq	3(%rbp), %rcx
	cmpl	$1, %r14d
	je	.L67
	cmpq	%rcx, %r15
	jl	.L78
	movl	%r14d, %ebx
	movl	%r14d, %r8d
	leaq	5(%rbp), %r10
	jmp	.L79
.L128:
	movq	ans(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L61:
	addq	$1, %rax
	movl	$1, %r8d
	movq	%rax, ans(%rip)
.L79:
	leaq	(%rcx,%rcx,4), %rax
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r15, %rsi
	addq	%rax, %rax
	movl	%r9d, 56(%rsp)
	leaq	3(%rax), %rdi
	movq	%r10, 32(%rsp)
	movl	%r8d, 24(%rsp)
	movq	%rax, 16(%rsp)
	call	count_753
	movq	16(%rsp), %rax
	movl	24(%rsp), %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	leaq	5(%rax), %rdi
	call	count_753
	movq	16(%rsp), %rax
	movq	32(%rsp), %r10
	movl	56(%rsp), %r9d
	leaq	7(%rax), %rcx
	movq	%r10, %rax
	cmpq	%rcx, %r15
	jge	.L128
	cmpq	%rax, %r15
	jl	.L62
	cmpl	$1, %ebx
	jne	.L68
.L63:
	addq	$1, ans(%rip)
	movl	$1, %ebx
.L68:
	leaq	(%rax,%rax,4), %rax
	movl	%ebx, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	addq	%rax, %rax
	movl	$1, %edx
	movl	%r9d, 24(%rsp)
	leaq	3(%rax), %rdi
	movq	%rax, 16(%rsp)
	call	count_753
	movq	16(%rsp), %rax
	movl	%ebx, %r8d
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	leaq	5(%rax), %rdi
	call	count_753
	movq	16(%rsp), %rax
	movl	24(%rsp), %r9d
	addq	$7, %rax
	cmpq	%rax, %r15
	jge	.L63
	.p2align 4,,10
	.p2align 3
.L62:
	leaq	7(%rbp), %rdx
	cmpq	%rdx, %r15
	jl	.L66
.L67:
	movq	ans(%rip), %rax
	leaq	(%rdx,%rdx,4), %rbp
	addq	%rbp, %rbp
	addq	$1, %rax
	leaq	3(%rbp), %rcx
	movq	%rax, ans(%rip)
	cmpq	%rcx, %r15
	jl	.L129
	movl	$1, %ebx
	leaq	5(%rbp), %r10
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L66:
	movq	(%rsp), %rax
	leaq	5(%rax), %rbp
	cmpq	%rbp, %r15
	jl	.L58
.L59:
	cmpl	$3, %r9d
	jne	.L69
	addq	$1, ans(%rip)
.L69:
	leaq	0(%rbp,%rbp,4), %rbp
	addq	%rbp, %rbp
	leaq	3(%rbp), %rbx
	cmpq	%rbx, %r15
	jl	.L74
	movl	%r14d, %r8d
	cmpl	$1, %r14d
	jne	.L73
.L75:
	addq	$1, ans(%rip)
	movl	$1, %r8d
.L73:
	leaq	(%rbx,%rbx,4), %rbx
	movl	$1, %ecx
	movl	$1, %edx
	movq	%r15, %rsi
	addq	%rbx, %rbx
	movl	%r9d, 24(%rsp)
	leaq	3(%rbx), %rdi
	movl	%r8d, 16(%rsp)
	call	count_753
	movl	16(%rsp), %r8d
	leaq	5(%rbx), %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	movl	$1, %edx
	addq	$7, %rbx
	call	count_753
	cmpq	%rbx, %r15
	movl	24(%rsp), %r9d
	jge	.L75
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jl	.L71
	cmpl	$3, %r9d
	jne	.L76
.L130:
	addq	$1, ans(%rip)
.L76:
	leaq	(%rax,%rax,4), %rax
	movl	%r14d, %r8d
	movl	$1, %ecx
	movq	%r15, %rsi
	leaq	(%rax,%rax), %rbx
	movl	$1, %edx
	leaq	3(%rbx), %rdi
	call	count_753
	leaq	5(%rbx), %rdi
	movl	%r14d, %r8d
	movl	%r12d, %edx
	movl	$1, %ecx
	movq	%r15, %rsi
	call	count_753
	leaq	7(%rbx), %rax
	cmpq	%rax, %r15
	jl	.L71
	movl	%r13d, %r9d
	movl	$1, %r14d
	cmpl	$3, %r9d
	jne	.L76
	jmp	.L130
	.p2align 4,,10
	.p2align 3
.L71:
	addq	$7, %rbp
	movl	$1, %r14d
	cmpq	%rbp, %r15
	jl	.L58
	movl	%r13d, %r9d
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L58:
	movq	(%rsp), %rax
	movl	$1, %r14d
	addq	$7, %rax
	cmpq	%rax, %r15
	jl	.L115
	movl	%r13d, %r9d
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L115:
	movq	%r15, %r14
.L42:
	movq	8(%rsp), %rax
	movl	$1, %r13d
	addq	$7, %rax
	cmpq	%rax, %r14
	jge	.L55
.L5:
	movq	48(%rsp), %rax
	movl	$1, %r13d
	addq	$7, %rax
	cmpq	%r14, %rax
	jle	.L39
.L38:
	movl	ans(%rip), %eax
	addq	$88, %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
.L83:
	.cfi_restore_state
	leaq	5(%rbp), %rax
	cmpq	%rax, %r14
	jge	.L37
	jmp	.L32
.L129:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jge	.L63
	jmp	.L62
.L78:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r15
	jl	.L62
	movl	%r14d, %ebx
	jmp	.L68
.L127:
	leaq	5(%r15), %rbx
	cmpq	%rbx, %r14
	jge	.L47
	jmp	.L46
.L93:
	leaq	5(%r15), %r11
	jmp	.L51
.L125:
	leaq	5(%r15), %rbx
	cmpq	%rbx, %r14
	jl	.L46
	movl	%r13d, %ebp
	jmp	.L54
.L124:
	leaq	5(%rbp), %rax
	cmpq	%rax, %r14
	jge	.L33
	jmp	.L32
	.cfi_endproc
.LFE39:
	.size	count_753, .-count_753
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	xorl	%edx, %edx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	call	count_753
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	movslq	%eax, %rdx
	xorl	%eax, %eax
	movq	%rdx, ans(%rip)
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L134
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L134:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
long ans=0;


int count_753(long s,long N,int a, int b, int c){
    if(s>N) return ans;

    if(a+b+c==3) ans++;

    count_753((s*10+3),N,1,b,c);
    count_753((s*10+5),N,a,1,c);
    count_753((s*10+7),N,a,b,1);
}

int main(void){
    long N;
    scanf("%ld",&N);

    ans=count_753(0,N,0,0,0);

    printf("%ld\n",ans);

    return 0;
}
60
 1134
 656396080
 1260308870
 251112438
 3669
 4753
 3412
 5825
 471776498

0
 6
 20434
 26484
 8334
 13
 18
 8
 30
 14384

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<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
long ans=0;


int count_753(long s,long N,int a, int b, int c){
    if(s>N) return ans;

    if(a+b+c==3) ans++;

    count_753((s*10+3),N,1,b,c);
    count_753((s*10+5),N,a,1,c);
    count_753((s*10+7),N,a,b,1);
}

int main(void){
    long N;
    scanf("%ld",&N);

    ans=count_753(0,N,0,0,0);

    printf("%ld\n",ans);

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	count_753
	.type	count_753, @function
count_753:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -28(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	ans(%rip), %rax
	jmp	.L1
.L2:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	$3, %eax
	jne	.L4
	movq	ans(%rip), %rax
	addq	$1, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	$1, %edx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	5(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	$1, %ecx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	7(%rax), %rdi
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	$1, %r8d
	movq	%rax, %rsi
	call	count_753
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count_753, .-count_753
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movl	$0, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movq	%rax, %rsi
	movl	$0, %edi
	call	count_753
	cltq
	movq	%rax, ans(%rip)
	movq	ans(%rip), %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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	count_753
	.type	count_753, @function
count_753:
.LFB6:
	.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
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	%edx, -20(%rbp)
	movl	%ecx, -24(%rbp)
	movl	%r8d, -28(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	ans(%rip), %rax
	jmp	.L1
.L2:
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	addl	%eax, %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	cmpl	$3, %eax
	jne	.L4
	movq	ans(%rip), %rax
	addq	$1, %rax
	movq	%rax, ans(%rip)
.L4:
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	3(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-24(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	$1, %edx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	5(%rax), %rdi
	movl	-28(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	%ecx, %r8d
	movl	$1, %ecx
	movq	%rax, %rsi
	call	count_753
	movq	-8(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	leaq	7(%rax), %rdi
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %edx
	movq	-16(%rbp), %rax
	movl	$1, %r8d
	movq	%rax, %rsi
	call	count_753
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	count_753, .-count_753
	.section	.rodata
.LC0:
	.string	"%ld"
.LC1:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movl	$0, %r8d
	movl	$0, %ecx
	movl	$0, %edx
	movq	%rax, %rsi
	movl	$0, %edi
	call	count_753
	cltq
	movq	%rax, ans(%rip)
	movq	ans(%rip), %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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
