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 <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;
}

```

Assembly Code:

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

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

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

```

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:

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 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;
}

```

Assembly Code:

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

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