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<string.h>
#include<stdbool.h>

char makeSandW(char A,char B,int N);
char check(char back,char foward,char middle);


char t[100010],s[100010];

int main(void){
  int N,i;
  char ans[100010];
  scanf("%d",&N);
  scanf("%s",s);
  if(makeSandW('S','S',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('S','W',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','S',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','W',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else{
    puts("-1");
  }
  return 0;
}

char makeSandW(char A,char B,int N){
  int i;
  t[0]=A;
  t[1]=B;
  for(i=1;i<N;i++){
    if(s[i]=='o' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }else if(s[i]=='x' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='o' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='x' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }
  }
  return t[N];
}

char check(char back,char foward,char middle){
  if(middle == 'S'){
    if(back == foward){
      return 'o';
    }else{
      return 'x';
    }
  }else{
    if(back == foward){
      return 'x';
    }else{
      return 'o';
    }
  }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L2
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L2
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L2:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L4
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L4
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L4:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L5
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L5
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L5:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L6
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L6
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L6:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	makeSandW
	.type	makeSandW, @function
makeSandW:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %ecx
	movl	%esi, %eax
	movl	%edx, -28(%rbp)
	movl	%ecx, %edx
	movb	%dl, -20(%rbp)
	movb	%al, -24(%rbp)
	movzbl	-20(%rbp), %eax
	movb	%al, t(%rip)
	movzbl	-24(%rbp), %eax
	movb	%al, 1+t(%rip)
	movl	$1, -4(%rbp)
	jmp	.L10
.L22:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L11
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L12
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L15
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L15
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L16
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L16:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L18
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L19
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L14
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L21
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L21:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
.L14:
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L22
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	makeSandW, .-makeSandW
	.globl	check
	.type	check, @function
check:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%esi, %ecx
	movl	%edx, %eax
	movl	%edi, %edx
	movb	%dl, -4(%rbp)
	movl	%ecx, %edx
	movb	%dl, -8(%rbp)
	movb	%al, -12(%rbp)
	cmpb	$83, -12(%rbp)
	jne	.L25
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L26
	movl	$111, %eax
	jmp	.L27
.L26:
	movl	$120, %eax
	jmp	.L27
.L25:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L28
	movl	$120, %eax
	jmp	.L27
.L28:
	movl	$111, %eax
.L27:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check, .-check
	.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
	.p2align 4
	.globl	makeSandW
	.type	makeSandW, @function
makeSandW:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	xorl	%eax, %eax
	leaq	t(%rip), %r8
	movslq	%edx, %rdi
	movb	%r9b, %al
	movl	%esi, %edx
	leal	-2(%rdi), %ecx
	movb	%dl, %ah
	leaq	1(%r8), %rsi
	leaq	1+s(%rip), %rdx
	movw	%ax, t(%rip)
	addq	%rcx, %rsi
	movq	%r8, %rax
	cmpl	$1, %edi
	jg	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$120, %cl
	je	.L19
.L6:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rsi
	je	.L12
.L11:
	movzbl	(%rdx), %ecx
	cmpb	$111, %cl
	jne	.L3
	movzbl	1(%rax), %ecx
	cmpb	$83, %cl
	je	.L16
	cmpb	$87, %cl
	jne	.L6
.L17:
	cmpb	$83, (%rax)
	sete	%cl
	addq	$1, %rax
	addq	$1, %rdx
	leal	83(,%rcx,4), %ecx
	movb	%cl, 1(%rax)
	cmpq	%rax, %rsi
	jne	.L11
.L12:
	movzbl	(%r8,%rdi), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	1(%rax), %ecx
	cmpb	$83, %cl
	je	.L17
	cmpb	$87, %cl
	jne	.L6
.L16:
	cmpb	$83, (%rax)
	setne	%cl
	leal	83(,%rcx,4), %ecx
	movb	%cl, 2(%rax)
	jmp	.L6
	.cfi_endproc
.LFE52:
	.size	makeSandW, .-makeSandW
	.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
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	movl	$83, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L52
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L53
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L23:
	cmpb	%al, s(%rip)
	je	.L51
.L21:
	movl	$87, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	je	.L47
	movl	4(%rsp), %edx
.L25:
	movl	$83, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	je	.L48
	movl	4(%rsp), %edx
.L28:
	movl	$87, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L31
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L54
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L33:
	cmpb	%al, s(%rip)
	je	.L51
.L31:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L24:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L52:
	.cfi_restore_state
	movl	4(%rsp), %edx
	jmp	.L21
.L47:
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L56
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L27:
	cmpb	%al, s(%rip)
	jne	.L25
.L51:
	movb	$0, (%rdi,%rdx)
	call	puts@PLT
	jmp	.L24
.L48:
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L57
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L30:
	cmpb	%al, s(%rip)
	jne	.L28
	jmp	.L51
.L53:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L23
.L56:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L27
.L57:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L30
.L54:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L33
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB53:
	.cfi_startproc
	endbr64
	cmpb	$83, %dl
	je	.L63
	cmpb	%sil, %dil
	sete	%al
	leal	111(%rax,%rax,8), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	cmpb	%sil, %dil
	setne	%al
	leal	111(%rax,%rax,8), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	check, .-check
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.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
	.p2align 4
	.globl	makeSandW
	.type	makeSandW, @function
makeSandW:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %r9d
	xorl	%eax, %eax
	leaq	t(%rip), %r8
	movslq	%edx, %rdi
	movb	%r9b, %al
	movl	%esi, %edx
	leal	-2(%rdi), %ecx
	movb	%dl, %ah
	leaq	1(%r8), %rsi
	leaq	1+s(%rip), %rdx
	movw	%ax, t(%rip)
	addq	%rcx, %rsi
	movq	%r8, %rax
	cmpl	$1, %edi
	jg	.L11
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$120, %cl
	je	.L19
.L6:
	addq	$1, %rax
	addq	$1, %rdx
	cmpq	%rax, %rsi
	je	.L12
.L11:
	movzbl	(%rdx), %ecx
	cmpb	$111, %cl
	jne	.L3
	movzbl	1(%rax), %ecx
	cmpb	$83, %cl
	je	.L16
	cmpb	$87, %cl
	jne	.L6
.L17:
	cmpb	$83, (%rax)
	sete	%cl
	addq	$1, %rax
	addq	$1, %rdx
	leal	83(,%rcx,4), %ecx
	movb	%cl, 1(%rax)
	cmpq	%rax, %rsi
	jne	.L11
.L12:
	movzbl	(%r8,%rdi), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movzbl	1(%rax), %ecx
	cmpb	$83, %cl
	je	.L17
	cmpb	$87, %cl
	jne	.L6
.L16:
	cmpb	$83, (%rax)
	setne	%cl
	leal	83(,%rcx,4), %ecx
	movb	%cl, 2(%rax)
	jmp	.L6
	.cfi_endproc
.LFE52:
	.size	makeSandW, .-makeSandW
	.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
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	movl	$83, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L52
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L53
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L23:
	cmpb	%al, s(%rip)
	je	.L51
.L21:
	movl	$87, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	je	.L47
	movl	4(%rsp), %edx
.L25:
	movl	$83, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	je	.L48
	movl	4(%rsp), %edx
.L28:
	movl	$87, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L31
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L54
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L33:
	cmpb	%al, s(%rip)
	je	.L51
.L31:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L24:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L55
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L52:
	.cfi_restore_state
	movl	4(%rsp), %edx
	jmp	.L21
.L47:
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L56
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L27:
	cmpb	%al, s(%rip)
	jne	.L25
.L51:
	movb	$0, (%rdi,%rdx)
	call	puts@PLT
	jmp	.L24
.L48:
	movslq	4(%rsp), %rdx
	leaq	t(%rip), %rdi
	cmpb	$83, t(%rip)
	movzbl	1+t(%rip), %ecx
	leal	-1(%rdx), %eax
	cltq
	movzbl	(%rdi,%rax), %eax
	je	.L57
	cmpb	%al, %cl
	sete	%al
	leal	111(%rax,%rax,8), %eax
.L30:
	cmpb	%al, s(%rip)
	jne	.L28
	jmp	.L51
.L53:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L23
.L56:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L27
.L57:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L30
.L54:
	cmpb	%al, %cl
	setne	%al
	leal	111(%rax,%rax,8), %eax
	jmp	.L33
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.text
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB53:
	.cfi_startproc
	endbr64
	cmpb	$83, %dl
	je	.L63
	cmpb	%sil, %dil
	sete	%al
	leal	111(%rax,%rax,8), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	cmpb	%sil, %dil
	setne	%al
	leal	111(%rax,%rax,8), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	check, .-check
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.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<string.h>
#include<stdbool.h>

char makeSandW(char A,char B,int N);
char check(char back,char foward,char middle);


char t[100010],s[100010];

int main(void){
  int N,i;
  char ans[100010];
  scanf("%d",&N);
  scanf("%s",s);
  if(makeSandW('S','S',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('S','W',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','S',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','W',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else{
    puts("-1");
  }
  return 0;
}

char makeSandW(char A,char B,int N){
  int i;
  t[0]=A;
  t[1]=B;
  for(i=1;i<N;i++){
    if(s[i]=='o' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }else if(s[i]=='x' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='o' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='x' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }
  }
  return t[N];
}

char check(char back,char foward,char middle){
  if(middle == 'S'){
    if(back == foward){
      return 'o';
    }else{
      return 'x';
    }
  }else{
    if(back == foward){
      return 'x';
    }else{
      return 'o';
    }
  }
}

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<string.h>
#include<stdbool.h>

char makeSandW(char A,char B,int N);
char check(char back,char foward,char middle);


char t[100010],s[100010];

int main(void){
  int N,i;
  char ans[100010];
  scanf("%d",&N);
  scanf("%s",s);
  if(makeSandW('S','S',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('S','W',N)=='S' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','S',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else if(makeSandW('W','W',N)=='W' && check(t[N-1],t[1],t[0])==s[0]){
    t[N]='\0';
    printf("%s\n",t);
  }else{
    puts("-1");
  }
  return 0;
}

char makeSandW(char A,char B,int N){
  int i;
  t[0]=A;
  t[1]=B;
  for(i=1;i<N;i++){
    if(s[i]=='o' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }else if(s[i]=='x' && t[i]=='S'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='o' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='W';
      }else{
        t[i+1]='S';
      }
    }else if(s[i]=='x' && t[i]=='W'){
      if(t[i-1]=='S'){
        t[i+1]='S';
      }else{
        t[i+1]='W';
      }
    }
  }
  return t[N];
}

char check(char back,char foward,char middle){
  if(middle == 'S'){
    if(back == foward){
      return 'o';
    }else{
      return 'x';
    }
  }else{
    if(back == foward){
      return 'x';
    }else{
      return 'o';
    }
  }
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L2
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L2
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L2:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L4
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L4
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L4:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L5
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L5
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L5:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L6
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L6
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L6:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	makeSandW
	.type	makeSandW, @function
makeSandW:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %ecx
	movl	%esi, %eax
	movl	%edx, -28(%rbp)
	movl	%ecx, %edx
	movb	%dl, -20(%rbp)
	movb	%al, -24(%rbp)
	movzbl	-20(%rbp), %eax
	movb	%al, t(%rip)
	movzbl	-24(%rbp), %eax
	movb	%al, 1+t(%rip)
	movl	$1, -4(%rbp)
	jmp	.L10
.L22:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L11
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L12
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L15
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L15
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L16
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L16:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L18
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L19
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L14
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L21
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L21:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
.L14:
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L22
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	makeSandW, .-makeSandW
	.globl	check
	.type	check, @function
check:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%esi, %ecx
	movl	%edx, %eax
	movl	%edi, %edx
	movb	%dl, -4(%rbp)
	movl	%ecx, %edx
	movb	%dl, -8(%rbp)
	movb	%al, -12(%rbp)
	cmpb	$83, -12(%rbp)
	jne	.L25
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L26
	movl	$111, %eax
	jmp	.L27
.L26:
	movl	$120, %eax
	jmp	.L27
.L25:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L28
	movl	$120, %eax
	jmp	.L27
.L28:
	movl	$111, %eax
.L27:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check, .-check
	.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
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.globl	s
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1744, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	s(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L2
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L2
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L2:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$83, %edi
	call	makeSandW
	cmpb	$83, %al
	jne	.L4
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L4
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L4:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$83, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L5
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L5
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L5:
	movl	-100036(%rbp), %eax
	movl	%eax, %edx
	movl	$87, %esi
	movl	$87, %edi
	call	makeSandW
	cmpb	$87, %al
	jne	.L6
	movzbl	t(%rip), %eax
	movsbl	%al, %edx
	movzbl	1+t(%rip), %eax
	movsbl	%al, %ecx
	movl	-100036(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rsi
	movzbl	(%rax,%rsi), %eax
	movsbl	%al, %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	check
	movzbl	s(%rip), %edx
	cmpb	%dl, %al
	jne	.L6
	movl	-100036(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$0, (%rax,%rdx)
	leaq	t(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L3
.L6:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L3:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	makeSandW
	.type	makeSandW, @function
makeSandW:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, %ecx
	movl	%esi, %eax
	movl	%edx, -28(%rbp)
	movl	%ecx, %edx
	movb	%dl, -20(%rbp)
	movb	%al, -24(%rbp)
	movzbl	-20(%rbp), %eax
	movb	%al, t(%rip)
	movzbl	-24(%rbp), %eax
	movb	%al, 1+t(%rip)
	movl	$1, -4(%rbp)
	jmp	.L10
.L22:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L11
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L12
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L12:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L11:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L15
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L15
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L16
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L16:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L15:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$111, %al
	jne	.L18
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L18
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L19
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
	jmp	.L14
.L19:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L18:
	movl	-4(%rbp), %eax
	cltq
	leaq	s(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$120, %al
	jne	.L14
	movl	-4(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$87, %al
	jne	.L14
	movl	-4(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L21
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$83, (%rax,%rdx)
	jmp	.L14
.L21:
	movl	-4(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	t(%rip), %rdx
	movb	$87, (%rax,%rdx)
.L14:
	addl	$1, -4(%rbp)
.L10:
	movl	-4(%rbp), %eax
	cmpl	-28(%rbp), %eax
	jl	.L22
	movl	-28(%rbp), %eax
	cltq
	leaq	t(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	makeSandW, .-makeSandW
	.globl	check
	.type	check, @function
check:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%esi, %ecx
	movl	%edx, %eax
	movl	%edi, %edx
	movb	%dl, -4(%rbp)
	movl	%ecx, %edx
	movb	%dl, -8(%rbp)
	movb	%al, -12(%rbp)
	cmpb	$83, -12(%rbp)
	jne	.L25
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L26
	movl	$111, %eax
	jmp	.L27
.L26:
	movl	$120, %eax
	jmp	.L27
.L25:
	movzbl	-4(%rbp), %eax
	cmpb	-8(%rbp), %al
	jne	.L28
	movl	$120, %eax
	jmp	.L27
.L28:
	movl	$111, %eax
.L27:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check, .-check
	.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:
