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>

int main(void){

    int count1[50000]={0};
    int count2[50000]={0};
    int count3[50000]={0};
    int i=0;
    int j;
    int x,y,z;

    while(1){
        scanf("%d %d",&count1[i],&count2[i]);
        if(count1[i]==0 && count2[i]==0) break;
        else if(count1[i]%100!=0 || count2[i]%100!=0){
            ;
        }
        else{
            count3[i]=count2[i]-count1[i];
            i++;
        }
    }
    
    for(i=0;count1[i]!=0;i++){
        printf("%d %d %d\n",((count3[i]%1000)%500)/100,(count3[i]%1000)/500,count3[i]/1000);
    }

    return 0;
}

 ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %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	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-600016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -600020(%rbp)
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-600016(%rbp), %rcx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L3
.L2:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	%edx, -200016(%rbp,%rax,4)
	addl	$1, -600020(%rbp)
	jmp	.L5
.L3:
	movl	$0, -600020(%rbp)
	jmp	.L6
.L7:
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$6, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$1000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$1000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %edi
	sarl	$31, %edi
	subl	%edi, %edx
	imull	$500, %edx, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	sarl	$31, %edx
	subl	%edx, %eax
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -600020(%rbp)
.L6:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$2008, %rsp
	.cfi_def_cfa_offset 600080
	movl	$200000, %edx
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 600008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	200000(%rsp), %rbp
	leaq	400000(%rsp), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	$200000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$200000, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	0(,%r15,4), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	0(%rbp,%rsi), %rdx
	addq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp,%r15,4), %edx
	testl	%edx, %edx
	jne	.L3
	movl	200000(%rsp,%r15,4), %ecx
	testl	%ecx, %ecx
	je	.L15
.L4:
	imull	$-1030792151, %ecx, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	ja	.L2
	subl	%edx, %ecx
	addl	$1, %r13d
	movl	%ecx, 400000(%rsp,%r15,4)
	movslq	%r13d, %r15
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	imull	$-1030792151, %edx, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	ja	.L2
	movl	200000(%rsp,%r15,4), %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rsp), %edx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	(%r14,%r12), %r8
	movl	$1, %edi
	addq	$4, %r12
	movq	%r8, %rdx
	imulq	$274877907, %r8, %r8
	movl	%edx, %esi
	sarl	$31, %esi
	sarq	$38, %r8
	movl	%r8d, %eax
	subl	%esi, %r8d
	subl	%esi, %eax
	movq	%rbp, %rsi
	imull	$1000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	cltd
	imulq	$274877907, %rcx, %rcx
	sarq	$37, %rcx
	subl	%edx, %ecx
	imull	$500, %ecx, %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	sarl	$31, %eax
	imulq	$1374389535, %rdx, %rdx
	sarq	$37, %rdx
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rbx,%r12), %eax
	testl	%eax, %eax
	jne	.L5
.L7:
	movq	600008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$600024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$2008, %rsp
	.cfi_def_cfa_offset 600080
	movl	$200000, %edx
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	leaq	.LC0(%rip), %r12
	movq	%fs:40, %rax
	movq	%rax, 600008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	200000(%rsp), %rbp
	leaq	400000(%rsp), %r14
	movq	%rbx, %rdi
	call	memset@PLT
	movl	$200000, %edx
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	memset@PLT
	movl	$200000, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	0(,%r15,4), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	leaq	0(%rbp,%rsi), %rdx
	addq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp,%r15,4), %edx
	testl	%edx, %edx
	jne	.L3
	movl	200000(%rsp,%r15,4), %ecx
	testl	%ecx, %ecx
	je	.L15
.L4:
	imull	$-1030792151, %ecx, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	ja	.L2
	subl	%edx, %ecx
	addl	$1, %r13d
	movl	%ecx, 400000(%rsp,%r15,4)
	movslq	%r13d, %r15
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	imull	$-1030792151, %edx, %eax
	addl	$85899344, %eax
	rorl	$2, %eax
	cmpl	$42949672, %eax
	ja	.L2
	movl	200000(%rsp,%r15,4), %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	movl	(%rsp), %edx
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbp
	testl	%edx, %edx
	je	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movslq	(%r14,%r12), %r8
	movl	$1, %edi
	addq	$4, %r12
	movq	%r8, %rdx
	imulq	$274877907, %r8, %r8
	movl	%edx, %esi
	sarl	$31, %esi
	sarq	$38, %r8
	movl	%r8d, %eax
	subl	%esi, %r8d
	subl	%esi, %eax
	movq	%rbp, %rsi
	imull	$1000, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movslq	%eax, %rcx
	cltd
	imulq	$274877907, %rcx, %rcx
	sarq	$37, %rcx
	subl	%edx, %ecx
	imull	$500, %ecx, %edx
	subl	%edx, %eax
	movslq	%eax, %rdx
	sarl	$31, %eax
	imulq	$1374389535, %rdx, %rdx
	sarq	$37, %rdx
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	(%rbx,%r12), %eax
	testl	%eax, %eax
	jne	.L5
