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()
{	
	char s[100001];
	scanf("%s", s);
	
	int i, n;
	for (n = 0; s[n] != 0; n++);
	for (i = 0; i < n / 2; i++) if (s[i] != s[n-i-2]) break;
	if (i < n / 2 || s[0] == '0' || s[n-1] == '1') {
		printf("-1\n");
		fflush(stdout);
		return 0;
	}
	
	int r = 2;
	printf("1 2\n");
	for (i = 1; i < n - 1; i++) {
		printf("%d %d\n", r, i + 2);
		if (s[i] == '1') r = i + 2; 
	}
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"1 2"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ebx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movl	%ebx, %ecx
	sarl	%ecx
	je	.L15
	movslq	%ebx, %rdx
	subl	$1, %ecx
	movq	%rbp, %rax
	addq	%rbp, %rdx
	leaq	1(%rsp,%rcx), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$1, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L4
.L6:
	movzbl	-2(%rdx), %edi
	cmpb	%dil, (%rax)
	je	.L27
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$48, %sil
	je	.L5
	leal	-1(%rbx), %r12d
	movslq	%r12d, %rax
	cmpb	$49, (%rsp,%rax)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	subl	$1, %r12d
	jle	.L9
	leal	-3(%rbx), %r14d
	movl	$2, %r12d
	movl	$1, %ebx
	addq	$2, %r14
	leaq	.LC3(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	leal	2(%rbx), %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	%r13d, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpb	$49, 0(%rbp,%rbx)
	cmove	%r13d, %r12d
	addq	$1, %rbx
	cmpq	%rbx, %r14
	jne	.L11
.L9:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L8
.L2:
	cmpb	$49, -1(%rsp)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L28:
	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	"%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"1 2"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ebx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movl	%ebx, %ecx
	sarl	%ecx
	je	.L15
	movslq	%ebx, %rdx
	subl	$1, %ecx
	movq	%rbp, %rax
	addq	%rbp, %rdx
	leaq	1(%rsp,%rcx), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$1, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L4
.L6:
	movzbl	-2(%rdx), %edi
	cmpb	%dil, (%rax)
	je	.L27
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$48, %sil
	je	.L5
	leal	-1(%rbx), %r12d
	movslq	%r12d, %rax
	cmpb	$49, (%rsp,%rax)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	subl	$1, %r12d
	jle	.L9
	leal	-3(%rbx), %r14d
	movl	$2, %r12d
	movl	$1, %ebx
	addq	$2, %r14
	leaq	.LC3(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	leal	2(%rbx), %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	%r13d, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpb	$49, 0(%rbp,%rbx)
	cmove	%r13d, %r12d
	addq	$1, %rbx
	cmpq	%rbx, %r14
	jne	.L11
.L9:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L8
.L2:
	cmpb	$49, -1(%rsp)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L28:
	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	"%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"1 2"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ebx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movl	%ebx, %ecx
	sarl	%ecx
	je	.L15
	movslq	%ebx, %rdx
	subl	$1, %ecx
	movq	%rbp, %rax
	addq	%rbp, %rdx
	leaq	1(%rsp,%rcx), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$1, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L4
.L6:
	movzbl	-2(%rdx), %edi
	cmpb	%dil, (%rax)
	je	.L27
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$48, %sil
	je	.L5
	leal	-1(%rbx), %r12d
	movslq	%r12d, %rax
	cmpb	$49, (%rsp,%rax)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	subl	$1, %r12d
	jle	.L9
	leal	-3(%rbx), %r14d
	movl	$2, %r12d
	movl	$1, %ebx
	addq	$2, %r14
	leaq	.LC3(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	leal	2(%rbx), %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	%r13d, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpb	$49, 0(%rbp,%rbx)
	cmove	%r13d, %r12d
	addq	$1, %rbx
	cmpq	%rbx, %r14
	jne	.L11
.L9:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L8
.L2:
	cmpb	$49, -1(%rsp)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L28:
	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()
{	
	char s[100001];
	scanf("%s", s);
	
	int i, n;
	for (n = 0; s[n] != 0; n++);
	for (i = 0; i < n / 2; i++) if (s[i] != s[n-i-2]) break;
	if (i < n / 2 || s[0] == '0' || s[n-1] == '1') {
		printf("-1\n");
		fflush(stdout);
		return 0;
	}
	
	int r = 2;
	printf("1 2\n");
	for (i = 1; i < n - 1; i++) {
		printf("%d %d\n", r, i + 2);
		if (s[i] == '1') r = i + 2; 
	}
	fflush(stdout);
	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()
{	
	char s[100001];
	scanf("%s", s);
	
	int i, n;
	for (n = 0; s[n] != 0; n++);
	for (i = 0; i < n / 2; i++) if (s[i] != s[n-i-2]) break;
	if (i < n / 2 || s[0] == '0' || s[n-1] == '1') {
		printf("-1\n");
		fflush(stdout);
		return 0;
	}
	
	int r = 2;
	printf("1 2\n");
	for (i = 1; i < n - 1; i++) {
		printf("%d %d\n", r, i + 2);
		if (s[i] == '1') r = i + 2; 
	}
	fflush(stdout);
	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:

1011
 0111
 1000
 1100
 0011
 1001
 0100
 0110
 0001
 0101

-1
 -1
 -1
 -1
 -1
 -1
 -1
 -1
 -1
 -1

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()
{	
	char s[100001];
	scanf("%s", s);
	
	int i, n;
	for (n = 0; s[n] != 0; n++);
	for (i = 0; i < n / 2; i++) if (s[i] != s[n-i-2]) break;
	if (i < n / 2 || s[0] == '0' || s[n-1] == '1') {
		printf("-1\n");
		fflush(stdout);
		return 0;
	}
	
	int r = 2;
	printf("1 2\n");
	for (i = 1; i < n - 1; i++) {
		printf("%d %d\n", r, i + 2);
		if (s[i] == '1') r = i + 2; 
	}
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"1 2"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ebx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movl	%ebx, %ecx
	sarl	%ecx
	je	.L15
	movslq	%ebx, %rdx
	subl	$1, %ecx
	movq	%rbp, %rax
	addq	%rbp, %rdx
	leaq	1(%rsp,%rcx), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$1, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L4
.L6:
	movzbl	-2(%rdx), %edi
	cmpb	%dil, (%rax)
	je	.L27
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$48, %sil
	je	.L5
	leal	-1(%rbx), %r12d
	movslq	%r12d, %rax
	cmpb	$49, (%rsp,%rax)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	subl	$1, %r12d
	jle	.L9
	leal	-3(%rbx), %r14d
	movl	$2, %r12d
	movl	$1, %ebx
	addq	$2, %r14
	leaq	.LC3(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	leal	2(%rbx), %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	%r13d, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpb	$49, 0(%rbp,%rbx)
	cmove	%r13d, %r12d
	addq	$1, %rbx
	cmpq	%rbx, %r14
	jne	.L11
.L9:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L8
.L2:
	cmpb	$49, -1(%rsp)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L28:
	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	"%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"1 2"
.LC3:
	.string	"%d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %esi
	testb	%sil, %sil
	je	.L2
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ebx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L3
	movl	%ebx, %ecx
	sarl	%ecx
	je	.L15
	movslq	%ebx, %rdx
	subl	$1, %ecx
	movq	%rbp, %rax
	addq	%rbp, %rdx
	leaq	1(%rsp,%rcx), %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	addq	$1, %rax
	subq	$1, %rdx
	cmpq	%rcx, %rax
	je	.L4
.L6:
	movzbl	-2(%rdx), %edi
	cmpb	%dil, (%rax)
	je	.L27
.L5:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	cmpb	$48, %sil
	je	.L5
	leal	-1(%rbx), %r12d
	movslq	%r12d, %rax
	cmpb	$49, (%rsp,%rax)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	subl	$1, %r12d
	jle	.L9
	leal	-3(%rbx), %r14d
	movl	$2, %r12d
	movl	$1, %ebx
	addq	$2, %r14
	leaq	.LC3(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L11:
	leal	2(%rbx), %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	movq	%r15, %rsi
	movl	%r13d, %ecx
	movl	$1, %edi
	call	__printf_chk@PLT
	cmpb	$49, 0(%rbp,%rbx)
	cmove	%r13d, %r12d
	addq	$1, %rbx
	cmpq	%rbx, %r14
	jne	.L11
.L9:
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	jmp	.L8
.L2:
	cmpb	$49, -1(%rsp)
	je	.L5
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L28:
	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:
```