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 <string.h>
int min(int x,int y){return x>y?y:x;}
int max(int x,int y){return x>y?x:y;}
int main(void){
    char S[114514];
    scanf("%s",S);
    int ans=1;
    char maemoji=S[0];
    int count=1;
    for(int i=1;i<strlen(S);i++){
        if(S[i]!=maemoji){
            maemoji=S[i];
            ans=max(ans,min(i,strlen(S)-i+count));
            count=1;
        }
        else count++;
        if(i==strlen(S)-1)ans=max(ans,min(i+1,strlen(S)-(i+1)+count));
    }
    printf("%d",ans);
    return 0;
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-110592(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3960, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-114544(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -114556(%rbp)
	movzbl	-114544(%rbp), %eax
	movb	%al, -114557(%rbp)
	movl	$1, -114552(%rbp)
	movl	$1, -114548(%rbp)
	jmp	.L6
.L10:
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	cmpb	%al, -114557(%rbp)
	je	.L7
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	movb	%al, -114557(%rbp)
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
	movl	$1, -114552(%rbp)
	jmp	.L8
.L7:
	addl	$1, -114552(%rbp)
.L8:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jne	.L9
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
.L9:
	addl	$1, -114548(%rbp)
.L6:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L10
	movl	-114556(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	min, .-min
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB36:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-110592(%rsp), %r11
	.cfi_def_cfa 11, 110616
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3944, %rsp
	.cfi_def_cfa_offset 114560
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 114520(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movzbl	(%rsp), %ebp
	call	strlen@PLT
	cmpq	$1, %rax
	jbe	.L12
	movq	%rax, %rsi
	movl	%eax, %r9d
	leaq	-1(%rax), %rdi
	movl	$1, %edx
	leal	-1(%rax), %r10d
	movl	$1, %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movzbl	(%rbx,%rdx), %ecx
	movl	%edx, %r11d
	cmpb	%bpl, %cl
	je	.L6
.L17:
	addl	%r9d, %eax
	movl	%ecx, %ebp
	subl	%edx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	movl	$1, %eax
.L7:
	leal	1(%r11), %ecx
	cmpq	%rdx, %rdi
	je	.L15
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	jne	.L10
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	114520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$114536, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%r10d, %edx
	subl	%r11d, %edx
	addl	%eax, %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	leaq	1(%rdi), %rdx
	cmpq	%rdx, %rsi
	je	.L5
	movzbl	(%rbx,%rdx), %ecx
	movl	%edx, %r11d
	cmpb	%bpl, %cl
	jne	.L17
.L6:
	addl	$1, %eax
	jmp	.L7
.L12:
	movl	$1, %r8d
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	min, .-min
	.p2align 4
	.globl	max
	.type	max, @function
max:
.LFB36:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovge	%esi, %eax
	ret
	.cfi_endproc
.LFE36:
	.size	max, .-max
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-110592(%rsp), %r11
	.cfi_def_cfa 11, 110616
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3944, %rsp
	.cfi_def_cfa_offset 114560
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 114520(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	movzbl	(%rsp), %ebp
	call	strlen@PLT
	cmpq	$1, %rax
	jbe	.L12
	movq	%rax, %rsi
	movl	%eax, %r9d
	leaq	-1(%rax), %rdi
	movl	$1, %edx
	leal	-1(%rax), %r10d
	movl	$1, %r8d
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	movzbl	(%rbx,%rdx), %ecx
	movl	%edx, %r11d
	cmpb	%bpl, %cl
	je	.L6
.L17:
	addl	%r9d, %eax
	movl	%ecx, %ebp
	subl	%edx, %eax
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	movl	$1, %eax
.L7:
	leal	1(%r11), %ecx
	cmpq	%rdx, %rdi
	je	.L15
	addq	$1, %rdx
	cmpq	%rdx, %rsi
	jne	.L10
.L5:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	114520(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$114536, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movl	%r10d, %edx
	subl	%r11d, %edx
	addl	%eax, %edx
	cmpl	%ecx, %edx
	cmovg	%ecx, %edx
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	leaq	1(%rdi), %rdx
	cmpq	%rdx, %rsi
	je	.L5
	movzbl	(%rbx,%rdx), %ecx
	movl	%edx, %r11d
	cmpb	%bpl, %cl
	jne	.L17
.L6:
	addl	$1, %eax
	jmp	.L7
.L12:
	movl	$1, %r8d
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.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 <string.h>
int min(int x,int y){return x>y?y:x;}
int max(int x,int y){return x>y?x:y;}
int main(void){
    char S[114514];
    scanf("%s",S);
    int ans=1;
    char maemoji=S[0];
    int count=1;
    for(int i=1;i<strlen(S);i++){
        if(S[i]!=maemoji){
            maemoji=S[i];
            ans=max(ans,min(i,strlen(S)-i+count));
            count=1;
        }
        else count++;
        if(i==strlen(S)-1)ans=max(ans,min(i+1,strlen(S)-(i+1)+count));
    }
    printf("%d",ans);
    return 0;
    
}

010

2
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 <string.h>
int min(int x,int y){return x>y?y:x;}
int max(int x,int y){return x>y?x:y;}
int main(void){
    char S[114514];
    scanf("%s",S);
    int ans=1;
    char maemoji=S[0];
    int count=1;
    for(int i=1;i<strlen(S);i++){
        if(S[i]!=maemoji){
            maemoji=S[i];
            ans=max(ans,min(i,strlen(S)-i+count));
            count=1;
        }
        else count++;
        if(i==strlen(S)-1)ans=max(ans,min(i+1,strlen(S)-(i+1)+count));
    }
    printf("%d",ans);
    return 0;
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-110592(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3960, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-114544(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -114556(%rbp)
	movzbl	-114544(%rbp), %eax
	movb	%al, -114557(%rbp)
	movl	$1, -114552(%rbp)
	movl	$1, -114548(%rbp)
	jmp	.L6
.L10:
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	cmpb	%al, -114557(%rbp)
	je	.L7
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	movb	%al, -114557(%rbp)
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
	movl	$1, -114552(%rbp)
	jmp	.L8
.L7:
	addl	$1, -114552(%rbp)
.L8:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jne	.L9
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
.L9:
	addl	$1, -114548(%rbp)
.L6:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L10
	movl	-114556(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.globl	max
	.type	max, @function
max:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	max, .-max
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-110592(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3960, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-114544(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -114556(%rbp)
	movzbl	-114544(%rbp), %eax
	movb	%al, -114557(%rbp)
	movl	$1, -114552(%rbp)
	movl	$1, -114548(%rbp)
	jmp	.L6
.L10:
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	cmpb	%al, -114557(%rbp)
	je	.L7
	movl	-114548(%rbp), %eax
	cltq
	movzbl	-114544(%rbp,%rax), %eax
	movb	%al, -114557(%rbp)
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
	movl	$1, -114552(%rbp)
	jmp	.L8
.L7:
	addl	$1, -114552(%rbp)
.L8:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$1, %rax
	cmpq	%rax, %rbx
	jne	.L9
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	subl	%eax, %edx
	movl	-114552(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, %edx
	movl	-114548(%rbp), %eax
	addl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	-114556(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, -114556(%rbp)
.L9:
	addl	$1, -114548(%rbp)
.L6:
	movl	-114548(%rbp), %eax
	movslq	%eax, %rbx
	leaq	-114544(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	cmpq	%rax, %rbx
	jb	.L10
	movl	-114556(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