.L7:
	movq	600008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$600024, %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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void){

    int count1[50000]={0};
    int count2[50000]={0};
    int count3[50000]={0};
    int i=0;
    int j;
    int x,y,z;

    while(1){
        scanf("%d %d",&count1[i],&count2[i]);
        if(count1[i]==0 && count2[i]==0) break;
        else if(count1[i]%100!=0 || count2[i]%100!=0){
            ;
        }
        else{
            count3[i]=count2[i]-count1[i];
            i++;
        }
    }
    
    for(i=0;count1[i]!=0;i++){
        printf("%d %d %d\n",((count3[i]%1000)%500)/100,(count3[i]%1000)/500,count3[i]/1000);
    }

    return 0;
}

 
500 1001
100 10000
400 700
600 5000
10000 10000
0 0
 500 1001
100 10100
400 700
600 5000
10000 10000
0 0
 500 1001
100 10100
400 700
429 5000
10000 10000
0 0
 500 1001
100 10100
400 700
429 5000
10000 11001
0 0
 500 1001
100 10100
454 700
429 5000
10000 11001
0 0
 500 1001
100 10100
400 700
429 4817
10000 10000
0 0
 500 1000
100 10000
400 509
600 5000
10000 10000
0 0
 500 1001
100 10100
400 700
326 5000
10000 11001
0 0
 500 1001
100 10100
400 700
429 1473
10000 10000
0 0
 500 1000
100 10000
400 1006
600 5000
10000 10000
0 0

4 1 9
3 0 0
4 0 4
0 0 0
 0 0 10
3 0 0
4 0 4
0 0 0
 0 0 10
3 0 0
0 0 0
 0 0 10
3 0 0
 0 0 10
 0 0 10
3 0 0
0 0 0
 0 1 0
4 1 9
4 0 4
0 0 0
 0 0 10
3 0 0
 0 0 10
3 0 0
0 0 0
 0 1 0
4 1 9
4 0 4
0 0 0

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>

int main(void){

    int count1[50000]={0};
    int count2[50000]={0};
    int count3[50000]={0};
    int i=0;
    int j;
    int x,y,z;

    while(1){
        scanf("%d %d",&count1[i],&count2[i]);
        if(count1[i]==0 && count2[i]==0) break;
        else if(count1[i]%100!=0 || count2[i]%100!=0){
            ;
        }
        else{
            count3[i]=count2[i]-count1[i];
            i++;
        }
    }
    
    for(i=0;count1[i]!=0;i++){
        printf("%d %d %d\n",((count3[i]%1000)%500)/100,(count3[i]%1000)/500,count3[i]/1000);
    }

    return 0;
}

 ```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d %d %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	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-600016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -600020(%rbp)
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-600016(%rbp), %rcx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L3
.L2:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	%edx, -200016(%rbp,%rax,4)
	addl	$1, -600020(%rbp)
	jmp	.L5
.L3:
	movl	$0, -600020(%rbp)
	jmp	.L6
.L7:
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$6, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$1000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$1000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %edi
	sarl	$31, %edi
	subl	%edi, %edx
	imull	$500, %edx, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	sarl	$31, %edx
	subl	%edx, %eax
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -600020(%rbp)
.L6:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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 %d"
.LC1:
	.string	"%d %d %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	-598016(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-600016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-400016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-200016(%rbp), %rax
	movl	$200000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -600020(%rbp)
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-600016(%rbp), %rcx
	movl	-600020(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L2
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L3
.L2:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-600020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	subl	%eax, %edx
	movl	-600020(%rbp), %eax
	cltq
	movl	%edx, -200016(%rbp,%rax,4)
	addl	$1, -600020(%rbp)
	jmp	.L5
.L3:
	movl	$0, -600020(%rbp)
	jmp	.L6
.L7:
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$6, %edx
	sarl	$31, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	imull	$1000, %eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	sarl	$31, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	movl	-600020(%rbp), %eax
	cltq
	movl	-200016(%rbp,%rax,4), %edx
	movslq	%edx, %rax
	imulq	$274877907, %rax, %rax
	shrq	$32, %rax
	sarl	$6, %eax
	movl	%edx, %edi
	sarl	$31, %edi
	subl	%edi, %eax
	imull	$1000, %eax, %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movslq	%eax, %rdx
	imulq	$274877907, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$5, %edx
	movl	%eax, %edi
	sarl	$31, %edi
	subl	%edi, %edx
	imull	$500, %edx, %edi
	subl	%edi, %eax
	movl	%eax, %edx
	movslq	%edx, %rax
	imulq	$1374389535, %rax, %rax
	shrq	$32, %rax
	sarl	$5, %eax
	sarl	$31, %edx
	subl	%edx, %eax
	movl	%esi, %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addl	$1, -600020(%rbp)
.L6:
	movl	-600020(%rbp), %eax
	cltq
	movl	-600016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
