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>
int main(){

  int i,n,m,p,k,x[101];
  int sum,s,re;
  while(1){
    scanf("%d%d%d",&n,&m,&p);
    if(n==0&&m==0&&p==0) break;
    sum=0; 
    for(i=1;i<=n;i++){
      scanf("%d",&x[i]);
      sum+=x[i];
      if(i==m) {
        k=x[i];
      }
    }
    re=(double)100*sum*(100-p)/100;
    if(k!=0)re/=k;
    else re=0;
    //    re=sum*(100-p)/100;
    printf("%d\n",re);
    // s=(double)p/(double)100;
    //re*=s;
   

    //  re = sum * p;

    // printf("%d\n",re/k);
    /*
   if(k>0){
     re/=k;
     printf("%d\n",(int)re);
    }
    else{
      printf("%d\n",0);
    }
    */
  }

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%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
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	movl	28(%rsp), %eax
	movl	%eax, %ecx
	orl	24(%rsp), %ecx
	je	.L3
.L17:
	pxor	%xmm0, %xmm0
.L4:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	.L10
	movl	$100, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm1, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r8d
.L10:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	jle	.L20
	leaq	36(%rsp), %r14
	xorl	%ebx, %ebx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r14), %eax
	addl	%eax, %ebx
	cmpl	%r13d, 24(%rsp)
	je	.L21
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %r13d
	addq	$4, %r14
	movl	%eax, %r12d
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$456, %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
.L20:
	.cfi_restore_state
	movl	28(%rsp), %eax
	jmp	.L17
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%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
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	movl	28(%rsp), %eax
	movl	%eax, %ecx
	orl	24(%rsp), %ecx
	je	.L3
.L17:
	pxor	%xmm0, %xmm0
.L4:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	.L10
	movl	$100, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm1, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r8d
.L10:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	jle	.L20
	leaq	36(%rsp), %r14
	xorl	%ebx, %ebx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r14), %eax
	addl	%eax, %ebx
	cmpl	%r13d, 24(%rsp)
	je	.L21
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %r13d
	addq	$4, %r14
	movl	%eax, %r12d
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$456, %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
.L20:
	.cfi_restore_state
	movl	28(%rsp), %eax
	jmp	.L17
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%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
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	movl	28(%rsp), %eax
	movl	%eax, %ecx
	orl	24(%rsp), %ecx
	je	.L3
.L17:
	pxor	%xmm0, %xmm0
.L4:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	.L10
	movl	$100, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm1, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r8d
.L10:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	jle	.L20
	leaq	36(%rsp), %r14
	xorl	%ebx, %ebx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r14), %eax
	addl	%eax, %ebx
	cmpl	%r13d, 24(%rsp)
	je	.L21
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %r13d
	addq	$4, %r14
	movl	%eax, %r12d
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$456, %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
.L20:
	.cfi_restore_state
	movl	28(%rsp), %eax
	jmp	.L17
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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>
int main(){

  int i,n,m,p,k,x[101];
  int sum,s,re;
  while(1){
    scanf("%d%d%d",&n,&m,&p);
    if(n==0&&m==0&&p==0) break;
    sum=0; 
    for(i=1;i<=n;i++){
      scanf("%d",&x[i]);
      sum+=x[i];
      if(i==m) {
        k=x[i];
      }
    }
    re=(double)100*sum*(100-p)/100;
    if(k!=0)re/=k;
    else re=0;
    //    re=sum*(100-p)/100;
    printf("%d\n",re);
    // s=(double)p/(double)100;
    //re*=s;
   

    //  re = sum * p;

    // printf("%d\n",re/k);
    /*
   if(k>0){
     re/=k;
     printf("%d\n",(int)re);
    }
    else{
      printf("%d\n",0);
    }
    */
  }

  return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(){

  int i,n,m,p,k,x[101];
  int sum,s,re;
  while(1){
    scanf("%d%d%d",&n,&m,&p);
    if(n==0&&m==0&&p==0) break;
    sum=0; 
    for(i=1;i<=n;i++){
      scanf("%d",&x[i]);
      sum+=x[i];
      if(i==m) {
        k=x[i];
      }
    }
    re=(double)100*sum*(100-p)/100;
    if(k!=0)re/=k;
    else re=0;
    //    re=sum*(100-p)/100;
    printf("%d\n",re);
    // s=(double)p/(double)100;
    //re*=s;
   

    //  re = sum * p;

    // printf("%d\n",re/k);
    /*
   if(k>0){
     re/=k;
     printf("%d\n",(int)re);
    }
    else{
      printf("%d\n",0);
    }
    */
  }

  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:

3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 10
8
1
1
0 0 0
 3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 10
8
2
1
0 0 0
 3 2 50
1
2
1
4 4 65
1
2
3
0
3 1 10
8
2
1
0 0 0
 3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 10
8
0
1
0 0 0
 3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 16
8
0
1
0 0 0
 3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 16
8
0
2
0 0 0
 3 2 50
1
2
3
4 4 75
1
2
3
1
3 1 10
8
1
1
0 0 0
 3 2 50
1
4
3
4 4 65
1
2
3
0
3 1 2
8
2
1
0 0 0
 3 2 50
1
2
3
4 4 65
1
2
3
0
3 1 22
8
0
2
0 0 0
 3 2 94
1
2
3
4 4 65
1
2
3
0
3 1 10
8
2
1
0 0 0

150
0
112
 150
0
123
 100
0
123
 150
0
101
 150
0
94
 150
0
105
 150
175
112
 100
0
134
 150
0
97
 18
0
123

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>
int main(){

  int i,n,m,p,k,x[101];
  int sum,s,re;
  while(1){
    scanf("%d%d%d",&n,&m,&p);
    if(n==0&&m==0&&p==0) break;
    sum=0; 
    for(i=1;i<=n;i++){
      scanf("%d",&x[i]);
      sum+=x[i];
      if(i==m) {
        k=x[i];
      }
    }
    re=(double)100*sum*(100-p)/100;
    if(k!=0)re/=k;
    else re=0;
    //    re=sum*(100-p)/100;
    printf("%d\n",re);
    // s=(double)p/(double)100;
    //re*=s;
   

    //  re = sum * p;

    // printf("%d\n",re/k);
    /*
   if(k>0){
     re/=k;
     printf("%d\n",(int)re);
    }
    else{
      printf("%d\n",0);
    }
    */
  }

  return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%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
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	movl	28(%rsp), %eax
	movl	%eax, %ecx
	orl	24(%rsp), %ecx
	je	.L3
.L17:
	pxor	%xmm0, %xmm0
.L4:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	.L10
	movl	$100, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm1, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r8d
.L10:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	jle	.L20
	leaq	36(%rsp), %r14
	xorl	%ebx, %ebx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r14), %eax
	addl	%eax, %ebx
	cmpl	%r13d, 24(%rsp)
	je	.L21
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %r13d
	addq	$4, %r14
	movl	%eax, %r12d
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$456, %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
.L20:
	.cfi_restore_state
	movl	28(%rsp), %eax
	jmp	.L17
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"%d"
.LC4:
	.string	"%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
	leaq	.LC2(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$456, %rsp
	.cfi_def_cfa_offset 512
	movq	%fs:40, %rax
	movq	%rax, 440(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	leaq	28(%rsp), %r15
	movq	%rax, 8(%rsp)
	leaq	20(%rsp), %rax
	movq	%rax, (%rsp)
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	movl	28(%rsp), %eax
	movl	%eax, %ecx
	orl	24(%rsp), %ecx
	je	.L3
.L17:
	pxor	%xmm0, %xmm0
.L4:
	xorl	%r8d, %r8d
	testl	%r12d, %r12d
	je	.L10
	movl	$100, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm0, %xmm1
	divsd	.LC3(%rip), %xmm1
	cvttsd2sil	%xmm1, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r8d
.L10:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L11:
	movq	8(%rsp), %rdx
	movq	(%rsp), %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L19
	jle	.L20
	leaq	36(%rsp), %r14
	xorl	%ebx, %ebx
	movl	$1, %r13d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	(%r14), %eax
	addl	%eax, %ebx
	cmpl	%r13d, 24(%rsp)
	je	.L21
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	addl	$1, %r13d
	addq	$4, %r14
	movl	%eax, %r12d
	cmpl	%r13d, 20(%rsp)
	jge	.L9
	pxor	%xmm0, %xmm0
	movl	28(%rsp), %eax
	cvtsi2sdl	%ebx, %xmm0
	mulsd	.LC3(%rip), %xmm0
	jmp	.L4
.L3:
	movq	440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$456, %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
.L20:
	.cfi_restore_state
	movl	28(%rsp), %eax
	jmp	.L17
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.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:
```