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<stdlib.h>
#include<string.h>
#define df 0
int max(int a,int b,int c){
  if(a>b)return a>c?a:c;
  return b>c?b:c;
}
int min(int a,int b,int c){
  if(a<b)return a<c?a:c;
  return b<c?b:c;
}


int main(){
  int count[3];
  char s[100010];
  scanf("%s",s);
  int len=strlen(s),i;
  for(i=0;i<len;i++){
    count[s[i]-'a']++;
  }
  int flag=(max(count[0],count[1],count[2])-min(count[0],count[1],count[2])<=1);
  printf("%s",flag?"YES":"NO");
  return 0;
}


/// confirm df==0 ///```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB6:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	jmp	.L3
.L2:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	jmp	.L6
.L5:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1768, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-100048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100068(%rbp)
	movl	$0, -100072(%rbp)
	jmp	.L8
.L9:
	movl	-100072(%rbp), %eax
	cltq
	movzbl	-100048(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-100060(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -100060(%rbp,%rax,4)
	addl	$1, -100072(%rbp)
.L8:
	movl	-100072(%rbp), %eax
	cmpl	-100068(%rbp), %eax
	jl	.L9
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, %ebx
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	setle	%al
	movzbl	%al, %eax
	movl	%eax, -100064(%rbp)
	cmpl	$0, -100064(%rbp)
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	max
	.type	max, @function
max:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%edx, %edi
	movl	%edx, %eax
	cmovge	%edi, %eax
	cmpl	%edx, %esi
	cmovge	%esi, %edx
	cmpl	%esi, %edi
	cmovle	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%edx, %edi
	movl	%edx, %eax
	cmovle	%edi, %eax
	cmpl	%edx, %esi
	cmovle	%esi, %edx
	cmpl	%esi, %edi
	cmovge	%edx, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1752, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC2(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 100040(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L9
	subl	$1, %eax
	movq	%rbx, %rdx
	leaq	17(%rsp,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	cmpq	%rdx, %rcx
	jne	.L10
.L9:
	movl	8(%rsp), %edx
	movl	4(%rsp), %ecx
	movl	12(%rsp), %eax
	cmpl	%ecx, %edx
	jl	.L22
	cmpl	%edx, %eax
	movl	%edx, %esi
	cmovge	%eax, %esi
	cmpl	%ecx, %edx
	jle	.L12
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	jmp	.L13
.L22:
	cmpl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%eax, %esi
.L12:
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L13:
	subl	%eax, %esi
	leaq	.LC0(%rip), %rdx
	movl	$1, %edi
	cmpl	$2, %esi
	leaq	.LC1(%rip), %rax
	movq	%rbp, %rsi
	cmovge	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	100040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$100056, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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	max
	.type	max, @function
max:
.LFB51:
	.cfi_startproc
	endbr64
	cmpl	%edx, %edi
	movl	%edx, %eax
	cmovge	%edi, %eax
	cmpl	%edx, %esi
	cmovge	%esi, %edx
	cmpl	%esi, %edi
	cmovle	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	max, .-max
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB52:
	.cfi_startproc
	endbr64
	cmpl	%edx, %edi
	movl	%edx, %eax
	cmovle	%edi, %eax
	cmpl	%edx, %esi
	cmovle	%esi, %edx
	cmpl	%esi, %edi
	cmovge	%edx, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"YES"
.LC1:
	.string	"NO"
.LC2:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.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	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1752, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC2(%rip), %rbp
	movq	%rbp, %rdi
	movq	%fs:40, %rax
	movq	%rax, 100040(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbx, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L9
	subl	$1, %eax
	movq	%rbx, %rdx
	leaq	17(%rsp,%rax), %rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movsbl	(%rdx), %eax
	addq	$1, %rdx
	subl	$97, %eax
	cltq
	addl	$1, 4(%rsp,%rax,4)
	cmpq	%rdx, %rcx
	jne	.L10
.L9:
	movl	8(%rsp), %edx
	movl	4(%rsp), %ecx
	movl	12(%rsp), %eax
	cmpl	%ecx, %edx
	jl	.L22
	cmpl	%edx, %eax
	movl	%edx, %esi
	cmovge	%eax, %esi
	cmpl	%ecx, %edx
	jle	.L12
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	jmp	.L13
.L22:
	cmpl	%ecx, %eax
	movl	%ecx, %esi
	cmovge	%eax, %esi
.L12:
	cmpl	%edx, %eax
	cmovg	%edx, %eax
.L13:
	subl	%eax, %esi
	leaq	.LC0(%rip), %rdx
	movl	$1, %edi
	cmpl	$2, %esi
	leaq	.LC1(%rip), %rax
	movq	%rbp, %rsi
	cmovge	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	100040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$100056, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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<stdlib.h>
#include<string.h>
#define df 0
int max(int a,int b,int c){
  if(a>b)return a>c?a:c;
  return b>c?b:c;
}
int min(int a,int b,int c){
  if(a<b)return a<c?a:c;
  return b<c?b:c;
}


int main(){
  int count[3];
  char s[100010];
  scanf("%s",s);
  int len=strlen(s),i;
  for(i=0;i<len;i++){
    count[s[i]-'a']++;
  }
  int flag=(max(count[0],count[1],count[2])-min(count[0],count[1],count[2])<=1);
  printf("%s",flag?"YES":"NO");
  return 0;
}


/// confirm df==0 ///
abac

YES
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<stdlib.h>
#include<string.h>
#define df 0
int max(int a,int b,int c){
  if(a>b)return a>c?a:c;
  return b>c?b:c;
}
int min(int a,int b,int c){
  if(a<b)return a<c?a:c;
  return b<c?b:c;
}


int main(){
  int count[3];
  char s[100010];
  scanf("%s",s);
  int len=strlen(s),i;
  for(i=0;i<len;i++){
    count[s[i]-'a']++;
  }
  int flag=(max(count[0],count[1],count[2])-min(count[0],count[1],count[2])<=1);
  printf("%s",flag?"YES":"NO");
  return 0;
}


/// confirm df==0 ///```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	max
	.type	max, @function
max:
.LFB6:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	jmp	.L3
.L2:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	jmp	.L6
.L5:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1768, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-100048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100068(%rbp)
	movl	$0, -100072(%rbp)
	jmp	.L8
.L9:
	movl	-100072(%rbp), %eax
	cltq
	movzbl	-100048(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-100060(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -100060(%rbp,%rax,4)
	addl	$1, -100072(%rbp)
.L8:
	movl	-100072(%rbp), %eax
	cmpl	-100068(%rbp), %eax
	jl	.L9
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, %ebx
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	setle	%al
	movzbl	%al, %eax
	movl	%eax, -100064(%rbp)
	cmpl	$0, -100064(%rbp)
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	max
	.type	max, @function
max:
.LFB6:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L2
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	jmp	.L3
.L2:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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	%edx, -12(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L5
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	jmp	.L6
.L5:
	movl	-12(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
.L6:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1768, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-100048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100048(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100068(%rbp)
	movl	$0, -100072(%rbp)
	jmp	.L8
.L9:
	movl	-100072(%rbp), %eax
	cltq
	movzbl	-100048(%rbp,%rax), %eax
	movsbl	%al, %eax
	subl	$97, %eax
	movslq	%eax, %rdx
	movl	-100060(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -100060(%rbp,%rax,4)
	addl	$1, -100072(%rbp)
.L8:
	movl	-100072(%rbp), %eax
	cmpl	-100068(%rbp), %eax
	jl	.L9
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	max
	movl	%eax, %ebx
	movl	-100052(%rbp), %edx
	movl	-100056(%rbp), %ecx
	movl	-100060(%rbp), %eax
	movl	%ecx, %esi
	movl	%eax, %edi
	call	min
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	setle	%al
	movzbl	%al, %eax
	movl	%eax, -100064(%rbp)
	cmpl	$0, -100064(%rbp)
	je	.L10
	leaq	.LC1(%rip), %rax
	jmp	.L11
.L10:
	leaq	.LC2(%rip), %rax
.L11:
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
