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

```c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD 1000000007 //10^9 + 7
#define endl printf("\n")
typedef long long ll;
#define MAX_N (1 << 17)

int
main(int argc, const char *argv[])
{
  int n; char s[100001];
  scanf("%d", &n);
  scanf("%s", s);

  for (int i = 0; i < (1 << 2); i++) {
    bool t[100010];
    t[0] = i & 1;
    t[1] = i & (1 << 1);
    int k = 2;
    while (k <= n + 1) {
      if (!t[k - 1] && s[(k - 1) % n] == 'o') t[k] = t[k - 2];
      if (!t[k - 1] && s[(k - 1) % n] == 'x') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'o') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'x') t[k] = t[k - 2];
      k++;
    }

    if (t[n] == t[0] && t[n + 1] == t[1]) {
      for (int j = 0; j < n; j++) {
	if (!t[j]) printf("S");
	else printf("W");
      } endl;
      return 0;
    }
  }
  printf("-1\n");

  return 0;
}
    
    
    
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movl	%edi, -200052(%rbp)
	movq	%rsi, -200064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-200048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -200044(%rbp)
	jmp	.L2
.L15:
	movl	-200044(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200032(%rbp)
	movl	-200044(%rbp), %eax
	andl	$2, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200031(%rbp)
	movl	$2, -200040(%rbp)
	jmp	.L3
.L8:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L4
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L4
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L4:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L5
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L5:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L6
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L6:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L7:
	addl	$1, -200040(%rbp)
.L3:
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -200040(%rbp)
	jle	.L8
	movl	-200048(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200032(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200031(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	$0, -200036(%rbp)
	jmp	.L10
.L13:
	movl	-200036(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movl	$83, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	$87, %edi
	call	putchar@PLT
.L12:
	addl	$1, -200036(%rbp)
.L10:
	movl	-200048(%rbp), %eax
	cmpl	%eax, -200036(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L16
.L9:
	addl	$1, -200044(%rbp)
.L2:
	cmpl	$3, -200044(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	100032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	movl	$1, %edi
	xorl	%r9d, %r9d
	subl	%ebp, %edi
	leal	1(%r12), %r11d
	leal	-1(%r12), %eax
	movq	%r12, %rsi
	leaq	17(%rsp,%rax), %r8
	movslq	%r11d, %r13
.L17:
	movl	%r9d, %r10d
	movl	%r9d, %ebx
	xorl	%eax, %eax
	movq	%rbp, %rcx
	andl	$1, %r10d
	shrl	%ebx
	andl	$1, %ebx
	movb	%r10b, %al
	movb	%bl, %ah
	movw	%ax, 16(%rsp)
	cmpl	$1, %r11d
	jg	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	cmpb	$111, %al
	je	.L18
	cmpb	$120, %al
	jne	.L9
.L20:
	movzbl	(%rcx), %eax
	xorl	$1, %eax
	movb	%al, 2(%rcx)
.L9:
	addq	$1, %rcx
	cmpq	%rcx, %r8
	je	.L11
.L10:
	leal	(%rdi,%rcx), %eax
	cltd
	idivl	%esi
	cmpb	$0, 1(%rcx)
	movslq	%edx, %rdx
	movzbl	100032(%rsp,%rdx), %eax
	je	.L30
	cmpb	$111, %al
	je	.L20
	cmpb	$120, %al
	jne	.L9
.L18:
	movzbl	(%rcx), %eax
	addq	$1, %rcx
	movb	%al, 1(%rcx)
	cmpq	%rcx, %r8
	jne	.L10
.L11:
	cmpb	%r10b, 16(%rsp,%r12)
	je	.L31
.L4:
	addl	$1, %r9d
	cmpl	$4, %r9d
	jne	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L16:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	cmpb	16(%rsp,%r13), %bl
	jne	.L4
	xorl	%ebx, %ebx
	leaq	16(%rsp), %rbp
	jmp	.L12
.L34:
	movl	$83, %edi
	call	putchar@PLT
.L14:
	addq	$1, %rbx
.L12:
	cmpl	%ebx, 12(%rsp)
	jle	.L33
	cmpb	$0, (%rbx,%rbp)
	je	.L34
	movl	$87, %edi
	call	putchar@PLT
	jmp	.L14
.L33:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L16
.L32:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"-1"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-196608(%rsp), %r11
	.cfi_def_cfa 11, 196648
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3448, %rsp
	.cfi_def_cfa_offset 200096
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 200040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbp
	call	__isoc99_scanf@PLT
	leaq	100032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r12
	movl	$1, %edi
	xorl	%r9d, %r9d
	subl	%ebp, %edi
	leal	1(%r12), %r11d
	leal	-1(%r12), %eax
	movq	%r12, %rsi
	leaq	17(%rsp,%rax), %r8
	movslq	%r11d, %r13
.L17:
	movl	%r9d, %r10d
	movl	%r9d, %ebx
	xorl	%eax, %eax
	movq	%rbp, %rcx
	andl	$1, %r10d
	shrl	%ebx
	andl	$1, %ebx
	movb	%r10b, %al
	movb	%bl, %ah
	movw	%ax, 16(%rsp)
	cmpl	$1, %r11d
	jg	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	cmpb	$111, %al
	je	.L18
	cmpb	$120, %al
	jne	.L9
.L20:
	movzbl	(%rcx), %eax
	xorl	$1, %eax
	movb	%al, 2(%rcx)
.L9:
	addq	$1, %rcx
	cmpq	%rcx, %r8
	je	.L11
.L10:
	leal	(%rdi,%rcx), %eax
	cltd
	idivl	%esi
	cmpb	$0, 1(%rcx)
	movslq	%edx, %rdx
	movzbl	100032(%rsp,%rdx), %eax
	je	.L30
	cmpb	$111, %al
	je	.L20
	cmpb	$120, %al
	jne	.L9
.L18:
	movzbl	(%rcx), %eax
	addq	$1, %rcx
	movb	%al, 1(%rcx)
	cmpq	%rcx, %r8
	jne	.L10
.L11:
	cmpb	%r10b, 16(%rsp,%r12)
	je	.L31
.L4:
	addl	$1, %r9d
	cmpl	$4, %r9d
	jne	.L17
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L16:
	movq	200040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$200056, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	cmpb	16(%rsp,%r13), %bl
	jne	.L4
	xorl	%ebx, %ebx
	leaq	16(%rsp), %rbp
	jmp	.L12
.L34:
	movl	$83, %edi
	call	putchar@PLT
.L14:
	addq	$1, %rbx
.L12:
	cmpl	%ebx, 12(%rsp)
	jle	.L33
	cmpb	$0, (%rbx,%rbp)
	je	.L34
	movl	$87, %edi
	call	putchar@PLT
	jmp	.L14
.L33:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L16
.L32:
	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:

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD 1000000007 //10^9 + 7
#define endl printf("\n")
typedef long long ll;
#define MAX_N (1 << 17)

int
main(int argc, const char *argv[])
{
  int n; char s[100001];
  scanf("%d", &n);
  scanf("%s", s);

  for (int i = 0; i < (1 << 2); i++) {
    bool t[100010];
    t[0] = i & 1;
    t[1] = i & (1 << 1);
    int k = 2;
    while (k <= n + 1) {
      if (!t[k - 1] && s[(k - 1) % n] == 'o') t[k] = t[k - 2];
      if (!t[k - 1] && s[(k - 1) % n] == 'x') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'o') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'x') t[k] = t[k - 2];
      k++;
    }

    if (t[n] == t[0] && t[n + 1] == t[1]) {
      for (int j = 0; j < n; j++) {
	if (!t[j]) printf("S");
	else printf("W");
      } endl;
      return 0;
    }
  }
  printf("-1\n");

  return 0;
}
    
    
    

3
xoo
 6
xooxoo
 10
xooxoxooxo
 10
xxooxoxooo
 10
oxooooxxox
 10
xoxxooooxo
 10
oooxoxooxx
 10
oxooooxxxo
 10
oxoooxxoox
 10
oxooooxoxx

-1
 SSSSWW
 SWWSSSWWSS
 SWSWWWSSSS
 SSWWSWWWWS
 SWWWWSWWSS
 SSSSWWWSWS
 WWWSWWSSWS
 WSSSSSWSWW
 WSSSSSSWWW

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

```c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD 1000000007 //10^9 + 7
#define endl printf("\n")
typedef long long ll;
#define MAX_N (1 << 17)

int
main(int argc, const char *argv[])
{
  int n; char s[100001];
  scanf("%d", &n);
  scanf("%s", s);

  for (int i = 0; i < (1 << 2); i++) {
    bool t[100010];
    t[0] = i & 1;
    t[1] = i & (1 << 1);
    int k = 2;
    while (k <= n + 1) {
      if (!t[k - 1] && s[(k - 1) % n] == 'o') t[k] = t[k - 2];
      if (!t[k - 1] && s[(k - 1) % n] == 'x') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'o') t[k] = !t[k - 2];
      if (t[k - 1] && s[(k - 1) % n] == 'x') t[k] = t[k - 2];
      k++;
    }

    if (t[n] == t[0] && t[n + 1] == t[1]) {
      for (int j = 0; j < n; j++) {
	if (!t[j]) printf("S");
	else printf("W");
      } endl;
      return 0;
    }
  }
  printf("-1\n");

  return 0;
}
    
    
    
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movl	%edi, -200052(%rbp)
	movq	%rsi, -200064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-200048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -200044(%rbp)
	jmp	.L2
.L15:
	movl	-200044(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200032(%rbp)
	movl	-200044(%rbp), %eax
	andl	$2, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200031(%rbp)
	movl	$2, -200040(%rbp)
	jmp	.L3
.L8:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L4
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L4
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L4:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L5
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L5:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L6
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L6:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L7:
	addl	$1, -200040(%rbp)
.L3:
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -200040(%rbp)
	jle	.L8
	movl	-200048(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200032(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200031(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	$0, -200036(%rbp)
	jmp	.L10
.L13:
	movl	-200036(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movl	$83, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	$87, %edi
	call	putchar@PLT
.L12:
	addl	$1, -200036(%rbp)
.L10:
	movl	-200048(%rbp), %eax
	cmpl	%eax, -200036(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L16
.L9:
	addl	$1, -200044(%rbp)
.L2:
	cmpl	$3, -200044(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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"
.LC1:
	.string	"%s"
.LC2:
	.string	"-1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-196608(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3456, %rsp
	movl	%edi, -200052(%rbp)
	movq	%rsi, -200064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-200048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -200044(%rbp)
	jmp	.L2
.L15:
	movl	-200044(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200032(%rbp)
	movl	-200044(%rbp), %eax
	andl	$2, %eax
	testl	%eax, %eax
	setne	%al
	movb	%al, -200031(%rbp)
	movl	$2, -200040(%rbp)
	jmp	.L3
.L8:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L4
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L4
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L4:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L5
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L5
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L5:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L6
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	movzbl	%al, %eax
	testl	%eax, %eax
	setne	%al
	xorl	$1, %eax
	movzbl	%al, %eax
	andl	$1, %eax
	movl	-200040(%rbp), %edx
	movslq	%edx, %rdx
	movb	%al, -200032(%rbp,%rdx)
.L6:
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	testb	%al, %al
	je	.L7
	movl	-200040(%rbp), %eax
	subl	$1, %eax
	movl	-200048(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	movl	-200040(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movl	-200040(%rbp), %eax
	cltq
	movb	%dl, -200032(%rbp,%rax)
.L7:
	addl	$1, -200040(%rbp)
.L3:
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -200040(%rbp)
	jle	.L8
	movl	-200048(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200032(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	-200048(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-200032(%rbp,%rax), %edx
	movzbl	-200031(%rbp), %eax
	cmpb	%al, %dl
	jne	.L9
	movl	$0, -200036(%rbp)
	jmp	.L10
.L13:
	movl	-200036(%rbp), %eax
	cltq
	movzbl	-200032(%rbp,%rax), %eax
	xorl	$1, %eax
	testb	%al, %al
	je	.L11
	movl	$83, %edi
	call	putchar@PLT
	jmp	.L12
.L11:
	movl	$87, %edi
	call	putchar@PLT
.L12:
	addl	$1, -200036(%rbp)
.L10:
	movl	-200048(%rbp), %eax
	cmpl	%eax, -200036(%rbp)
	jl	.L13
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L16
.L9:
	addl	$1, -200044(%rbp)
.L2:
	cmpl	$3, -200044(%rbp)
	jle	.L15
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L16:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
