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(void){
    char s[100000+5];
    scanf("%s", s);
    int n=strlen(s);
    
    int ans[100000]={0};
    int i=0;
    while(i<n){
        int r=0, l=0;
        while(s[i]=='R')i++, r++;
        int p=i;
        while(s[i]=='L')i++, l++;
        ans[p-1]=(r+1)/2+l/2;
        ans[p]=r/2+(l+1)/2;
    }
    for(int i=0; i<n; i++)printf("%d ", ans[i]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d "
	.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
	leaq	-499712(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -500024(%rbp)
	leaq	-500016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -500040(%rbp)
	jmp	.L2
.L7:
	movl	$0, -500036(%rbp)
	movl	$0, -500032(%rbp)
	jmp	.L3
.L4:
	addl	$1, -500040(%rbp)
	addl	$1, -500036(%rbp)
.L3:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$82, %al
	je	.L4
	movl	-500040(%rbp), %eax
	movl	%eax, -500020(%rbp)
	jmp	.L5
.L6:
	addl	$1, -500040(%rbp)
	addl	$1, -500032(%rbp)
.L5:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$76, %al
	je	.L6
	movl	-500036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-500020(%rbp), %eax
	subl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
	movl	-500036(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	(%rcx,%rax), %edx
	movl	-500020(%rbp), %eax
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
.L2:
	movl	-500040(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L7
	movl	$0, -500028(%rbp)
	jmp	.L8
.L9:
	movl	-500028(%rbp), %eax
	cltq
	movl	-500016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -500028(%rbp)
.L8:
	movl	-500028(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%s"
.LC1:
	.string	"%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-499712(%rsp), %r11
	.cfi_def_cfa 11, 499768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$312, %rsp
	.cfi_def_cfa_offset 500080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 500008(%rsp)
	xorl	%eax, %eax
	leaq	400000(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rsp, %r8
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rax, %r12
	movq	%r8, %rdi
	movl	%eax, %ebp
	call	memset@PLT
	movzbl	400000(%rsp), %ecx
	testq	%r12, %r12
	je	.L11
	movq	%rax, %r8
	movl	$1, %r11d
	xorl	%eax, %eax
	leaq	399999(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	%r11d, %esi
	addq	%rbx, %rdx
	subl	%edx, %esi
	cmpb	$82, %cl
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%rsi,%rdx), %edi
	movzbl	1(%rdx), %ecx
	movl	%eax, %r9d
	addq	$1, %rdx
	addl	$1, %eax
	cmpb	$82, %cl
	je	.L4
	leal	1(%rdi), %r13d
	movslq	%eax, %r14
	sarl	%edi
	sarl	%r13d
.L9:
	cmpb	$76, %cl
	jne	.L5
	leal	1(%rax), %edx
	xorl	%esi, %esi
	movslq	%edx, %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	addq	$1, %rdx
	movl	%esi, %r15d
	addl	$1, %esi
	movzbl	(%r10,%rdx), %ecx
	cmpb	$76, %cl
	je	.L6
	addl	$2, %r15d
	sarl	%esi
	sarl	%r15d
	addl	%esi, %r13d
	addl	%r15d, %edi
.L5:
	movslq	%r9d, %r9
	movl	%r13d, (%rsp,%r9,4)
	movl	%edi, (%rsp,%r14,4)
	cmpl	%eax, %ebp
	jg	.L3
	leal	-1(%r12), %eax
	movq	%r8, %rbx
	leaq	.LC1(%rip), %rbp
	leaq	4(%rsp,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L10
.L11:
	movq	500008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$500024, %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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	leal	-1(%rax), %r9d
	movslq	%eax, %r14
	xorl	%edi, %edi
	xorl	%r13d, %r13d
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-499712(%rsp), %r11
	.cfi_def_cfa 11, 499768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$312, %rsp
	.cfi_def_cfa_offset 500080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 500008(%rsp)
	xorl	%eax, %eax
	leaq	400000(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	movq	%rsp, %r8
	movl	$400000, %edx
	xorl	%esi, %esi
	movq	%rax, %r12
	movq	%r8, %rdi
	movl	%eax, %ebp
	call	memset@PLT
	movzbl	400000(%rsp), %ecx
	testq	%r12, %r12
	je	.L11
	movq	%rax, %r8
	movl	$1, %r11d
	xorl	%eax, %eax
	leaq	399999(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%eax, %rdx
	movl	%r11d, %esi
	addq	%rbx, %rdx
	subl	%edx, %esi
	cmpb	$82, %cl
	jne	.L25
	.p2align 4,,10
	.p2align 3
.L4:
	leal	(%rsi,%rdx), %edi
	movzbl	1(%rdx), %ecx
	movl	%eax, %r9d
	addq	$1, %rdx
	addl	$1, %eax
	cmpb	$82, %cl
	je	.L4
	leal	1(%rdi), %r13d
	movslq	%eax, %r14
	sarl	%edi
	sarl	%r13d
.L9:
	cmpb	$76, %cl
	jne	.L5
	leal	1(%rax), %edx
	xorl	%esi, %esi
	movslq	%edx, %rdx
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	addq	$1, %rdx
	movl	%esi, %r15d
	addl	$1, %esi
	movzbl	(%r10,%rdx), %ecx
	cmpb	$76, %cl
	je	.L6
	addl	$2, %r15d
	sarl	%esi
	sarl	%r15d
	addl	%esi, %r13d
	addl	%r15d, %edi
.L5:
	movslq	%r9d, %r9
	movl	%r13d, (%rsp,%r9,4)
	movl	%edi, (%rsp,%r14,4)
	cmpl	%eax, %ebp
	jg	.L3
	leal	-1(%r12), %eax
	movq	%r8, %rbx
	leaq	.LC1(%rip), %rbp
	leaq	4(%rsp,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	(%rbx), %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__printf_chk@PLT
	cmpq	%rbx, %r12
	jne	.L10
.L11:
	movq	500008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$500024, %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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	leal	-1(%rax), %r9d
	movslq	%eax, %r14
	xorl	%edi, %edi
	xorl	%r13d, %r13d
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:

#include <stdio.h>
#include <string.h>
int main(void){
    char s[100000+5];
    scanf("%s", s);
    int n=strlen(s);
    
    int ans[100000]={0};
    int i=0;
    while(i<n){
        int r=0, l=0;
        while(s[i]=='R')i++, r++;
        int p=i;
        while(s[i]=='L')i++, l++;
        ans[p-1]=(r+1)/2+l/2;
        ans[p]=r/2+(l+1)/2;
    }
    for(int i=0; i<n; i++)printf("%d ", ans[i]);
    return 0;
}

RRLLRLRLLRLL
 RLRLLRLRRRRLLLLL
 RRLLLLRLRLRL
 RRRLLRLLRRLRLLLL
 RRLRLLRLLLRL
 RRLRLLRLLRLL
 RRLLLLRRLRLL
 RRRLLRLLLRRLLRLL
 RRLRRLLLLLRL
 RRRLLRLLRLRLLRLL

0 2 2 0 1 1 2 1 0 2 1 0  1 1 2 1 0 1 1 0 0 0 4 5 0 0 0 0  0 3 3 0 0 0 1 1 1 1 1 1  0 0 3 2 0 2 1 0 0 1 2 3 2 0 0 0  0 1 2 2 1 0 2 2 0 0 1 1  0 1 2 2 1 0 2 1 0 2 1 0  0 3 3 0 0 0 0 1 2 2 1 0  0 0 3 2 0 2 2 0 0 0 2 2 0 2 1 0  0 1 2 0 3 4 0 0 0 0 1 1  0 0 3 2 0 2 1 0 1 1 2 1 0 2 1 0 
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(void){
    char s[100000+5];
    scanf("%s", s);
    int n=strlen(s);
    
    int ans[100000]={0};
    int i=0;
    while(i<n){
        int r=0, l=0;
        while(s[i]=='R')i++, r++;
        int p=i;
        while(s[i]=='L')i++, l++;
        ans[p-1]=(r+1)/2+l/2;
        ans[p]=r/2+(l+1)/2;
    }
    for(int i=0; i<n; i++)printf("%d ", ans[i]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d "
	.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
	leaq	-499712(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -500024(%rbp)
	leaq	-500016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -500040(%rbp)
	jmp	.L2
.L7:
	movl	$0, -500036(%rbp)
	movl	$0, -500032(%rbp)
	jmp	.L3
.L4:
	addl	$1, -500040(%rbp)
	addl	$1, -500036(%rbp)
.L3:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$82, %al
	je	.L4
	movl	-500040(%rbp), %eax
	movl	%eax, -500020(%rbp)
	jmp	.L5
.L6:
	addl	$1, -500040(%rbp)
	addl	$1, -500032(%rbp)
.L5:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$76, %al
	je	.L6
	movl	-500036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-500020(%rbp), %eax
	subl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
	movl	-500036(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	(%rcx,%rax), %edx
	movl	-500020(%rbp), %eax
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
.L2:
	movl	-500040(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L7
	movl	$0, -500028(%rbp)
	jmp	.L8
.L9:
	movl	-500028(%rbp), %eax
	cltq
	movl	-500016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -500028(%rbp)
.L8:
	movl	-500028(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"%s"
.LC1:
	.string	"%d "
	.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
	leaq	-499712(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$336, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -500024(%rbp)
	leaq	-500016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -500040(%rbp)
	jmp	.L2
.L7:
	movl	$0, -500036(%rbp)
	movl	$0, -500032(%rbp)
	jmp	.L3
.L4:
	addl	$1, -500040(%rbp)
	addl	$1, -500036(%rbp)
.L3:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$82, %al
	je	.L4
	movl	-500040(%rbp), %eax
	movl	%eax, -500020(%rbp)
	jmp	.L5
.L6:
	addl	$1, -500040(%rbp)
	addl	$1, -500032(%rbp)
.L5:
	movl	-500040(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$76, %al
	je	.L6
	movl	-500036(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-500020(%rbp), %eax
	subl	$1, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
	movl	-500036(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-500032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	leal	(%rcx,%rax), %edx
	movl	-500020(%rbp), %eax
	cltq
	movl	%edx, -500016(%rbp,%rax,4)
.L2:
	movl	-500040(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L7
	movl	$0, -500028(%rbp)
	jmp	.L8
.L9:
	movl	-500028(%rbp), %eax
	cltq
	movl	-500016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -500028(%rbp)
.L8:
	movl	-500028(%rbp), %eax
	cmpl	-500024(%rbp), %eax
	jl	.L9
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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:
