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(void) {
	int a,b,i,j,k,n,m,now,ans = 10000,c[64][4] = {0};
	char s[64];
	scanf("%d%d",&n,&m);
	for(i = 1;i <= n;i++){
		scanf("%s",s);
		for(j = 0;j < m;j++){
			if (s[j] == 'W'){c[i][0]++;}
			else if(s[j] == 'B'){c[i][1]++;}
			else if(s[j] == 'R'){c[i][2]++;}
		}
	}
	for(i = 1;i <= n-2;i++){
		for(j = i+1;j <= n-1;j++){
			now = 0;
			for(k = 1;k <= i;k++){
				now+=(c[k][1] + c[k][2]);
			}
			for(k = i + 1;k <= j;k++){
				now+=(c[k][0] + c[k][2]);
			}
			for(k = j + 1;k <= n;k++){
				now+=(c[k][0] + c[k][1]);
			}
			if(now < ans){ans = now;}
		}
	}
	printf("%d\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10000, -1108(%rbp)
	leaq	-1104(%rbp), %rdx
	movl	$0, %eax
	movl	$128, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1128(%rbp), %rdx
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1124(%rbp)
	jmp	.L2
.L8:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1120(%rbp)
	jmp	.L3
.L7:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$87, %al
	jne	.L4
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L4:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L6
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L6:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L5
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	%edx, (%rax)
.L5:
	addl	$1, -1120(%rbp)
.L3:
	movl	-1128(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L7
	addl	$1, -1124(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jle	.L8
	movl	$1, -1124(%rbp)
	jmp	.L9
.L19:
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1120(%rbp)
	jmp	.L10
.L18:
	movl	$0, -1112(%rbp)
	movl	$1, -1116(%rbp)
	jmp	.L11
.L12:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L11:
	movl	-1116(%rbp), %eax
	cmpl	-1124(%rbp), %eax
	jle	.L12
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L13
.L14:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L13:
	movl	-1116(%rbp), %eax
	cmpl	-1120(%rbp), %eax
	jle	.L14
	movl	-1120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L15
.L16:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L15:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1116(%rbp)
	jle	.L16
	movl	-1112(%rbp), %eax
	cmpl	-1108(%rbp), %eax
	jge	.L17
	movl	-1112(%rbp), %eax
	movl	%eax, -1108(%rbp)
.L17:
	addl	$1, -1120(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L18
	addl	$1, -1124(%rbp)
.L9:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L19
	movl	-1108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$128, %ecx
	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
	subq	$1208, %rsp
	.cfi_def_cfa_offset 1264
	movq	%fs:40, %rax
	movq	%rax, 1192(%rsp)
	xorl	%eax, %eax
	leaq	96(%rsp), %rdi
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	112(%rsp), %rbx
	movl	$1, %r13d
	leaq	1120(%rsp), %r14
	leaq	.LC1(%rip), %rbp
	leaq	1121(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	92(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	leal	-1(%rdx), %ecx
	movq	%r14, %rax
	addq	%r12, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$66, %dl
	je	.L135
	cmpb	$82, %dl
	jne	.L5
	addl	$1, 8(%rbx)
.L5:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L3
.L7:
	movzbl	(%rax), %edx
	cmpb	$87, %dl
	jne	.L4
	addq	$1, %rax
	addl	$1, (%rbx)
	cmpq	%rcx, %rax
	jne	.L7
.L3:
	movl	88(%rsp), %r11d
	addl	$1, %r13d
	addq	$16, %rbx
	cmpl	%r13d, %r11d
	jge	.L8
.L2:
	leal	-1(%r11), %ebp
	movl	%ebp, 28(%rsp)
	cmpl	$1, %ebp
	jle	.L25
	movdqu	116(%rsp), %xmm0
	movl	$1, %ebx
	movdqu	148(%rsp), %xmm1
	leaq	144(%rsp), %rdx
	xorl	%r13d, %r13d
	movl	$10000, %r12d
	movl	$1, %r14d
	movdqu	132(%rsp), %xmm6
	movdqu	164(%rsp), %xmm5
	movdqa	%xmm0, %xmm3
	movdqa	%xmm1, %xmm2
	movdqu	324(%rsp), %xmm7
	shufps	$136, %xmm6, %xmm3
	shufps	$221, %xmm6, %xmm0
	movdqu	228(%rsp), %xmm6
	shufps	$136, %xmm5, %xmm2
	shufps	$221, %xmm5, %xmm1
	shufps	$136, %xmm2, %xmm3
	shufps	$136, %xmm1, %xmm0
	movdqu	212(%rsp), %xmm1
	paddd	%xmm0, %xmm3
	movdqu	180(%rsp), %xmm0
	movdqu	196(%rsp), %xmm5
	movaps	%xmm3, (%rsp)
	movdqa	%xmm0, %xmm4
	movdqa	%xmm1, %xmm2
	shufps	$221, %xmm6, %xmm1
	shufps	$136, %xmm6, %xmm2
	shufps	$136, %xmm5, %xmm4
	shufps	$221, %xmm5, %xmm0
	shufps	$136, %xmm2, %xmm4
	movdqu	260(%rsp), %xmm6
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm4
	movdqu	244(%rsp), %xmm0
	movdqu	276(%rsp), %xmm1
	paddd	%xmm3, %xmm4
	movdqa	%xmm0, %xmm5
	shufps	$136, %xmm6, %xmm5
	movdqa	%xmm1, %xmm2
	movdqu	292(%rsp), %xmm6
	shufps	$136, %xmm6, %xmm2
	shufps	$136, %xmm2, %xmm5
	movdqu	260(%rsp), %xmm6
	shufps	$221, %xmm6, %xmm0
	movdqu	292(%rsp), %xmm6
	shufps	$221, %xmm6, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm5
	movdqu	308(%rsp), %xmm0
	movdqu	340(%rsp), %xmm1
	paddd	%xmm4, %xmm5
	movdqa	%xmm0, %xmm6
	shufps	$136, %xmm7, %xmm6
	movdqa	%xmm1, %xmm2
	movdqu	356(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm6
	movdqu	324(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	356(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm6
	movdqu	372(%rsp), %xmm0
	movdqu	388(%rsp), %xmm7
	paddd	%xmm5, %xmm6
	movdqu	404(%rsp), %xmm1
	movdqa	%xmm0, %xmm8
	shufps	$136, %xmm7, %xmm8
	movdqa	%xmm1, %xmm2
	movdqu	420(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm8
	movdqu	388(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	420(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm8
	movdqu	436(%rsp), %xmm0
	movdqu	452(%rsp), %xmm7
	paddd	%xmm6, %xmm8
	movdqu	468(%rsp), %xmm1
	movdqa	%xmm0, %xmm9
	shufps	$136, %xmm7, %xmm9
	movdqa	%xmm1, %xmm2
	movdqu	484(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm9
	movdqu	452(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	484(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm9
	movdqu	500(%rsp), %xmm0
	movdqu	516(%rsp), %xmm7
	paddd	%xmm8, %xmm9
	movdqu	532(%rsp), %xmm1
	movdqa	%xmm0, %xmm10
	shufps	$136, %xmm7, %xmm10
	movdqa	%xmm1, %xmm2
	movdqu	548(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm10
	movdqu	516(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	548(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm10
	movdqu	564(%rsp), %xmm0
	movdqu	580(%rsp), %xmm7
	paddd	%xmm9, %xmm10
	movdqu	596(%rsp), %xmm1
	movdqa	%xmm0, %xmm11
	shufps	$136, %xmm7, %xmm11
	movdqa	%xmm1, %xmm2
	movdqu	612(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm11
	movdqu	580(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	612(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm11
	movdqu	628(%rsp), %xmm0
	movdqu	644(%rsp), %xmm7
	paddd	%xmm10, %xmm11
	movdqu	660(%rsp), %xmm1
	movdqa	%xmm0, %xmm13
	shufps	$136, %xmm7, %xmm13
	movdqa	%xmm1, %xmm2
	movdqu	676(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm13
	movdqu	644(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	676(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm13
	movdqu	692(%rsp), %xmm0
	movdqu	708(%rsp), %xmm7
	paddd	%xmm11, %xmm13
	movdqu	724(%rsp), %xmm1
	movdqa	%xmm0, %xmm12
	shufps	$136, %xmm7, %xmm12
	movdqa	%xmm1, %xmm2
	movdqu	740(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm12
	movdqu	708(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	740(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm12
	movdqu	756(%rsp), %xmm0
	movdqu	772(%rsp), %xmm7
	paddd	%xmm13, %xmm12
	movdqu	788(%rsp), %xmm1
	movdqa	%xmm0, %xmm14
	shufps	$136, %xmm7, %xmm14
	movdqa	%xmm1, %xmm2
	movdqu	804(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm14
	movdqu	772(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	804(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm14
	movdqu	820(%rsp), %xmm0
	movdqu	852(%rsp), %xmm1
	paddd	%xmm12, %xmm14
	movdqu	836(%rsp), %xmm7
	movdqu	868(%rsp), %xmm15
	movdqa	%xmm0, %xmm2
	movdqu	932(%rsp), %xmm3
	shufps	$136, %xmm7, %xmm2
	movdqa	%xmm1, %xmm7
	shufps	$136, %xmm15, %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$221, %xmm15, %xmm1
	movdqu	836(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm2, %xmm0
	movdqu	900(%rsp), %xmm7
	movdqu	916(%rsp), %xmm2
	paddd	%xmm14, %xmm0
	movdqa	%xmm0, %xmm15
	movaps	%xmm0, 32(%rsp)
	movdqu	884(%rsp), %xmm0
	movdqa	%xmm0, %xmm1
	shufps	$136, %xmm7, %xmm1
	movdqa	%xmm2, %xmm7
	shufps	$136, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm1
	movdqu	900(%rsp), %xmm3
	movdqu	980(%rsp), %xmm7
	shufps	$221, %xmm3, %xmm0
	movdqu	932(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm2
	shufps	$136, %xmm2, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm7, %xmm2
	movdqu	948(%rsp), %xmm0
	paddd	%xmm15, %xmm1
	movdqu	964(%rsp), %xmm3
	movdqa	%xmm1, %xmm15
	movaps	%xmm1, 48(%rsp)
	movdqa	%xmm0, %xmm1
	shufps	$136, %xmm3, %xmm1
	movdqu	996(%rsp), %xmm3
	shufps	$136, %xmm3, %xmm2
	shufps	$136, %xmm2, %xmm1
	movdqu	964(%rsp), %xmm3
	movdqu	1012(%rsp), %xmm2
	shufps	$221, %xmm3, %xmm0
	movdqu	996(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm0
	paddd	%xmm0, %xmm1
	movdqu	1028(%rsp), %xmm3
	movdqu	1044(%rsp), %xmm7
	paddd	%xmm15, %xmm1
	movdqa	%xmm1, %xmm15
	movaps	%xmm1, 64(%rsp)
	movdqa	%xmm2, %xmm1
	shufps	$136, %xmm3, %xmm1
	movdqa	%xmm7, %xmm0
	movdqu	1060(%rsp), %xmm3
	shufps	$136, %xmm3, %xmm0
	shufps	$136, %xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	movdqu	1028(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm0
	movdqu	1060(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	(%rsp), %xmm3
	movdqa	%xmm1, %xmm7
	paddd	%xmm15, %xmm7
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r14d, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r11d, %r14d
	jge	.L136
	movl	%r13d, %eax
	movl	%ebp, 20(%rsp)
	movl	%r11d, %r9d
	movl	%r13d, %r10d
	andl	$-4, %eax
	subl	%r14d, %r9d
	shrl	$2, %r10d
	movq	%rdx, %rcx
	addl	$1, %eax
	movl	%r14d, %edi
	movl	%eax, 24(%rsp)
	leal	-1(%rbp), %eax
	movl	%eax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L21:
	cmpq	$3, %r13
	jbe	.L26
.L139:
	cmpl	$1, %r10d
	jbe	.L27
	cmpl	$2, %r10d
	je	.L28
	cmpl	$3, %r10d
	je	.L29
	cmpl	$4, %r10d
	je	.L30
	cmpl	$5, %r10d
	je	.L31
	cmpl	$6, %r10d
	je	.L32
	cmpl	$7, %r10d
	je	.L33
	cmpl	$8, %r10d
	je	.L34
	cmpl	$9, %r10d
	je	.L35
	cmpl	$10, %r10d
	je	.L36
	cmpl	$11, %r10d
	je	.L37
	cmpl	$12, %r10d
	je	.L38
	cmpl	$13, %r10d
	je	.L39
	movdqa	%xmm7, %xmm0
	cmpl	$14, %r10d
	je	.L137
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm0, %xmm1
	movl	24(%rsp), %esi
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
.L11:
	movslq	%esi, %r15
	salq	$4, %r15
	movl	104(%rsp,%r15), %eax
	addl	100(%rsp,%r15), %eax
	movl	%ebx, %r15d
	addl	%r8d, %eax
	leal	1(%rsi), %r8d
	cmpl	%ebx, %r8d
	jg	.L13
	movslq	%r8d, %r8
	salq	$4, %r8
	movl	100(%rsp,%r8), %ebp
	addl	104(%rsp,%r8), %ebp
	leal	2(%rsi), %r8d
	addl	%ebp, %eax
	cmpl	%ebx, %r8d
	jg	.L13
	movslq	%r8d, %r8
	addl	$3, %esi
	salq	$4, %r8
	movl	100(%rsp,%r8), %ebp
	addl	104(%rsp,%r8), %ebp
	addl	%ebp, %eax
	cmpl	%ebx, %esi
	jg	.L13
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	104(%rsp,%rsi), %r8d
	addl	100(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L13:
	movl	20(%rsp), %r8d
	movl	$1, %esi
	subl	%r9d, %r8d
	cmpl	%edi, 16(%rsp)
	cmovge	%esi, %r8d
	movl	(%rsp), %esi
	subl	%r9d, %esi
	cmpl	$2, %esi
	jbe	.L41
	cmpl	%r15d, %edi
	jle	.L41
	movl	%r8d, %esi
	movdqa	-16(%rdx), %xmm1
	shufps	$136, (%rdx), %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %esi
	movdqa	16(%rdx), %xmm2
	shufps	$136, 32(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm0
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm0
	cmpl	$1, %esi
	je	.L15
	movdqa	48(%rdx), %xmm1
	shufps	$136, 64(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	80(%rdx), %xmm2
	shufps	$136, 96(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$2, %esi
	je	.L15
	movdqa	112(%rdx), %xmm1
	shufps	$136, 128(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	144(%rdx), %xmm2
	shufps	$136, 160(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$3, %esi
	je	.L15
	movdqa	176(%rdx), %xmm1
	shufps	$136, 192(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	208(%rdx), %xmm2
	shufps	$136, 224(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$4, %esi
	je	.L15
	movdqa	240(%rdx), %xmm1
	shufps	$136, 256(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	272(%rdx), %xmm2
	shufps	$136, 288(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$5, %esi
	je	.L15
	movdqa	304(%rdx), %xmm1
	shufps	$136, 320(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	336(%rdx), %xmm2
	shufps	$136, 352(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$6, %esi
	je	.L15
	movdqa	368(%rdx), %xmm1
	shufps	$136, 384(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	400(%rdx), %xmm2
	shufps	$136, 416(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$7, %esi
	je	.L15
	movdqa	432(%rdx), %xmm1
	shufps	$136, 448(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	464(%rdx), %xmm2
	shufps	$136, 480(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$8, %esi
	je	.L15
	movdqa	496(%rdx), %xmm1
	shufps	$136, 512(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	528(%rdx), %xmm2
	shufps	$136, 544(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$9, %esi
	je	.L15
	movdqa	560(%rdx), %xmm1
	shufps	$136, 576(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	592(%rdx), %xmm2
	shufps	$136, 608(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$10, %esi
	je	.L15
	movdqa	624(%rdx), %xmm1
	shufps	$136, 640(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	656(%rdx), %xmm2
	shufps	$136, 672(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$11, %esi
	je	.L15
	movdqa	688(%rdx), %xmm1
	shufps	$136, 704(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	720(%rdx), %xmm2
	shufps	$136, 736(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$12, %esi
	je	.L15
	movdqa	752(%rdx), %xmm1
	shufps	$136, 768(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	784(%rdx), %xmm2
	shufps	$136, 800(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$13, %esi
	je	.L15
	movdqa	816(%rdx), %xmm1
	shufps	$136, 832(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	848(%rdx), %xmm2
	shufps	$136, 864(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$14, %esi
	je	.L15
	movdqa	880(%rdx), %xmm1
	shufps	$136, 896(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	912(%rdx), %xmm2
	shufps	$136, 928(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	.p2align 4,,10
	.p2align 3
.L15:
	movdqa	%xmm0, %xmm1
	movl	%r8d, %r15d
	psrldq	$8, %xmm1
	andl	$-4, %r15d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %eax
	leal	(%r15,%r14), %esi
	cmpl	%r15d, %r8d
	je	.L16
.L14:
	movslq	%esi, %r8
	salq	$4, %r8
	movl	104(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	leal	1(%rsi), %r8d
	addl	%r15d, %eax
	cmpl	%r8d, %edi
	jl	.L16
	movslq	%r8d, %r8
	addl	$2, %esi
	salq	$4, %r8
	movl	104(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	addl	%r15d, %eax
	cmpl	%esi, %edi
	jl	.L16
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	104(%rsp,%rsi), %r8d
	addl	96(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L16:
	addl	$1, %edi
	cmpl	%edi, %r11d
	jl	.L17
	movl	%r11d, %esi
	subl	%edi, %esi
	cmpl	$2, %esi
	jbe	.L42
	movdqa	(%rcx), %xmm1
	movdqa	32(%rcx), %xmm2
	movl	%r9d, %esi
	shrl	$2, %esi
	movdqa	%xmm1, %xmm0
	movdqa	%xmm2, %xmm15
	shufps	$221, 16(%rcx), %xmm0
	shufps	$221, 48(%rcx), %xmm15
	shufps	$136, 16(%rcx), %xmm1
	shufps	$136, %xmm15, %xmm0
	shufps	$136, 48(%rcx), %xmm2
	shufps	$136, %xmm2, %xmm1
	paddd	%xmm1, %xmm0
	cmpl	$1, %esi
	je	.L19
	movdqa	64(%rcx), %xmm1
	movdqa	96(%rcx), %xmm15
	shufps	$136, 112(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 80(%rcx), %xmm1
	shufps	$136, 80(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	96(%rcx), %xmm15
	shufps	$221, 112(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$2, %esi
	je	.L19
	movdqa	128(%rcx), %xmm1
	movdqa	160(%rcx), %xmm15
	shufps	$136, 176(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 144(%rcx), %xmm1
	shufps	$136, 144(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	160(%rcx), %xmm15
	shufps	$221, 176(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$3, %esi
	je	.L19
	movdqa	192(%rcx), %xmm1
	movdqa	224(%rcx), %xmm15
	shufps	$136, 240(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 208(%rcx), %xmm1
	shufps	$136, 208(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	224(%rcx), %xmm15
	shufps	$221, 240(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$4, %esi
	je	.L19
	movdqa	256(%rcx), %xmm1
	movdqa	288(%rcx), %xmm15
	shufps	$136, 304(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 272(%rcx), %xmm1
	shufps	$136, 272(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	288(%rcx), %xmm15
	shufps	$221, 304(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$5, %esi
	je	.L19
	movdqa	320(%rcx), %xmm1
	movdqa	352(%rcx), %xmm15
	shufps	$136, 368(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 336(%rcx), %xmm1
	shufps	$136, 336(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	352(%rcx), %xmm15
	shufps	$221, 368(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$6, %esi
	je	.L19
	movdqa	384(%rcx), %xmm1
	movdqa	416(%rcx), %xmm15
	shufps	$136, 432(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 400(%rcx), %xmm1
	shufps	$136, 400(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	416(%rcx), %xmm15
	shufps	$221, 432(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$7, %esi
	je	.L19
	movdqa	448(%rcx), %xmm1
	movdqa	480(%rcx), %xmm15
	shufps	$136, 496(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 464(%rcx), %xmm1
	shufps	$136, 464(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	480(%rcx), %xmm15
	shufps	$221, 496(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$8, %esi
	je	.L19
	movdqa	512(%rcx), %xmm1
	movdqa	544(%rcx), %xmm15
	shufps	$136, 560(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 528(%rcx), %xmm1
	shufps	$136, 528(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	544(%rcx), %xmm15
	shufps	$221, 560(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$9, %esi
	je	.L19
	movdqa	576(%rcx), %xmm1
	movdqa	608(%rcx), %xmm15
	shufps	$136, 624(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 592(%rcx), %xmm1
	shufps	$136, 592(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	608(%rcx), %xmm15
	shufps	$221, 624(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$10, %esi
	je	.L19
	movdqa	640(%rcx), %xmm1
	movdqa	672(%rcx), %xmm15
	shufps	$136, 688(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 656(%rcx), %xmm1
	shufps	$136, 656(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	672(%rcx), %xmm15
	shufps	$221, 688(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$11, %esi
	je	.L19
	movdqa	704(%rcx), %xmm1
	movdqa	736(%rcx), %xmm15
	shufps	$136, 752(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 720(%rcx), %xmm1
	shufps	$136, 720(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	736(%rcx), %xmm15
	shufps	$221, 752(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$12, %esi
	je	.L19
	movdqa	768(%rcx), %xmm1
	movdqa	800(%rcx), %xmm15
	shufps	$136, 816(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 784(%rcx), %xmm1
	shufps	$136, 784(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	800(%rcx), %xmm15
	shufps	$221, 816(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$13, %esi
	je	.L19
	movdqa	832(%rcx), %xmm1
	movdqa	864(%rcx), %xmm15
	shufps	$136, 880(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 848(%rcx), %xmm1
	shufps	$136, 848(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	864(%rcx), %xmm15
	shufps	$221, 880(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$14, %esi
	je	.L19
	movdqa	896(%rcx), %xmm1
	movdqa	928(%rcx), %xmm15
	shufps	$221, 944(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$136, 912(%rcx), %xmm1
	shufps	$221, 912(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	928(%rcx), %xmm15
	shufps	$136, 944(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	%xmm0, %xmm1
	movl	%r9d, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %eax
	leal	(%r8,%rdi), %esi
	cmpl	%r9d, %r8d
	je	.L20
.L18:
	movslq	%esi, %r8
	salq	$4, %r8
	movl	100(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	leal	1(%rsi), %r8d
	addl	%r15d, %eax
	cmpl	%r8d, %r11d
	jl	.L20
	movslq	%r8d, %r8
	addl	$2, %esi
	salq	$4, %r8
	movl	96(%rsp,%r8), %r15d
	addl	100(%rsp,%r8), %r15d
	addl	%r15d, %eax
	cmpl	%esi, %r11d
	jl	.L20
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	100(%rsp,%rsi), %r8d
	addl	96(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L20:
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	subl	$1, %r9d
	addq	$16, %rcx
	cmpl	%edi, %r11d
	jne	.L21
.L10:
	movl	(%rsp), %ebp
	addq	$1, %r13
	addq	$1, %rbx
	addq	$16, %rdx
	cmpl	28(%rsp), %r14d
	jne	.L22
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L138
	addq	$1208, %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
.L135:
	.cfi_restore_state
	addl	$1, 4(%rbx)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movdqa	%xmm3, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	movdqa	%xmm4, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	subl	$1, %r9d
	addq	$16, %rcx
	cmpq	$3, %r13
	ja	.L139
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r8d, %r8d
	movl	$1, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	movdqa	%xmm5, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%r14d, %esi
	jmp	.L14
.L42:
	movl	%edi, %esi
	jmp	.L18
.L30:
	movdqa	%xmm6, %xmm0
	jmp	.L12
.L31:
	movdqa	%xmm8, %xmm0
	jmp	.L12
.L32:
	movdqa	%xmm9, %xmm0
	jmp	.L12
.L33:
	movdqa	%xmm10, %xmm0
	jmp	.L12
.L34:
	movdqa	%xmm11, %xmm0
	jmp	.L12
.L35:
	movdqa	%xmm13, %xmm0
	jmp	.L12
.L36:
	movdqa	%xmm12, %xmm0
	jmp	.L12
.L37:
	movdqa	%xmm14, %xmm0
	jmp	.L12
.L38:
	movdqa	32(%rsp), %xmm0
	jmp	.L12
.L39:
	movdqa	48(%rsp), %xmm0
	jmp	.L12
.L136:
	leal	-1(%rbp), %eax
	movl	%eax, (%rsp)
	jmp	.L10
.L137:
	movdqa	64(%rsp), %xmm0
	jmp	.L12
.L25:
	movl	$10000, %r12d
	jmp	.L9
.L138:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$128, %ecx
	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
	subq	$1208, %rsp
	.cfi_def_cfa_offset 1264
	movq	%fs:40, %rax
	movq	%rax, 1192(%rsp)
	xorl	%eax, %eax
	leaq	96(%rsp), %rdi
	leaq	92(%rsp), %rdx
	leaq	88(%rsp), %rsi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	88(%rsp), %r11d
	testl	%r11d, %r11d
	jle	.L2
	leaq	112(%rsp), %rbx
	movl	$1, %r13d
	leaq	1120(%rsp), %r14
	leaq	.LC1(%rip), %rbp
	leaq	1121(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	92(%rsp), %edx
	testl	%edx, %edx
	jle	.L3
	leal	-1(%rdx), %ecx
	movq	%r14, %rax
	addq	%r12, %rcx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$66, %dl
	je	.L135
	cmpb	$82, %dl
	jne	.L5
	addl	$1, 8(%rbx)
.L5:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L3
.L7:
	movzbl	(%rax), %edx
	cmpb	$87, %dl
	jne	.L4
	addq	$1, %rax
	addl	$1, (%rbx)
	cmpq	%rcx, %rax
	jne	.L7
.L3:
	movl	88(%rsp), %r11d
	addl	$1, %r13d
	addq	$16, %rbx
	cmpl	%r13d, %r11d
	jge	.L8
.L2:
	leal	-1(%r11), %ebp
	movl	%ebp, 28(%rsp)
	cmpl	$1, %ebp
	jle	.L25
	movdqu	116(%rsp), %xmm0
	movl	$1, %ebx
	movdqu	148(%rsp), %xmm1
	leaq	144(%rsp), %rdx
	xorl	%r13d, %r13d
	movl	$10000, %r12d
	movl	$1, %r14d
	movdqu	132(%rsp), %xmm6
	movdqu	164(%rsp), %xmm5
	movdqa	%xmm0, %xmm3
	movdqa	%xmm1, %xmm2
	movdqu	324(%rsp), %xmm7
	shufps	$136, %xmm6, %xmm3
	shufps	$221, %xmm6, %xmm0
	movdqu	228(%rsp), %xmm6
	shufps	$136, %xmm5, %xmm2
	shufps	$221, %xmm5, %xmm1
	shufps	$136, %xmm2, %xmm3
	shufps	$136, %xmm1, %xmm0
	movdqu	212(%rsp), %xmm1
	paddd	%xmm0, %xmm3
	movdqu	180(%rsp), %xmm0
	movdqu	196(%rsp), %xmm5
	movaps	%xmm3, (%rsp)
	movdqa	%xmm0, %xmm4
	movdqa	%xmm1, %xmm2
	shufps	$221, %xmm6, %xmm1
	shufps	$136, %xmm6, %xmm2
	shufps	$136, %xmm5, %xmm4
	shufps	$221, %xmm5, %xmm0
	shufps	$136, %xmm2, %xmm4
	movdqu	260(%rsp), %xmm6
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm4
	movdqu	244(%rsp), %xmm0
	movdqu	276(%rsp), %xmm1
	paddd	%xmm3, %xmm4
	movdqa	%xmm0, %xmm5
	shufps	$136, %xmm6, %xmm5
	movdqa	%xmm1, %xmm2
	movdqu	292(%rsp), %xmm6
	shufps	$136, %xmm6, %xmm2
	shufps	$136, %xmm2, %xmm5
	movdqu	260(%rsp), %xmm6
	shufps	$221, %xmm6, %xmm0
	movdqu	292(%rsp), %xmm6
	shufps	$221, %xmm6, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm5
	movdqu	308(%rsp), %xmm0
	movdqu	340(%rsp), %xmm1
	paddd	%xmm4, %xmm5
	movdqa	%xmm0, %xmm6
	shufps	$136, %xmm7, %xmm6
	movdqa	%xmm1, %xmm2
	movdqu	356(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm6
	movdqu	324(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	356(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm6
	movdqu	372(%rsp), %xmm0
	movdqu	388(%rsp), %xmm7
	paddd	%xmm5, %xmm6
	movdqu	404(%rsp), %xmm1
	movdqa	%xmm0, %xmm8
	shufps	$136, %xmm7, %xmm8
	movdqa	%xmm1, %xmm2
	movdqu	420(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm8
	movdqu	388(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	420(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm8
	movdqu	436(%rsp), %xmm0
	movdqu	452(%rsp), %xmm7
	paddd	%xmm6, %xmm8
	movdqu	468(%rsp), %xmm1
	movdqa	%xmm0, %xmm9
	shufps	$136, %xmm7, %xmm9
	movdqa	%xmm1, %xmm2
	movdqu	484(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm9
	movdqu	452(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	484(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm9
	movdqu	500(%rsp), %xmm0
	movdqu	516(%rsp), %xmm7
	paddd	%xmm8, %xmm9
	movdqu	532(%rsp), %xmm1
	movdqa	%xmm0, %xmm10
	shufps	$136, %xmm7, %xmm10
	movdqa	%xmm1, %xmm2
	movdqu	548(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm10
	movdqu	516(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	548(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm10
	movdqu	564(%rsp), %xmm0
	movdqu	580(%rsp), %xmm7
	paddd	%xmm9, %xmm10
	movdqu	596(%rsp), %xmm1
	movdqa	%xmm0, %xmm11
	shufps	$136, %xmm7, %xmm11
	movdqa	%xmm1, %xmm2
	movdqu	612(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm11
	movdqu	580(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	612(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm11
	movdqu	628(%rsp), %xmm0
	movdqu	644(%rsp), %xmm7
	paddd	%xmm10, %xmm11
	movdqu	660(%rsp), %xmm1
	movdqa	%xmm0, %xmm13
	shufps	$136, %xmm7, %xmm13
	movdqa	%xmm1, %xmm2
	movdqu	676(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm13
	movdqu	644(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	676(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm13
	movdqu	692(%rsp), %xmm0
	movdqu	708(%rsp), %xmm7
	paddd	%xmm11, %xmm13
	movdqu	724(%rsp), %xmm1
	movdqa	%xmm0, %xmm12
	shufps	$136, %xmm7, %xmm12
	movdqa	%xmm1, %xmm2
	movdqu	740(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm12
	movdqu	708(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	740(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm12
	movdqu	756(%rsp), %xmm0
	movdqu	772(%rsp), %xmm7
	paddd	%xmm13, %xmm12
	movdqu	788(%rsp), %xmm1
	movdqa	%xmm0, %xmm14
	shufps	$136, %xmm7, %xmm14
	movdqa	%xmm1, %xmm2
	movdqu	804(%rsp), %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$136, %xmm2, %xmm14
	movdqu	772(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	movdqu	804(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm1
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm0, %xmm14
	movdqu	820(%rsp), %xmm0
	movdqu	852(%rsp), %xmm1
	paddd	%xmm12, %xmm14
	movdqu	836(%rsp), %xmm7
	movdqu	868(%rsp), %xmm15
	movdqa	%xmm0, %xmm2
	movdqu	932(%rsp), %xmm3
	shufps	$136, %xmm7, %xmm2
	movdqa	%xmm1, %xmm7
	shufps	$136, %xmm15, %xmm7
	shufps	$136, %xmm7, %xmm2
	shufps	$221, %xmm15, %xmm1
	movdqu	836(%rsp), %xmm7
	shufps	$221, %xmm7, %xmm0
	shufps	$136, %xmm1, %xmm0
	paddd	%xmm2, %xmm0
	movdqu	900(%rsp), %xmm7
	movdqu	916(%rsp), %xmm2
	paddd	%xmm14, %xmm0
	movdqa	%xmm0, %xmm15
	movaps	%xmm0, 32(%rsp)
	movdqu	884(%rsp), %xmm0
	movdqa	%xmm0, %xmm1
	shufps	$136, %xmm7, %xmm1
	movdqa	%xmm2, %xmm7
	shufps	$136, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm1
	movdqu	900(%rsp), %xmm3
	movdqu	980(%rsp), %xmm7
	shufps	$221, %xmm3, %xmm0
	movdqu	932(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm2
	shufps	$136, %xmm2, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	%xmm7, %xmm2
	movdqu	948(%rsp), %xmm0
	paddd	%xmm15, %xmm1
	movdqu	964(%rsp), %xmm3
	movdqa	%xmm1, %xmm15
	movaps	%xmm1, 48(%rsp)
	movdqa	%xmm0, %xmm1
	shufps	$136, %xmm3, %xmm1
	movdqu	996(%rsp), %xmm3
	shufps	$136, %xmm3, %xmm2
	shufps	$136, %xmm2, %xmm1
	movdqu	964(%rsp), %xmm3
	movdqu	1012(%rsp), %xmm2
	shufps	$221, %xmm3, %xmm0
	movdqu	996(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm0
	paddd	%xmm0, %xmm1
	movdqu	1028(%rsp), %xmm3
	movdqu	1044(%rsp), %xmm7
	paddd	%xmm15, %xmm1
	movdqa	%xmm1, %xmm15
	movaps	%xmm1, 64(%rsp)
	movdqa	%xmm2, %xmm1
	shufps	$136, %xmm3, %xmm1
	movdqa	%xmm7, %xmm0
	movdqu	1060(%rsp), %xmm3
	shufps	$136, %xmm3, %xmm0
	shufps	$136, %xmm0, %xmm1
	movdqa	%xmm2, %xmm0
	movdqu	1028(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm0
	movdqu	1060(%rsp), %xmm3
	shufps	$221, %xmm3, %xmm7
	shufps	$136, %xmm7, %xmm0
	paddd	%xmm0, %xmm1
	movdqa	(%rsp), %xmm3
	movdqa	%xmm1, %xmm7
	paddd	%xmm15, %xmm7
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%r14d, 16(%rsp)
	addl	$1, %r14d
	cmpl	%r11d, %r14d
	jge	.L136
	movl	%r13d, %eax
	movl	%ebp, 20(%rsp)
	movl	%r11d, %r9d
	movl	%r13d, %r10d
	andl	$-4, %eax
	subl	%r14d, %r9d
	shrl	$2, %r10d
	movq	%rdx, %rcx
	addl	$1, %eax
	movl	%r14d, %edi
	movl	%eax, 24(%rsp)
	leal	-1(%rbp), %eax
	movl	%eax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L21:
	cmpq	$3, %r13
	jbe	.L26
.L139:
	cmpl	$1, %r10d
	jbe	.L27
	cmpl	$2, %r10d
	je	.L28
	cmpl	$3, %r10d
	je	.L29
	cmpl	$4, %r10d
	je	.L30
	cmpl	$5, %r10d
	je	.L31
	cmpl	$6, %r10d
	je	.L32
	cmpl	$7, %r10d
	je	.L33
	cmpl	$8, %r10d
	je	.L34
	cmpl	$9, %r10d
	je	.L35
	cmpl	$10, %r10d
	je	.L36
	cmpl	$11, %r10d
	je	.L37
	cmpl	$12, %r10d
	je	.L38
	cmpl	$13, %r10d
	je	.L39
	movdqa	%xmm7, %xmm0
	cmpl	$14, %r10d
	je	.L137
	.p2align 4,,10
	.p2align 3
.L12:
	movdqa	%xmm0, %xmm1
	movl	24(%rsp), %esi
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r8d
.L11:
	movslq	%esi, %r15
	salq	$4, %r15
	movl	104(%rsp,%r15), %eax
	addl	100(%rsp,%r15), %eax
	movl	%ebx, %r15d
	addl	%r8d, %eax
	leal	1(%rsi), %r8d
	cmpl	%ebx, %r8d
	jg	.L13
	movslq	%r8d, %r8
	salq	$4, %r8
	movl	100(%rsp,%r8), %ebp
	addl	104(%rsp,%r8), %ebp
	leal	2(%rsi), %r8d
	addl	%ebp, %eax
	cmpl	%ebx, %r8d
	jg	.L13
	movslq	%r8d, %r8
	addl	$3, %esi
	salq	$4, %r8
	movl	100(%rsp,%r8), %ebp
	addl	104(%rsp,%r8), %ebp
	addl	%ebp, %eax
	cmpl	%ebx, %esi
	jg	.L13
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	104(%rsp,%rsi), %r8d
	addl	100(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L13:
	movl	20(%rsp), %r8d
	movl	$1, %esi
	subl	%r9d, %r8d
	cmpl	%edi, 16(%rsp)
	cmovge	%esi, %r8d
	movl	(%rsp), %esi
	subl	%r9d, %esi
	cmpl	$2, %esi
	jbe	.L41
	cmpl	%r15d, %edi
	jle	.L41
	movl	%r8d, %esi
	movdqa	-16(%rdx), %xmm1
	shufps	$136, (%rdx), %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %esi
	movdqa	16(%rdx), %xmm2
	shufps	$136, 32(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm0
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm0
	cmpl	$1, %esi
	je	.L15
	movdqa	48(%rdx), %xmm1
	shufps	$136, 64(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	80(%rdx), %xmm2
	shufps	$136, 96(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$2, %esi
	je	.L15
	movdqa	112(%rdx), %xmm1
	shufps	$136, 128(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	144(%rdx), %xmm2
	shufps	$136, 160(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$3, %esi
	je	.L15
	movdqa	176(%rdx), %xmm1
	shufps	$136, 192(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	208(%rdx), %xmm2
	shufps	$136, 224(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$4, %esi
	je	.L15
	movdqa	240(%rdx), %xmm1
	shufps	$136, 256(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	272(%rdx), %xmm2
	shufps	$136, 288(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$5, %esi
	je	.L15
	movdqa	304(%rdx), %xmm1
	shufps	$136, 320(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	336(%rdx), %xmm2
	shufps	$136, 352(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$6, %esi
	je	.L15
	movdqa	368(%rdx), %xmm1
	shufps	$136, 384(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	400(%rdx), %xmm2
	shufps	$136, 416(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$7, %esi
	je	.L15
	movdqa	432(%rdx), %xmm1
	shufps	$136, 448(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	464(%rdx), %xmm2
	shufps	$136, 480(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$8, %esi
	je	.L15
	movdqa	496(%rdx), %xmm1
	shufps	$136, 512(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	528(%rdx), %xmm2
	shufps	$136, 544(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$9, %esi
	je	.L15
	movdqa	560(%rdx), %xmm1
	shufps	$136, 576(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	592(%rdx), %xmm2
	shufps	$136, 608(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$10, %esi
	je	.L15
	movdqa	624(%rdx), %xmm1
	shufps	$136, 640(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	656(%rdx), %xmm2
	shufps	$136, 672(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$11, %esi
	je	.L15
	movdqa	688(%rdx), %xmm1
	shufps	$136, 704(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	720(%rdx), %xmm2
	shufps	$136, 736(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$12, %esi
	je	.L15
	movdqa	752(%rdx), %xmm1
	shufps	$136, 768(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	784(%rdx), %xmm2
	shufps	$136, 800(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$13, %esi
	je	.L15
	movdqa	816(%rdx), %xmm1
	shufps	$136, 832(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	848(%rdx), %xmm2
	shufps	$136, 864(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	cmpl	$14, %esi
	je	.L15
	movdqa	880(%rdx), %xmm1
	shufps	$136, 896(%rdx), %xmm1
	movdqa	%xmm1, %xmm15
	movdqa	912(%rdx), %xmm2
	shufps	$136, 928(%rdx), %xmm2
	shufps	$136, %xmm2, %xmm15
	shufps	$221, %xmm2, %xmm1
	paddd	%xmm1, %xmm15
	paddd	%xmm15, %xmm0
	.p2align 4,,10
	.p2align 3
.L15:
	movdqa	%xmm0, %xmm1
	movl	%r8d, %r15d
	psrldq	$8, %xmm1
	andl	$-4, %r15d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %eax
	leal	(%r15,%r14), %esi
	cmpl	%r15d, %r8d
	je	.L16
.L14:
	movslq	%esi, %r8
	salq	$4, %r8
	movl	104(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	leal	1(%rsi), %r8d
	addl	%r15d, %eax
	cmpl	%r8d, %edi
	jl	.L16
	movslq	%r8d, %r8
	addl	$2, %esi
	salq	$4, %r8
	movl	104(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	addl	%r15d, %eax
	cmpl	%esi, %edi
	jl	.L16
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	104(%rsp,%rsi), %r8d
	addl	96(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L16:
	addl	$1, %edi
	cmpl	%edi, %r11d
	jl	.L17
	movl	%r11d, %esi
	subl	%edi, %esi
	cmpl	$2, %esi
	jbe	.L42
	movdqa	(%rcx), %xmm1
	movdqa	32(%rcx), %xmm2
	movl	%r9d, %esi
	shrl	$2, %esi
	movdqa	%xmm1, %xmm0
	movdqa	%xmm2, %xmm15
	shufps	$221, 16(%rcx), %xmm0
	shufps	$221, 48(%rcx), %xmm15
	shufps	$136, 16(%rcx), %xmm1
	shufps	$136, %xmm15, %xmm0
	shufps	$136, 48(%rcx), %xmm2
	shufps	$136, %xmm2, %xmm1
	paddd	%xmm1, %xmm0
	cmpl	$1, %esi
	je	.L19
	movdqa	64(%rcx), %xmm1
	movdqa	96(%rcx), %xmm15
	shufps	$136, 112(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 80(%rcx), %xmm1
	shufps	$136, 80(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	96(%rcx), %xmm15
	shufps	$221, 112(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$2, %esi
	je	.L19
	movdqa	128(%rcx), %xmm1
	movdqa	160(%rcx), %xmm15
	shufps	$136, 176(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 144(%rcx), %xmm1
	shufps	$136, 144(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	160(%rcx), %xmm15
	shufps	$221, 176(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$3, %esi
	je	.L19
	movdqa	192(%rcx), %xmm1
	movdqa	224(%rcx), %xmm15
	shufps	$136, 240(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 208(%rcx), %xmm1
	shufps	$136, 208(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	224(%rcx), %xmm15
	shufps	$221, 240(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$4, %esi
	je	.L19
	movdqa	256(%rcx), %xmm1
	movdqa	288(%rcx), %xmm15
	shufps	$136, 304(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 272(%rcx), %xmm1
	shufps	$136, 272(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	288(%rcx), %xmm15
	shufps	$221, 304(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$5, %esi
	je	.L19
	movdqa	320(%rcx), %xmm1
	movdqa	352(%rcx), %xmm15
	shufps	$136, 368(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 336(%rcx), %xmm1
	shufps	$136, 336(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	352(%rcx), %xmm15
	shufps	$221, 368(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$6, %esi
	je	.L19
	movdqa	384(%rcx), %xmm1
	movdqa	416(%rcx), %xmm15
	shufps	$136, 432(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 400(%rcx), %xmm1
	shufps	$136, 400(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	416(%rcx), %xmm15
	shufps	$221, 432(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$7, %esi
	je	.L19
	movdqa	448(%rcx), %xmm1
	movdqa	480(%rcx), %xmm15
	shufps	$136, 496(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 464(%rcx), %xmm1
	shufps	$136, 464(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	480(%rcx), %xmm15
	shufps	$221, 496(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$8, %esi
	je	.L19
	movdqa	512(%rcx), %xmm1
	movdqa	544(%rcx), %xmm15
	shufps	$136, 560(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 528(%rcx), %xmm1
	shufps	$136, 528(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	544(%rcx), %xmm15
	shufps	$221, 560(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$9, %esi
	je	.L19
	movdqa	576(%rcx), %xmm1
	movdqa	608(%rcx), %xmm15
	shufps	$136, 624(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 592(%rcx), %xmm1
	shufps	$136, 592(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	608(%rcx), %xmm15
	shufps	$221, 624(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$10, %esi
	je	.L19
	movdqa	640(%rcx), %xmm1
	movdqa	672(%rcx), %xmm15
	shufps	$136, 688(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 656(%rcx), %xmm1
	shufps	$136, 656(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	672(%rcx), %xmm15
	shufps	$221, 688(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$11, %esi
	je	.L19
	movdqa	704(%rcx), %xmm1
	movdqa	736(%rcx), %xmm15
	shufps	$136, 752(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 720(%rcx), %xmm1
	shufps	$136, 720(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	736(%rcx), %xmm15
	shufps	$221, 752(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$12, %esi
	je	.L19
	movdqa	768(%rcx), %xmm1
	movdqa	800(%rcx), %xmm15
	shufps	$136, 816(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 784(%rcx), %xmm1
	shufps	$136, 784(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	800(%rcx), %xmm15
	shufps	$221, 816(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$13, %esi
	je	.L19
	movdqa	832(%rcx), %xmm1
	movdqa	864(%rcx), %xmm15
	shufps	$136, 880(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$221, 848(%rcx), %xmm1
	shufps	$136, 848(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	864(%rcx), %xmm15
	shufps	$221, 880(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	cmpl	$14, %esi
	je	.L19
	movdqa	896(%rcx), %xmm1
	movdqa	928(%rcx), %xmm15
	shufps	$221, 944(%rcx), %xmm15
	movdqa	%xmm1, %xmm2
	shufps	$136, 912(%rcx), %xmm1
	shufps	$221, 912(%rcx), %xmm2
	shufps	$136, %xmm15, %xmm2
	movdqa	928(%rcx), %xmm15
	shufps	$136, 944(%rcx), %xmm15
	shufps	$136, %xmm15, %xmm1
	paddd	%xmm1, %xmm2
	paddd	%xmm2, %xmm0
	.p2align 4,,10
	.p2align 3
.L19:
	movdqa	%xmm0, %xmm1
	movl	%r9d, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	%esi, %eax
	leal	(%r8,%rdi), %esi
	cmpl	%r9d, %r8d
	je	.L20
.L18:
	movslq	%esi, %r8
	salq	$4, %r8
	movl	100(%rsp,%r8), %r15d
	addl	96(%rsp,%r8), %r15d
	leal	1(%rsi), %r8d
	addl	%r15d, %eax
	cmpl	%r8d, %r11d
	jl	.L20
	movslq	%r8d, %r8
	addl	$2, %esi
	salq	$4, %r8
	movl	96(%rsp,%r8), %r15d
	addl	100(%rsp,%r8), %r15d
	addl	%r15d, %eax
	cmpl	%esi, %r11d
	jl	.L20
	movslq	%esi, %rsi
	salq	$4, %rsi
	movl	100(%rsp,%rsi), %r8d
	addl	96(%rsp,%rsi), %r8d
	addl	%r8d, %eax
.L20:
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	subl	$1, %r9d
	addq	$16, %rcx
	cmpl	%edi, %r11d
	jne	.L21
.L10:
	movl	(%rsp), %ebp
	addq	$1, %r13
	addq	$1, %rbx
	addq	$16, %rdx
	cmpl	28(%rsp), %r14d
	jne	.L22
.L9:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	1192(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L138
	addq	$1208, %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
.L135:
	.cfi_restore_state
	addl	$1, 4(%rbx)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	movdqa	%xmm3, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	movdqa	%xmm4, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	subl	$1, %r9d
	addq	$16, %rcx
	cmpq	$3, %r13
	ja	.L139
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%r8d, %r8d
	movl	$1, %esi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	movdqa	%xmm5, %xmm0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L41:
	movl	%r14d, %esi
	jmp	.L14
.L42:
	movl	%edi, %esi
	jmp	.L18
.L30:
	movdqa	%xmm6, %xmm0
	jmp	.L12
.L31:
	movdqa	%xmm8, %xmm0
	jmp	.L12
.L32:
	movdqa	%xmm9, %xmm0
	jmp	.L12
.L33:
	movdqa	%xmm10, %xmm0
	jmp	.L12
.L34:
	movdqa	%xmm11, %xmm0
	jmp	.L12
.L35:
	movdqa	%xmm13, %xmm0
	jmp	.L12
.L36:
	movdqa	%xmm12, %xmm0
	jmp	.L12
.L37:
	movdqa	%xmm14, %xmm0
	jmp	.L12
.L38:
	movdqa	32(%rsp), %xmm0
	jmp	.L12
.L39:
	movdqa	48(%rsp), %xmm0
	jmp	.L12
.L136:
	leal	-1(%rbp), %eax
	movl	%eax, (%rsp)
	jmp	.L10
.L137:
	movdqa	64(%rsp), %xmm0
	jmp	.L12
.L25:
	movl	$10000, %r12d
	jmp	.L9
.L138:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void) {
	int a,b,i,j,k,n,m,now,ans = 10000,c[64][4] = {0};
	char s[64];
	scanf("%d%d",&n,&m);
	for(i = 1;i <= n;i++){
		scanf("%s",s);
		for(j = 0;j < m;j++){
			if (s[j] == 'W'){c[i][0]++;}
			else if(s[j] == 'B'){c[i][1]++;}
			else if(s[j] == 'R'){c[i][2]++;}
		}
	}
	for(i = 1;i <= n-2;i++){
		for(j = i+1;j <= n-1;j++){
			now = 0;
			for(k = 1;k <= i;k++){
				now+=(c[k][1] + c[k][2]);
			}
			for(k = i + 1;k <= j;k++){
				now+=(c[k][0] + c[k][2]);
			}
			for(k = j + 1;k <= n;k++){
				now+=(c[k][0] + c[k][1]);
			}
			if(now < ans){ans = now;}
		}
	}
	printf("%d\n",ans);
	return 0;
}
4 5
WRWRW
BRWWB
WRWRW
RWBWR
 4 5
WRWRW
BWRWB
WRWRW
RWBWQ
 4 5
WQWRW
BWRXB
RVWRW
WQBWQ
 4 3
WQWRW
BWRXB
RVWRW
RWBWQ
 4 5
WQWRW
BWRXC
RVWRW
WQBWQ
 4 10
WRWQW
BWRXB
RVWRW
RWBWQ
 4 0
WQXRW
BWRXB
VRWRW
RWBWQ
 4 16
WRWQW
BWRXB
RVWRW
RWBWQ
 4 1
WRWRW
BWRWB
VRWRW
QWBWR
 5 1
WRWRW
BWRWB
VRWRW
QWBWR

11
 11
 8
 5
 8
 8
 0
 8
 0
 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>

int main(void) {
	int a,b,i,j,k,n,m,now,ans = 10000,c[64][4] = {0};
	char s[64];
	scanf("%d%d",&n,&m);
	for(i = 1;i <= n;i++){
		scanf("%s",s);
		for(j = 0;j < m;j++){
			if (s[j] == 'W'){c[i][0]++;}
			else if(s[j] == 'B'){c[i][1]++;}
			else if(s[j] == 'R'){c[i][2]++;}
		}
	}
	for(i = 1;i <= n-2;i++){
		for(j = i+1;j <= n-1;j++){
			now = 0;
			for(k = 1;k <= i;k++){
				now+=(c[k][1] + c[k][2]);
			}
			for(k = i + 1;k <= j;k++){
				now+=(c[k][0] + c[k][2]);
			}
			for(k = j + 1;k <= n;k++){
				now+=(c[k][0] + c[k][1]);
			}
			if(now < ans){ans = now;}
		}
	}
	printf("%d\n",ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10000, -1108(%rbp)
	leaq	-1104(%rbp), %rdx
	movl	$0, %eax
	movl	$128, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1128(%rbp), %rdx
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1124(%rbp)
	jmp	.L2
.L8:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1120(%rbp)
	jmp	.L3
.L7:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$87, %al
	jne	.L4
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L4:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L6
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L6:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L5
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	%edx, (%rax)
.L5:
	addl	$1, -1120(%rbp)
.L3:
	movl	-1128(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L7
	addl	$1, -1124(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jle	.L8
	movl	$1, -1124(%rbp)
	jmp	.L9
.L19:
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1120(%rbp)
	jmp	.L10
.L18:
	movl	$0, -1112(%rbp)
	movl	$1, -1116(%rbp)
	jmp	.L11
.L12:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L11:
	movl	-1116(%rbp), %eax
	cmpl	-1124(%rbp), %eax
	jle	.L12
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L13
.L14:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L13:
	movl	-1116(%rbp), %eax
	cmpl	-1120(%rbp), %eax
	jle	.L14
	movl	-1120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L15
.L16:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L15:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1116(%rbp)
	jle	.L16
	movl	-1112(%rbp), %eax
	cmpl	-1108(%rbp), %eax
	jge	.L17
	movl	-1112(%rbp), %eax
	movl	%eax, -1108(%rbp)
.L17:
	addl	$1, -1120(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L18
	addl	$1, -1124(%rbp)
.L9:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L19
	movl	-1108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\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	$1136, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$10000, -1108(%rbp)
	leaq	-1104(%rbp), %rdx
	movl	$0, %eax
	movl	$128, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-1128(%rbp), %rdx
	leaq	-1132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -1124(%rbp)
	jmp	.L2
.L8:
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1120(%rbp)
	jmp	.L3
.L7:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$87, %al
	jne	.L4
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L4:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L6
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	%edx, (%rax)
	jmp	.L5
.L6:
	movl	-1120(%rbp), %eax
	cltq
	movzbl	-80(%rbp,%rax), %eax
	cmpb	$82, %al
	jne	.L5
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	leal	1(%rax), %edx
	movl	-1124(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	%edx, (%rax)
.L5:
	addl	$1, -1120(%rbp)
.L3:
	movl	-1128(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L7
	addl	$1, -1124(%rbp)
.L2:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1124(%rbp)
	jle	.L8
	movl	$1, -1124(%rbp)
	jmp	.L9
.L19:
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1120(%rbp)
	jmp	.L10
.L18:
	movl	$0, -1112(%rbp)
	movl	$1, -1116(%rbp)
	jmp	.L11
.L12:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L11:
	movl	-1116(%rbp), %eax
	cmpl	-1124(%rbp), %eax
	jle	.L12
	movl	-1124(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L13
.L14:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1096, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L13:
	movl	-1116(%rbp), %eax
	cmpl	-1120(%rbp), %eax
	jle	.L14
	movl	-1120(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -1116(%rbp)
	jmp	.L15
.L16:
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1104, %rax
	movl	(%rax), %edx
	movl	-1116(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1100, %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	%eax, -1112(%rbp)
	addl	$1, -1116(%rbp)
.L15:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1116(%rbp)
	jle	.L16
	movl	-1112(%rbp), %eax
	cmpl	-1108(%rbp), %eax
	jge	.L17
	movl	-1112(%rbp), %eax
	movl	%eax, -1108(%rbp)
.L17:
	addl	$1, -1120(%rbp)
.L10:
	movl	-1132(%rbp), %eax
	cmpl	%eax, -1120(%rbp)
	jl	.L18
	addl	$1, -1124(%rbp)
.L9:
	movl	-1132(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -1124(%rbp)
	jl	.L19
	movl	-1108(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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:
