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>
#define min(a,b) ((a)<(b)?(a):(b))
main(){
    int sy[51]={0,0,};
    int soba[6][2]={{2,380},{3,550},{5,850},
    {10,380*5*8/10},{3*4,550*4*85/100},{15,850*3*88/100}};
    int i,j;
    int c=1;
    for(i=1;i<=50;i++)
        sy[i]=32768;
    for(i=0;i<6;i++)
        sy[soba[i][0]]=soba[i][1];
    c=0;
    while(c++<100){
        for(i=1;i<=50;i++){
            for(j=0;j<6;j++){
                if(i+soba[j][0]>50)
                    continue;
                sy[i+soba[j][0]]=min(sy[i+soba[j][0]],sy[i]+soba[j][1]);
            }
        }
    }

    while(scanf("%d",&i)==1){
        if(i==0)
            break;
        printf("%d\n",sy[i/100]);
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 16(%rsp)
	leaq	20(%rsp), %r8
	movups	%xmm0, 52(%rsp)
	movq	%rax, 212(%rsp)
	movq	.LC2(%rip), %rax
	movups	%xmm0, 20(%rsp)
	movups	%xmm0, 36(%rsp)
	movups	%xmm0, 68(%rsp)
	movq	%rax, 24(%rsp)
	movl	$850, 36(%rsp)
	movl	$1520, 56(%rsp)
	movl	$1870, 64(%rsp)
	movl	$2244, 76(%rsp)
	movups	%xmm0, 84(%rsp)
	movups	%xmm0, 100(%rsp)
	movups	%xmm0, 116(%rsp)
	movups	%xmm0, 132(%rsp)
	movups	%xmm0, 148(%rsp)
	movups	%xmm0, 164(%rsp)
	movups	%xmm0, 180(%rsp)
	movups	%xmm0, 196(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r8, %rax
	movl	$3, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%ecx, %edx
.L2:
	cmpl	$50, %edx
	ja	.L5
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	addl	$380, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, 8(%rax)
.L5:
	leal	1(%rdx), %ecx
	cmpl	$50, %ecx
	ja	.L6
	movl	(%rax), %esi
	movl	12(%rax), %r9d
	addl	$550, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 12(%rax)
.L6:
	leal	3(%rdx), %esi
	cmpl	$50, %esi
	ja	.L7
	movl	(%rax), %esi
	movl	20(%rax), %r9d
	addl	$850, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 20(%rax)
.L7:
	leal	8(%rdx), %esi
	cmpl	$50, %esi
	ja	.L8
	movl	(%rax), %esi
	movl	40(%rax), %r9d
	addl	$1520, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 40(%rax)
.L8:
	leal	10(%rdx), %esi
	cmpl	$50, %esi
	ja	.L9
	movl	(%rax), %esi
	movl	48(%rax), %r9d
	addl	$1870, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 48(%rax)
.L9:
	addl	$13, %edx
	cmpl	$50, %edx
	ja	.L10
	movl	(%rax), %edx
	movl	60(%rax), %esi
	addl	$2244, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, 60(%rax)
.L10:
	addq	$4, %rax
	cmpl	$53, %ecx
	jne	.L15
	subl	$1, %edi
	jne	.L3
	movl	$51, 12(%rsp)
	leaq	12(%rsp), %r12
	leaq	.LC4(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L4
.L13:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L13
.L12:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$240, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	32768
	.long	32768
	.long	32768
	.long	32768
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	380
	.long	550
	.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
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 16(%rsp)
	leaq	20(%rsp), %r8
	movups	%xmm0, 52(%rsp)
	movq	%rax, 212(%rsp)
	movq	.LC2(%rip), %rax
	movups	%xmm0, 20(%rsp)
	movups	%xmm0, 36(%rsp)
	movups	%xmm0, 68(%rsp)
	movq	%rax, 24(%rsp)
	movl	$850, 36(%rsp)
	movl	$1520, 56(%rsp)
	movl	$1870, 64(%rsp)
	movl	$2244, 76(%rsp)
	movups	%xmm0, 84(%rsp)
	movups	%xmm0, 100(%rsp)
	movups	%xmm0, 116(%rsp)
	movups	%xmm0, 132(%rsp)
	movups	%xmm0, 148(%rsp)
	movups	%xmm0, 164(%rsp)
	movups	%xmm0, 180(%rsp)
	movups	%xmm0, 196(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r8, %rax
	movl	$3, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%ecx, %edx
.L2:
	cmpl	$50, %edx
	ja	.L5
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	addl	$380, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, 8(%rax)
.L5:
	leal	1(%rdx), %ecx
	cmpl	$50, %ecx
	ja	.L6
	movl	(%rax), %esi
	movl	12(%rax), %r9d
	addl	$550, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 12(%rax)
.L6:
	leal	3(%rdx), %esi
	cmpl	$50, %esi
	ja	.L7
	movl	(%rax), %esi
	movl	20(%rax), %r9d
	addl	$850, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 20(%rax)
.L7:
	leal	8(%rdx), %esi
	cmpl	$50, %esi
	ja	.L8
	movl	(%rax), %esi
	movl	40(%rax), %r9d
	addl	$1520, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 40(%rax)
.L8:
	leal	10(%rdx), %esi
	cmpl	$50, %esi
	ja	.L9
	movl	(%rax), %esi
	movl	48(%rax), %r9d
	addl	$1870, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 48(%rax)
.L9:
	addl	$13, %edx
	cmpl	$50, %edx
	ja	.L10
	movl	(%rax), %edx
	movl	60(%rax), %esi
	addl	$2244, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, 60(%rax)
.L10:
	addq	$4, %rax
	cmpl	$53, %ecx
	jne	.L15
	subl	$1, %edi
	jne	.L3
	movl	$51, 12(%rsp)
	leaq	12(%rsp), %r12
	leaq	.LC4(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L4
.L13:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L13
.L12:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$240, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	32768
	.long	32768
	.long	32768
	.long	32768
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	380
	.long	550
	.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
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 16(%rsp)
	leaq	20(%rsp), %r8
	movups	%xmm0, 52(%rsp)
	movq	%rax, 212(%rsp)
	movq	.LC2(%rip), %rax
	movups	%xmm0, 20(%rsp)
	movups	%xmm0, 36(%rsp)
	movups	%xmm0, 68(%rsp)
	movq	%rax, 24(%rsp)
	movl	$850, 36(%rsp)
	movl	$1520, 56(%rsp)
	movl	$1870, 64(%rsp)
	movl	$2244, 76(%rsp)
	movups	%xmm0, 84(%rsp)
	movups	%xmm0, 100(%rsp)
	movups	%xmm0, 116(%rsp)
	movups	%xmm0, 132(%rsp)
	movups	%xmm0, 148(%rsp)
	movups	%xmm0, 164(%rsp)
	movups	%xmm0, 180(%rsp)
	movups	%xmm0, 196(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r8, %rax
	movl	$3, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%ecx, %edx
.L2:
	cmpl	$50, %edx
	ja	.L5
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	addl	$380, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, 8(%rax)
.L5:
	leal	1(%rdx), %ecx
	cmpl	$50, %ecx
	ja	.L6
	movl	(%rax), %esi
	movl	12(%rax), %r9d
	addl	$550, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 12(%rax)
.L6:
	leal	3(%rdx), %esi
	cmpl	$50, %esi
	ja	.L7
	movl	(%rax), %esi
	movl	20(%rax), %r9d
	addl	$850, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 20(%rax)
.L7:
	leal	8(%rdx), %esi
	cmpl	$50, %esi
	ja	.L8
	movl	(%rax), %esi
	movl	40(%rax), %r9d
	addl	$1520, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 40(%rax)
.L8:
	leal	10(%rdx), %esi
	cmpl	$50, %esi
	ja	.L9
	movl	(%rax), %esi
	movl	48(%rax), %r9d
	addl	$1870, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 48(%rax)
.L9:
	addl	$13, %edx
	cmpl	$50, %edx
	ja	.L10
	movl	(%rax), %edx
	movl	60(%rax), %esi
	addl	$2244, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, 60(%rax)
.L10:
	addq	$4, %rax
	cmpl	$53, %ecx
	jne	.L15
	subl	$1, %edi
	jne	.L3
	movl	$51, 12(%rsp)
	leaq	12(%rsp), %r12
	leaq	.LC4(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L4
.L13:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L13
.L12:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$240, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	32768
	.long	32768
	.long	32768
	.long	32768
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	380
	.long	550
	.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>
#define min(a,b) ((a)<(b)?(a):(b))
main(){
    int sy[51]={0,0,};
    int soba[6][2]={{2,380},{3,550},{5,850},
    {10,380*5*8/10},{3*4,550*4*85/100},{15,850*3*88/100}};
    int i,j;
    int c=1;
    for(i=1;i<=50;i++)
        sy[i]=32768;
    for(i=0;i<6;i++)
        sy[soba[i][0]]=soba[i][1];
    c=0;
    while(c++<100){
        for(i=1;i<=50;i++){
            for(j=0;j<6;j++){
                if(i+soba[j][0]>50)
                    continue;
                sy[i+soba[j][0]]=min(sy[i+soba[j][0]],sy[i]+soba[j][1]);
            }
        }
    }

    while(scanf("%d",&i)==1){
        if(i==0)
            break;
        printf("%d\n",sy[i/100]);
    }
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#define min(a,b) ((a)<(b)?(a):(b))
main(){
    int sy[51]={0,0,};
    int soba[6][2]={{2,380},{3,550},{5,850},
    {10,380*5*8/10},{3*4,550*4*85/100},{15,850*3*88/100}};
    int i,j;
    int c=1;
    for(i=1;i<=50;i++)
        sy[i]=32768;
    for(i=0;i<6;i++)
        sy[soba[i][0]]=soba[i][1];
    c=0;
    while(c++<100){
        for(i=1;i<=50;i++){
            for(j=0;j<6;j++){
                if(i+soba[j][0]>50)
                    continue;
                sy[i+soba[j][0]]=min(sy[i+soba[j][0]],sy[i]+soba[j][1]);
            }
        }
    }

    while(scanf("%d",&i)==1){
        if(i==0)
            break;
        printf("%d\n",sy[i/100]);
    }
    return 0;
}```

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:

500
1000
0
 500
0000
0
 500
1100
0
 500
0000
1
 500
0000
2
 500
0000
-1
 500
0000
4
 500
0000
8
 500
0000
-2
 500
0000
3

850
1520
 850
 850
1950
 850
 850
 850
 850
 850
 850
 850

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>
#define min(a,b) ((a)<(b)?(a):(b))
main(){
    int sy[51]={0,0,};
    int soba[6][2]={{2,380},{3,550},{5,850},
    {10,380*5*8/10},{3*4,550*4*85/100},{15,850*3*88/100}};
    int i,j;
    int c=1;
    for(i=1;i<=50;i++)
        sy[i]=32768;
    for(i=0;i<6;i++)
        sy[soba[i][0]]=soba[i][1];
    c=0;
    while(c++<100){
        for(i=1;i<=50;i++){
            for(j=0;j<6;j++){
                if(i+soba[j][0]>50)
                    continue;
                sy[i+soba[j][0]]=min(sy[i+soba[j][0]],sy[i]+soba[j][1]);
            }
        }
    }

    while(scanf("%d",&i)==1){
        if(i==0)
            break;
        printf("%d\n",sy[i/100]);
    }
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 16(%rsp)
	leaq	20(%rsp), %r8
	movups	%xmm0, 52(%rsp)
	movq	%rax, 212(%rsp)
	movq	.LC2(%rip), %rax
	movups	%xmm0, 20(%rsp)
	movups	%xmm0, 36(%rsp)
	movups	%xmm0, 68(%rsp)
	movq	%rax, 24(%rsp)
	movl	$850, 36(%rsp)
	movl	$1520, 56(%rsp)
	movl	$1870, 64(%rsp)
	movl	$2244, 76(%rsp)
	movups	%xmm0, 84(%rsp)
	movups	%xmm0, 100(%rsp)
	movups	%xmm0, 116(%rsp)
	movups	%xmm0, 132(%rsp)
	movups	%xmm0, 148(%rsp)
	movups	%xmm0, 164(%rsp)
	movups	%xmm0, 180(%rsp)
	movups	%xmm0, 196(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r8, %rax
	movl	$3, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%ecx, %edx
.L2:
	cmpl	$50, %edx
	ja	.L5
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	addl	$380, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, 8(%rax)
.L5:
	leal	1(%rdx), %ecx
	cmpl	$50, %ecx
	ja	.L6
	movl	(%rax), %esi
	movl	12(%rax), %r9d
	addl	$550, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 12(%rax)
.L6:
	leal	3(%rdx), %esi
	cmpl	$50, %esi
	ja	.L7
	movl	(%rax), %esi
	movl	20(%rax), %r9d
	addl	$850, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 20(%rax)
.L7:
	leal	8(%rdx), %esi
	cmpl	$50, %esi
	ja	.L8
	movl	(%rax), %esi
	movl	40(%rax), %r9d
	addl	$1520, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 40(%rax)
.L8:
	leal	10(%rdx), %esi
	cmpl	$50, %esi
	ja	.L9
	movl	(%rax), %esi
	movl	48(%rax), %r9d
	addl	$1870, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 48(%rax)
.L9:
	addl	$13, %edx
	cmpl	$50, %edx
	ja	.L10
	movl	(%rax), %edx
	movl	60(%rax), %esi
	addl	$2244, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, 60(%rax)
.L10:
	addq	$4, %rax
	cmpl	$53, %ecx
	jne	.L15
	subl	$1, %edi
	jne	.L3
	movl	$51, 12(%rsp)
	leaq	12(%rsp), %r12
	leaq	.LC4(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L4
.L13:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L13
.L12:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$240, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	32768
	.long	32768
	.long	32768
	.long	32768
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	380
	.long	550
	.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
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$100, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$240, %rsp
	.cfi_def_cfa_offset 272
	movdqa	.LC0(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 232(%rsp)
	xorl	%eax, %eax
	movq	.LC1(%rip), %rax
	movl	$0, 16(%rsp)
	leaq	20(%rsp), %r8
	movups	%xmm0, 52(%rsp)
	movq	%rax, 212(%rsp)
	movq	.LC2(%rip), %rax
	movups	%xmm0, 20(%rsp)
	movups	%xmm0, 36(%rsp)
	movups	%xmm0, 68(%rsp)
	movq	%rax, 24(%rsp)
	movl	$850, 36(%rsp)
	movl	$1520, 56(%rsp)
	movl	$1870, 64(%rsp)
	movl	$2244, 76(%rsp)
	movups	%xmm0, 84(%rsp)
	movups	%xmm0, 100(%rsp)
	movups	%xmm0, 116(%rsp)
	movups	%xmm0, 132(%rsp)
	movups	%xmm0, 148(%rsp)
	movups	%xmm0, 164(%rsp)
	movups	%xmm0, 180(%rsp)
	movups	%xmm0, 196(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r8, %rax
	movl	$3, %edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%ecx, %edx
.L2:
	cmpl	$50, %edx
	ja	.L5
	movl	(%rax), %ecx
	movl	8(%rax), %esi
	addl	$380, %ecx
	cmpl	%esi, %ecx
	cmovg	%esi, %ecx
	movl	%ecx, 8(%rax)
.L5:
	leal	1(%rdx), %ecx
	cmpl	$50, %ecx
	ja	.L6
	movl	(%rax), %esi
	movl	12(%rax), %r9d
	addl	$550, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 12(%rax)
.L6:
	leal	3(%rdx), %esi
	cmpl	$50, %esi
	ja	.L7
	movl	(%rax), %esi
	movl	20(%rax), %r9d
	addl	$850, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 20(%rax)
.L7:
	leal	8(%rdx), %esi
	cmpl	$50, %esi
	ja	.L8
	movl	(%rax), %esi
	movl	40(%rax), %r9d
	addl	$1520, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 40(%rax)
.L8:
	leal	10(%rdx), %esi
	cmpl	$50, %esi
	ja	.L9
	movl	(%rax), %esi
	movl	48(%rax), %r9d
	addl	$1870, %esi
	cmpl	%r9d, %esi
	cmovg	%r9d, %esi
	movl	%esi, 48(%rax)
.L9:
	addl	$13, %edx
	cmpl	$50, %edx
	ja	.L10
	movl	(%rax), %edx
	movl	60(%rax), %esi
	addl	$2244, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	movl	%edx, 60(%rax)
.L10:
	addq	$4, %rax
	cmpl	$53, %ecx
	jne	.L15
	subl	$1, %edi
	jne	.L3
	movl	$51, 12(%rsp)
	leaq	12(%rsp), %r12
	leaq	.LC4(%rip), %rbp
	leaq	.LC3(%rip), %rbx
	jmp	.L4
.L13:
	movl	12(%rsp), %edx
	testl	%edx, %edx
	je	.L12
	movslq	%edx, %rax
	sarl	$31, %edx
	movq	%rbx, %rsi
	movl	$1, %edi
	imulq	$1374389535, %rax, %rax
	sarq	$37, %rax
	subl	%edx, %eax
	cltq
	movl	16(%rsp,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L4:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L13
.L12:
	movq	232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$240, %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
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	32768
	.long	32768
	.long	32768
	.long	32768
	.set	.LC1,.LC0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	380
	.long	550
	.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:
```