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>
#define INF 100001

int main (void){
    int N;
    int a,b;
    int count[INF]={};//???????????°???????§????????????????????????£?????????????????°
    int i,max=0;
    
    scanf("%d", &N);
    while(N){
        scanf("%d %d",&a ,&b);
        for(a--;a!=b;a++){
           // printf("%d %d\n", a, b);
            count[a]++;
        }
    
        N--;
    }
    for(i=0;i<INF;i++){
        if(count[i] > i)
            count[i] = i;
        if(count[i] < i)
            count[i] = 0;
    }
    
    
    max = count[0];
    for(i=1;i<INF;i++){
        //if(i<10) printf("%d",count[i]);
        if(count[i] > max){
            max = count[i];
        }
    }
    
    printf("%d\n",max);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400020(%rbp)
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L5:
	leaq	-400028(%rbp), %rdx
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L3
.L4:
	movl	-400032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L3:
	movl	-400032(%rbp), %edx
	movl	-400028(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-400036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, -400024(%rbp)
	jmp	.L6
.L9:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jge	.L7
	movl	-400024(%rbp), %eax
	cltq
	movl	-400024(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
.L7:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jle	.L8
	movl	-400024(%rbp), %eax
	cltq
	movl	$0, -400016(%rbp,%rax,4)
.L8:
	addl	$1, -400024(%rbp)
.L6:
	cmpl	$100000, -400024(%rbp)
	jle	.L9
	movl	-400016(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$1, -400024(%rbp)
	jmp	.L10
.L12:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400020(%rbp)
	jge	.L11
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, -400020(%rbp)
.L11:
	addl	$1, -400024(%rbp)
.L10:
	cmpl	$100000, -400024(%rbp)
	jle	.L12
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	movl	$400004, %edx
	xorl	%esi, %esi
	leaq	.LC2(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %r13
	movq	%rbx, %rdi
	leaq	8(%rsp), %r12
	call	memset@PLT
	leaq	4(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movl	12(%rsp), %r8d
	movdqa	.LC3(%rip), %xmm1
	leal	-1(%rax), %esi
	cmpl	%r8d, %esi
	movl	%esi, 8(%rsp)
	je	.L4
	movl	%r8d, %edi
	subl	%eax, %edi
	leal	1(%rdi), %r9d
	cmpl	$2, %edi
	jbe	.L14
	leaq	-4(%rbx,%rax,4), %rdx
	movl	%r9d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	addq	$16, %rax
.L6:
	movdqu	(%rdx), %xmm0
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rax, %rcx
	jne	.L28
	movl	%r9d, %edx
	andl	$-4, %edx
	leal	(%rdx,%rsi), %eax
	cmpl	%edx, %r9d
	je	.L7
.L5:
	movslq	%eax, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r8d
	je	.L7
	movslq	%edx, %rdx
	addl	$2, %eax
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%r8d, %eax
	je	.L7
	cltq
	addl	$1, 16(%rsp,%rax,4)
.L7:
	leal	1(%rsi,%rdi), %eax
	movl	%eax, 8(%rsp)
.L4:
	subl	$1, 4(%rsp)
	jne	.L2
.L8:
	movdqa	.LC0(%rip), %xmm3
	movdqa	.LC4(%rip), %xmm4
	leaq	400016(%rsp), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm3, %xmm0
	movdqa	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm4, %xmm3
	movdqa	%xmm0, %xmm1
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm0
	pandn	%xmm1, %xmm0
	movaps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L3
	movl	400016(%rsp), %eax
	cmpl	$100000, %eax
	jle	.L9
	movl	$100000, %eax
.L11:
	movd	16(%rsp), %xmm5
	movl	%eax, 400016(%rsp)
	leaq	400004(%rbx), %rdx
	leaq	20(%rsp), %rax
	pshufd	$0, %xmm5, %xmm0
.L10:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm1
	pandn	%xmm0, %xmm2
	por	%xmm1, %xmm2
	movdqa	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L10
	psrldq	$8, %xmm2
	xorl	%eax, %eax
	movl	$1, %edi
	movdqa	%xmm2, %xmm1
	leaq	.LC5(%rip), %rsi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movl	$0, %edx
	cmovne	%edx, %eax
	jmp	.L11
.L14:
	movl	%esi, %eax
	jmp	.L5
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC5:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	movl	$400004, %edx
	xorl	%esi, %esi
	leaq	.LC2(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	leaq	12(%rsp), %r13
	movq	%rbx, %rdi
	leaq	8(%rsp), %r12
	call	memset@PLT
	leaq	4(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r12, %rsi
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rax
	movl	12(%rsp), %r8d
	movdqa	.LC3(%rip), %xmm1
	leal	-1(%rax), %esi
	cmpl	%r8d, %esi
	movl	%esi, 8(%rsp)
	je	.L4
	movl	%r8d, %edi
	subl	%eax, %edi
	leal	1(%rdi), %r9d
	cmpl	$2, %edi
	jbe	.L14
	leaq	-4(%rbx,%rax,4), %rdx
	movl	%r9d, %eax
	shrl	$2, %eax
	leal	-1(%rax), %ecx
	leaq	16(%rdx), %rax
	salq	$4, %rcx
	addq	%rax, %rcx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	addq	$16, %rax
.L6:
	movdqu	(%rdx), %xmm0
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx)
	movq	%rax, %rdx
	cmpq	%rax, %rcx
	jne	.L28
	movl	%r9d, %edx
	andl	$-4, %edx
	leal	(%rdx,%rsi), %eax
	cmpl	%edx, %r9d
	je	.L7
.L5:
	movslq	%eax, %rdx
	addl	$1, 16(%rsp,%rdx,4)
	leal	1(%rax), %edx
	cmpl	%edx, %r8d
	je	.L7
	movslq	%edx, %rdx
	addl	$2, %eax
	addl	$1, 16(%rsp,%rdx,4)
	cmpl	%r8d, %eax
	je	.L7
	cltq
	addl	$1, 16(%rsp,%rax,4)
.L7:
	leal	1(%rsi,%rdi), %eax
	movl	%eax, 8(%rsp)
.L4:
	subl	$1, 4(%rsp)
	jne	.L2
.L8:
	movdqa	.LC0(%rip), %xmm3
	movdqa	.LC4(%rip), %xmm4
	leaq	400016(%rsp), %rdx
	movq	%rbx, %rax
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	%xmm3, %xmm0
	movdqa	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm4, %xmm3
	movdqa	%xmm0, %xmm1
	pcmpgtd	-16(%rax), %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	pcmpgtd	%xmm1, %xmm0
	pandn	%xmm1, %xmm0
	movaps	%xmm0, -16(%rax)
	cmpq	%rdx, %rax
	jne	.L3
	movl	400016(%rsp), %eax
	cmpl	$100000, %eax
	jle	.L9
	movl	$100000, %eax
.L11:
	movd	16(%rsp), %xmm5
	movl	%eax, 400016(%rsp)
	leaq	400004(%rbx), %rdx
	leaq	20(%rsp), %rax
	pshufd	$0, %xmm5, %xmm0
.L10:
	movdqu	(%rax), %xmm1
	addq	$16, %rax
	movdqa	%xmm1, %xmm2
	pcmpgtd	%xmm0, %xmm2
	pand	%xmm2, %xmm1
	pandn	%xmm0, %xmm2
	por	%xmm1, %xmm2
	movdqa	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L10
	psrldq	$8, %xmm2
	xorl	%eax, %eax
	movl	$1, %edi
	movdqa	%xmm2, %xmm1
	leaq	.LC5(%rip), %rsi
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm2
	pandn	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L29
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movl	$0, %edx
	cmovne	%edx, %eax
	jmp	.L11
.L14:
	movl	%esi, %eax
	jmp	.L5
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC3:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC4:
	.long	4
	.long	4
	.long	4
	.long	4
	.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>
#define INF 100001

int main (void){
    int N;
    int a,b;
    int count[INF]={};//???????????°???????§????????????????????????£?????????????????°
    int i,max=0;
    
    scanf("%d", &N);
    while(N){
        scanf("%d %d",&a ,&b);
        for(a--;a!=b;a++){
           // printf("%d %d\n", a, b);
            count[a]++;
        }
    
        N--;
    }
    for(i=0;i<INF;i++){
        if(count[i] > i)
            count[i] = i;
        if(count[i] < i)
            count[i] = 0;
    }
    
    
    max = count[0];
    for(i=1;i<INF;i++){
        //if(i<10) printf("%d",count[i]);
        if(count[i] > max){
            max = count[i];
        }
    }
    
    printf("%d\n",max);
    return 0;
}
5
8 100001
14 100001
12 100001
8 100001
3 100001
 4
2 5
4 7
2 4
5 6
 6
2 9
4 8
6 7
6 6
5 4
2 100001
 4
2 1
4 7
2 4
5 6
 5
8 100001
7 100001
12 100001
3 100001
3 100001
 6
2 9
2 8
6 7
6 6
5 4
2 100001
 6
4 9
2 8
6 7
6 6
5 4
2 100001
 5
6 100001
7 100001
12 100001
8 100001
3 100001
 4
2 2
4 7
2 4
3 6
 4
2 6
4 7
2 4
5 6

0
 3
 5
 1
 2
 5
 5
 0
 3
 3

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>
#define INF 100001

int main (void){
    int N;
    int a,b;
    int count[INF]={};//???????????°???????§????????????????????????£?????????????????°
    int i,max=0;
    
    scanf("%d", &N);
    while(N){
        scanf("%d %d",&a ,&b);
        for(a--;a!=b;a++){
           // printf("%d %d\n", a, b);
            count[a]++;
        }
    
        N--;
    }
    for(i=0;i<INF;i++){
        if(count[i] > i)
            count[i] = i;
        if(count[i] < i)
            count[i] = 0;
    }
    
    
    max = count[0];
    for(i=1;i<INF;i++){
        //if(i<10) printf("%d",count[i]);
        if(count[i] > max){
            max = count[i];
        }
    }
    
    printf("%d\n",max);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400020(%rbp)
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L5:
	leaq	-400028(%rbp), %rdx
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L3
.L4:
	movl	-400032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L3:
	movl	-400032(%rbp), %edx
	movl	-400028(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-400036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, -400024(%rbp)
	jmp	.L6
.L9:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jge	.L7
	movl	-400024(%rbp), %eax
	cltq
	movl	-400024(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
.L7:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jle	.L8
	movl	-400024(%rbp), %eax
	cltq
	movl	$0, -400016(%rbp,%rax,4)
.L8:
	addl	$1, -400024(%rbp)
.L6:
	cmpl	$100000, -400024(%rbp)
	jle	.L9
	movl	-400016(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$1, -400024(%rbp)
	jmp	.L10
.L12:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400020(%rbp)
	jge	.L11
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, -400020(%rbp)
.L11:
	addl	$1, -400024(%rbp)
.L10:
	cmpl	$100000, -400024(%rbp)
	jle	.L12
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400004, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -400020(%rbp)
	leaq	-400036(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L5:
	leaq	-400028(%rbp), %rdx
	leaq	-400032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-400032(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L3
.L4:
	movl	-400032(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	addl	$1, %edx
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -400032(%rbp)
.L3:
	movl	-400032(%rbp), %edx
	movl	-400028(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-400036(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -400036(%rbp)
.L2:
	movl	-400036(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, -400024(%rbp)
	jmp	.L6
.L9:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jge	.L7
	movl	-400024(%rbp), %eax
	cltq
	movl	-400024(%rbp), %edx
	movl	%edx, -400016(%rbp,%rax,4)
.L7:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400024(%rbp)
	jle	.L8
	movl	-400024(%rbp), %eax
	cltq
	movl	$0, -400016(%rbp,%rax,4)
.L8:
	addl	$1, -400024(%rbp)
.L6:
	cmpl	$100000, -400024(%rbp)
	jle	.L9
	movl	-400016(%rbp), %eax
	movl	%eax, -400020(%rbp)
	movl	$1, -400024(%rbp)
	jmp	.L10
.L12:
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, -400020(%rbp)
	jge	.L11
	movl	-400024(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, -400020(%rbp)
.L11:
	addl	$1, -400024(%rbp)
.L10:
	cmpl	$100000, -400024(%rbp)
	jle	.L12
	movl	-400020(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
