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

char S[100005];

int func(int K){

	int i;

	int len=strlen(S);

	if(len-K<=K-1){
		for(i=len-K;i<K-1;i++){
			if(S[i]!=S[i+1]){return 0;}
		}
	}
	return 1;
}

int main(){

	scanf("%s",S);

	int K=1;

	int l=1;
	int r=strlen(S);

	while(l<=r){
		int mid=(l+r)/2;
		if(func(mid)==1){
			if(K<mid){K=mid;}
			l=mid+1;
		}
		else{
			r=mid-1;
		}
	}

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

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	S(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movl	$1, %r8d
	subl	%ebx, %eax
	cmpl	%ebx, %eax
	jge	.L1
	movslq	%eax, %rdx
	subl	$1, %ebx
	addq	%rbp, %rdx
	subl	%eax, %ebx
	leaq	(%rbx,%rdx), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	jne	.L6
.L3:
	cmpq	%rax, %rdx
	jne	.L4
	movl	$1, %r8d
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	func, .-func
	.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	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	S(%rip), %rbx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L16
	movl	%eax, %r11d
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%esi, %r9d
	leal	1(%rsi), %r8d
	cmovl	%esi, %r9d
	cmpl	%r8d, %eax
	jl	.L10
.L15:
	leal	(%rax,%r8), %esi
	movl	%r11d, %ecx
	sarl	%esi
	subl	%esi, %ecx
	cmpl	%ecx, %esi
	jle	.L11
	leal	-1(%rsi), %r10d
	movslq	%ecx, %rdx
	movl	%r10d, %edi
	addq	%rbx, %rdx
	subl	%ecx, %edi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpq	%rdi, %rdx
	je	.L11
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	je	.L12
	movl	%r10d, %eax
	cmpl	%r8d, %eax
	jge	.L15
.L10:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L10
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 100005
S:
	.zero	100005
	.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	func
	.type	func, @function
func:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	S(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movl	$1, %r8d
	subl	%ebx, %eax
	cmpl	%ebx, %eax
	jge	.L1
	movslq	%eax, %rdx
	subl	$1, %ebx
	addq	%rbp, %rdx
	subl	%eax, %ebx
	leaq	(%rbx,%rdx), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	jne	.L6
.L3:
	cmpq	%rax, %rdx
	jne	.L4
	movl	$1, %r8d
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	func, .-func
	.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	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	S(%rip), %rbx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L16
	movl	%eax, %r11d
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%esi, %r9d
	leal	1(%rsi), %r8d
	cmovl	%esi, %r9d
	cmpl	%r8d, %eax
	jl	.L10
.L15:
	leal	(%rax,%r8), %esi
	movl	%r11d, %ecx
	sarl	%esi
	subl	%esi, %ecx
	cmpl	%ecx, %esi
	jle	.L11
	leal	-1(%rsi), %r10d
	movslq	%ecx, %rdx
	movl	%r10d, %edi
	addq	%rbx, %rdx
	subl	%ecx, %edi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpq	%rdi, %rdx
	je	.L11
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	je	.L12
	movl	%r10d, %eax
	cmpl	%r8d, %eax
	jge	.L15
.L10:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L10
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 100005
S:
	.zero	100005
	.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	func
	.type	func, @function
func:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	S(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movl	$1, %r8d
	subl	%ebx, %eax
	cmpl	%ebx, %eax
	jge	.L1
	movslq	%eax, %rdx
	subl	$1, %ebx
	addq	%rbp, %rdx
	subl	%eax, %ebx
	leaq	(%rbx,%rdx), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	jne	.L6
.L3:
	cmpq	%rax, %rdx
	jne	.L4
	movl	$1, %r8d
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	func, .-func
	.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	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	S(%rip), %rbx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L16
	movl	%eax, %r11d
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%esi, %r9d
	leal	1(%rsi), %r8d
	cmovl	%esi, %r9d
	cmpl	%r8d, %eax
	jl	.L10
.L15:
	leal	(%rax,%r8), %esi
	movl	%r11d, %ecx
	sarl	%esi
	subl	%esi, %ecx
	cmpl	%ecx, %esi
	jle	.L11
	leal	-1(%rsi), %r10d
	movslq	%ecx, %rdx
	movl	%r10d, %edi
	addq	%rbx, %rdx
	subl	%ecx, %edi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpq	%rdi, %rdx
	je	.L11
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	je	.L12
	movl	%r10d, %eax
	cmpl	%r8d, %eax
	jge	.L15
.L10:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L10
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 100005
S:
	.zero	100005
	.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 <string.h>

char S[100005];

int func(int K){

	int i;

	int len=strlen(S);

	if(len-K<=K-1){
		for(i=len-K;i<K-1;i++){
			if(S[i]!=S[i+1]){return 0;}
		}
	}
	return 1;
}

int main(){

	scanf("%s",S);

	int K=1;

	int l=1;
	int r=strlen(S);

	while(l<=r){
		int mid=(l+r)/2;
		if(func(mid)==1){
			if(K<mid){K=mid;}
			l=mid+1;
		}
		else{
			r=mid-1;
		}
	}

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

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

char S[100005];

int func(int K){

	int i;

	int len=strlen(S);

	if(len-K<=K-1){
		for(i=len-K;i<K-1;i++){
			if(S[i]!=S[i+1]){return 0;}
		}
	}
	return 1;
}

int main(){

	scanf("%s",S);

	int K=1;

	int l=1;
	int r=strlen(S);

	while(l<=r){
		int mid=(l+r)/2;
		if(func(mid)==1){
			if(K<mid){K=mid;}
			l=mid+1;
		}
		else{
			r=mid-1;
		}
	}

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

	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:

100000010
 011
 00001101
 111
 00011101
 100000101
 11111111
 000000000
 100000011
 100001011

7
 2
 4
 3
 5
 6
 8
 9
 7
 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 <string.h>

char S[100005];

int func(int K){

	int i;

	int len=strlen(S);

	if(len-K<=K-1){
		for(i=len-K;i<K-1;i++){
			if(S[i]!=S[i+1]){return 0;}
		}
	}
	return 1;
}

int main(){

	scanf("%s",S);

	int K=1;

	int l=1;
	int r=strlen(S);

	while(l<=r){
		int mid=(l+r)/2;
		if(func(mid)==1){
			if(K<mid){K=mid;}
			l=mid+1;
		}
		else{
			r=mid-1;
		}
	}

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

	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	func
	.type	func, @function
func:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	S(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movl	$1, %r8d
	subl	%ebx, %eax
	cmpl	%ebx, %eax
	jge	.L1
	movslq	%eax, %rdx
	subl	$1, %ebx
	addq	%rbp, %rdx
	subl	%eax, %ebx
	leaq	(%rbx,%rdx), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	jne	.L6
.L3:
	cmpq	%rax, %rdx
	jne	.L4
	movl	$1, %r8d
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	func, .-func
	.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	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	S(%rip), %rbx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L16
	movl	%eax, %r11d
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%esi, %r9d
	leal	1(%rsi), %r8d
	cmovl	%esi, %r9d
	cmpl	%r8d, %eax
	jl	.L10
.L15:
	leal	(%rax,%r8), %esi
	movl	%r11d, %ecx
	sarl	%esi
	subl	%esi, %ecx
	cmpl	%ecx, %esi
	jle	.L11
	leal	-1(%rsi), %r10d
	movslq	%ecx, %rdx
	movl	%r10d, %edi
	addq	%rbx, %rdx
	subl	%ecx, %edi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpq	%rdi, %rdx
	je	.L11
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	je	.L12
	movl	%r10d, %eax
	cmpl	%r8d, %eax
	jge	.L15
.L10:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L10
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 100005
S:
	.zero	100005
	.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	func
	.type	func, @function
func:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	S(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	movq	%rbp, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	call	strlen@PLT
	movl	$1, %r8d
	subl	%ebx, %eax
	cmpl	%ebx, %eax
	jge	.L1
	movslq	%eax, %rdx
	subl	$1, %ebx
	addq	%rbp, %rdx
	subl	%eax, %ebx
	leaq	(%rbx,%rdx), %rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	jne	.L6
.L3:
	cmpq	%rax, %rdx
	jne	.L4
	movl	$1, %r8d
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	func, .-func
	.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	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	S(%rip), %rbx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L16
	movl	%eax, %r11d
	movl	$1, %r8d
	movl	$1, %r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	cmpl	%esi, %r9d
	leal	1(%rsi), %r8d
	cmovl	%esi, %r9d
	cmpl	%r8d, %eax
	jl	.L10
.L15:
	leal	(%rax,%r8), %esi
	movl	%r11d, %ecx
	sarl	%esi
	subl	%esi, %ecx
	cmpl	%ecx, %esi
	jle	.L11
	leal	-1(%rsi), %r10d
	movslq	%ecx, %rdx
	movl	%r10d, %edi
	addq	%rbx, %rdx
	subl	%ecx, %edi
	addq	%rdx, %rdi
	.p2align 4,,10
	.p2align 3
.L12:
	cmpq	%rdi, %rdx
	je	.L11
	movzbl	(%rdx), %ecx
	addq	$1, %rdx
	cmpb	(%rdx), %cl
	je	.L12
	movl	%r10d, %eax
	cmpl	%r8d, %eax
	jge	.L15
.L10:
	movl	%r9d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	movl	$1, %r9d
	jmp	.L10
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	S
	.bss
	.align 32
	.type	S, @object
	.size	S, 100005
S:
	.zero	100005
	.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:
```