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

```c
#include <stdio.h>
#include <string.h>

char in[100000], out[100000];

int main(void)
{
//    char in[10000];
    int n;
    int i, j;
//    char out[10000];
    char tmp[10];
    int p, m, l;
    
    
    while (1){
        scanf("%d", &n);
        if (n == 0){
            break;
        }
        
        scanf("%s", in);
        
        for (i = 0; i < n; i++){
            out[0] = '\0';
            p = 0;
            while (in[p] != '\0'){
                m = in[p] - '0';
                l = 0;
                while (m == in[p] - '0'){
                    p++;
                    l++;
                }
                sprintf(tmp, "%d%d", l, m);
//                printf("[%d%d]", l, m);
                strcat(out, tmp);
            }
//printf("[%s]\n", out);

            strcpy(in, out);
        }
        
        printf("%s\n", out);
    }
    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	in(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1(%rbp), %r14
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	movl	$0, 4(%rsp)
	leaq	out(%rip), %r12
	leaq	30(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	testl	%r15d, %r15d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	0(%rbp), %edx
	movb	$0, out(%rip)
	testb	%dl, %dl
	je	.L5
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	%dl, %r9d
	leal	1(%r15), %eax
	xorl	%r8d, %r8d
	subl	$48, %r9d
	cltq
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %r15d
	addq	$1, %rax
	addl	$1, %r8d
	cmpb	%dl, (%r14,%rax)
	je	.L6
	movq	%r13, %rcx
	movl	$10, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$100000, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__strcat_chk@PLT
	movslq	%r15d, %rax
	movzbl	0(%rbp,%rax), %edx
	testb	%dl, %dl
	jne	.L7
	movl	24(%rsp), %r15d
.L5:
	movl	$100000, %edx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__strcpy_chk@PLT
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L3
.L8:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$56, %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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 100000
out:
	.zero	100000
	.globl	in
	.align 32
	.type	in, @object
	.size	in, 100000
in:
	.zero	100000
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	in(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1(%rbp), %r14
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	movl	$0, 4(%rsp)
	leaq	out(%rip), %r12
	leaq	30(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	testl	%r15d, %r15d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	0(%rbp), %edx
	movb	$0, out(%rip)
	testb	%dl, %dl
	je	.L5
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	%dl, %r9d
	leal	1(%r15), %eax
	xorl	%r8d, %r8d
	subl	$48, %r9d
	cltq
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %r15d
	addq	$1, %rax
	addl	$1, %r8d
	cmpb	%dl, (%r14,%rax)
	je	.L6
	movq	%r13, %rcx
	movl	$10, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$100000, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__strcat_chk@PLT
	movslq	%r15d, %rax
	movzbl	0(%rbp,%rax), %edx
	testb	%dl, %dl
	jne	.L7
	movl	24(%rsp), %r15d
.L5:
	movl	$100000, %edx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__strcpy_chk@PLT
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L3
.L8:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$56, %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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 100000
out:
	.zero	100000
	.globl	in
	.align 32
	.type	in, @object
	.size	in, 100000
in:
	.zero	100000
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	in(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1(%rbp), %r14
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	movl	$0, 4(%rsp)
	leaq	out(%rip), %r12
	leaq	30(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	testl	%r15d, %r15d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	0(%rbp), %edx
	movb	$0, out(%rip)
	testb	%dl, %dl
	je	.L5
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	%dl, %r9d
	leal	1(%r15), %eax
	xorl	%r8d, %r8d
	subl	$48, %r9d
	cltq
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %r15d
	addq	$1, %rax
	addl	$1, %r8d
	cmpb	%dl, (%r14,%rax)
	je	.L6
	movq	%r13, %rcx
	movl	$10, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$100000, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__strcat_chk@PLT
	movslq	%r15d, %rax
	movzbl	0(%rbp,%rax), %edx
	testb	%dl, %dl
	jne	.L7
	movl	24(%rsp), %r15d
.L5:
	movl	$100000, %edx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__strcpy_chk@PLT
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L3
.L8:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$56, %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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 100000
out:
	.zero	100000
	.globl	in
	.align 32
	.type	in, @object
	.size	in, 100000
in:
	.zero	100000
	.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:
```
```c
#include <stdio.h>
#include <string.h>

char in[100000], out[100000];

int main(void)
{
//    char in[10000];
    int n;
    int i, j;
//    char out[10000];
    char tmp[10];
    int p, m, l;
    
    
    while (1){
        scanf("%d", &n);
        if (n == 0){
            break;
        }
        
        scanf("%s", in);
        
        for (i = 0; i < n; i++){
            out[0] = '\0';
            p = 0;
            while (in[p] != '\0'){
                m = in[p] - '0';
                l = 0;
                while (m == in[p] - '0'){
                    p++;
                    l++;
                }
                sprintf(tmp, "%d%d", l, m);
//                printf("[%d%d]", l, m);
                strcat(out, tmp);
            }
//printf("[%s]\n", out);

            strcpy(in, out);
        }
        
        printf("%s\n", out);
    }
    return (0);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>

char in[100000], out[100000];

int main(void)
{
//    char in[10000];
    int n;
    int i, j;
//    char out[10000];
    char tmp[10];
    int p, m, l;
    
    
    while (1){
        scanf("%d", &n);
        if (n == 0){
            break;
        }
        
        scanf("%s", in);
        
        for (i = 0; i < n; i++){
            out[0] = '\0';
            p = 0;
            while (in[p] != '\0'){
                m = in[p] - '0';
                l = 0;
                while (m == in[p] - '0'){
                    p++;
                    l++;
                }
                sprintf(tmp, "%d%d", l, m);
//                printf("[%d%d]", l, m);
                strcat(out, tmp);
            }
//printf("[%s]\n", out);

            strcpy(in, out);
        }
        
        printf("%s\n", out);
    }
    return (0);
}```

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.
Optimized Assembly Code:

