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>

int main()
{
	char s[200001];
	scanf("%s", s);
	
	int i, j;
	long long count, total = 0;
	char t[200001];
	for (i = 0, j = 0; s[i] != 0; i++) {
		if (s[i] == 'A') t[j++] = 'A';
		else if (s[i] == 'B' && s[i+1] == 'C') {
			t[j++] = 'B';
			i++;
		} else t[j++] = 'X';
	}
	t[j] = 0;
	i = 0;
	while (t[i] != 0) {
		count = 0;
		for (; t[i] == 'X'; i++);
		for (; t[i] != 'X' && t[i] != 0; i++) {
			if (t[i] == 'A') count++;
			else total += count;
		}
	}
	
	printf("%lld\n", total);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400040(%rbp)
	movl	$0, -400056(%rbp)
	movl	$0, -400052(%rbp)
	jmp	.L2
.L6:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L3
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$65, -200016(%rbp,%rax)
	jmp	.L4
.L3:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L5
	movl	-400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L5
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$66, -200016(%rbp,%rax)
	addl	$1, -400056(%rbp)
	jmp	.L4
.L5:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$88, -200016(%rbp,%rax)
.L4:
	addl	$1, -400056(%rbp)
.L2:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	-400052(%rbp), %eax
	cltq
	movb	$0, -200016(%rbp,%rax)
	movl	$0, -400056(%rbp)
	jmp	.L7
.L14:
	movq	$0, -400048(%rbp)
	jmp	.L8
.L9:
	addl	$1, -400056(%rbp)
.L8:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L9
	jmp	.L10
.L13:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L11
	addq	$1, -400048(%rbp)
	jmp	.L12
.L11:
	movq	-400048(%rbp), %rax
	addq	%rax, -400040(%rbp)
.L12:
	addl	$1, -400056(%rbp)
.L10:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L7
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L13
.L7:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%s"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %edx
	testb	%dl, %dl
	je	.L18
	leaq	200016(%rsp), %rax
	movl	$1, %r9d
	xorl	%esi, %esi
	subl	%eax, %r9d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$66, %dl
	je	.L38
.L5:
	movb	$88, (%rax)
	movl	%edi, %edx
	movl	%ecx, %esi
.L4:
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	leal	1(%rsi), %ecx
	leal	(%r9,%rax), %r8d
	movslq	%ecx, %rdi
	movzbl	(%rsp,%rdi), %edi
	cmpb	$65, %dl
	jne	.L3
	movl	%edi, %edx
	movb	$65, (%rax)
	movl	%ecx, %esi
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L6
.L2:
	movslq	%r8d, %r8
	xorl	%ecx, %ecx
	leaq	200015(%rsp), %r9
	movb	$0, 200016(%rsp,%r8)
	xorl	%r8d, %r8d
	movzbl	200016(%rsp), %eax
	testb	%al, %al
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	leal	1(%rcx), %edx
	movslq	%edx, %rdx
	cmpb	$88, %al
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	addq	$1, %rdx
	movzbl	(%r9,%rdx), %eax
	cmpb	$88, %al
	je	.L9
	testb	%al, %al
	je	.L8
.L16:
	addl	$1, %ecx
	xorl	%esi, %esi
	leaq	200016(%rsp), %rdi
	movslq	%ecx, %rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	movzbl	(%rdi,%rdx), %eax
	movl	%edx, %ecx
	addq	%rsi, %r8
	addq	$1, %rdx
	testb	%al, %al
	je	.L8
.L40:
	cmpb	$88, %al
	je	.L39
.L13:
	cmpb	$65, %al
	jne	.L11
	movzbl	(%rdi,%rdx), %eax
	movl	%edx, %ecx
	addq	$1, %rsi
	addq	$1, %rdx
	testb	%al, %al
	jne	.L40
.L8:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	xorl	%eax, %eax
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	cmpb	$67, %dil
	jne	.L5
	addl	$2, %esi
	movb	$66, (%rax)
	movslq	%esi, %rdx
	movzbl	(%rsp,%rdx), %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L39:
	testb	%al, %al
	jne	.L7
	jmp	.L8
.L18:
	xorl	%r8d, %r8d
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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	"%s"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400048
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %edx
	testb	%dl, %dl
	je	.L18
	leaq	200016(%rsp), %rax
	movl	$1, %r9d
	xorl	%esi, %esi
	subl	%eax, %r9d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmpb	$66, %dl
	je	.L38
.L5:
	movb	$88, (%rax)
	movl	%edi, %edx
	movl	%ecx, %esi
.L4:
	addq	$1, %rax
	testb	%dl, %dl
	je	.L2
.L6:
	leal	1(%rsi), %ecx
	leal	(%r9,%rax), %r8d
	movslq	%ecx, %rdi
	movzbl	(%rsp,%rdi), %edi
	cmpb	$65, %dl
	jne	.L3
	movl	%edi, %edx
	movb	$65, (%rax)
	movl	%ecx, %esi
	addq	$1, %rax
	testb	%dl, %dl
	jne	.L6
.L2:
	movslq	%r8d, %r8
	xorl	%ecx, %ecx
	leaq	200015(%rsp), %r9
	movb	$0, 200016(%rsp,%r8)
	xorl	%r8d, %r8d
	movzbl	200016(%rsp), %eax
	testb	%al, %al
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	leal	1(%rcx), %edx
	movslq	%edx, %rdx
	cmpb	$88, %al
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edx, %ecx
	addq	$1, %rdx
	movzbl	(%r9,%rdx), %eax
	cmpb	$88, %al
	je	.L9
	testb	%al, %al
	je	.L8
.L16:
	addl	$1, %ecx
	xorl	%esi, %esi
	leaq	200016(%rsp), %rdi
	movslq	%ecx, %rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	movzbl	(%rdi,%rdx), %eax
	movl	%edx, %ecx
	addq	%rsi, %r8
	addq	$1, %rdx
	testb	%al, %al
	je	.L8
.L40:
	cmpb	$88, %al
	je	.L39
.L13:
	cmpb	$65, %al
	jne	.L11
	movzbl	(%rdi,%rdx), %eax
	movl	%edx, %ecx
	addq	$1, %rsi
	addq	$1, %rdx
	testb	%al, %al
	jne	.L40
.L8:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	xorl	%eax, %eax
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	cmpb	$67, %dil
	jne	.L5
	addl	$2, %esi
	movb	$66, (%rax)
	movslq	%esi, %rdx
	movzbl	(%rsp,%rdx), %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L39:
	testb	%al, %al
	jne	.L7
	jmp	.L8
.L18:
	xorl	%r8d, %r8d
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>

int main()
{
	char s[200001];
	scanf("%s", s);
	
	int i, j;
	long long count, total = 0;
	char t[200001];
	for (i = 0, j = 0; s[i] != 0; i++) {
		if (s[i] == 'A') t[j++] = 'A';
		else if (s[i] == 'B' && s[i+1] == 'C') {
			t[j++] = 'B';
			i++;
		} else t[j++] = 'X';
	}
	t[j] = 0;
	i = 0;
	while (t[i] != 0) {
		count = 0;
		for (; t[i] == 'X'; i++);
		for (; t[i] != 'X' && t[i] != 0; i++) {
			if (t[i] == 'A') count++;
			else total += count;
		}
	}
	
	printf("%lld\n", total);
	fflush(stdout);
	return 0;
}
ABBACCBACCBCAABCB
 B
 ACBAACBCCABCCBBBA
 ABCAACBCAABCCBBBC
 ACCAAABCAABCCBBBC
 CBAABC
 ABBBCCBACCBCAABCB
 D
 DBAABC
 ABBBCCBACCBCAABCA

2
 0
 1
 3
 8
 2
 2
 0
 2
 2

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>

int main()
{
	char s[200001];
	scanf("%s", s);
	
	int i, j;
	long long count, total = 0;
	char t[200001];
	for (i = 0, j = 0; s[i] != 0; i++) {
		if (s[i] == 'A') t[j++] = 'A';
		else if (s[i] == 'B' && s[i+1] == 'C') {
			t[j++] = 'B';
			i++;
		} else t[j++] = 'X';
	}
	t[j] = 0;
	i = 0;
	while (t[i] != 0) {
		count = 0;
		for (; t[i] == 'X'; i++);
		for (; t[i] != 'X' && t[i] != 0; i++) {
			if (t[i] == 'A') count++;
			else total += count;
		}
	}
	
	printf("%lld\n", total);
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400040(%rbp)
	movl	$0, -400056(%rbp)
	movl	$0, -400052(%rbp)
	jmp	.L2
.L6:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L3
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$65, -200016(%rbp,%rax)
	jmp	.L4
.L3:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L5
	movl	-400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L5
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$66, -200016(%rbp,%rax)
	addl	$1, -400056(%rbp)
	jmp	.L4
.L5:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$88, -200016(%rbp,%rax)
.L4:
	addl	$1, -400056(%rbp)
.L2:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	-400052(%rbp), %eax
	cltq
	movb	$0, -200016(%rbp,%rax)
	movl	$0, -400056(%rbp)
	jmp	.L7
.L14:
	movq	$0, -400048(%rbp)
	jmp	.L8
.L9:
	addl	$1, -400056(%rbp)
.L8:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L9
	jmp	.L10
.L13:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L11
	addq	$1, -400048(%rbp)
	jmp	.L12
.L11:
	movq	-400048(%rbp), %rax
	addq	%rax, -400040(%rbp)
.L12:
	addl	$1, -400056(%rbp)
.L10:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L7
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L13
.L7:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"%s"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -400040(%rbp)
	movl	$0, -400056(%rbp)
	movl	$0, -400052(%rbp)
	jmp	.L2
.L6:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L3
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$65, -200016(%rbp,%rax)
	jmp	.L4
.L3:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$66, %al
	jne	.L5
	movl	-400056(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	cmpb	$67, %al
	jne	.L5
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$66, -200016(%rbp,%rax)
	addl	$1, -400056(%rbp)
	jmp	.L4
.L5:
	movl	-400052(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -400052(%rbp)
	cltq
	movb	$88, -200016(%rbp,%rax)
.L4:
	addl	$1, -400056(%rbp)
.L2:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-400032(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L6
	movl	-400052(%rbp), %eax
	cltq
	movb	$0, -200016(%rbp,%rax)
	movl	$0, -400056(%rbp)
	jmp	.L7
.L14:
	movq	$0, -400048(%rbp)
	jmp	.L8
.L9:
	addl	$1, -400056(%rbp)
.L8:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L9
	jmp	.L10
.L13:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$65, %al
	jne	.L11
	addq	$1, -400048(%rbp)
	jmp	.L12
.L11:
	movq	-400048(%rbp), %rax
	addq	%rax, -400040(%rbp)
.L12:
	addl	$1, -400056(%rbp)
.L10:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	cmpb	$88, %al
	je	.L7
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L13
.L7:
	movl	-400056(%rbp), %eax
	cltq
	movzbl	-200016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L14
	movq	-400040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
