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

int cmpStr(char *str, int s1, int l1, int s2, int l2)
{
    int i;
    if (l1 != l2)
    {
        return 1;
    }

    for (i = 0; i < l1; i++)
    {
        if (str[s1 + i] != str[s2 + i])
        {
            return 1;
        }
    }

    return 0;
}

int main(void)
{
    int i, j, k, len;
    int prev = 1, curr = 1;
    int count = 0;
    char *str = (char *)calloc(200001, sizeof(char));

    scanf("%s", str);

    len = strlen(str);

    i = 0;
    j = 1;
    prev = 1;
    curr = 1;

    while (j <= len)
    {
        if (0 == cmpStr(str, i, prev, j, curr))
        {
            curr++;
        }
        else
        {
            /*
            printf("i = %d, curr = %d, ", i, curr);
            for (k = i; k < i + prev; k++)
            {
                printf("%c", str[k]);
            }
            printf("\n");
            */
            count++;
            prev = curr;
            i = j;
            j += curr;
            curr = 1;
        }
    }

    printf("%d\n", count);

    free(str);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpStr
	.type	cmpStr, @function
cmpStr:
.LFB35:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	cmpl	%r8d, %edx
	jne	.L1
	testl	%edx, %edx
	jle	.L5
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rdi
	addq	%rdx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L5
.L3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	je	.L9
	movl	$1, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	cmpStr, .-cmpStr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1, %esi
	movl	$200001, %edi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	leaq	.LC0(%rip), %rdi
	movq	%rax, %rbp
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L17
	movl	%eax, %r12d
	xorl	%r11d, %r11d
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movl	$1, %r9d
	movl	$1, %r8d
	leaq	1(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r10d, %r9d
	jne	.L12
	movslq	%ebx, %rcx
	leal	-1(%r9), %edx
	movslq	%r8d, %rdi
	leaq	0(%r13,%rcx), %rsi
	leaq	0(%rbp,%rcx), %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movzbl	(%rdx,%rdi), %edx
	cmpb	%dl, (%rax)
	jne	.L12
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L13
	addl	$1, %r10d
.L16:
	cmpl	%r12d, %r8d
	jle	.L15
.L11:
	movl	%r11d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	addq	$8, %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
.L12:
	.cfi_restore_state
	movl	%r10d, %r9d
	movl	%r8d, %ebx
	addl	$1, %r11d
	addl	%r10d, %r8d
	movl	$1, %r10d
	jmp	.L16
.L17:
	xorl	%r11d, %r11d
	jmp	.L11
	.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	cmpStr
	.type	cmpStr, @function
cmpStr:
.LFB35:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	cmpl	%r8d, %edx
	jne	.L1
	testl	%edx, %edx
	jle	.L5
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rdi
	addq	%rdx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L5
.L3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	je	.L9
	movl	$1, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	cmpStr, .-cmpStr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1, %esi
	movl	$200001, %edi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	leaq	.LC0(%rip), %rdi
	movq	%rax, %rbp
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L17
	movl	%eax, %r12d
	xorl	%r11d, %r11d
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movl	$1, %r9d
	movl	$1, %r8d
	leaq	1(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r10d, %r9d
	jne	.L12
	movslq	%ebx, %rcx
	leal	-1(%r9), %edx
	movslq	%r8d, %rdi
	leaq	0(%r13,%rcx), %rsi
	leaq	0(%rbp,%rcx), %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movzbl	(%rdx,%rdi), %edx
	cmpb	%dl, (%rax)
	jne	.L12
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L13
	addl	$1, %r10d
.L16:
	cmpl	%r12d, %r8d
	jle	.L15
.L11:
	movl	%r11d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	addq	$8, %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
.L12:
	.cfi_restore_state
	movl	%r10d, %r9d
	movl	%r8d, %ebx
	addl	$1, %r11d
	addl	%r10d, %r8d
	movl	$1, %r10d
	jmp	.L16
.L17:
	xorl	%r11d, %r11d
	jmp	.L11
	.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	cmpStr
	.type	cmpStr, @function
cmpStr:
.LFB35:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	cmpl	%r8d, %edx
	jne	.L1
	testl	%edx, %edx
	jle	.L5
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rdi
	addq	%rdx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L5
.L3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	je	.L9
	movl	$1, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	cmpStr, .-cmpStr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1, %esi
	movl	$200001, %edi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	leaq	.LC0(%rip), %rdi
	movq	%rax, %rbp
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L17
	movl	%eax, %r12d
	xorl	%r11d, %r11d
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movl	$1, %r9d
	movl	$1, %r8d
	leaq	1(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r10d, %r9d
	jne	.L12
	movslq	%ebx, %rcx
	leal	-1(%r9), %edx
	movslq	%r8d, %rdi
	leaq	0(%r13,%rcx), %rsi
	leaq	0(%rbp,%rcx), %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movzbl	(%rdx,%rdi), %edx
	cmpb	%dl, (%rax)
	jne	.L12
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L13
	addl	$1, %r10d
.L16:
	cmpl	%r12d, %r8d
	jle	.L15
.L11:
	movl	%r11d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	addq	$8, %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
.L12:
	.cfi_restore_state
	movl	%r10d, %r9d
	movl	%r8d, %ebx
	addl	$1, %r11d
	addl	%r10d, %r8d
	movl	$1, %r10d
	jmp	.L16
.L17:
	xorl	%r11d, %r11d
	jmp	.L11
	.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 <malloc.h>
#include <string.h>

int cmpStr(char *str, int s1, int l1, int s2, int l2)
{
    int i;
    if (l1 != l2)
    {
        return 1;
    }

    for (i = 0; i < l1; i++)
    {
        if (str[s1 + i] != str[s2 + i])
        {
            return 1;
        }
    }

    return 0;
}

int main(void)
{
    int i, j, k, len;
    int prev = 1, curr = 1;
    int count = 0;
    char *str = (char *)calloc(200001, sizeof(char));

    scanf("%s", str);

    len = strlen(str);

    i = 0;
    j = 1;
    prev = 1;
    curr = 1;

    while (j <= len)
    {
        if (0 == cmpStr(str, i, prev, j, curr))
        {
            curr++;
        }
        else
        {
            /*
            printf("i = %d, curr = %d, ", i, curr);
            for (k = i; k < i + prev; k++)
            {
                printf("%c", str[k]);
            }
            printf("\n");
            */
            count++;
            prev = curr;
            i = j;
            j += curr;
            curr = 1;
        }
    }

    printf("%d\n", count);

    free(str);
    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 <malloc.h>
#include <string.h>

int cmpStr(char *str, int s1, int l1, int s2, int l2)
{
    int i;
    if (l1 != l2)
    {
        return 1;
    }

    for (i = 0; i < l1; i++)
    {
        if (str[s1 + i] != str[s2 + i])
        {
            return 1;
        }
    }

    return 0;
}

int main(void)
{
    int i, j, k, len;
    int prev = 1, curr = 1;
    int count = 0;
    char *str = (char *)calloc(200001, sizeof(char));

    scanf("%s", str);

    len = strlen(str);

    i = 0;
    j = 1;
    prev = 1;
    curr = 1;

    while (j <= len)
    {
        if (0 == cmpStr(str, i, prev, j, curr))
        {
            curr++;
        }
        else
        {
            /*
            printf("i = %d, curr = %d, ", i, curr);
            for (k = i; k < i + prev; k++)
            {
                printf("%c", str[k]);
            }
            printf("\n");
            */
            count++;
            prev = curr;
            i = j;
            j += curr;
            curr = 1;
        }
    }

    printf("%d\n", count);

    free(str);
    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:

aaaccacabaababb
 a`bbaa
 abbccacabaababa
 abbccaaabaababc
 b`aba`
 b``aaa
 `abab`cbbba`c`b
 `_b`ab`_babcdba
 aabccacabaababb
 a`bcaa

11
 5
 13
 12
 6
 4
 14
 15
 11
 5

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

int cmpStr(char *str, int s1, int l1, int s2, int l2)
{
    int i;
    if (l1 != l2)
    {
        return 1;
    }

    for (i = 0; i < l1; i++)
    {
        if (str[s1 + i] != str[s2 + i])
        {
            return 1;
        }
    }

    return 0;
}

int main(void)
{
    int i, j, k, len;
    int prev = 1, curr = 1;
    int count = 0;
    char *str = (char *)calloc(200001, sizeof(char));

    scanf("%s", str);

    len = strlen(str);

    i = 0;
    j = 1;
    prev = 1;
    curr = 1;

    while (j <= len)
    {
        if (0 == cmpStr(str, i, prev, j, curr))
        {
            curr++;
        }
        else
        {
            /*
            printf("i = %d, curr = %d, ", i, curr);
            for (k = i; k < i + prev; k++)
            {
                printf("%c", str[k]);
            }
            printf("\n");
            */
            count++;
            prev = curr;
            i = j;
            j += curr;
            curr = 1;
        }
    }

    printf("%d\n", count);

    free(str);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpStr
	.type	cmpStr, @function
cmpStr:
.LFB35:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	cmpl	%r8d, %edx
	jne	.L1
	testl	%edx, %edx
	jle	.L5
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rdi
	addq	%rdx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L5
.L3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	je	.L9
	movl	$1, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	cmpStr, .-cmpStr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1, %esi
	movl	$200001, %edi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	leaq	.LC0(%rip), %rdi
	movq	%rax, %rbp
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L17
	movl	%eax, %r12d
	xorl	%r11d, %r11d
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movl	$1, %r9d
	movl	$1, %r8d
	leaq	1(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r10d, %r9d
	jne	.L12
	movslq	%ebx, %rcx
	leal	-1(%r9), %edx
	movslq	%r8d, %rdi
	leaq	0(%r13,%rcx), %rsi
	leaq	0(%rbp,%rcx), %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movzbl	(%rdx,%rdi), %edx
	cmpb	%dl, (%rax)
	jne	.L12
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L13
	addl	$1, %r10d
.L16:
	cmpl	%r12d, %r8d
	jle	.L15
.L11:
	movl	%r11d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	addq	$8, %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
.L12:
	.cfi_restore_state
	movl	%r10d, %r9d
	movl	%r8d, %ebx
	addl	$1, %r11d
	addl	%r10d, %r8d
	movl	$1, %r10d
	jmp	.L16
.L17:
	xorl	%r11d, %r11d
	jmp	.L11
	.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	cmpStr
	.type	cmpStr, @function
cmpStr:
.LFB35:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	cmpl	%r8d, %edx
	jne	.L1
	testl	%edx, %edx
	jle	.L5
	movslq	%esi, %rsi
	subl	$1, %edx
	movslq	%ecx, %rcx
	leaq	(%rdi,%rsi), %rax
	leaq	1(%rdi,%rsi), %rdi
	addq	%rdx, %rdi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rax
	cmpq	%rdi, %rax
	je	.L5
.L3:
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movzbl	(%rdx,%rcx), %edx
	cmpb	%dl, (%rax)
	je	.L9
	movl	$1, %eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	cmpStr, .-cmpStr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movl	$1, %esi
	movl	$200001, %edi
	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
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	leaq	.LC0(%rip), %rdi
	movq	%rax, %rbp
	movq	%rax, %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	testl	%eax, %eax
	jle	.L17
	movl	%eax, %r12d
	xorl	%r11d, %r11d
	movl	$1, %r10d
	xorl	%ebx, %ebx
	movl	$1, %r9d
	movl	$1, %r8d
	leaq	1(%rbp), %r13
	.p2align 4,,10
	.p2align 3
.L15:
	cmpl	%r10d, %r9d
	jne	.L12
	movslq	%ebx, %rcx
	leal	-1(%r9), %edx
	movslq	%r8d, %rdi
	leaq	0(%r13,%rcx), %rsi
	leaq	0(%rbp,%rcx), %rax
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rax, %rdx
	subq	%rcx, %rdx
	movzbl	(%rdx,%rdi), %edx
	cmpb	%dl, (%rax)
	jne	.L12
	addq	$1, %rax
	cmpq	%rax, %rsi
	jne	.L13
	addl	$1, %r10d
.L16:
	cmpl	%r12d, %r8d
	jle	.L15
.L11:
	movl	%r11d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	addq	$8, %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
.L12:
	.cfi_restore_state
	movl	%r10d, %r9d
	movl	%r8d, %ebx
	addl	$1, %r11d
	addl	%r10d, %r8d
	movl	$1, %r10d
	jmp	.L16
.L17:
	xorl	%r11d, %r11d
	jmp	.L11
	.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:
```