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 <string.h>

unsigned long long ipow(unsigned long long x, unsigned long long y)
{
    unsigned long long r;
    
    r = 1;
    while (y-- > 0){
        r *= x;
    }
    
    return (r);
}


int main(void)
{
    int L, N;
    char snake[102];
    unsigned long long len_o;
    unsigned long long len_x;
    unsigned long long sum;
    int i;
    
    scanf("%d%d", &L, &N);
    scanf("%s", snake);
    strcat(snake, "x");
    L++;

    sum = 0;
    len_o = 0;
    len_x = 0;
    for (i = 0; i <= L; i++){
        if (snake[i] == 'x'){
            len_x++;
        }
        if (len_o == 0){
            if (snake[i] == 'o'){
                len_o = 1;
            }
        }
        else {
            if (snake[i] == 'o'){
                len_o++;
            }
            else {
                sum += 3 * (ipow(2, N) - 1) * (len_o - 1) + len_o;
                len_o = 0;
            }
        }
    }
    
    sum += len_x - 1;
    
    printf("%llu\n", sum);

    return (0);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ipow
	.type	ipow, @function
ipow:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -32(%rbp)
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipow, .-ipow
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-144(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-112(%rbp), %rax
	addq	%rdx, %rax
	movw	$120, (%rax)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L6
.L11:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	addq	$1, -128(%rbp)
.L7:
	cmpq	$0, -136(%rbp)
	jne	.L8
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L9
	movq	$1, -136(%rbp)
	jmp	.L9
.L8:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	addq	$1, -136(%rbp)
	jmp	.L9
.L10:
	movl	-144(%rbp), %eax
	cltq
	movq	%rax, %rsi
	movl	$2, %edi
	call	ipow
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	-3(%rax), %rdx
	movq	-136(%rbp), %rax
	subq	$1, %rax
	imulq	%rax, %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	addq	%rax, -120(%rbp)
	movq	$0, -136(%rbp)
.L9:
	addl	$1, -140(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L11
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	ipow
	.type	ipow, @function
ipow:
.LFB35:
	.cfi_startproc
	endbr64
	leaq	-1(%rsi), %rax
	movl	$1, %r8d
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	imulq	%rdi, %r8
	subq	$1, %rax
	jnb	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	ipow, .-ipow
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"x"
.LC3:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	addq	$-128, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$102, %edx
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %rdi
	call	__strcat_chk@PLT
	movl	8(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 8(%rsp)
	js	.L18
	movslq	12(%rsp), %r10
	movq	%rbx, %rdx
	leaq	17(%rsp,%rax), %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leaq	-1(%r10), %r11
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	testq	%rsi, %rsi
	je	.L10
	cmpb	$111, %al
	jne	.L11
	addq	$1, %rsi
.L13:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	je	.L8
.L16:
	movzbl	(%rdx), %eax
	cmpb	$120, %al
	jne	.L9
	addq	$1, %r9
	testq	%rsi, %rsi
	je	.L10
.L11:
	testq	%r10, %r10
	je	.L19
	movq	%r11, %rax
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L15:
	addq	%rcx, %rcx
	subq	$1, %rax
	jnb	.L15
.L14:
	addq	%rsi, %r8
	leaq	-3(%rcx,%rcx,2), %rax
	subq	$1, %rsi
	addq	$1, %rdx
	imulq	%rsi, %rax
	xorl	%esi, %esi
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	-1(%r9,%r8), %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	subq	$-128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpb	$111, %al
	sete	%sil
	jmp	.L13
.L19:
	movl	$1, %ecx
	jmp	.L14
.L18:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.p2align 4
	.globl	ipow
	.type	ipow, @function
ipow:
.LFB35:
	.cfi_startproc
	endbr64
	leaq	-1(%rsi), %rax
	movl	$1, %r8d
	testq	%rsi, %rsi
	je	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	imulq	%rdi, %r8
	subq	$1, %rax
	jnb	.L3
.L1:
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE35:
	.size	ipow, .-ipow
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"x"
.LC3:
	.string	"%llu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC0(%rip), %rdi
	addq	$-128, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movq	%rbx, %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	$102, %edx
	leaq	.LC2(%rip), %rsi
	movq	%rbx, %rdi
	call	__strcat_chk@PLT
	movl	8(%rsp), %eax
	addl	$1, %eax
	movl	%eax, 8(%rsp)
	js	.L18
	movslq	12(%rsp), %r10
	movq	%rbx, %rdx
	leaq	17(%rsp,%rax), %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
	leaq	-1(%r10), %r11
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L9:
	testq	%rsi, %rsi
	je	.L10
	cmpb	$111, %al
	jne	.L11
	addq	$1, %rsi
.L13:
	addq	$1, %rdx
	cmpq	%rdx, %rdi
	je	.L8
.L16:
	movzbl	(%rdx), %eax
	cmpb	$120, %al
	jne	.L9
	addq	$1, %r9
	testq	%rsi, %rsi
	je	.L10
.L11:
	testq	%r10, %r10
	je	.L19
	movq	%r11, %rax
	movl	$1, %ecx
	.p2align 4,,10
	.p2align 3
.L15:
	addq	%rcx, %rcx
	subq	$1, %rax
	jnb	.L15
.L14:
	addq	%rsi, %r8
	leaq	-3(%rcx,%rcx,2), %rax
	subq	$1, %rsi
	addq	$1, %rdx
	imulq	%rsi, %rax
	xorl	%esi, %esi
	addq	%rax, %r8
	cmpq	%rdx, %rdi
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%eax, %eax
	leaq	-1(%r9,%r8), %rdx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	subq	$-128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xorl	%esi, %esi
	cmpb	$111, %al
	sete	%sil
	jmp	.L13
.L19:
	movl	$1, %ecx
	jmp	.L14
.L18:
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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 <string.h>

unsigned long long ipow(unsigned long long x, unsigned long long y)
{
    unsigned long long r;
    
    r = 1;
    while (y-- > 0){
        r *= x;
    }
    
    return (r);
}


int main(void)
{
    int L, N;
    char snake[102];
    unsigned long long len_o;
    unsigned long long len_x;
    unsigned long long sum;
    int i;
    
    scanf("%d%d", &L, &N);
    scanf("%s", snake);
    strcat(snake, "x");
    L++;

    sum = 0;
    len_o = 0;
    len_x = 0;
    for (i = 0; i <= L; i++){
        if (snake[i] == 'x'){
            len_x++;
        }
        if (len_o == 0){
            if (snake[i] == 'o'){
                len_o = 1;
            }
        }
        else {
            if (snake[i] == 'o'){
                len_o++;
            }
            else {
                sum += 3 * (ipow(2, N) - 1) * (len_o - 1) + len_o;
                len_o = 0;
            }
        }
    }
    
    sum += len_x - 1;
    
    printf("%llu\n", sum);

    return (0);
}


3 2
ooo

21

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 <string.h>

unsigned long long ipow(unsigned long long x, unsigned long long y)
{
    unsigned long long r;
    
    r = 1;
    while (y-- > 0){
        r *= x;
    }
    
    return (r);
}


int main(void)
{
    int L, N;
    char snake[102];
    unsigned long long len_o;
    unsigned long long len_x;
    unsigned long long sum;
    int i;
    
    scanf("%d%d", &L, &N);
    scanf("%s", snake);
    strcat(snake, "x");
    L++;

    sum = 0;
    len_o = 0;
    len_x = 0;
    for (i = 0; i <= L; i++){
        if (snake[i] == 'x'){
            len_x++;
        }
        if (len_o == 0){
            if (snake[i] == 'o'){
                len_o = 1;
            }
        }
        else {
            if (snake[i] == 'o'){
                len_o++;
            }
            else {
                sum += 3 * (ipow(2, N) - 1) * (len_o - 1) + len_o;
                len_o = 0;
            }
        }
    }
    
    sum += len_x - 1;
    
    printf("%llu\n", sum);

    return (0);
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ipow
	.type	ipow, @function
ipow:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -32(%rbp)
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipow, .-ipow
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-144(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-112(%rbp), %rax
	addq	%rdx, %rax
	movw	$120, (%rax)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L6
.L11:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	addq	$1, -128(%rbp)
.L7:
	cmpq	$0, -136(%rbp)
	jne	.L8
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L9
	movq	$1, -136(%rbp)
	jmp	.L9
.L8:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	addq	$1, -136(%rbp)
	jmp	.L9
.L10:
	movl	-144(%rbp), %eax
	cltq
	movq	%rax, %rsi
	movl	$2, %edi
	call	ipow
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	-3(%rax), %rdx
	movq	-136(%rbp), %rax
	subq	$1, %rax
	imulq	%rax, %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	addq	%rax, -120(%rbp)
	movq	$0, -136(%rbp)
.L9:
	addl	$1, -140(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L11
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	ipow
	.type	ipow, @function
ipow:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L3:
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movq	%rax, -8(%rbp)
.L2:
	movq	-32(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -32(%rbp)
	testq	%rax, %rax
	jne	.L3
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipow, .-ipow
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-144(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-112(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, %rdx
	leaq	-112(%rbp), %rax
	addq	%rdx, %rax
	movw	$120, (%rax)
	movl	-148(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -148(%rbp)
	movq	$0, -120(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movl	$0, -140(%rbp)
	jmp	.L6
.L11:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$120, %al
	jne	.L7
	addq	$1, -128(%rbp)
.L7:
	cmpq	$0, -136(%rbp)
	jne	.L8
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L9
	movq	$1, -136(%rbp)
	jmp	.L9
.L8:
	movl	-140(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	cmpb	$111, %al
	jne	.L10
	addq	$1, -136(%rbp)
	jmp	.L9
.L10:
	movl	-144(%rbp), %eax
	cltq
	movq	%rax, %rsi
	movl	$2, %edi
	call	ipow
	movq	%rax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	-3(%rax), %rdx
	movq	-136(%rbp), %rax
	subq	$1, %rax
	imulq	%rax, %rdx
	movq	-136(%rbp), %rax
	addq	%rdx, %rax
	addq	%rax, -120(%rbp)
	movq	$0, -136(%rbp)
.L9:
	addl	$1, -140(%rbp)
.L6:
	movl	-148(%rbp), %eax
	cmpl	%eax, -140(%rbp)
	jle	.L11
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rax
	addq	%rdx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movq	-120(%rbp), %rax
	movq	%rax, %rsi
	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	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
