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

```c
#include<stdio.h>
#include<string.h>
int main(){
	int i,j,k,n,m,x;
	long long aa,bb;
	int a[15],b[15],c[15],f[15];
	char s[15],t[15],u;
	for(i=0;i<15;i++)b[i]=0,f[i]=0;
	scanf("%lld%lld%d",&aa,&bb,&n);
	x=0;while(aa>0)a[x]=aa%10,aa=aa/10,x++;
	m=x;
	x=0;while(bb>0)b[x]=bb%10,bb=bb/10,x++;
	x=0;
	for(i=0;i<m;i++){
		if(a[i]-x>=b[i])x=0;
		else{
			x=1;
			f[i+1]=1;
		}
	}
	aa=bb=0;
	for(i=m-1;i>=0;i--){
		if(n>0 && f[i]==1 && (f[i+1]==0 || a[i]-b[i]>=1 || (a[i]-b[i]<0) ) )n--,a[i]++;
		aa=aa*10;aa+=a[i];
		bb=bb*10;bb+=b[i];
	}
	//printf("%lld %lld\n",aa,bb);
	printf("%lld\n",aa-bb);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -96(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$14, -252(%rbp)
	jle	.L3
	leaq	-256(%rbp), %rcx
	leaq	-232(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L4
.L5:
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -240(%rbp)
	addl	$1, -248(%rbp)
.L4:
	movq	-240(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
	movl	-248(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L6
.L7:
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -232(%rbp)
	addl	$1, -248(%rbp)
.L6:
	movq	-232(%rbp), %rax
	testq	%rax, %rax
	jg	.L7
	movl	$0, -248(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L8
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	-248(%rbp), %eax
	movl	%eax, %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -248(%rbp)
	jmp	.L10
.L9:
	movl	$1, -248(%rbp)
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$1, -96(%rbp,%rax,4)
.L10:
	addl	$1, -252(%rbp)
.L8:
	movl	-252(%rbp), %eax
	cmpl	-244(%rbp), %eax
	jl	.L11
	movq	$0, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	-244(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -252(%rbp)
	jmp	.L12
.L15:
	movl	-256(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-252(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jg	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jns	.L13
.L14:
	movl	-256(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -256(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
.L13:
	movq	-240(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -240(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-240(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	-232(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -232(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-232(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -232(%rbp)
	subl	$1, -252(%rbp)
.L12:
	cmpl	$0, -252(%rbp)
	jns	.L15
	movq	-240(%rbp), %rax
	movq	-232(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%d"
.LC1:
	.string	"%lld\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB2:
	.section	.text.startup,"ax",@progbits
.LHOTB2:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	12(%rsp), %rcx
	movq	$0, 144(%rsp)
	leaq	24(%rsp), %rdx
	movaps	%xmm0, 96(%rsp)
	movl	$0, 152(%rsp)
	movq	$0, 208(%rsp)
	movl	$0, 216(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L2
	movabsq	$7378697629483820647, %rdx
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rdi
	movq	%rsi, %rdx
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 32(%rsp)
	cmpq	$9, %rsi
	jle	.L44
	movabsq	$-3689348814741910323, %rcx
	movq	%rdi, %rax
	mulq	%rcx
	shrq	$3, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %r8
	movq	%rdi, %rdx
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 36(%rsp)
	cmpq	$99, %rsi
	jle	.L45
	movq	%r8, %rax
	mulq	%rcx
	movq	%r8, %rcx
	movq	%rdx, %rax
	shrq	$3, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, 40(%rsp)
	cmpq	$999, %rsi
	jle	.L46
	movl	$10, %ecx
	cqto
	idivq	%rcx
	movl	%edx, 44(%rsp)
	cmpq	$9999, %rsi
	jle	.L47
	cqto
	idivq	%rcx
	movl	%edx, 48(%rsp)
	cmpq	$99999, %rsi
	jle	.L48
	cqto
	idivq	%rcx
	movl	%edx, 52(%rsp)
	cmpq	$999999, %rsi
	jle	.L49
	cqto
	idivq	%rcx
	movl	%edx, 56(%rsp)
	cmpq	$9999999, %rsi
	jle	.L50
	cqto
	idivq	%rcx
	movl	%edx, 60(%rsp)
	cmpq	$99999999, %rsi
	jle	.L51
	cqto
	idivq	%rcx
	movl	%edx, 64(%rsp)
	cmpq	$999999999, %rsi
	jle	.L52
	cqto
	idivq	%rcx
	movl	%edx, 68(%rsp)
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L53
	cqto
	idivq	%rcx
	movl	%edx, 72(%rsp)
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L54
	movabsq	$999999999999, %r9
	cqto
	idivq	%rcx
	movl	%edx, 76(%rsp)
	cmpq	%r9, %rsi
	jle	.L55
	cqto
	idivq	%rcx
	movl	%edx, 80(%rsp)
	cmpq	%r9, %rdi
	jle	.L56
	cqto
	idivq	%rcx
	movl	%edx, 84(%rsp)
	cmpq	%r9, %r8
	jle	.L57
	cqto
	movl	$15, %edi
	idivq	%rcx
	movl	$14, %ecx
	movl	%edx, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %r9
	testq	%r9, %r9
	jle	.L7
	movabsq	$7378697629483820647, %rdx
	movq	%r9, %rax
	imulq	%rdx
	movq	%r9, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %r8
	movq	%r9, %rdx
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 96(%rsp)
	cmpq	$9, %r9
	jle	.L7
	movabsq	$-3689348814741910323, %rsi
	movq	%r8, %rax
	mulq	%rsi
	movq	%rdx, %rsi
	shrq	$3, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %r8
	movl	%r8d, 100(%rsp)
	cmpq	$99, %r9
	jle	.L7
.L41:
	movabsq	$-3689348814741910323, %rdx
	movq	%rsi, %rax
	movq	%rsi, %r8
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %r8
	movl	%r8d, 104(%rsp)
	cmpq	$9, %rsi
	jle	.L8
	movl	$10, %r8d
	cqto
	idivq	%r8
	movl	%edx, 108(%rsp)
	cmpq	$99, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 112(%rsp)
	cmpq	$999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 116(%rsp)
	cmpq	$9999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 120(%rsp)
	cmpq	$99999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 124(%rsp)
	cmpq	$999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 128(%rsp)
	cmpq	$9999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 132(%rsp)
	cmpq	$99999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 136(%rsp)
	cmpq	$999999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 140(%rsp)
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 144(%rsp)
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 148(%rsp)
	movabsq	$999999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 152(%rsp)
.L8:
	testl	%edi, %edi
	je	.L9
.L7:
	movl	96(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, 32(%rsp)
	jge	.L10
	movl	$1, 164(%rsp)
	movl	$1, %edx
.L10:
	cmpl	$1, %edi
	je	.L11
	movl	36(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	100(%rsp), %eax
	jge	.L12
	movl	$1, 168(%rsp)
	movl	$1, %edx
.L12:
	cmpl	$2, %edi
	je	.L11
	movl	40(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	104(%rsp), %eax
	jge	.L13
	movl	$1, 172(%rsp)
	movl	$1, %edx
.L13:
	cmpl	$3, %edi
	je	.L11
	movl	44(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	108(%rsp), %eax
	jge	.L14
	movl	$1, 176(%rsp)
	movl	$1, %edx
.L14:
	cmpl	$4, %edi
	je	.L11
	movl	48(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	112(%rsp), %eax
	jge	.L15
	movl	$1, 180(%rsp)
	movl	$1, %edx
.L15:
	cmpl	$5, %edi
	je	.L11
	movl	52(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	116(%rsp), %eax
	jge	.L16
	movl	$1, 184(%rsp)
	movl	$1, %edx
.L16:
	cmpl	$6, %edi
	je	.L11
	movl	56(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	120(%rsp), %eax
	jge	.L17
	movl	$1, 188(%rsp)
	movl	$1, %edx
.L17:
	cmpl	$7, %edi
	je	.L11
	movl	60(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	124(%rsp), %eax
	jge	.L18
	movl	$1, 192(%rsp)
	movl	$1, %edx
.L18:
	cmpl	$8, %edi
	je	.L11
	movl	64(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	128(%rsp), %eax
	jge	.L19
	movl	$1, 196(%rsp)
	movl	$1, %edx
.L19:
	cmpl	$9, %edi
	je	.L11
	movl	68(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	132(%rsp), %eax
	jge	.L20
	movl	$1, 200(%rsp)
	movl	$1, %edx
.L20:
	cmpl	$10, %edi
	je	.L11
	movl	72(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	136(%rsp), %eax
	jge	.L21
	movl	$1, 204(%rsp)
	movl	$1, %edx
.L21:
	cmpl	$11, %edi
	je	.L11
	movl	76(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	140(%rsp), %eax
	jge	.L22
	movl	$1, 208(%rsp)
	movl	$1, %edx
.L22:
	cmpl	$12, %edi
	je	.L11
	movl	80(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	144(%rsp), %eax
	jge	.L23
	movl	$1, 212(%rsp)
	movl	$1, %edx
.L23:
	cmpl	$13, %edi
	je	.L11
	movl	84(%rsp), %eax
	subl	%edx, %eax
	cmpl	148(%rsp), %eax
	jge	.L11
	movl	$1, 216(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
.L25:
	leal	-1(%rcx), %eax
	movl	12(%rsp), %r9d
	leaq	32(%rsp), %r8
	xorl	%esi, %esi
	cltq
	leaq	96(%rsp), %r10
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	movslq	4(%r8,%rax,4), %rdx
	movslq	4(%r10,%rax,4), %rdi
	leaq	160(%rsp), %rbp
	testl	%r9d, %r9d
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L160:
	cmpl	$1, 4(%rbp,%rax,4)
	je	.L159
.L28:
	movslq	%edx, %rdx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,2), %rcx
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rdi,%rdx,2), %rsi
	cmpl	$-1, %eax
	je	.L30
	subq	$1, %rax
	movslq	4(%r8,%rax,4), %rdx
	movslq	4(%r10,%rax,4), %rdi
	testl	%r9d, %r9d
	jg	.L160
.L27:
	leaq	(%rcx,%rcx,4), %rcx
	movl	%eax, %r8d
	leaq	(%rdx,%rcx,2), %rcx
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rdi,%rdx,2), %rsi
	cmpl	$-1, %eax
	je	.L30
	movslq	%eax, %rdx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rsi,%rsi,4), %rsi
	movslq	32(%rsp,%rdx,4), %rdi
	movslq	96(%rsp,%rdx,4), %rdx
	leaq	(%rdi,%rcx,2), %rcx
	leaq	(%rdx,%rsi,2), %rsi
	leal	-1(%rax), %edx
	testl	%eax, %eax
	jne	.L32
.L30:
	movq	%rcx, 16(%rsp)
	movq	%rsi, 24(%rsp)
	testb	%r11b, %r11b
	je	.L26
	movl	%r9d, 12(%rsp)
.L26:
	movq	16(%rsp), %rdx
	xorl	%eax, %eax
	subq	24(%rsp), %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L161
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L48:
	.cfi_restore_state
	movl	$4, %ecx
	movl	$5, %edi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L159:
	leal	2(%rax), %ebx
	movslq	%ebx, %rbx
	movl	160(%rsp,%rbx,4), %ebx
	testl	%ebx, %ebx
	je	.L29
	cmpl	%edi, %edx
	je	.L28
.L29:
	addl	$1, %edx
	subl	$1, %r9d
	movl	$1, %r11d
	movl	%edx, 4(%r8,%rax,4)
	jmp	.L28
.L2:
	movq	24(%rsp), %r8
	testq	%r8, %r8
	jle	.L156
	movq	%r8, %rax
	movl	$10, %ecx
	cqto
	idivq	%rcx
	movl	%edx, 96(%rsp)
	cmpq	$9, %r8
	jle	.L156
	cqto
	xorl	%edi, %edi
	idivq	%rcx
	orl	$-1, %ecx
	movl	%edx, 100(%rsp)
	movq	%rax, %rsi
	cmpq	$99, %r8
	jg	.L41
.L9:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	cmpl	$-1, %ecx
	je	.L26
	jmp	.L25
.L44:
	xorl	%ecx, %ecx
	movl	$1, %edi
	jmp	.L3
.L45:
	movl	$1, %ecx
	movl	$2, %edi
	jmp	.L3
.L46:
	movl	$2, %ecx
	movl	$3, %edi
	jmp	.L3
.L47:
	movl	$3, %ecx
	movl	$4, %edi
	jmp	.L3
.L49:
	movl	$5, %ecx
	movl	$6, %edi
	jmp	.L3
.L56:
	movl	$12, %ecx
	movl	$13, %edi
	jmp	.L3
.L50:
	movl	$6, %ecx
	movl	$7, %edi
	jmp	.L3
.L51:
	movl	$7, %ecx
	movl	$8, %edi
	jmp	.L3
.L52:
	movl	$8, %ecx
	movl	$9, %edi
	jmp	.L3
.L53:
	movl	$9, %ecx
	movl	$10, %edi
	jmp	.L3
.L54:
	movl	$10, %ecx
	movl	$11, %edi
	jmp	.L3
.L55:
	movl	$11, %ecx
	movl	$12, %edi
	jmp	.L3
.L156:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	jmp	.L26
.L57:
	movl	$13, %ecx
	movl	$14, %edi
	jmp	.L3
.L161:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB35:
.L32:
	.cfi_def_cfa_offset 272
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movslq	%edx, %rdx
	imulq	$10, %rcx, %rcx
	movslq	32(%rsp,%rdx,4), %rax
	imulq	$10, %rsi, %rsi
	addq	%rax, %rcx
	movslq	96(%rsp,%rdx,4), %rax
	addq	%rax, %rsi
	leal	-2(%r8), %eax
	cmpl	$1, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-3(%r8), %eax
	cmpl	$2, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-4(%r8), %eax
	cmpl	$3, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-5(%r8), %eax
	cmpl	$4, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-6(%r8), %eax
	cmpl	$5, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-7(%r8), %eax
	cmpl	$6, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-8(%r8), %eax
	cmpl	$7, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-9(%r8), %eax
	cmpl	$8, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-10(%r8), %eax
	cmpl	$9, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-11(%r8), %eax
	cmpl	$10, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-12(%r8), %eax
	cmpl	$11, %r8d
	je	.L30
	movslq	%eax, %rdx
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rdx,4), %rdi
	movslq	96(%rsp,%rdx,4), %rdx
	addq	%rdi, %rcx
	addq	%rdx, %rsi
	testl	%eax, %eax
	je	.L30
	imulq	$10, %rcx, %rcx
	movslq	32(%rsp), %rax
	imulq	$10, %rsi, %rsi
	addq	%rax, %rcx
	movslq	96(%rsp), %rax
	addq	%rax, %rsi
	jmp	.L30
	.cfi_endproc
.LFE35:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE2:
	.section	.text.startup
.LHOTE2:
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%d"
.LC1:
	.string	"%lld\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB2:
	.section	.text.startup,"ax",@progbits
.LHOTB2:
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$248, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	leaq	12(%rsp), %rcx
	movq	$0, 144(%rsp)
	leaq	24(%rsp), %rdx
	movaps	%xmm0, 96(%rsp)
	movl	$0, 152(%rsp)
	movq	$0, 208(%rsp)
	movl	$0, 216(%rsp)
	movaps	%xmm0, 112(%rsp)
	movaps	%xmm0, 128(%rsp)
	movaps	%xmm0, 160(%rsp)
	movaps	%xmm0, 176(%rsp)
	movaps	%xmm0, 192(%rsp)
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L2
	movabsq	$7378697629483820647, %rdx
	movq	%rsi, %rax
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rdi
	movq	%rsi, %rdx
	subq	%rax, %rdi
	leaq	(%rdi,%rdi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 32(%rsp)
	cmpq	$9, %rsi
	jle	.L44
	movabsq	$-3689348814741910323, %rcx
	movq	%rdi, %rax
	mulq	%rcx
	shrq	$3, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %r8
	movq	%rdi, %rdx
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 36(%rsp)
	cmpq	$99, %rsi
	jle	.L45
	movq	%r8, %rax
	mulq	%rcx
	movq	%r8, %rcx
	movq	%rdx, %rax
	shrq	$3, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rcx
	movl	%ecx, 40(%rsp)
	cmpq	$999, %rsi
	jle	.L46
	movl	$10, %ecx
	cqto
	idivq	%rcx
	movl	%edx, 44(%rsp)
	cmpq	$9999, %rsi
	jle	.L47
	cqto
	idivq	%rcx
	movl	%edx, 48(%rsp)
	cmpq	$99999, %rsi
	jle	.L48
	cqto
	idivq	%rcx
	movl	%edx, 52(%rsp)
	cmpq	$999999, %rsi
	jle	.L49
	cqto
	idivq	%rcx
	movl	%edx, 56(%rsp)
	cmpq	$9999999, %rsi
	jle	.L50
	cqto
	idivq	%rcx
	movl	%edx, 60(%rsp)
	cmpq	$99999999, %rsi
	jle	.L51
	cqto
	idivq	%rcx
	movl	%edx, 64(%rsp)
	cmpq	$999999999, %rsi
	jle	.L52
	cqto
	idivq	%rcx
	movl	%edx, 68(%rsp)
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L53
	cqto
	idivq	%rcx
	movl	%edx, 72(%rsp)
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L54
	movabsq	$999999999999, %r9
	cqto
	idivq	%rcx
	movl	%edx, 76(%rsp)
	cmpq	%r9, %rsi
	jle	.L55
	cqto
	idivq	%rcx
	movl	%edx, 80(%rsp)
	cmpq	%r9, %rdi
	jle	.L56
	cqto
	idivq	%rcx
	movl	%edx, 84(%rsp)
	cmpq	%r9, %r8
	jle	.L57
	cqto
	movl	$15, %edi
	idivq	%rcx
	movl	$14, %ecx
	movl	%edx, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	24(%rsp), %r9
	testq	%r9, %r9
	jle	.L7
	movabsq	$7378697629483820647, %rdx
	movq	%r9, %rax
	imulq	%rdx
	movq	%r9, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %r8
	movq	%r9, %rdx
	addq	%rax, %rax
	subq	%rax, %rdx
	movl	%edx, 96(%rsp)
	cmpq	$9, %r9
	jle	.L7
	movabsq	$-3689348814741910323, %rsi
	movq	%r8, %rax
	mulq	%rsi
	movq	%rdx, %rsi
	shrq	$3, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %r8
	movl	%r8d, 100(%rsp)
	cmpq	$99, %r9
	jle	.L7
.L41:
	movabsq	$-3689348814741910323, %rdx
	movq	%rsi, %rax
	movq	%rsi, %r8
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %r8
	movl	%r8d, 104(%rsp)
	cmpq	$9, %rsi
	jle	.L8
	movl	$10, %r8d
	cqto
	idivq	%r8
	movl	%edx, 108(%rsp)
	cmpq	$99, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 112(%rsp)
	cmpq	$999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 116(%rsp)
	cmpq	$9999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 120(%rsp)
	cmpq	$99999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 124(%rsp)
	cmpq	$999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 128(%rsp)
	cmpq	$9999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 132(%rsp)
	cmpq	$99999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 136(%rsp)
	cmpq	$999999999, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 140(%rsp)
	movabsq	$9999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 144(%rsp)
	movabsq	$99999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 148(%rsp)
	movabsq	$999999999999, %rdx
	cmpq	%rdx, %rsi
	jle	.L8
	cqto
	idivq	%r8
	movl	%edx, 152(%rsp)
.L8:
	testl	%edi, %edi
	je	.L9
.L7:
	movl	96(%rsp), %eax
	xorl	%edx, %edx
	cmpl	%eax, 32(%rsp)
	jge	.L10
	movl	$1, 164(%rsp)
	movl	$1, %edx
.L10:
	cmpl	$1, %edi
	je	.L11
	movl	36(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	100(%rsp), %eax
	jge	.L12
	movl	$1, 168(%rsp)
	movl	$1, %edx
.L12:
	cmpl	$2, %edi
	je	.L11
	movl	40(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	104(%rsp), %eax
	jge	.L13
	movl	$1, 172(%rsp)
	movl	$1, %edx
.L13:
	cmpl	$3, %edi
	je	.L11
	movl	44(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	108(%rsp), %eax
	jge	.L14
	movl	$1, 176(%rsp)
	movl	$1, %edx
.L14:
	cmpl	$4, %edi
	je	.L11
	movl	48(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	112(%rsp), %eax
	jge	.L15
	movl	$1, 180(%rsp)
	movl	$1, %edx
.L15:
	cmpl	$5, %edi
	je	.L11
	movl	52(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	116(%rsp), %eax
	jge	.L16
	movl	$1, 184(%rsp)
	movl	$1, %edx
.L16:
	cmpl	$6, %edi
	je	.L11
	movl	56(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	120(%rsp), %eax
	jge	.L17
	movl	$1, 188(%rsp)
	movl	$1, %edx
.L17:
	cmpl	$7, %edi
	je	.L11
	movl	60(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	124(%rsp), %eax
	jge	.L18
	movl	$1, 192(%rsp)
	movl	$1, %edx
.L18:
	cmpl	$8, %edi
	je	.L11
	movl	64(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	128(%rsp), %eax
	jge	.L19
	movl	$1, 196(%rsp)
	movl	$1, %edx
.L19:
	cmpl	$9, %edi
	je	.L11
	movl	68(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	132(%rsp), %eax
	jge	.L20
	movl	$1, 200(%rsp)
	movl	$1, %edx
.L20:
	cmpl	$10, %edi
	je	.L11
	movl	72(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	136(%rsp), %eax
	jge	.L21
	movl	$1, 204(%rsp)
	movl	$1, %edx
.L21:
	cmpl	$11, %edi
	je	.L11
	movl	76(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	140(%rsp), %eax
	jge	.L22
	movl	$1, 208(%rsp)
	movl	$1, %edx
.L22:
	cmpl	$12, %edi
	je	.L11
	movl	80(%rsp), %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	cmpl	144(%rsp), %eax
	jge	.L23
	movl	$1, 212(%rsp)
	movl	$1, %edx
.L23:
	cmpl	$13, %edi
	je	.L11
	movl	84(%rsp), %eax
	subl	%edx, %eax
	cmpl	148(%rsp), %eax
	jge	.L11
	movl	$1, 216(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
.L25:
	leal	-1(%rcx), %eax
	movl	12(%rsp), %r9d
	leaq	32(%rsp), %r8
	xorl	%esi, %esi
	cltq
	leaq	96(%rsp), %r10
	xorl	%ecx, %ecx
	xorl	%r11d, %r11d
	movslq	4(%r8,%rax,4), %rdx
	movslq	4(%r10,%rax,4), %rdi
	leaq	160(%rsp), %rbp
	testl	%r9d, %r9d
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L160:
	cmpl	$1, 4(%rbp,%rax,4)
	je	.L159
.L28:
	movslq	%edx, %rdx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,2), %rcx
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rdi,%rdx,2), %rsi
	cmpl	$-1, %eax
	je	.L30
	subq	$1, %rax
	movslq	4(%r8,%rax,4), %rdx
	movslq	4(%r10,%rax,4), %rdi
	testl	%r9d, %r9d
	jg	.L160
.L27:
	leaq	(%rcx,%rcx,4), %rcx
	movl	%eax, %r8d
	leaq	(%rdx,%rcx,2), %rcx
	leaq	(%rsi,%rsi,4), %rdx
	leaq	(%rdi,%rdx,2), %rsi
	cmpl	$-1, %eax
	je	.L30
	movslq	%eax, %rdx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rsi,%rsi,4), %rsi
	movslq	32(%rsp,%rdx,4), %rdi
	movslq	96(%rsp,%rdx,4), %rdx
	leaq	(%rdi,%rcx,2), %rcx
	leaq	(%rdx,%rsi,2), %rsi
	leal	-1(%rax), %edx
	testl	%eax, %eax
	jne	.L32
.L30:
	movq	%rcx, 16(%rsp)
	movq	%rsi, 24(%rsp)
	testb	%r11b, %r11b
	je	.L26
	movl	%r9d, 12(%rsp)
.L26:
	movq	16(%rsp), %rdx
	xorl	%eax, %eax
	subq	24(%rsp), %rdx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L161
	addq	$248, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L48:
	.cfi_restore_state
	movl	$4, %ecx
	movl	$5, %edi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L159:
	leal	2(%rax), %ebx
	movslq	%ebx, %rbx
	movl	160(%rsp,%rbx,4), %ebx
	testl	%ebx, %ebx
	je	.L29
	cmpl	%edi, %edx
	je	.L28
.L29:
	addl	$1, %edx
	subl	$1, %r9d
	movl	$1, %r11d
	movl	%edx, 4(%r8,%rax,4)
	jmp	.L28
.L2:
	movq	24(%rsp), %r8
	testq	%r8, %r8
	jle	.L156
	movq	%r8, %rax
	movl	$10, %ecx
	cqto
	idivq	%rcx
	movl	%edx, 96(%rsp)
	cmpq	$9, %r8
	jle	.L156
	cqto
	xorl	%edi, %edi
	idivq	%rcx
	orl	$-1, %ecx
	movl	%edx, 100(%rsp)
	movq	%rax, %rsi
	cmpq	$99, %r8
	jg	.L41
.L9:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	cmpl	$-1, %ecx
	je	.L26
	jmp	.L25
.L44:
	xorl	%ecx, %ecx
	movl	$1, %edi
	jmp	.L3
.L45:
	movl	$1, %ecx
	movl	$2, %edi
	jmp	.L3
.L46:
	movl	$2, %ecx
	movl	$3, %edi
	jmp	.L3
.L47:
	movl	$3, %ecx
	movl	$4, %edi
	jmp	.L3
.L49:
	movl	$5, %ecx
	movl	$6, %edi
	jmp	.L3
.L56:
	movl	$12, %ecx
	movl	$13, %edi
	jmp	.L3
.L50:
	movl	$6, %ecx
	movl	$7, %edi
	jmp	.L3
.L51:
	movl	$7, %ecx
	movl	$8, %edi
	jmp	.L3
.L52:
	movl	$8, %ecx
	movl	$9, %edi
	jmp	.L3
.L53:
	movl	$9, %ecx
	movl	$10, %edi
	jmp	.L3
.L54:
	movl	$10, %ecx
	movl	$11, %edi
	jmp	.L3
.L55:
	movl	$11, %ecx
	movl	$12, %edi
	jmp	.L3
.L156:
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	jmp	.L26
.L57:
	movl	$13, %ecx
	movl	$14, %edi
	jmp	.L3
.L161:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	main.cold, @function
main.cold:
.LFSB35:
.L32:
	.cfi_def_cfa_offset 272
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movslq	%edx, %rdx
	imulq	$10, %rcx, %rcx
	movslq	32(%rsp,%rdx,4), %rax
	imulq	$10, %rsi, %rsi
	addq	%rax, %rcx
	movslq	96(%rsp,%rdx,4), %rax
	addq	%rax, %rsi
	leal	-2(%r8), %eax
	cmpl	$1, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-3(%r8), %eax
	cmpl	$2, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-4(%r8), %eax
	cmpl	$3, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-5(%r8), %eax
	cmpl	$4, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-6(%r8), %eax
	cmpl	$5, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-7(%r8), %eax
	cmpl	$6, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-8(%r8), %eax
	cmpl	$7, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-9(%r8), %eax
	cmpl	$8, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-10(%r8), %eax
	cmpl	$9, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-11(%r8), %eax
	cmpl	$10, %r8d
	je	.L30
	cltq
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rax,4), %rdx
	movslq	96(%rsp,%rax,4), %rax
	addq	%rdx, %rcx
	addq	%rax, %rsi
	leal	-12(%r8), %eax
	cmpl	$11, %r8d
	je	.L30
	movslq	%eax, %rdx
	imulq	$10, %rcx, %rcx
	imulq	$10, %rsi, %rsi
	movslq	32(%rsp,%rdx,4), %rdi
	movslq	96(%rsp,%rdx,4), %rdx
	addq	%rdi, %rcx
	addq	%rdx, %rsi
	testl	%eax, %eax
	je	.L30
	imulq	$10, %rcx, %rcx
	movslq	32(%rsp), %rax
	imulq	$10, %rsi, %rsi
	addq	%rax, %rcx
	movslq	96(%rsp), %rax
	addq	%rax, %rsi
	jmp	.L30
	.cfi_endproc
.LFE35:
	.section	.text.startup
	.size	main, .-main
	.section	.text.unlikely
	.size	main.cold, .-main.cold
.LCOLDE2:
	.section	.text.startup
.LHOTE2:
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#include<string.h>
int main(){
	int i,j,k,n,m,x;
	long long aa,bb;
	int a[15],b[15],c[15],f[15];
	char s[15],t[15],u;
	for(i=0;i<15;i++)b[i]=0,f[i]=0;
	scanf("%lld%lld%d",&aa,&bb,&n);
	x=0;while(aa>0)a[x]=aa%10,aa=aa/10,x++;
	m=x;
	x=0;while(bb>0)b[x]=bb%10,bb=bb/10,x++;
	x=0;
	for(i=0;i<m;i++){
		if(a[i]-x>=b[i])x=0;
		else{
			x=1;
			f[i+1]=1;
		}
	}
	aa=bb=0;
	for(i=m-1;i>=0;i--){
		if(n>0 && f[i]==1 && (f[i+1]==0 || a[i]-b[i]>=1 || (a[i]-b[i]<0) ) )n--,a[i]++;
		aa=aa*10;aa+=a[i];
		bb=bb*10;bb+=b[i];
	}
	//printf("%lld %lld\n",aa,bb);
	printf("%lld\n",aa-bb);
	return 0;
}
538 139 1
 2012 1987 2
 142 98 1
 100 0 3
 538 258 1
 142 98 2
 100 1 3
 110 1 3
 142 73 1
 010 1 3

499
 1125
 144
 100
 380
 154
 199
 119
 169
 19

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

```c
#include<stdio.h>
#include<string.h>
int main(){
	int i,j,k,n,m,x;
	long long aa,bb;
	int a[15],b[15],c[15],f[15];
	char s[15],t[15],u;
	for(i=0;i<15;i++)b[i]=0,f[i]=0;
	scanf("%lld%lld%d",&aa,&bb,&n);
	x=0;while(aa>0)a[x]=aa%10,aa=aa/10,x++;
	m=x;
	x=0;while(bb>0)b[x]=bb%10,bb=bb/10,x++;
	x=0;
	for(i=0;i<m;i++){
		if(a[i]-x>=b[i])x=0;
		else{
			x=1;
			f[i+1]=1;
		}
	}
	aa=bb=0;
	for(i=m-1;i>=0;i--){
		if(n>0 && f[i]==1 && (f[i+1]==0 || a[i]-b[i]>=1 || (a[i]-b[i]<0) ) )n--,a[i]++;
		aa=aa*10;aa+=a[i];
		bb=bb*10;bb+=b[i];
	}
	//printf("%lld %lld\n",aa,bb);
	printf("%lld\n",aa-bb);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -96(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$14, -252(%rbp)
	jle	.L3
	leaq	-256(%rbp), %rcx
	leaq	-232(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L4
.L5:
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -240(%rbp)
	addl	$1, -248(%rbp)
.L4:
	movq	-240(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
	movl	-248(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L6
.L7:
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -232(%rbp)
	addl	$1, -248(%rbp)
.L6:
	movq	-232(%rbp), %rax
	testq	%rax, %rax
	jg	.L7
	movl	$0, -248(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L8
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	-248(%rbp), %eax
	movl	%eax, %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -248(%rbp)
	jmp	.L10
.L9:
	movl	$1, -248(%rbp)
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$1, -96(%rbp,%rax,4)
.L10:
	addl	$1, -252(%rbp)
.L8:
	movl	-252(%rbp), %eax
	cmpl	-244(%rbp), %eax
	jl	.L11
	movq	$0, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	-244(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -252(%rbp)
	jmp	.L12
.L15:
	movl	-256(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-252(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jg	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jns	.L13
.L14:
	movl	-256(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -256(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
.L13:
	movq	-240(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -240(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-240(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	-232(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -232(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-232(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -232(%rbp)
	subl	$1, -252(%rbp)
.L12:
	cmpl	$0, -252(%rbp)
	jns	.L15
	movq	-240(%rbp), %rax
	movq	-232(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld%d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$256, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -252(%rbp)
	jmp	.L2
.L3:
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -160(%rbp,%rax,4)
	movl	-252(%rbp), %eax
	cltq
	movl	$0, -96(%rbp,%rax,4)
	addl	$1, -252(%rbp)
.L2:
	cmpl	$14, -252(%rbp)
	jle	.L3
	leaq	-256(%rbp), %rcx
	leaq	-232(%rbp), %rdx
	leaq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -248(%rbp)
	jmp	.L4
.L5:
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
	movq	-240(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -240(%rbp)
	addl	$1, -248(%rbp)
.L4:
	movq	-240(%rbp), %rax
	testq	%rax, %rax
	jg	.L5
	movl	-248(%rbp), %eax
	movl	%eax, -244(%rbp)
	movl	$0, -248(%rbp)
	jmp	.L6
.L7:
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	-248(%rbp), %eax
	cltq
	movl	%edx, -160(%rbp,%rax,4)
	movq	-232(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -232(%rbp)
	addl	$1, -248(%rbp)
.L6:
	movq	-232(%rbp), %rax
	testq	%rax, %rax
	jg	.L7
	movl	$0, -248(%rbp)
	movl	$0, -252(%rbp)
	jmp	.L8
.L11:
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	subl	-248(%rbp), %eax
	movl	%eax, %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L9
	movl	$0, -248(%rbp)
	jmp	.L10
.L9:
	movl	$1, -248(%rbp)
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	$1, -96(%rbp,%rax,4)
.L10:
	addl	$1, -252(%rbp)
.L8:
	movl	-252(%rbp), %eax
	cmpl	-244(%rbp), %eax
	jl	.L11
	movq	$0, -232(%rbp)
	movq	-232(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	-244(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -252(%rbp)
	jmp	.L12
.L15:
	movl	-256(%rbp), %eax
	testl	%eax, %eax
	jle	.L13
	movl	-252(%rbp), %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	-252(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-96(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jg	.L14
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jns	.L13
.L14:
	movl	-256(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -256(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-252(%rbp), %eax
	cltq
	movl	%edx, -224(%rbp,%rax,4)
.L13:
	movq	-240(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -240(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-224(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-240(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -240(%rbp)
	movq	-232(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -232(%rbp)
	movl	-252(%rbp), %eax
	cltq
	movl	-160(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	movq	-232(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -232(%rbp)
	subl	$1, -252(%rbp)
.L12:
	cmpl	$0, -252(%rbp)
	jns	.L15
	movq	-240(%rbp), %rax
	movq	-232(%rbp), %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