5
11
5
21
0
 5
18
5
21
0
 5
18
5
1
0
 5
18
6
1
0
 5
28
6
1
0
 5
28
11
1
0
 5
28
3
1
0
 5
43
3
1
0
 5
43
3
0
0
 5
11
5
15
0

13112221
1113213211
 311311222118
1113213211
 311311222118
312211
 311311222118
13112221
 11131221121113122118
13112221
 11131221121113122118
3113112221232112111312211312113211
 11131221121113122118
1211
 11131221141113122113
1211
 11131221141113122113
3110
 13112221
311311222115

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

```c
#include <stdio.h>
#include <string.h>

char in[100000], out[100000];

int main(void)
{
//    char in[10000];
    int n;
    int i, j;
//    char out[10000];
    char tmp[10];
    int p, m, l;
    
    
    while (1){
        scanf("%d", &n);
        if (n == 0){
            break;
        }
        
        scanf("%s", in);
        
        for (i = 0; i < n; i++){
            out[0] = '\0';
            p = 0;
            while (in[p] != '\0'){
                m = in[p] - '0';
                l = 0;
                while (m == in[p] - '0'){
                    p++;
                    l++;
                }
                sprintf(tmp, "%d%d", l, m);
//                printf("[%d%d]", l, m);
                strcat(out, tmp);
            }
//printf("[%s]\n", out);

            strcpy(in, out);
        }
        
        printf("%s\n", out);
    }
    return (0);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	in(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1(%rbp), %r14
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	movl	$0, 4(%rsp)
	leaq	out(%rip), %r12
	leaq	30(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	testl	%r15d, %r15d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	0(%rbp), %edx
	movb	$0, out(%rip)
	testb	%dl, %dl
	je	.L5
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	%dl, %r9d
	leal	1(%r15), %eax
	xorl	%r8d, %r8d
	subl	$48, %r9d
	cltq
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %r15d
	addq	$1, %rax
	addl	$1, %r8d
	cmpb	%dl, (%r14,%rax)
	je	.L6
	movq	%r13, %rcx
	movl	$10, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$100000, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__strcat_chk@PLT
	movslq	%r15d, %rax
	movzbl	0(%rbp,%rax), %edx
	testb	%dl, %dl
	jne	.L7
	movl	24(%rsp), %r15d
.L5:
	movl	$100000, %edx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__strcpy_chk@PLT
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L3
.L8:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$56, %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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 100000
out:
	.zero	100000
	.globl	in
	.align 32
	.type	in, @object
	.size	in, 100000
in:
	.zero	100000
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	in(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-1(%rbp), %r14
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movq	%rax, 8(%rsp)
.L4:
	movq	8(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r15d
	movl	$0, 4(%rsp)
	leaq	out(%rip), %r12
	leaq	30(%rsp), %rbx
	leaq	.LC2(%rip), %r13
	testl	%r15d, %r15d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	0(%rbp), %edx
	movb	$0, out(%rip)
	testb	%dl, %dl
	je	.L5
	xorl	%r15d, %r15d
	.p2align 4,,10
	.p2align 3
.L7:
	movsbl	%dl, %r9d
	leal	1(%r15), %eax
	xorl	%r8d, %r8d
	subl	$48, %r9d
	cltq
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%eax, %r15d
	addq	$1, %rax
	addl	$1, %r8d
	cmpb	%dl, (%r14,%rax)
	je	.L6
	movq	%r13, %rcx
	movl	$10, %edx
	movl	$1, %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__sprintf_chk@PLT
	movl	$100000, %edx
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__strcat_chk@PLT
	movslq	%r15d, %rax
	movzbl	0(%rbp,%rax), %edx
	testb	%dl, %dl
	jne	.L7
	movl	24(%rsp), %r15d
.L5:
	movl	$100000, %edx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__strcpy_chk@PLT
	addl	$1, 4(%rsp)
	movl	4(%rsp), %eax
	cmpl	%r15d, %eax
	jl	.L3
.L8:
	movq	%r12, %rdi
	call	puts@PLT
	jmp	.L4
.L2:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$56, %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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.size	main, .-main
	.globl	out
	.bss
	.align 32
	.type	out, @object
	.size	out, 100000
out:
	.zero	100000
	.globl	in
	.align 32
	.type	in, @object
	.size	in, 100000
in:
	.zero	100000
	.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:
```