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<math.h>
#include<stdlib.h>
int main(void){
    int n,get[100000],i,j,t=0;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&get[i]);
    }
    
    for(i=1;i<=100;i++){
        int count=0;
        for(j=1;j<=n;j++){
            
            if(i<=get[j]){
                
                count++;
                
            }
            
            
            
        }
        if(i<=count){
           t++;
           
        }
        
    }   
    printf("%d\n",t);
    
    
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2720, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jge	.L3
.L2:
	movl	%edi, %eax
	movl	%edi, %r10d
	leal	-1(%rdi), %r11d
	xorl	%r9d, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	pxor	%xmm3, %xmm3
	movl	$1, %edx
	subl	$1, %eax
	leal	1(%r10), %ebx
	salq	$4, %rax
	leaq	36(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%edi, %edi
	jle	.L12
	cmpl	$2, %r11d
	jbe	.L16
	movd	%edx, %xmm5
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rax), %xmm4
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%ebx, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r10d, %edi
	je	.L7
.L5:
	movslq	%ecx, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L8
	addl	$1, %eax
.L8:
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jl	.L7
	movslq	%r8d, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L9
	addl	$1, %eax
.L9:
	addl	$2, %ecx
	cmpl	%ecx, %edi
	jl	.L7
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %edx
	jg	.L7
	addl	$1, %eax
.L7:
	cmpl	%eax, %edx
	setle	%al
	movzbl	%al, %eax
	addl	%eax, %r9d
.L12:
	addl	$1, %edx
	cmpl	$101, %edx
	jne	.L4
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$400032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2720, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jge	.L3
.L2:
	movl	%edi, %eax
	movl	%edi, %r10d
	leal	-1(%rdi), %r11d
	xorl	%r9d, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	pxor	%xmm3, %xmm3
	movl	$1, %edx
	subl	$1, %eax
	leal	1(%r10), %ebx
	salq	$4, %rax
	leaq	36(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%edi, %edi
	jle	.L12
	cmpl	$2, %r11d
	jbe	.L16
	movd	%edx, %xmm5
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rax), %xmm4
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%ebx, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r10d, %edi
	je	.L7
.L5:
	movslq	%ecx, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L8
	addl	$1, %eax
.L8:
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jl	.L7
	movslq	%r8d, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L9
	addl	$1, %eax
.L9:
	addl	$2, %ecx
	cmpl	%ecx, %edi
	jl	.L7
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %edx
	jg	.L7
	addl	$1, %eax
.L7:
	cmpl	%eax, %edx
	setle	%al
	movzbl	%al, %eax
	addl	%eax, %r9d
.L12:
	addl	$1, %edx
	cmpl	$101, %edx
	jne	.L4
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$400032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2720, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jge	.L3
.L2:
	movl	%edi, %eax
	movl	%edi, %r10d
	leal	-1(%rdi), %r11d
	xorl	%r9d, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	pxor	%xmm3, %xmm3
	movl	$1, %edx
	subl	$1, %eax
	leal	1(%r10), %ebx
	salq	$4, %rax
	leaq	36(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%edi, %edi
	jle	.L12
	cmpl	$2, %r11d
	jbe	.L16
	movd	%edx, %xmm5
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rax), %xmm4
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%ebx, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r10d, %edi
	je	.L7
.L5:
	movslq	%ecx, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L8
	addl	$1, %eax
.L8:
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jl	.L7
	movslq	%r8d, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L9
	addl	$1, %eax
.L9:
	addl	$2, %ecx
	cmpl	%ecx, %edi
	jl	.L7
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %edx
	jg	.L7
	addl	$1, %eax
.L7:
	cmpl	%eax, %edx
	setle	%al
	movzbl	%al, %eax
	addl	%eax, %r9d
