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 (void){
    int i,n,ans=100000;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        ans=ans+ans*0.05;
        if(ans%1000!=0){
            ans=ans/1000;
            ans=ans+1;
            ans=ans*1000;
        }
    }
    printf("%d\n",ans);
return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	movl	$100000, %edx
	testl	%esi, %esi
	jle	.L3
	movl	$105000, %edx
	cmpl	$1, %esi
	je	.L3
	movsd	.LC1(%rip), %xmm2
	movl	$1, %ecx
	movl	$105000, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edx, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	imull	$652835029, %edx, %eax
	addl	$17179864, %eax
	rorl	$3, %eax
	cmpl	$4294966, %eax
	jbe	.L4
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$274877907, %rax, %rax
	sarq	$38, %rax
	subl	%edx, %eax
	addl	$1, %eax
	imull	$1000, %eax, %edx
.L4:
	addl	$1, %ecx
	cmpl	%ecx, %esi
	jne	.L5
.L3:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.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
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	movl	$100000, %edx
	testl	%esi, %esi
	jle	.L3
	movl	$105000, %edx
	cmpl	$1, %esi
	je	.L3
	movsd	.LC1(%rip), %xmm2
	movl	$1, %ecx
	movl	$105000, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edx, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	imull	$652835029, %edx, %eax
	addl	$17179864, %eax
	rorl	$3, %eax
	cmpl	$4294966, %eax
	jbe	.L4
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$274877907, %rax, %rax
	sarq	$38, %rax
	subl	%edx, %eax
	addl	$1, %eax
	imull	$1000, %eax, %edx
.L4:
	addl	$1, %ecx
	cmpl	%ecx, %esi
	jne	.L5
.L3:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.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
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	movl	$100000, %edx
	testl	%esi, %esi
	jle	.L3
	movl	$105000, %edx
	cmpl	$1, %esi
	je	.L3
	movsd	.LC1(%rip), %xmm2
	movl	$1, %ecx
	movl	$105000, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edx, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	imull	$652835029, %edx, %eax
	addl	$17179864, %eax
	rorl	$3, %eax
	cmpl	$4294966, %eax
	jbe	.L4
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$274877907, %rax, %rax
	sarq	$38, %rax
	subl	%edx, %eax
	addl	$1, %eax
	imull	$1000, %eax, %edx
.L4:
	addl	$1, %ecx
	cmpl	%ecx, %esi
	jne	.L5
.L3:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.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 (void){
    int i,n,ans=100000;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        ans=ans+ans*0.05;
        if(ans%1000!=0){
            ans=ans/1000;
            ans=ans+1;
            ans=ans*1000;
        }
    }
    printf("%d\n",ans);
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 (void){
    int i,n,ans=100000;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        ans=ans+ans*0.05;
        if(ans%1000!=0){
            ans=ans/1000;
            ans=ans+1;
            ans=ans*1000;
        }
    }
    printf("%d\n",ans);
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:

1
 4
 2
 3
 8
 11
 10
 7
 6
 12

105000
 123000
 111000
 117000
 152000
 177000
 168000
 144000
 137000
 186000

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 (void){
    int i,n,ans=100000;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        ans=ans+ans*0.05;
        if(ans%1000!=0){
            ans=ans/1000;
            ans=ans+1;
            ans=ans*1000;
        }
    }
    printf("%d\n",ans);
return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	movl	$100000, %edx
	testl	%esi, %esi
	jle	.L3
	movl	$105000, %edx
	cmpl	$1, %esi
	je	.L3
	movsd	.LC1(%rip), %xmm2
	movl	$1, %ecx
	movl	$105000, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edx, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	imull	$652835029, %edx, %eax
	addl	$17179864, %eax
	rorl	$3, %eax
	cmpl	$4294966, %eax
	jbe	.L4
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$274877907, %rax, %rax
	sarq	$38, %rax
	subl	%edx, %eax
	addl	$1, %eax
	imull	$1000, %eax, %edx
.L4:
	addl	$1, %ecx
	cmpl	%ecx, %esi
	jne	.L5
.L3:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.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
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %esi
	movl	$100000, %edx
	testl	%esi, %esi
	jle	.L3
	movl	$105000, %edx
	cmpl	$1, %esi
	je	.L3
	movsd	.LC1(%rip), %xmm2
	movl	$1, %ecx
	movl	$105000, %edx
	.p2align 4,,10
	.p2align 3
.L5:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%edx, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2sil	%xmm0, %edx
	imull	$652835029, %edx, %eax
	addl	$17179864, %eax
	rorl	$3, %eax
	cmpl	$4294966, %eax
	jbe	.L4
	movslq	%edx, %rax
	sarl	$31, %edx
	imulq	$274877907, %rax, %rax
	sarq	$38, %rax
	subl	%edx, %eax
	addl	$1, %eax
	imull	$1000, %eax, %edx
.L4:
	addl	$1, %ecx
	cmpl	%ecx, %esi
	jne	.L5
.L3:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	-1717986918
	.long	1068079513
	.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:
```