Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//
//  main.c
//  Matsuzaki Number
//
//  Created by x15071xx on 2016/06/16.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>
#include <math.h>

#define NUM 150000


int find_i (int hurui[],int x){
    int i;
    
    for (i=x; i<NUM; i++) {
        if (hurui[i] == 1) {
            break;
        }
    }
    
    return i;
}

int main(int argc, const char * argv[]) {
    
    int hurui[NUM];
    int i,j;
    for (i=0; i<NUM; i++) {
        hurui[i] = 1;
    }
    hurui[0] = 0;
    hurui[1] = 0;
    
    for (i=2; i<sqrt(NUM); i++) {
        if (hurui[i] == 1) {
            for (j=i*2; j<NUM; j+=i) {
                hurui[j] = 0;
            }
        }
    }
    while (1) {
        
        int n=0,p=0,tmp=0;
        
        scanf("%d %d",&n,&p);
        
        if (n==-1 && p==-1) {
            break;
        }
        
        int count_p=0,pp=0,num_array[101],x=0,count_num=0,y=0,k=0;
        for (i=0; i<101; i++) {
            num_array[i]=0;
        }
        //n????????§????????????????´???°???
        x = find_i(hurui, n+1);
        for (i=n+1; count_num<p; i=y+1) {
            y = find_i(hurui, i);
            num_array[count_num] = x + y;
            count_num++;
        }
        
        count_p = num_array[p-1];
        
        for (i=x+1; i<count_p; i=x+1) {
            x = find_i(hurui, i);
            for (j = i; pp < count_p; j=y+1) {
                y = find_i(hurui, j);
                pp= x + y;
                num_array[count_num]=pp;
                //?????????????????????????????\??????
                k = count_num;
                while (num_array[k] < num_array[k-1]) {
                    tmp = num_array[k];
                    num_array[k] = num_array[k-1];
                    num_array[k-1] = tmp;
                    k--;
                }
                if (count_num != 101) {
                    count_num++;
                }
                
            }
            count_p=num_array[p-1];
            pp=0;
            int z = find_i(hurui, i+1);
            if (count_p < z*2) {
                break;
            }
            
        }
        printf("%d\n",num_array[p-1]);
    }
        
    
    
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	find_i
	.type	find_i, @function
find_i:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L7
	addl	$1, -4(%rbp)
.L2:
	cmpl	$149999, -4(%rbp)
	jle	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_i, .-find_i
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2480, %rsp
	movl	%edi, -600484(%rbp)
	movq	%rsi, -600496(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -600472(%rbp)
	jmp	.L9
.L10:
	movl	-600472(%rbp), %eax
	cltq
	movl	$1, -600016(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L9:
	cmpl	$149999, -600472(%rbp)
	jle	.L10
	movl	$0, -600016(%rbp)
	movl	$0, -600012(%rbp)
	movl	$2, -600472(%rbp)
	jmp	.L11
.L15:
	movl	-600472(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
	movl	-600472(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -600468(%rbp)
	jmp	.L13
.L14:
	movl	-600468(%rbp), %eax
	cltq
	movl	$0, -600016(%rbp,%rax,4)
	movl	-600472(%rbp), %eax
	addl	%eax, -600468(%rbp)
.L13:
	cmpl	$149999, -600468(%rbp)
	jle	.L14
.L12:
	addl	$1, -600472(%rbp)
.L11:
	cmpl	$387, -600472(%rbp)
	jle	.L15
.L31:
	movl	$0, -600480(%rbp)
	movl	$0, -600476(%rbp)
	movl	$0, -600448(%rbp)
	leaq	-600476(%rbp), %rdx
	leaq	-600480(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600480(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-600476(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L16:
	movl	$0, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	$0, -600444(%rbp)
	movl	$0, -600456(%rbp)
	movl	$0, -600440(%rbp)
	movl	$0, -600452(%rbp)
	movl	$0, -600472(%rbp)
	jmp	.L18
.L19:
	movl	-600472(%rbp), %eax
	cltq
	movl	$0, -600432(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L18:
	cmpl	$100, -600472(%rbp)
	jle	.L19
	movl	-600480(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600480(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L20
.L21:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%eax, %edx
	movl	-600456(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	addl	$1, -600456(%rbp)
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L20:
	movl	-600476(%rbp), %eax
	cmpl	%eax, -600456(%rbp)
	jl	.L21
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L22
.L30:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600472(%rbp), %eax
	movl	%eax, -600468(%rbp)
	jmp	.L23
.L27:
	movl	-600468(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -600460(%rbp)
	movl	-600456(%rbp), %eax
	cltq
	movl	-600460(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600456(%rbp), %eax
	movl	%eax, -600452(%rbp)
	jmp	.L24
.L25:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600448(%rbp)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600448(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	subl	$1, -600452(%rbp)
.L24:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L25
	cmpl	$101, -600456(%rbp)
	je	.L26
	addl	$1, -600456(%rbp)
.L26:
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600468(%rbp)
.L23:
	movl	-600460(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L27
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	-600472(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600436(%rbp)
	movl	-600436(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -600464(%rbp)
	jl	.L34
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L22:
	movl	-600472(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L30
	jmp	.L29
.L34:
	nop
.L29:
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	find_i
	.type	find_i, @function
find_i:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	cmpl	$149999, %esi
	jg	.L1
	movslq	%esi, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L1
.L3:
	cmpl	$1, (%rdx)
	jne	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	find_i, .-find_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-598016(%rsp), %r11
	.cfi_def_cfa 11, 598072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2440, %rsp
	.cfi_def_cfa_offset 600512
	movdqa	.LC0(%rip), %xmm0
	leaq	432(%rsp), %r14
	leaq	600432(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 600440(%rsp)
	xorl	%eax, %eax
	movq	%r14, %rax
.L9:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L9
	movl	$4, %ecx
	movl	$2, %edx
	movq	$0, 432(%rsp)
	jmp	.L11
.L13:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$388, %rdx
	je	.L61
.L11:
	cmpl	$1, (%r14,%rdx,4)
	jne	.L13
	movq	%rcx, %rax
.L10:
	movl	$0, (%r14,%rax,4)
	addq	%rdx, %rax
	cmpl	$149999, %eax
	jle	.L10
	jmp	.L13
.L61:
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
.L12:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	movl	12(%rsp), %r9d
	movl	%edx, %eax
	andl	%r9d, %eax
	cmpl	$-1, %eax
	je	.L14
	leaq	16(%rsp), %r8
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r8, %rdi
	rep stosq
	leal	1(%rdx), %eax
	movl	$0, (%rdi)
	cmpl	$149999, %eax
	jg	.L41
	movslq	%eax, %rdx
	movl	%eax, %esi
	leaq	(%r14,%rdx,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L62:
	addq	$4, %rdx
	cmpl	$150000, %esi
	je	.L15
.L16:
	movl	%esi, %ecx
	addl	$1, %esi
	cmpl	$1, (%rdx)
	jne	.L62
	movl	%ecx, %esi
.L15:
	testl	%r9d, %r9d
	jle	.L43
	leal	-1(%r9), %edx
	movq	%r8, %rdi
	movq	%rdx, %r11
	leaq	20(%rsp,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%eax, %rdx
	movl	%eax, %ecx
	leaq	(%r14,%rdx,4), %rdx
	cmpl	$149999, %eax
	jle	.L20
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L64:
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L63
.L20:
	cmpl	$1, (%rdx)
	movl	%eax, %ecx
	leal	1(%rax), %eax
	jne	.L64
.L19:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdi
	movl	%eax, -4(%rdi)
	leal	1(%rcx), %eax
	cmpq	%r10, %rdi
	jne	.L18
	movl	%r9d, %edi
.L17:
	movslq	%r11d, %r11
	addl	$1, %esi
	movl	16(%rsp,%r11,4), %r10d
	cmpl	%esi, %r10d
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %r9d
	cmpl	$149999, %esi
	jg	.L24
	movslq	%esi, %rax
	movl	%esi, %r9d
	leaq	(%r14,%rax,4), %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L65:
	addl	$1, %r9d
	addq	$4, %rax
	cmpl	$150000, %r9d
	je	.L24
.L25:
	cmpl	$1, (%rax)
	jne	.L65
.L24:
	movl	%esi, %eax
	testl	%r10d, %r10d
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L26:
	movslq	%eax, %rdx
	movl	%eax, %ecx
	leaq	(%r14,%rdx,4), %rdx
	cmpl	$149999, %eax
	jle	.L29
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L67:
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L66
.L29:
	cmpl	$1, (%rdx)
	movl	%eax, %ecx
	leal	1(%rax), %eax
	jne	.L67
.L28:
	leal	-1(%rdi), %r15d
	movslq	%edi, %rax
	leal	(%r9,%rcx), %edx
	movslq	%r15d, %r15
	movl	%edx, 16(%rsp,%rax,4)
	leaq	(%r8,%rax,4), %rax
	movl	16(%rsp,%r15,4), %r15d
	cmpl	%edx, %r15d
	jle	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r15d, (%rax)
	subq	$4, %rax
	movl	%edx, (%rax)
	movl	-4(%rax), %r15d
	cmpl	%edx, %r15d
	jg	.L33
.L34:
	xorl	%eax, %eax
	cmpl	$101, %edi
	setne	%al
	addl	%eax, %edi
	leal	1(%rcx), %eax
	cmpl	%r10d, %edx
	jl	.L26
.L27:
	addl	$1, %esi
	movl	16(%rsp,%r11,4), %r10d
	cmpl	$149999, %esi
	jg	.L36
	movslq	%esi, %rax
	leaq	(%r14,%rax,4), %rax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L68:
	addl	$1, %esi
	addq	$4, %rax
	cmpl	$150000, %esi
	je	.L36
.L37:
	cmpl	$1, (%rax)
	jne	.L68
.L36:
	addl	%esi, %esi
	cmpl	%r10d, %esi
	jg	.L23
	leal	1(%r9), %esi
	cmpl	%esi, %r10d
	jg	.L22
.L23:
	movl	%r10d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L66:
	movl	$150000, %ecx
	jmp	.L28
.L63:
	movl	$150000, %ecx
	jmp	.L19
.L43:
	xorl	%edi, %edi
	leal	-1(%r9), %r11d
	jmp	.L17
.L41:
	movl	%eax, %esi
	jmp	.L15
.L14:
	movq	600440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$600456, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.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	find_i
	.type	find_i, @function
find_i:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%esi, %eax
	cmpl	$149999, %esi
	jg	.L1
	movslq	%esi, %rdx
	leaq	(%rdi,%rdx,4), %rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %eax
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L1
.L3:
	cmpl	$1, (%rdx)
	jne	.L7
.L1:
	ret
	.cfi_endproc
.LFE23:
	.size	find_i, .-find_i
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-598016(%rsp), %r11
	.cfi_def_cfa 11, 598072
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2440, %rsp
	.cfi_def_cfa_offset 600512
	movdqa	.LC0(%rip), %xmm0
	leaq	432(%rsp), %r14
	leaq	600432(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 600440(%rsp)
	xorl	%eax, %eax
	movq	%r14, %rax
.L9:
	movaps	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L9
	movl	$4, %ecx
	movl	$2, %edx
	movq	$0, 432(%rsp)
	jmp	.L11
.L13:
	addq	$1, %rdx
	addq	$2, %rcx
	cmpq	$388, %rdx
	je	.L61
.L11:
	cmpl	$1, (%r14,%rdx,4)
	jne	.L13
	movq	%rcx, %rax
.L10:
	movl	$0, (%r14,%rax,4)
	addq	%rdx, %rax
	cmpl	$149999, %eax
	jle	.L10
	jmp	.L13
.L61:
	leaq	12(%rsp), %r13
	leaq	8(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.LC2(%rip), %rbx
.L12:
	movq	%r13, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	$0, 8(%rsp)
	movl	$0, 12(%rsp)
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	movl	12(%rsp), %r9d
	movl	%edx, %eax
	andl	%r9d, %eax
	cmpl	$-1, %eax
	je	.L14
	leaq	16(%rsp), %r8
	xorl	%eax, %eax
	movl	$50, %ecx
	movq	%r8, %rdi
	rep stosq
	leal	1(%rdx), %eax
	movl	$0, (%rdi)
	cmpl	$149999, %eax
	jg	.L41
	movslq	%eax, %rdx
	movl	%eax, %esi
	leaq	(%r14,%rdx,4), %rdx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L62:
	addq	$4, %rdx
	cmpl	$150000, %esi
	je	.L15
.L16:
	movl	%esi, %ecx
	addl	$1, %esi
	cmpl	$1, (%rdx)
	jne	.L62
	movl	%ecx, %esi
.L15:
	testl	%r9d, %r9d
	jle	.L43
	leal	-1(%r9), %edx
	movq	%r8, %rdi
	movq	%rdx, %r11
	leaq	20(%rsp,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L18:
	movslq	%eax, %rdx
	movl	%eax, %ecx
	leaq	(%r14,%rdx,4), %rdx
	cmpl	$149999, %eax
	jle	.L20
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L64:
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L63
.L20:
	cmpl	$1, (%rdx)
	movl	%eax, %ecx
	leal	1(%rax), %eax
	jne	.L64
.L19:
	leal	(%rcx,%rsi), %eax
	addq	$4, %rdi
	movl	%eax, -4(%rdi)
	leal	1(%rcx), %eax
	cmpq	%r10, %rdi
	jne	.L18
	movl	%r9d, %edi
.L17:
	movslq	%r11d, %r11
	addl	$1, %esi
	movl	16(%rsp,%r11,4), %r10d
	cmpl	%esi, %r10d
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%esi, %r9d
	cmpl	$149999, %esi
	jg	.L24
	movslq	%esi, %rax
	movl	%esi, %r9d
	leaq	(%r14,%rax,4), %rax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L65:
	addl	$1, %r9d
	addq	$4, %rax
	cmpl	$150000, %r9d
	je	.L24
.L25:
	cmpl	$1, (%rax)
	jne	.L65
.L24:
	movl	%esi, %eax
	testl	%r10d, %r10d
	jle	.L27
	.p2align 4,,10
	.p2align 3
.L26:
	movslq	%eax, %rdx
	movl	%eax, %ecx
	leaq	(%r14,%rdx,4), %rdx
	cmpl	$149999, %eax
	jle	.L29
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L67:
	addq	$4, %rdx
	cmpl	$150000, %eax
	je	.L66
.L29:
	cmpl	$1, (%rdx)
	movl	%eax, %ecx
	leal	1(%rax), %eax
	jne	.L67
.L28:
	leal	-1(%rdi), %r15d
	movslq	%edi, %rax
	leal	(%r9,%rcx), %edx
	movslq	%r15d, %r15
	movl	%edx, 16(%rsp,%rax,4)
	leaq	(%r8,%rax,4), %rax
	movl	16(%rsp,%r15,4), %r15d
	cmpl	%edx, %r15d
	jle	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	movl	%r15d, (%rax)
	subq	$4, %rax
	movl	%edx, (%rax)
	movl	-4(%rax), %r15d
	cmpl	%edx, %r15d
	jg	.L33
.L34:
	xorl	%eax, %eax
	cmpl	$101, %edi
	setne	%al
	addl	%eax, %edi
	leal	1(%rcx), %eax
	cmpl	%r10d, %edx
	jl	.L26
.L27:
	addl	$1, %esi
	movl	16(%rsp,%r11,4), %r10d
	cmpl	$149999, %esi
	jg	.L36
	movslq	%esi, %rax
	leaq	(%r14,%rax,4), %rax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L68:
	addl	$1, %esi
	addq	$4, %rax
	cmpl	$150000, %esi
	je	.L36
.L37:
	cmpl	$1, (%rax)
	jne	.L68
.L36:
	addl	%esi, %esi
	cmpl	%r10d, %esi
	jg	.L23
	leal	1(%r9), %esi
	cmpl	%esi, %r10d
	jg	.L22
.L23:
	movl	%r10d, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L66:
	movl	$150000, %ecx
	jmp	.L28
.L63:
	movl	$150000, %ecx
	jmp	.L19
.L43:
	xorl	%edi, %edi
	leal	-1(%r9), %r11d
	jmp	.L17
.L41:
	movl	%eax, %esi
	jmp	.L15
.L14:
	movq	600440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L69
	addq	$600456, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L69:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.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:

//
//  main.c
//  Matsuzaki Number
//
//  Created by x15071xx on 2016/06/16.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>
#include <math.h>

#define NUM 150000


int find_i (int hurui[],int x){
    int i;
    
    for (i=x; i<NUM; i++) {
        if (hurui[i] == 1) {
            break;
        }
    }
    
    return i;
}

int main(int argc, const char * argv[]) {
    
    int hurui[NUM];
    int i,j;
    for (i=0; i<NUM; i++) {
        hurui[i] = 1;
    }
    hurui[0] = 0;
    hurui[1] = 0;
    
    for (i=2; i<sqrt(NUM); i++) {
        if (hurui[i] == 1) {
            for (j=i*2; j<NUM; j+=i) {
                hurui[j] = 0;
            }
        }
    }
    while (1) {
        
        int n=0,p=0,tmp=0;
        
        scanf("%d %d",&n,&p);
        
        if (n==-1 && p==-1) {
            break;
        }
        
        int count_p=0,pp=0,num_array[101],x=0,count_num=0,y=0,k=0;
        for (i=0; i<101; i++) {
            num_array[i]=0;
        }
        //n????????§????????????????´???°???
        x = find_i(hurui, n+1);
        for (i=n+1; count_num<p; i=y+1) {
            y = find_i(hurui, i);
            num_array[count_num] = x + y;
            count_num++;
        }
        
        count_p = num_array[p-1];
        
        for (i=x+1; i<count_p; i=x+1) {
            x = find_i(hurui, i);
            for (j = i; pp < count_p; j=y+1) {
                y = find_i(hurui, j);
                pp= x + y;
                num_array[count_num]=pp;
                //?????????????????????????????\??????
                k = count_num;
                while (num_array[k] < num_array[k-1]) {
                    tmp = num_array[k];
                    num_array[k] = num_array[k-1];
                    num_array[k-1] = tmp;
                    k--;
                }
                if (count_num != 101) {
                    count_num++;
                }
                
            }
            count_p=num_array[p-1];
            pp=0;
            int z = find_i(hurui, i+1);
            if (count_p < z*2) {
                break;
            }
            
        }
        printf("%d\n",num_array[p-1]);
    }
        
    
    
    
    return 0;
}
0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
10 6
11 1
11 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
10 1
11 1
11 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
19 6
11 1
11 2
11 3
100000 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
10 1
10 1
11 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
10 1
10 1
18 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 1
10 1
10 1
18 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 2
19 3
10 4
10 1
10 1
10 1
18 2
11 3
100001 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
10 1
10 3
10 4
10 5
10 6
11 1
11 2
11 3
100000 100
-1 -1
 0 55
0 1
0 2
0 3
10 1
13 2
10 3
10 4
10 5
10 6
11 1
11 2
11 3
100001 100
-1 -1
 0 19
0 1
0 2
0 3
10 1
10 2
10 3
10 4
10 5
19 6
11 1
11 2
11 3
100000 100
-1 -1

42
4
5
6
22
24
26
28
30
30
26
30
32
200274
 42
4
5
6
22
24
26
28
30
22
26
30
32
200274
 42
4
5
6
22
24
26
28
30
60
26
30
32
200274
 42
4
5
6
22
24
26
28
30
22
22
30
32
200274
 42
4
5
6
22
24
26
28
30
22
22
42
32
200274
 42
4
5
6
22
24
26
28
22
22
22
42
32
200274
 42
4
5
6
22
24
54
28
22
22
22
42
32
200274
 42
4
5
6
22
22
26
28
30
30
26
30
32
200274
 42
4
5
6
22
36
26
28
30
30
26
30
32
200274
 20
4
5
6
22
24
26
28
30
60
26
30
32
200274

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//
//  main.c
//  Matsuzaki Number
//
//  Created by x15071xx on 2016/06/16.
//  Copyright ?? 2016??´ AIT. All rights reserved.
//

#include <stdio.h>
#include <math.h>

#define NUM 150000


int find_i (int hurui[],int x){
    int i;
    
    for (i=x; i<NUM; i++) {
        if (hurui[i] == 1) {
            break;
        }
    }
    
    return i;
}

int main(int argc, const char * argv[]) {
    
    int hurui[NUM];
    int i,j;
    for (i=0; i<NUM; i++) {
        hurui[i] = 1;
    }
    hurui[0] = 0;
    hurui[1] = 0;
    
    for (i=2; i<sqrt(NUM); i++) {
        if (hurui[i] == 1) {
            for (j=i*2; j<NUM; j+=i) {
                hurui[j] = 0;
            }
        }
    }
    while (1) {
        
        int n=0,p=0,tmp=0;
        
        scanf("%d %d",&n,&p);
        
        if (n==-1 && p==-1) {
            break;
        }
        
        int count_p=0,pp=0,num_array[101],x=0,count_num=0,y=0,k=0;
        for (i=0; i<101; i++) {
            num_array[i]=0;
        }
        //n????????§????????????????´???°???
        x = find_i(hurui, n+1);
        for (i=n+1; count_num<p; i=y+1) {
            y = find_i(hurui, i);
            num_array[count_num] = x + y;
            count_num++;
        }
        
        count_p = num_array[p-1];
        
        for (i=x+1; i<count_p; i=x+1) {
            x = find_i(hurui, i);
            for (j = i; pp < count_p; j=y+1) {
                y = find_i(hurui, j);
                pp= x + y;
                num_array[count_num]=pp;
                //?????????????????????????????\??????
                k = count_num;
                while (num_array[k] < num_array[k-1]) {
                    tmp = num_array[k];
                    num_array[k] = num_array[k-1];
                    num_array[k-1] = tmp;
                    k--;
                }
                if (count_num != 101) {
                    count_num++;
                }
                
            }
            count_p=num_array[p-1];
            pp=0;
            int z = find_i(hurui, i+1);
            if (count_p < z*2) {
                break;
            }
            
        }
        printf("%d\n",num_array[p-1]);
    }
        
    
    
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	find_i
	.type	find_i, @function
find_i:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L7
	addl	$1, -4(%rbp)
.L2:
	cmpl	$149999, -4(%rbp)
	jle	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_i, .-find_i
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2480, %rsp
	movl	%edi, -600484(%rbp)
	movq	%rsi, -600496(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -600472(%rbp)
	jmp	.L9
.L10:
	movl	-600472(%rbp), %eax
	cltq
	movl	$1, -600016(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L9:
	cmpl	$149999, -600472(%rbp)
	jle	.L10
	movl	$0, -600016(%rbp)
	movl	$0, -600012(%rbp)
	movl	$2, -600472(%rbp)
	jmp	.L11
.L15:
	movl	-600472(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
	movl	-600472(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -600468(%rbp)
	jmp	.L13
.L14:
	movl	-600468(%rbp), %eax
	cltq
	movl	$0, -600016(%rbp,%rax,4)
	movl	-600472(%rbp), %eax
	addl	%eax, -600468(%rbp)
.L13:
	cmpl	$149999, -600468(%rbp)
	jle	.L14
.L12:
	addl	$1, -600472(%rbp)
.L11:
	cmpl	$387, -600472(%rbp)
	jle	.L15
.L31:
	movl	$0, -600480(%rbp)
	movl	$0, -600476(%rbp)
	movl	$0, -600448(%rbp)
	leaq	-600476(%rbp), %rdx
	leaq	-600480(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600480(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-600476(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L16:
	movl	$0, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	$0, -600444(%rbp)
	movl	$0, -600456(%rbp)
	movl	$0, -600440(%rbp)
	movl	$0, -600452(%rbp)
	movl	$0, -600472(%rbp)
	jmp	.L18
.L19:
	movl	-600472(%rbp), %eax
	cltq
	movl	$0, -600432(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L18:
	cmpl	$100, -600472(%rbp)
	jle	.L19
	movl	-600480(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600480(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L20
.L21:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%eax, %edx
	movl	-600456(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	addl	$1, -600456(%rbp)
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L20:
	movl	-600476(%rbp), %eax
	cmpl	%eax, -600456(%rbp)
	jl	.L21
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L22
.L30:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600472(%rbp), %eax
	movl	%eax, -600468(%rbp)
	jmp	.L23
.L27:
	movl	-600468(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -600460(%rbp)
	movl	-600456(%rbp), %eax
	cltq
	movl	-600460(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600456(%rbp), %eax
	movl	%eax, -600452(%rbp)
	jmp	.L24
.L25:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600448(%rbp)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600448(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	subl	$1, -600452(%rbp)
.L24:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L25
	cmpl	$101, -600456(%rbp)
	je	.L26
	addl	$1, -600456(%rbp)
.L26:
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600468(%rbp)
.L23:
	movl	-600460(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L27
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	-600472(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600436(%rbp)
	movl	-600436(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -600464(%rbp)
	jl	.L34
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L22:
	movl	-600472(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L30
	jmp	.L29
.L34:
	nop
.L29:
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	find_i
	.type	find_i, @function
find_i:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	%esi, -28(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	.L7
	addl	$1, -4(%rbp)
.L2:
	cmpl	$149999, -4(%rbp)
	jle	.L5
	jmp	.L4
.L7:
	nop
.L4:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_i, .-find_i
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2480, %rsp
	movl	%edi, -600484(%rbp)
	movq	%rsi, -600496(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -600472(%rbp)
	jmp	.L9
.L10:
	movl	-600472(%rbp), %eax
	cltq
	movl	$1, -600016(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L9:
	cmpl	$149999, -600472(%rbp)
	jle	.L10
	movl	$0, -600016(%rbp)
	movl	$0, -600012(%rbp)
	movl	$2, -600472(%rbp)
	jmp	.L11
.L15:
	movl	-600472(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
	movl	-600472(%rbp), %eax
	addl	%eax, %eax
	movl	%eax, -600468(%rbp)
	jmp	.L13
.L14:
	movl	-600468(%rbp), %eax
	cltq
	movl	$0, -600016(%rbp,%rax,4)
	movl	-600472(%rbp), %eax
	addl	%eax, -600468(%rbp)
.L13:
	cmpl	$149999, -600468(%rbp)
	jle	.L14
.L12:
	addl	$1, -600472(%rbp)
.L11:
	cmpl	$387, -600472(%rbp)
	jle	.L15
.L31:
	movl	$0, -600480(%rbp)
	movl	$0, -600476(%rbp)
	movl	$0, -600448(%rbp)
	leaq	-600476(%rbp), %rdx
	leaq	-600480(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600480(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	-600476(%rbp), %eax
	cmpl	$-1, %eax
	jne	.L16
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	jmp	.L33
.L16:
	movl	$0, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	$0, -600444(%rbp)
	movl	$0, -600456(%rbp)
	movl	$0, -600440(%rbp)
	movl	$0, -600452(%rbp)
	movl	$0, -600472(%rbp)
	jmp	.L18
.L19:
	movl	-600472(%rbp), %eax
	cltq
	movl	$0, -600432(%rbp,%rax,4)
	addl	$1, -600472(%rbp)
.L18:
	cmpl	$100, -600472(%rbp)
	jle	.L19
	movl	-600480(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600480(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L20
.L21:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%eax, %edx
	movl	-600456(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	addl	$1, -600456(%rbp)
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L20:
	movl	-600476(%rbp), %eax
	cmpl	%eax, -600456(%rbp)
	jl	.L21
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
	jmp	.L22
.L30:
	movl	-600472(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600444(%rbp)
	movl	-600472(%rbp), %eax
	movl	%eax, -600468(%rbp)
	jmp	.L23
.L27:
	movl	-600468(%rbp), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600440(%rbp)
	movl	-600444(%rbp), %edx
	movl	-600440(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -600460(%rbp)
	movl	-600456(%rbp), %eax
	cltq
	movl	-600460(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600456(%rbp), %eax
	movl	%eax, -600452(%rbp)
	jmp	.L24
.L25:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600448(%rbp)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	cltq
	movl	%edx, -600432(%rbp,%rax,4)
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600448(%rbp), %edx
	movl	%edx, -600432(%rbp,%rax,4)
	subl	$1, -600452(%rbp)
.L24:
	movl	-600452(%rbp), %eax
	cltq
	movl	-600432(%rbp,%rax,4), %edx
	movl	-600452(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jl	.L25
	cmpl	$101, -600456(%rbp)
	je	.L26
	addl	$1, -600456(%rbp)
.L26:
	movl	-600440(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600468(%rbp)
.L23:
	movl	-600460(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L27
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, -600464(%rbp)
	movl	$0, -600460(%rbp)
	movl	-600472(%rbp), %eax
	leal	1(%rax), %edx
	leaq	-600016(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	find_i
	movl	%eax, -600436(%rbp)
	movl	-600436(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -600464(%rbp)
	jl	.L34
	movl	-600444(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -600472(%rbp)
.L22:
	movl	-600472(%rbp), %eax
	cmpl	-600464(%rbp), %eax
	jl	.L30
	jmp	.L29
.L34:
	nop
.L29:
	movl	-600476(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-600432(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
