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

#define STR_MAX    (100000)

int main(void)
{
    uint64_t n;
    uint64_t k;
    char s[STR_MAX+1];

    scanf("%ld %ld", &n, &k);
    scanf("%s", s);

    uint64_t ptr = 0;
    char curC;
    char nxtC;

    uint64_t serialNum[STR_MAX+2];
    uint64_t indx   = 0;
    uint64_t head1  = 0;
    uint64_t max    = 0;
    uint64_t cntK   = 0;
    uint64_t curSum = 0;

    curC = s[ptr++];
    /* serialNumは 1 の数 -> 0の数としたいので0ならindxを送る */
    if ( curC == '0' ) {
        indx++;
    }

    do {
        /* nxtCを得る */
        nxtC = s[ptr++];

        serialNum[indx]++;

        uint64_t dbgIndx = indx;

        /* どうやら次は別の文字のようだ */
        if ( curC !=  nxtC ) {
            curSum += serialNum[indx++];

            /* 0の連続が終わったときは昔の0を捨てる場合がある */
            if ( curC == '0' ) {
                /* 逆立ちできる人たちが増える */
                cntK++;

                /* 逆立ちできる人たちがK人より多いとき */
                if ( cntK > k ) {
                    /* 
                     * 1Grp -> 0Grp -> 1Grp -> 0Grp ... 1Grp -> NEW 0Grp
                     * となるので先頭の0Grpと1Grp分を引いて, 0Grpのheadを移動させる
                     */
                    curSum -= (serialNum[head1] + serialNum[head1+1]);
                    head1 += 2;
                }
            }

            /* ここまでで今回のserialNumによるcurSumが決定するので最大値更新 */
            max = ( curSum >= max ) ? curSum : max;
        }

//        printf("%c : cntK=%ld, curSum=%ld, serialNum=%ld, head1=%ld, max=%ld\n", curC, cntK, curSum, serialNum[dbgIndx], head1, max);

        curC = nxtC;
    } while ( curC != '\0' );

    printf("%ld\n", max);

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-900096(%rbp), %rdx
	leaq	-900104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -900088(%rbp)
	movq	$0, -900080(%rbp)
	movq	$0, -900072(%rbp)
	movq	$0, -900064(%rbp)
	movq	$0, -900056(%rbp)
	movq	$0, -900048(%rbp)
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900106(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L5
	addq	$1, -900080(%rbp)
.L5:
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900105(%rbp)
	movq	-900080(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movq	-900080(%rbp), %rax
	movq	%rdx, -900032(%rbp,%rax,8)
	movq	-900080(%rbp), %rax
	movq	%rax, -900040(%rbp)
	movzbl	-900106(%rbp), %eax
	cmpb	-900105(%rbp), %al
	je	.L3
	movq	-900080(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900080(%rbp)
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rax, -900048(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L4
	addq	$1, -900056(%rbp)
	movq	-900096(%rbp), %rax
	cmpq	%rax, -900056(%rbp)
	jbe	.L4
	movq	-900072(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rdx
	movq	-900072(%rbp), %rax
	addq	$1, %rax
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	%rax, -900048(%rbp)
	addq	$2, -900072(%rbp)
.L4:
	movq	-900064(%rbp), %rdx
	movq	-900048(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	movq	%rax, -900064(%rbp)
.L3:
	movzbl	-900105(%rbp), %eax
	movb	%al, -900106(%rbp)
	cmpb	$0, -900106(%rbp)
	jne	.L5
	movq	-900064(%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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%ld %ld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-897024(%rsp), %r11
	.cfi_def_cfa 11, 897040
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3024, %rsp
	.cfi_def_cfa_offset 900064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 900040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	800032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	800032(%rsp), %edx
	xorl	%ecx, %ecx
	movq	8(%rsp), %rbx
	leaq	800033(%rsp), %rdi
	cmpb	$48, %dl
	sete	%cl
	xorl	%esi, %esi
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	cmpq	%rsi, %r9
	cmovb	%rsi, %r9
.L2:
	addq	$1, %rdi
	testb	%dl, %dl
	je	.L9
.L4:
	movq	16(%rsp,%rcx,8), %rax
	movl	%edx, %r8d
	movzbl	(%rdi), %edx
	addq	$1, %rax
	movq	%rax, 16(%rsp,%rcx,8)
	cmpb	%dl, %r8b
	je	.L2
	addq	$1, %rcx
	addq	%rax, %rsi
	cmpb	$48, %r8b
	jne	.L3
	addq	$1, %r10
	cmpq	%r10, %rbx
	jnb	.L3
	subq	24(%rsp,%r11,8), %rsi
	subq	16(%rsp,%r11,8), %rsi
	addq	$2, %r11
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movq	%r9, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	900040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$900048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%ld %ld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-897024(%rsp), %r11
	.cfi_def_cfa 11, 897040
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3024, %rsp
	.cfi_def_cfa_offset 900064
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 900040(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	leaq	800032(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	800032(%rsp), %edx
	xorl	%ecx, %ecx
	movq	8(%rsp), %rbx
	leaq	800033(%rsp), %rdi
	cmpb	$48, %dl
	sete	%cl
	xorl	%esi, %esi
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	cmpq	%rsi, %r9
	cmovb	%rsi, %r9
.L2:
	addq	$1, %rdi
	testb	%dl, %dl
	je	.L9
.L4:
	movq	16(%rsp,%rcx,8), %rax
	movl	%edx, %r8d
	movzbl	(%rdi), %edx
	addq	$1, %rax
	movq	%rax, 16(%rsp,%rcx,8)
	cmpb	%dl, %r8b
	je	.L2
	addq	$1, %rcx
	addq	%rax, %rsi
	cmpb	$48, %r8b
	jne	.L3
	addq	$1, %r10
	cmpq	%r10, %rbx
	jnb	.L3
	subq	24(%rsp,%r11,8), %rsi
	subq	16(%rsp,%r11,8), %rsi
	addq	$2, %r11
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	xorl	%eax, %eax
	movq	%r9, %rdx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	900040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$900048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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 <stdint.h>

#define STR_MAX    (100000)

int main(void)
{
    uint64_t n;
    uint64_t k;
    char s[STR_MAX+1];

    scanf("%ld %ld", &n, &k);
    scanf("%s", s);

    uint64_t ptr = 0;
    char curC;
    char nxtC;

    uint64_t serialNum[STR_MAX+2];
    uint64_t indx   = 0;
    uint64_t head1  = 0;
    uint64_t max    = 0;
    uint64_t cntK   = 0;
    uint64_t curSum = 0;

    curC = s[ptr++];
    /* serialNumは 1 の数 -> 0の数としたいので0ならindxを送る */
    if ( curC == '0' ) {
        indx++;
    }

    do {
        /* nxtCを得る */
        nxtC = s[ptr++];

        serialNum[indx]++;

        uint64_t dbgIndx = indx;

        /* どうやら次は別の文字のようだ */
        if ( curC !=  nxtC ) {
            curSum += serialNum[indx++];

            /* 0の連続が終わったときは昔の0を捨てる場合がある */
            if ( curC == '0' ) {
                /* 逆立ちできる人たちが増える */
                cntK++;

                /* 逆立ちできる人たちがK人より多いとき */
                if ( cntK > k ) {
                    /* 
                     * 1Grp -> 0Grp -> 1Grp -> 0Grp ... 1Grp -> NEW 0Grp
                     * となるので先頭の0Grpと1Grp分を引いて, 0Grpのheadを移動させる
                     */
                    curSum -= (serialNum[head1] + serialNum[head1+1]);
                    head1 += 2;
                }
            }

            /* ここまでで今回のserialNumによるcurSumが決定するので最大値更新 */
            max = ( curSum >= max ) ? curSum : max;
        }

//        printf("%c : cntK=%ld, curSum=%ld, serialNum=%ld, head1=%ld, max=%ld\n", curC, cntK, curSum, serialNum[dbgIndx], head1, max);

        curC = nxtC;
    } while ( curC != '\0' );

    printf("%ld\n", max);

    return 0;
}


5 1
00000
 5 1
11010
 14 2
11101010110111
 5 0
11000
 5 1
01010
 1 1
0
 14 2
11101010110101
 14 2
11101000110111
 14 2
11101000111111
 14 1
11101010110111

5
 4
 8
 2
 3
 1
 7
 10
 14
 6

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

#define STR_MAX    (100000)

int main(void)
{
    uint64_t n;
    uint64_t k;
    char s[STR_MAX+1];

    scanf("%ld %ld", &n, &k);
    scanf("%s", s);

    uint64_t ptr = 0;
    char curC;
    char nxtC;

    uint64_t serialNum[STR_MAX+2];
    uint64_t indx   = 0;
    uint64_t head1  = 0;
    uint64_t max    = 0;
    uint64_t cntK   = 0;
    uint64_t curSum = 0;

    curC = s[ptr++];
    /* serialNumは 1 の数 -> 0の数としたいので0ならindxを送る */
    if ( curC == '0' ) {
        indx++;
    }

    do {
        /* nxtCを得る */
        nxtC = s[ptr++];

        serialNum[indx]++;

        uint64_t dbgIndx = indx;

        /* どうやら次は別の文字のようだ */
        if ( curC !=  nxtC ) {
            curSum += serialNum[indx++];

            /* 0の連続が終わったときは昔の0を捨てる場合がある */
            if ( curC == '0' ) {
                /* 逆立ちできる人たちが増える */
                cntK++;

                /* 逆立ちできる人たちがK人より多いとき */
                if ( cntK > k ) {
                    /* 
                     * 1Grp -> 0Grp -> 1Grp -> 0Grp ... 1Grp -> NEW 0Grp
                     * となるので先頭の0Grpと1Grp分を引いて, 0Grpのheadを移動させる
                     */
                    curSum -= (serialNum[head1] + serialNum[head1+1]);
                    head1 += 2;
                }
            }

            /* ここまでで今回のserialNumによるcurSumが決定するので最大値更新 */
            max = ( curSum >= max ) ? curSum : max;
        }

//        printf("%c : cntK=%ld, curSum=%ld, serialNum=%ld, head1=%ld, max=%ld\n", curC, cntK, curSum, serialNum[dbgIndx], head1, max);

        curC = nxtC;
    } while ( curC != '\0' );

    printf("%ld\n", max);

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%ld %ld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-900096(%rbp), %rdx
	leaq	-900104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -900088(%rbp)
	movq	$0, -900080(%rbp)
	movq	$0, -900072(%rbp)
	movq	$0, -900064(%rbp)
	movq	$0, -900056(%rbp)
	movq	$0, -900048(%rbp)
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900106(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L5
	addq	$1, -900080(%rbp)
.L5:
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900105(%rbp)
	movq	-900080(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movq	-900080(%rbp), %rax
	movq	%rdx, -900032(%rbp,%rax,8)
	movq	-900080(%rbp), %rax
	movq	%rax, -900040(%rbp)
	movzbl	-900106(%rbp), %eax
	cmpb	-900105(%rbp), %al
	je	.L3
	movq	-900080(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900080(%rbp)
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rax, -900048(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L4
	addq	$1, -900056(%rbp)
	movq	-900096(%rbp), %rax
	cmpq	%rax, -900056(%rbp)
	jbe	.L4
	movq	-900072(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rdx
	movq	-900072(%rbp), %rax
	addq	$1, %rax
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	%rax, -900048(%rbp)
	addq	$2, -900072(%rbp)
.L4:
	movq	-900064(%rbp), %rdx
	movq	-900048(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	movq	%rax, -900064(%rbp)
.L3:
	movzbl	-900105(%rbp), %eax
	movb	%al, -900106(%rbp)
	cmpb	$0, -900106(%rbp)
	jne	.L5
	movq	-900064(%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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%ld %ld"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-897024(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3088, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-900096(%rbp), %rdx
	leaq	-900104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -900088(%rbp)
	movq	$0, -900080(%rbp)
	movq	$0, -900072(%rbp)
	movq	$0, -900064(%rbp)
	movq	$0, -900056(%rbp)
	movq	$0, -900048(%rbp)
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900106(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L5
	addq	$1, -900080(%rbp)
.L5:
	movq	-900088(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900088(%rbp)
	movzbl	-100016(%rbp,%rax), %eax
	movb	%al, -900105(%rbp)
	movq	-900080(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rax
	leaq	1(%rax), %rdx
	movq	-900080(%rbp), %rax
	movq	%rdx, -900032(%rbp,%rax,8)
	movq	-900080(%rbp), %rax
	movq	%rax, -900040(%rbp)
	movzbl	-900106(%rbp), %eax
	cmpb	-900105(%rbp), %al
	je	.L3
	movq	-900080(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	%rdx, -900080(%rbp)
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rax, -900048(%rbp)
	cmpb	$48, -900106(%rbp)
	jne	.L4
	addq	$1, -900056(%rbp)
	movq	-900096(%rbp), %rax
	cmpq	%rax, -900056(%rbp)
	jbe	.L4
	movq	-900072(%rbp), %rax
	movq	-900032(%rbp,%rax,8), %rdx
	movq	-900072(%rbp), %rax
	addq	$1, %rax
	movq	-900032(%rbp,%rax,8), %rax
	addq	%rdx, %rax
	subq	%rax, -900048(%rbp)
	addq	$2, -900072(%rbp)
.L4:
	movq	-900064(%rbp), %rdx
	movq	-900048(%rbp), %rax
	cmpq	%rax, %rdx
	cmovnb	%rdx, %rax
	movq	%rax, -900064(%rbp)
.L3:
	movzbl	-900105(%rbp), %eax
	movb	%al, -900106(%rbp)
	cmpb	$0, -900106(%rbp)
	jne	.L5
	movq	-900064(%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	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