.L12:
	addl	$1, %edx
	cmpl	$101, %edx
	jne	.L4
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$400032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include<math.h>
#include<stdlib.h>
int main(void){
    int n,get[100000],i,j,t=0;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&get[i]);
    }
    
    for(i=1;i<=100;i++){
        int count=0;
        for(j=1;j<=n;j++){
            
            if(i<=get[j]){
                
                count++;
                
            }
            
            
            
        }
        if(i<=count){
           t++;
           
        }
        
    }   
    printf("%d\n",t);
    
    
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include<math.h>
#include<stdlib.h>
int main(void){
    int n,get[100000],i,j,t=0;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&get[i]);
    }
    
    for(i=1;i<=100;i++){
        int count=0;
        for(j=1;j<=n;j++){
            
            if(i<=get[j]){
                
                count++;
                
            }
            
            
            
        }
        if(i<=count){
           t++;
           
        }
        
    }   
    printf("%d\n",t);
    
    
}
```

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:

7
5 4 3 14 2 4 1
 3
1 0 100
 3
2 0 100
 7
0 1 5 37 2 4 1
 7
5 4 3 14 2 7 1
 7
5 4 2 14 2 7 1
 7
5 4 4 14 2 7 1
 7
5 4 4 14 1 7 1
 7
10 4 4 14 1 7 1
 7
10 4 4 14 1 7 2

4
 1
 2
 3
 4
 4
 4
 4
 4
 4

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<math.h>
#include<stdlib.h>
int main(void){
    int n,get[100000],i,j,t=0;
    scanf("%d",&n);
    for(i=1;i<=n;i++){
        scanf("%d",&get[i]);
    }
    
    for(i=1;i<=100;i++){
        int count=0;
        for(j=1;j<=n;j++){
            
            if(i<=get[j]){
                
                count++;
                
            }
            
            
            
        }
        if(i<=count){
           t++;
           
        }
        
    }   
    printf("%d\n",t);
    
    
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2720, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jge	.L3
.L2:
	movl	%edi, %eax
	movl	%edi, %r10d
	leal	-1(%rdi), %r11d
	xorl	%r9d, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	pxor	%xmm3, %xmm3
	movl	$1, %edx
	subl	$1, %eax
	leal	1(%r10), %ebx
	salq	$4, %rax
	leaq	36(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%edi, %edi
	jle	.L12
	cmpl	$2, %r11d
	jbe	.L16
	movd	%edx, %xmm5
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rax), %xmm4
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%ebx, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r10d, %edi
	je	.L7
.L5:
	movslq	%ecx, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L8
	addl	$1, %eax
.L8:
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jl	.L7
	movslq	%r8d, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L9
	addl	$1, %eax
.L9:
	addl	$2, %ecx
	cmpl	%ecx, %edi
	jl	.L7
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %edx
	jg	.L7
	addl	$1, %eax
.L7:
	cmpl	%eax, %edx
	setle	%al
	movzbl	%al, %eax
	addl	%eax, %r9d
.L12:
	addl	$1, %edx
	cmpl	$101, %edx
	jne	.L4
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$400032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2720, %rsp
	.cfi_def_cfa_offset 400064
	leaq	.LC0(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	20(%rsp), %rbp
	movl	$1, %ebx
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %rbp
	cmpl	%ebx, %edi
	jge	.L3
.L2:
	movl	%edi, %eax
	movl	%edi, %r10d
	leal	-1(%rdi), %r11d
	xorl	%r9d, %r9d
	shrl	$2, %eax
	andl	$-4, %r10d
	pxor	%xmm3, %xmm3
	movl	$1, %edx
	subl	$1, %eax
	leal	1(%r10), %ebx
	salq	$4, %rax
	leaq	36(%rsp,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L4:
	testl	%edi, %edi
	jle	.L12
	cmpl	$2, %r11d
	jbe	.L16
	movd	%edx, %xmm5
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	pshufd	$0, %xmm5, %xmm2
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rax), %xmm4
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpgtd	%xmm4, %xmm1
	pcmpeqd	%xmm3, %xmm1
	psubd	%xmm1, %xmm0
	cmpq	%rax, %rsi
	jne	.L6
	movdqa	%xmm0, %xmm1
	movl	%ebx, %ecx
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r10d, %edi
	je	.L7
.L5:
	movslq	%ecx, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L8
	addl	$1, %eax
.L8:
	leal	1(%rcx), %r8d
	cmpl	%r8d, %edi
	jl	.L7
	movslq	%r8d, %r8
	cmpl	%edx, 16(%rsp,%r8,4)
	jl	.L9
	addl	$1, %eax
.L9:
	addl	$2, %ecx
	cmpl	%ecx, %edi
	jl	.L7
	movslq	%ecx, %rcx
	cmpl	16(%rsp,%rcx,4), %edx
	jg	.L7
	addl	$1, %eax
.L7:
	cmpl	%eax, %edx
	setle	%al
	movzbl	%al, %eax
	addl	%eax, %r9d
.L12:
	addl	$1, %edx
	cmpl	$101, %edx
	jne	.L4
	xorl	%eax, %eax
	movl	%r9d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$400032, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	xorl	%eax, %eax
	movl	$1, %ecx
	jmp	.L5
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```