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>
int main(){
    int n, k, c = 0, r = 0;
    int a = 0, l = 0;
    scanf("%d%d",&n,&k);
    char s[n + 1];
    scanf("%s",s);
    if(s[0] == '0')
        c = 1;
    for(l = 0; l < n; l++){
        while(c < k + 1){
            if(s[r] == '1' && s[r + 1] == '0')
                c++;
            if(r == n)
                goto END;
            r++;
        }
        if(a < r - l)
        a = r - l;
        if(s[l] == '0' && s[l + 1] == '1')
            c--;
    }
    END : ;
    if(a < r - l)
        a = r - l;
    printf("%d\n",a);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L21
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L22
.L4:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	xorl	%ecx, %ecx
	cmpb	$48, (%rsp)
	sete	%cl
	testl	%edx, %edx
	jle	.L13
	movl	-28(%rbp), %edi
	movq	%rsp, %r11
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
.L6:
	cmpl	%edi, %ecx
	jg	.L11
	movl	%edx, %r8d
	leal	1(%rsi), %eax
	movslq	%esi, %r12
	subl	%esi, %r8d
	cltq
	leaq	1(%r12,%r8), %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%eax, %esi
	addq	$1, %rax
	cmpl	%edi, %ecx
	jg	.L11
.L8:
	cmpb	$49, -1(%rbx,%rax)
	jne	.L7
	movslq	%eax, %rsi
	cmpb	$48, (%rbx,%rsi)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %ecx
.L7:
	cmpq	%r8, %rax
	jne	.L23
.L5:
	subl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmpl	%r9d, %edx
	cmovl	%r9d, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%esi, %eax
	subl	%r10d, %eax
	cmpl	%eax, %r9d
	cmovl	%eax, %r9d
	addl	$1, %r10d
	cmpb	$48, (%r11)
	je	.L25
.L9:
	addq	$1, %r11
	cmpl	%edx, %r10d
	jne	.L6
	movl	%esi, %edx
	jmp	.L5
.L25:
	cmpb	$49, 1(%r11)
	jne	.L9
	subl	$1, %ecx
	jmp	.L9
.L22:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L13:
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L21
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L22
.L4:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	xorl	%ecx, %ecx
	cmpb	$48, (%rsp)
	sete	%cl
	testl	%edx, %edx
	jle	.L13
	movl	-28(%rbp), %edi
	movq	%rsp, %r11
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
.L6:
	cmpl	%edi, %ecx
	jg	.L11
	movl	%edx, %r8d
	leal	1(%rsi), %eax
	movslq	%esi, %r12
	subl	%esi, %r8d
	cltq
	leaq	1(%r12,%r8), %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%eax, %esi
	addq	$1, %rax
	cmpl	%edi, %ecx
	jg	.L11
.L8:
	cmpb	$49, -1(%rbx,%rax)
	jne	.L7
	movslq	%eax, %rsi
	cmpb	$48, (%rbx,%rsi)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %ecx
.L7:
	cmpq	%r8, %rax
	jne	.L23
.L5:
	subl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmpl	%r9d, %edx
	cmovl	%r9d, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%esi, %eax
	subl	%r10d, %eax
	cmpl	%eax, %r9d
	cmovl	%eax, %r9d
	addl	$1, %r10d
	cmpb	$48, (%r11)
	je	.L25
.L9:
	addq	$1, %r11
	cmpl	%edx, %r10d
	jne	.L6
	movl	%esi, %edx
	jmp	.L5
.L25:
	cmpb	$49, 1(%r11)
	jne	.L9
	subl	$1, %ecx
	jmp	.L9
.L22:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L13:
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L21
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L22
.L4:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	xorl	%ecx, %ecx
	cmpb	$48, (%rsp)
	sete	%cl
	testl	%edx, %edx
	jle	.L13
	movl	-28(%rbp), %edi
	movq	%rsp, %r11
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
.L6:
	cmpl	%edi, %ecx
	jg	.L11
	movl	%edx, %r8d
	leal	1(%rsi), %eax
	movslq	%esi, %r12
	subl	%esi, %r8d
	cltq
	leaq	1(%r12,%r8), %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%eax, %esi
	addq	$1, %rax
	cmpl	%edi, %ecx
	jg	.L11
.L8:
	cmpb	$49, -1(%rbx,%rax)
	jne	.L7
	movslq	%eax, %rsi
	cmpb	$48, (%rbx,%rsi)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %ecx
.L7:
	cmpq	%r8, %rax
	jne	.L23
.L5:
	subl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmpl	%r9d, %edx
	cmovl	%r9d, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%esi, %eax
	subl	%r10d, %eax
	cmpl	%eax, %r9d
	cmovl	%eax, %r9d
	addl	$1, %r10d
	cmpb	$48, (%r11)
	je	.L25
.L9:
	addq	$1, %r11
	cmpl	%edx, %r10d
	jne	.L6
	movl	%esi, %edx
	jmp	.L5
.L25:
	cmpb	$49, 1(%r11)
	jne	.L9
	subl	$1, %ecx
	jmp	.L9
.L22:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L13:
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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>
int main(){
    int n, k, c = 0, r = 0;
    int a = 0, l = 0;
    scanf("%d%d",&n,&k);
    char s[n + 1];
    scanf("%s",s);
    if(s[0] == '0')
        c = 1;
    for(l = 0; l < n; l++){
        while(c < k + 1){
            if(s[r] == '1' && s[r + 1] == '0')
                c++;
            if(r == n)
                goto END;
            r++;
        }
        if(a < r - l)
        a = r - l;
        if(s[l] == '0' && s[l + 1] == '1')
            c--;
    }
    END : ;
    if(a < r - l)
        a = r - l;
    printf("%d\n",a);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(){
    int n, k, c = 0, r = 0;
    int a = 0, l = 0;
    scanf("%d%d",&n,&k);
    char s[n + 1];
    scanf("%s",s);
    if(s[0] == '0')
        c = 1;
    for(l = 0; l < n; l++){
        while(c < k + 1){
            if(s[r] == '1' && s[r + 1] == '0')
                c++;
            if(r == n)
                goto END;
            r++;
        }
        if(a < r - l)
        a = r - l;
        if(s[l] == '0' && s[l + 1] == '1')
            c--;
    }
    END : ;
    if(a < r - l)
        a = r - l;
    printf("%d\n",a);
    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>
int main(){
    int n, k, c = 0, r = 0;
    int a = 0, l = 0;
    scanf("%d%d",&n,&k);
    char s[n + 1];
    scanf("%s",s);
    if(s[0] == '0')
        c = 1;
    for(l = 0; l < n; l++){
        while(c < k + 1){
            if(s[r] == '1' && s[r + 1] == '0')
                c++;
            if(r == n)
                goto END;
            r++;
        }
        if(a < r - l)
        a = r - l;
        if(s[l] == '0' && s[l + 1] == '1')
            c--;
    }
    END : ;
    if(a < r - l)
        a = r - l;
    printf("%d\n",a);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L21
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L22
.L4:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	xorl	%ecx, %ecx
	cmpb	$48, (%rsp)
	sete	%cl
	testl	%edx, %edx
	jle	.L13
	movl	-28(%rbp), %edi
	movq	%rsp, %r11
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
.L6:
	cmpl	%edi, %ecx
	jg	.L11
	movl	%edx, %r8d
	leal	1(%rsi), %eax
	movslq	%esi, %r12
	subl	%esi, %r8d
	cltq
	leaq	1(%r12,%r8), %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%eax, %esi
	addq	$1, %rax
	cmpl	%edi, %ecx
	jg	.L11
.L8:
	cmpb	$49, -1(%rbx,%rax)
	jne	.L7
	movslq	%eax, %rsi
	cmpb	$48, (%rbx,%rsi)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %ecx
.L7:
	cmpq	%r8, %rax
	jne	.L23
.L5:
	subl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmpl	%r9d, %edx
	cmovl	%r9d, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%esi, %eax
	subl	%r10d, %eax
	cmpl	%eax, %r9d
	cmovl	%eax, %r9d
	addl	$1, %r10d
	cmpb	$48, (%r11)
	je	.L25
.L9:
	addq	$1, %r11
	cmpl	%edx, %r10d
	jne	.L6
	movl	%esi, %edx
	jmp	.L5
.L25:
	cmpb	$49, 1(%r11)
	jne	.L9
	subl	$1, %ecx
	jmp	.L9
.L22:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L13:
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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	"%d%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rsi
	subq	$16, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %eax
	movq	%rsp, %rcx
	addl	$1, %eax
	cltq
	addq	$15, %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L3
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L21
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L22
.L4:
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	.LC1(%rip), %rdi
	movq	%rsp, %rbx
	call	__isoc99_scanf@PLT
	movl	-32(%rbp), %edx
	xorl	%ecx, %ecx
	cmpb	$48, (%rsp)
	sete	%cl
	testl	%edx, %edx
	jle	.L13
	movl	-28(%rbp), %edi
	movq	%rsp, %r11
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%esi, %esi
.L6:
	cmpl	%edi, %ecx
	jg	.L11
	movl	%edx, %r8d
	leal	1(%rsi), %eax
	movslq	%esi, %r12
	subl	%esi, %r8d
	cltq
	leaq	1(%r12,%r8), %r8
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%eax, %esi
	addq	$1, %rax
	cmpl	%edi, %ecx
	jg	.L11
.L8:
	cmpb	$49, -1(%rbx,%rax)
	jne	.L7
	movslq	%eax, %rsi
	cmpb	$48, (%rbx,%rsi)
	sete	%sil
	movzbl	%sil, %esi
	addl	%esi, %ecx
.L7:
	cmpq	%r8, %rax
	jne	.L23
.L5:
	subl	%r10d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cmpl	%r9d, %edx
	cmovl	%r9d, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-24(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L24
	leaq	-16(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%esi, %eax
	subl	%r10d, %eax
	cmpl	%eax, %r9d
	cmovl	%eax, %r9d
	addl	$1, %r10d
	cmpb	$48, (%r11)
	je	.L25
.L9:
	addq	$1, %r11
	cmpl	%edx, %r10d
	jne	.L6
	movl	%esi, %edx
	jmp	.L5
.L25:
	cmpb	$49, 1(%r11)
	jne	.L9
	subl	$1, %ecx
	jmp	.L9
.L22:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L13:
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	jmp	.L5
.L24:
	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:
```