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 <stdlib.h>
#include <string.h>
#define SIZE 200000
#define STRLEN 20

int main(void){
    int l,n, count=0;
    scanf("%d", &n);
    char y[n-1];
    for(int i=0;i<n;i++){
        scanf(" %c",&y[i]);
    }
    l = n-1;

    for(int i=0;i<n;i++){
        if(y[i] == 'W' && i < l){
            while(y[l] == 'W'){
                l--;
                if(l == i) break;
            }
            if(l != i){
                y[i] = 'R';
                y[l] = 'W';
                count++;
            }
        }
    }

    printf("%d\n", count);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-44(%rbp), %rsi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %ecx
	movq	%rsp, %rsi
	leal	-1(%rcx), %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r12,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cmpl	%ebx, %eax
	jg	.L6
	leal	-1(%rax), %edi
	testl	%eax, %eax
	jle	.L5
	movslq	%eax, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, (%r12,%rax)
	movl	%eax, %r8d
	movl	%eax, %esi
	jne	.L7
	movslq	%edi, %rdx
	cmpl	%eax, %edi
	jg	.L8
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L11:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L29
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	subq	$1, %rdx
	cmpl	%edx, %esi
	je	.L13
.L8:
	cmpb	$87, (%r12,%rdx)
	movl	%edx, %edi
	je	.L9
	cmpl	%esi, %edx
	je	.L7
	movslq	%edx, %rdx
	movb	$82, (%r12,%rax)
	addl	$1, %r9d
	movb	$87, (%r12,%rdx)
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	xorl	%r9d, %r9d
	jmp	.L11
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-44(%rbp), %rsi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %ecx
	movq	%rsp, %rsi
	leal	-1(%rcx), %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r12,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cmpl	%ebx, %eax
	jg	.L6
	leal	-1(%rax), %edi
	testl	%eax, %eax
	jle	.L5
	movslq	%eax, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, (%r12,%rax)
	movl	%eax, %r8d
	movl	%eax, %esi
	jne	.L7
	movslq	%edi, %rdx
	cmpl	%eax, %edi
	jg	.L8
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L11:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L29
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	subq	$1, %rdx
	cmpl	%edx, %esi
	je	.L13
.L8:
	cmpb	$87, (%r12,%rdx)
	movl	%edx, %edi
	je	.L9
	cmpl	%esi, %edx
	je	.L7
	movslq	%edx, %rdx
	movb	$82, (%r12,%rax)
	addl	$1, %r9d
	movb	$87, (%r12,%rdx)
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	xorl	%r9d, %r9d
	jmp	.L11
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-44(%rbp), %rsi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %ecx
	movq	%rsp, %rsi
	leal	-1(%rcx), %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r12,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cmpl	%ebx, %eax
	jg	.L6
	leal	-1(%rax), %edi
	testl	%eax, %eax
	jle	.L5
	movslq	%eax, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, (%r12,%rax)
	movl	%eax, %r8d
	movl	%eax, %esi
	jne	.L7
	movslq	%edi, %rdx
	cmpl	%eax, %edi
	jg	.L8
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L11:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L29
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	subq	$1, %rdx
	cmpl	%edx, %esi
	je	.L13
.L8:
	cmpb	$87, (%r12,%rdx)
	movl	%edx, %edi
	je	.L9
	cmpl	%esi, %edx
	je	.L7
	movslq	%edx, %rdx
	movb	$82, (%r12,%rax)
	addl	$1, %r9d
	movb	$87, (%r12,%rdx)
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	xorl	%r9d, %r9d
	jmp	.L11
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE 200000
#define STRLEN 20

int main(void){
    int l,n, count=0;
    scanf("%d", &n);
    char y[n-1];
    for(int i=0;i<n;i++){
        scanf(" %c",&y[i]);
    }
    l = n-1;

    for(int i=0;i<n;i++){
        if(y[i] == 'W' && i < l){
            while(y[l] == 'W'){
                l--;
                if(l == i) break;
            }
            if(l != i){
                y[i] = 'R';
                y[l] = 'W';
                count++;
            }
        }
    }

    printf("%d\n", count);
    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 <stdlib.h>
#include <string.h>
#define SIZE 200000
#define STRLEN 20

int main(void){
    int l,n, count=0;
    scanf("%d", &n);
    char y[n-1];
    for(int i=0;i<n;i++){
        scanf(" %c",&y[i]);
    }
    l = n-1;

    for(int i=0;i<n;i++){
        if(y[i] == 'W' && i < l){
            while(y[l] == 'W'){
                l--;
                if(l == i) break;
            }
            if(l != i){
                y[i] = 'R';
                y[l] = 'W';
                count++;
            }
        }
    }

    printf("%d\n", count);
    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:

8
RRWRWWRW
 2
RQ
 8
RRWWWRRW
 8
WRWWWRRR
 8
WWWWRRRR
 8
RRWRVWRW
 4
RRWW
 4
RWWR
 2
RS
 4
RRVW

1
 0
 2
 3
 4
 1
 0
 1
 0
 0

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 <stdlib.h>
#include <string.h>
#define SIZE 200000
#define STRLEN 20

int main(void){
    int l,n, count=0;
    scanf("%d", &n);
    char y[n-1];
    for(int i=0;i<n;i++){
        scanf(" %c",&y[i]);
    }
    l = n-1;

    for(int i=0;i<n;i++){
        if(y[i] == 'W' && i < l){
            while(y[l] == 'W'){
                l--;
                if(l == i) break;
            }
            if(l != i){
                y[i] = 'R';
                y[l] = 'W';
                count++;
            }
        }
    }

    printf("%d\n", count);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-44(%rbp), %rsi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %ecx
	movq	%rsp, %rsi
	leal	-1(%rcx), %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r12,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cmpl	%ebx, %eax
	jg	.L6
	leal	-1(%rax), %edi
	testl	%eax, %eax
	jle	.L5
	movslq	%eax, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, (%r12,%rax)
	movl	%eax, %r8d
	movl	%eax, %esi
	jne	.L7
	movslq	%edi, %rdx
	cmpl	%eax, %edi
	jg	.L8
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L11:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L29
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	subq	$1, %rdx
	cmpl	%edx, %esi
	je	.L13
.L8:
	cmpb	$87, (%r12,%rdx)
	movl	%edx, %edi
	je	.L9
	cmpl	%esi, %edx
	je	.L7
	movslq	%edx, %rdx
	movb	$82, (%r12,%rax)
	addl	$1, %r9d
	movb	$87, (%r12,%rdx)
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	xorl	%r9d, %r9d
	jmp	.L11
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r13
	pushq	%r12
	leaq	-44(%rbp), %rsi
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %ecx
	movq	%rsp, %rsi
	leal	-1(%rcx), %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L3
.L27:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L27
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L28
.L4:
	movq	%rsp, %r12
	testl	%ecx, %ecx
	jle	.L5
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	(%r12,%rbx), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cmpl	%ebx, %eax
	jg	.L6
	leal	-1(%rax), %edi
	testl	%eax, %eax
	jle	.L5
	movslq	%eax, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$87, (%r12,%rax)
	movl	%eax, %r8d
	movl	%eax, %esi
	jne	.L7
	movslq	%edi, %rdx
	cmpl	%eax, %edi
	jg	.L8
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L10
.L11:
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L29
	leaq	-24(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	subq	$1, %rdx
	cmpl	%edx, %esi
	je	.L13
.L8:
	cmpb	$87, (%r12,%rdx)
	movl	%edx, %edi
	je	.L9
	cmpl	%esi, %edx
	je	.L7
	movslq	%edx, %rdx
	movb	$82, (%r12,%rax)
	addl	$1, %r9d
	movb	$87, (%r12,%rdx)
	jmp	.L7
.L13:
	movl	%r8d, %edi
	jmp	.L7
.L28:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L5:
	xorl	%r9d, %r9d
	jmp	.L11
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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:
```