Given the following C code and 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);
}

```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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);
}

```
Given the following C 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);
}

```

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.
Optimized Assembly Code:

3 2
ooo

21

Given the following C code and 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);
}

```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```