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>
#include<math.h>
int m,y,n,i,t,u;
double s,r;
double a(){return (double)(1+y*r/100);}
double b(){return pow((double)(1+r/100),y);}

int main()
{
	double(*f[3])();
	f[1]=a;f[2]=b;
	for(;~scanf("%d%d",&n,&y),n;)
	{
		for(i=0,s=0;i<n;i++)
		{
			scanf("%d%lf%d",&m,&r,&t);
			if(s<f[t]())
				s=f[t](),u=m;
		}
		printf("%d\n",u);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	a
	.type	a, @function
a:
.LFB23:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cvtsi2sdl	y(%rip), %xmm0
	mulsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	a, .-a
	.p2align 4
	.globl	b
	.type	b, @function
b:
.LFB24:
	.cfi_startproc
	endbr64
	pxor	%xmm1, %xmm1
	movsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	cvtsi2sdl	y(%rip), %xmm1
	jmp	pow@PLT
	.cfi_endproc
.LFE24:
	.size	b, .-b
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%lf%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	a(%rip), %rcx
	leaq	y(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %xmm0
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	m(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	leaq	b(%rip), %rax
	movq	%rax, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L16
	movl	$0, i(%rip)
	movq	$0x000000000, s(%rip)
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	comisd	s(%rip), %xmm0
	jbe	.L14
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	movl	m(%rip), %eax
	movsd	%xmm0, s(%rip)
	movl	%eax, u(%rip)
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
.L6:
	movl	u(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.p2align 4
	.globl	a
	.type	a, @function
a:
.LFB23:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cvtsi2sdl	y(%rip), %xmm0
	mulsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	a, .-a
	.p2align 4
	.globl	b
	.type	b, @function
b:
.LFB24:
	.cfi_startproc
	endbr64
	pxor	%xmm1, %xmm1
	movsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	cvtsi2sdl	y(%rip), %xmm1
	jmp	pow@PLT
	.cfi_endproc
.LFE24:
	.size	b, .-b
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%lf%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	a(%rip), %rcx
	leaq	y(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %xmm0
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	m(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	leaq	b(%rip), %rax
	movq	%rax, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L16
	movl	$0, i(%rip)
	movq	$0x000000000, s(%rip)
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	comisd	s(%rip), %xmm0
	jbe	.L14
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	movl	m(%rip), %eax
	movsd	%xmm0, s(%rip)
	movl	%eax, u(%rip)
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
.L6:
	movl	u(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.p2align 4
	.globl	a
	.type	a, @function
a:
.LFB23:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cvtsi2sdl	y(%rip), %xmm0
	mulsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	a, .-a
	.p2align 4
	.globl	b
	.type	b, @function
b:
.LFB24:
	.cfi_startproc
	endbr64
	pxor	%xmm1, %xmm1
	movsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	cvtsi2sdl	y(%rip), %xmm1
	jmp	pow@PLT
	.cfi_endproc
.LFE24:
	.size	b, .-b
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%lf%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	a(%rip), %rcx
	leaq	y(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %xmm0
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	m(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	leaq	b(%rip), %rax
	movq	%rax, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L16
	movl	$0, i(%rip)
	movq	$0x000000000, s(%rip)
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	comisd	s(%rip), %xmm0
	jbe	.L14
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	movl	m(%rip), %eax
	movsd	%xmm0, s(%rip)
	movl	%eax, u(%rip)
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
.L6:
	movl	u(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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>
#include<math.h>
int m,y,n,i,t,u;
double s,r;
double a(){return (double)(1+y*r/100);}
double b(){return pow((double)(1+r/100),y);}

int main()
{
	double(*f[3])();
	f[1]=a;f[2]=b;
	for(;~scanf("%d%d",&n,&y),n;)
	{
		for(i=0,s=0;i<n;i++)
		{
			scanf("%d%lf%d",&m,&r,&t);
			if(s<f[t]())
				s=f[t](),u=m;
		}
		printf("%d\n",u);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<math.h>
int m,y,n,i,t,u;
double s,r;
double a(){return (double)(1+y*r/100);}
double b(){return pow((double)(1+r/100),y);}

int main()
{
	double(*f[3])();
	f[1]=a;f[2]=b;
	for(;~scanf("%d%d",&n,&y),n;)
	{
		for(i=0,s=0;i<n;i++)
		{
			scanf("%d%lf%d",&m,&r,&t);
			if(s<f[t]())
				s=f[t](),u=m;
		}
		printf("%d\n",u);
	}
	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:

2
8
1 5 2
2 6 1
2
9
1 3 2
2 6 1
0
 2
8
1 5 2
3 6 1
2
7
1 5 2
2 6 1
0
 2
8
1 5 2
2 6 1
0
9
0 3 2
2 6 1
0
 2
14
1 5 2
3 6 1
2
7
1 5 2
2 6 1
0
 2
8
1 5 2
2 6 1
2
7
1 8 2
2 6 1
0
 2
14
1 5 2
3 6 1
2
7
1 5 2
1 6 1
0
 2
8
1 5 2
0 6 1
2
9
1 5 2
2 10 1
0
 2
14
1 5 2
2 6 1
2
9
0 5 2
2 6 1
0
 2
14
1 5 2
3 6 2
2
7
1 5 2
1 6 1
0
 2
8
1 5 2
2 6 1
2
7
0 8 2
2 6 1
0

2
2
 3
2
 2
 1
2
 2
1
 1
1
 0
2
 1
0
 3
1
 2
0

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>
#include<math.h>
int m,y,n,i,t,u;
double s,r;
double a(){return (double)(1+y*r/100);}
double b(){return pow((double)(1+r/100),y);}

int main()
{
	double(*f[3])();
	f[1]=a;f[2]=b;
	for(;~scanf("%d%d",&n,&y),n;)
	{
		for(i=0,s=0;i<n;i++)
		{
			scanf("%d%lf%d",&m,&r,&t);
			if(s<f[t]())
				s=f[t](),u=m;
		}
		printf("%d\n",u);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	a
	.type	a, @function
a:
.LFB23:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cvtsi2sdl	y(%rip), %xmm0
	mulsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	a, .-a
	.p2align 4
	.globl	b
	.type	b, @function
b:
.LFB24:
	.cfi_startproc
	endbr64
	pxor	%xmm1, %xmm1
	movsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	cvtsi2sdl	y(%rip), %xmm1
	jmp	pow@PLT
	.cfi_endproc
.LFE24:
	.size	b, .-b
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%lf%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	a(%rip), %rcx
	leaq	y(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %xmm0
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	m(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	leaq	b(%rip), %rax
	movq	%rax, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L16
	movl	$0, i(%rip)
	movq	$0x000000000, s(%rip)
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	comisd	s(%rip), %xmm0
	jbe	.L14
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	movl	m(%rip), %eax
	movsd	%xmm0, s(%rip)
	movl	%eax, u(%rip)
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
.L6:
	movl	u(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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
	.p2align 4
	.globl	a
	.type	a, @function
a:
.LFB23:
	.cfi_startproc
	endbr64
	pxor	%xmm0, %xmm0
	cvtsi2sdl	y(%rip), %xmm0
	mulsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	ret
	.cfi_endproc
.LFE23:
	.size	a, .-a
	.p2align 4
	.globl	b
	.type	b, @function
b:
.LFB24:
	.cfi_startproc
	endbr64
	pxor	%xmm1, %xmm1
	movsd	r(%rip), %xmm0
	divsd	.LC0(%rip), %xmm0
	addsd	.LC1(%rip), %xmm0
	cvtsi2sdl	y(%rip), %xmm1
	jmp	pow@PLT
	.cfi_endproc
.LFE24:
	.size	b, .-b
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d%lf%d"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	a(%rip), %rcx
	leaq	y(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rcx, %xmm0
	leaq	n(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	t(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	r(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	m(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC3(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	leaq	b(%rip), %rax
	movq	%rax, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r15, %rdx
	movq	%r14, %rsi
	leaq	.LC5(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L16
	movl	$0, i(%rip)
	movq	$0x000000000, s(%rip)
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rcx
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	comisd	s(%rip), %xmm0
	jbe	.L14
	movslq	t(%rip), %rdx
	xorl	%eax, %eax
	call	*(%rsp,%rdx,8)
	movl	m(%rip), %eax
	movsd	%xmm0, s(%rip)
	movl	%eax, u(%rip)
.L14:
	movl	i(%rip), %eax
	addl	$1, %eax
	cmpl	n(%rip), %eax
	movl	%eax, i(%rip)
	jl	.L10
.L6:
	movl	u(%rip), %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %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
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.globl	r
	.bss
	.align 8
	.type	r, @object
	.size	r, 8
r:
	.zero	8
	.globl	s
	.align 8
	.type	s, @object
	.size	s, 8
s:
	.zero	8
	.globl	u
	.align 4
	.type	u, @object
	.size	u, 4
u:
	.zero	4
	.globl	t
	.align 4
	.type	t, @object
	.size	t, 4
t:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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:
```