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>
int main(){
    int n,k,ans;
    int p=0;
    int q=0;
    scanf("%d %d",&n,&k);
  
    int S[n];
    char s[n];
    scanf("%s",s);
  
    for(int i=0;i<n;i++){
      if('L'==s[i]){
        S[i]=0;
      }else{
        S[i]=1;
      }
    }
    
    for(int i=0;i<n-1;i++){
        if(S[i]!=S[i+1]){
            p=p+1;
        }else{
          q=q+1;
        }
    }
    
    if(p<=2*k){
      ans=n-1;
    }else{
      ans=q+2*k;
    }
    
    printf("%d",ans);
    
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -96(%rbp)
	jmp	.L8
.L11:
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L9
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L10
.L9:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L10:
	addl	$1, -96(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	jmp	.L12
.L15:
	movq	-80(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-92(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	je	.L13
	addl	$1, -104(%rbp)
	jmp	.L14
.L13:
	addl	$1, -100(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-116(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -92(%rbp)
	jl	.L15
	movl	-112(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -104(%rbp)
	jg	.L16
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L16:
	movl	-112(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -108(%rbp)
.L17:
	movl	-108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L41:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L41
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L42
.L4:
	addq	$15, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L42:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L43
.L7:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %ecx
	leal	-1(%rcx), %esi
	testl	%ecx, %ecx
	jle	.L8
	cmpl	$14, %esi
	jbe	.L26
	movl	%ecx, %edi
	movdqa	.LC2(%rip), %xmm6
	movq	%rsp, %rdx
	movq	%rbx, %rax
	shrl	$4, %edi
	movdqa	.LC3(%rip), %xmm5
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	salq	$4, %rdi
	addq	%rsp, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	addq	$64, %rax
	pcmpeqb	%xmm6, %xmm0
	pandn	%xmm5, %xmm0
	movdqa	%xmm0, %xmm1
	punpckhbw	%xmm3, %xmm0
	punpcklbw	%xmm3, %xmm1
	movdqa	%xmm1, %xmm4
	punpckhwd	%xmm2, %xmm1
	movups	%xmm1, -48(%rax)
	movdqa	%xmm0, %xmm1
	punpcklwd	%xmm2, %xmm4
	punpckhwd	%xmm2, %xmm0
	punpcklwd	%xmm2, %xmm1
	movups	%xmm4, -64(%rax)
	movups	%xmm1, -32(%rax)
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rdi
	jne	.L10
	movl	%ecx, %eax
	andl	$-16, %eax
	testb	$15, %cl
	je	.L24
.L9:
	movslq	%eax, %rdi
	cmpb	$76, (%r12,%rdi)
	leaq	(%rbx,%rdi,4), %rdx
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, (%rdx)
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L8
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 4(%rdx)
	leal	2(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 8(%rdx)
	leal	3(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 12(%rdx)
	leal	4(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 16(%rdx)
	leal	5(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 20(%rdx)
	leal	6(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 24(%rdx)
	leal	7(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 28(%rdx)
	leal	8(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 32(%rdx)
	leal	9(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 36(%rdx)
	leal	10(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 40(%rdx)
	leal	11(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 44(%rdx)
	leal	12(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 48(%rdx)
	leal	13(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	addl	$14, %eax
	movzbl	%dil, %edi
	movl	%edi, 52(%rdx)
	cmpl	%eax, %ecx
	jle	.L24
	cltq
	cmpb	$76, (%r12,%rax)
	setne	%al
	movzbl	%al, %eax
	movl	%eax, 56(%rdx)
	.p2align 4,,10
	.p2align 3
.L24:
	subl	$2, %ecx
	cmpl	$2, %ecx
	jbe	.L28
	movl	%esi, %edx
	pxor	%xmm1, %xmm1
	movdqa	.LC4(%rip), %xmm4
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%rax), %xmm0
	movdqu	4(%rax), %xmm7
	addq	$16, %rax
	pcmpeqd	%xmm7, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm2
	pandn	%xmm4, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L14
	movdqa	%xmm1, %xmm0
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm1, %edx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %sil
	je	.L12
.L13:
	movslq	%ecx, %rdi
	leal	1(%rcx), %r9d
	leaq	(%rbx,%rdi,4), %rdi
	movl	4(%rdi), %r8d
	cmpl	(%rdi), %r8d
	je	.L16
	addl	$1, %eax
.L17:
	cmpl	%esi, %r9d
	jge	.L12
	movl	8(%rdi), %r9d
	addl	$2, %ecx
	cmpl	%r9d, %r8d
	je	.L18
	addl	$1, %eax
.L19:
	cmpl	%esi, %ecx
	jge	.L12
	cmpl	12(%rdi), %r9d
	je	.L44
	addl	$1, %eax
.L12:
	movl	-28(%rbp), %ebx
	movl	$1, %edi
	leal	(%rbx,%rbx), %ecx
	addl	%ecx, %edx
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L45
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L16:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L17
.L18:
	addl	$1, %edx
	jmp	.L19
.L8:
	testl	%esi, %esi
	jg	.L24
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L12
.L44:
	addl	$1, %edx
	jmp	.L12
.L26:
	xorl	%eax, %eax
	jmp	.L9
.L28:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L13
.L43:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC5:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-32(%rbp), %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rax
	movq	%rax, %rcx
	andq	$-4096, %rax
	subq	%rax, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L41:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L41
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L42
.L4:
	addq	$15, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L42:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L6:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L43
.L7:
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rsp, %r12
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %ecx
	leal	-1(%rcx), %esi
	testl	%ecx, %ecx
	jle	.L8
	cmpl	$14, %esi
	jbe	.L26
	movl	%ecx, %edi
	movdqa	.LC2(%rip), %xmm6
	movq	%rsp, %rdx
	movq	%rbx, %rax
	shrl	$4, %edi
	movdqa	.LC3(%rip), %xmm5
	pxor	%xmm3, %xmm3
	pxor	%xmm2, %xmm2
	salq	$4, %rdi
	addq	%rsp, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	addq	$64, %rax
	pcmpeqb	%xmm6, %xmm0
	pandn	%xmm5, %xmm0
	movdqa	%xmm0, %xmm1
	punpckhbw	%xmm3, %xmm0
	punpcklbw	%xmm3, %xmm1
	movdqa	%xmm1, %xmm4
	punpckhwd	%xmm2, %xmm1
	movups	%xmm1, -48(%rax)
	movdqa	%xmm0, %xmm1
	punpcklwd	%xmm2, %xmm4
	punpckhwd	%xmm2, %xmm0
	punpcklwd	%xmm2, %xmm1
	movups	%xmm4, -64(%rax)
	movups	%xmm1, -32(%rax)
	movups	%xmm0, -16(%rax)
	cmpq	%rdx, %rdi
	jne	.L10
	movl	%ecx, %eax
	andl	$-16, %eax
	testb	$15, %cl
	je	.L24
.L9:
	movslq	%eax, %rdi
	cmpb	$76, (%r12,%rdi)
	leaq	(%rbx,%rdi,4), %rdx
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, (%rdx)
	leal	1(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L8
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 4(%rdx)
	leal	2(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 8(%rdx)
	leal	3(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 12(%rdx)
	leal	4(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 16(%rdx)
	leal	5(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 20(%rdx)
	leal	6(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 24(%rdx)
	leal	7(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 28(%rdx)
	leal	8(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 32(%rdx)
	leal	9(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 36(%rdx)
	leal	10(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 40(%rdx)
	leal	11(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 44(%rdx)
	leal	12(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	movzbl	%dil, %edi
	movl	%edi, 48(%rdx)
	leal	13(%rax), %edi
	cmpl	%edi, %ecx
	jle	.L24
	movslq	%edi, %rdi
	cmpb	$76, (%r12,%rdi)
	setne	%dil
	addl	$14, %eax
	movzbl	%dil, %edi
	movl	%edi, 52(%rdx)
	cmpl	%eax, %ecx
	jle	.L24
	cltq
	cmpb	$76, (%r12,%rax)
	setne	%al
	movzbl	%al, %eax
	movl	%eax, 56(%rdx)
	.p2align 4,,10
	.p2align 3
.L24:
	subl	$2, %ecx
	cmpl	$2, %ecx
	jbe	.L28
	movl	%esi, %edx
	pxor	%xmm1, %xmm1
	movdqa	.LC4(%rip), %xmm4
	movq	%rbx, %rax
	shrl	$2, %edx
	movdqa	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L14:
	movdqu	(%rax), %xmm0
	movdqu	4(%rax), %xmm7
	addq	$16, %rax
	pcmpeqd	%xmm7, %xmm0
	pcmpeqd	%xmm3, %xmm0
	psubd	%xmm0, %xmm2
	pandn	%xmm4, %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rdx, %rax
	jne	.L14
	movdqa	%xmm1, %xmm0
	movl	%esi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	psrldq	$8, %xmm0
	movd	%xmm1, %edx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %eax
	testb	$3, %sil
	je	.L12
.L13:
	movslq	%ecx, %rdi
	leal	1(%rcx), %r9d
	leaq	(%rbx,%rdi,4), %rdi
	movl	4(%rdi), %r8d
	cmpl	(%rdi), %r8d
	je	.L16
	addl	$1, %eax
.L17:
	cmpl	%esi, %r9d
	jge	.L12
	movl	8(%rdi), %r9d
	addl	$2, %ecx
	cmpl	%r9d, %r8d
	je	.L18
	addl	$1, %eax
.L19:
	cmpl	%esi, %ecx
	jge	.L12
	cmpl	12(%rdi), %r9d
	je	.L44
	addl	$1, %eax
.L12:
	movl	-28(%rbp), %ebx
	movl	$1, %edi
	leal	(%rbx,%rbx), %ecx
	addl	%ecx, %edx
	cmpl	%eax, %ecx
	cmovge	%esi, %edx
	xorl	%eax, %eax
	leaq	.LC5(%rip), %rsi
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L45
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L16:
	.cfi_restore_state
	addl	$1, %edx
	jmp	.L17
.L18:
	addl	$1, %edx
	jmp	.L19
.L8:
	testl	%esi, %esi
	jg	.L24
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L12
.L44:
	addl	$1, %edx
	jmp	.L12
.L26:
	xorl	%eax, %eax
	jmp	.L9
.L28:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	.L13
.L43:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.byte	76
	.align 16
.LC3:
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.byte	1
	.align 16
.LC4:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>
int main(){
    int n,k,ans;
    int p=0;
    int q=0;
    scanf("%d %d",&n,&k);
  
    int S[n];
    char s[n];
    scanf("%s",s);
  
    for(int i=0;i<n;i++){
      if('L'==s[i]){
        S[i]=0;
      }else{
        S[i]=1;
      }
    }
    
    for(int i=0;i<n-1;i++){
        if(S[i]!=S[i+1]){
            p=p+1;
        }else{
          q=q+1;
        }
    }
    
    if(p<=2*k){
      ans=n-1;
    }else{
      ans=q+2*k;
    }
    
    printf("%d",ans);
    
    return 0;
}

6 2
LRLRRL
 9 3
RRRLRLRLL
 9 0
RRRLRLRLL
 6 0
LRRLRL
 9 1
RRRRLLRLL
 9 1
RLRRLLLRR
 6 1
RRLLRL
 10 2
LLLLLRRRRR
 13 4
LRRLRLRRLRLLR
 13 8
LRRLRLRRLRLLR

5 8 3 1 7 6 4 9 11 12
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>
int main(){
    int n,k,ans;
    int p=0;
    int q=0;
    scanf("%d %d",&n,&k);
  
    int S[n];
    char s[n];
    scanf("%s",s);
  
    for(int i=0;i<n;i++){
      if('L'==s[i]){
        S[i]=0;
      }else{
        S[i]=1;
      }
    }
    
    for(int i=0;i<n-1;i++){
        if(S[i]!=S[i+1]){
            p=p+1;
        }else{
          q=q+1;
        }
    }
    
    if(p<=2*k){
      ans=n-1;
    }else{
      ans=q+2*k;
    }
    
    printf("%d",ans);
    
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -96(%rbp)
	jmp	.L8
.L11:
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L9
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L10
.L9:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L10:
	addl	$1, -96(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	jmp	.L12
.L15:
	movq	-80(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-92(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	je	.L13
	addl	$1, -104(%rbp)
	jmp	.L14
.L13:
	addl	$1, -100(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-116(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -92(%rbp)
	jl	.L15
	movl	-112(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -104(%rbp)
	jg	.L16
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L16:
	movl	-112(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -108(%rbp)
.L17:
	movl	-108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"%d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -104(%rbp)
	movl	$0, -100(%rbp)
	leaq	-112(%rbp), %rdx
	leaq	-116(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -160(%rbp)
	movq	$0, -152(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -96(%rbp)
	jmp	.L8
.L11:
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %eax
	cmpb	$76, %al
	jne	.L9
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	jmp	.L10
.L9:
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
.L10:
	addl	$1, -96(%rbp)
.L8:
	movl	-116(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L11
	movl	$0, -92(%rbp)
	jmp	.L12
.L15:
	movq	-80(%rbp), %rax
	movl	-92(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-92(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	je	.L13
	addl	$1, -104(%rbp)
	jmp	.L14
.L13:
	addl	$1, -100(%rbp)
.L14:
	addl	$1, -92(%rbp)
.L12:
	movl	-116(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -92(%rbp)
	jl	.L15
	movl	-112(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -104(%rbp)
	jg	.L16
	movl	-116(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -108(%rbp)
	jmp	.L17
.L16:
	movl	-112(%rbp), %eax
	leal	(%rax,%rax), %edx
	movl	-100(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -108(%rbp)
.L17:
	movl	-108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
