Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a,b,x,y,v,w,S;I(){scanf("%d%d",&x,&y);}main(i,n){for(;scanf("%d",&n)*n;S=!printf("%d %.1f\n",i++,S/2.))for(I(),a=x,b=y;n--;S+=(x-v)*(y+w))v=x,w=y,!n?x=a,y=b:I();}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	I
	.type	I, @function
I:
.LFB0:
	.cfi_startproc
	endbr64
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	scanf@PLT
	.cfi_endproc
.LFE0:
	.size	I, .-I
	.section	.rodata.str1.1
.LC2:
	.string	"%d %.1f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	12(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	x(%rip), %edi
	movl	y(%rip), %eax
	leal	-1(%rdx), %esi
	movl	%edi, a(%rip)
	movl	%eax, b(%rip)
	movl	%esi, 12(%rsp)
	testl	%edx, %edx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movl	a(%rip), %edx
	movl	b(%rip), %ecx
	movl	%edx, x(%rip)
	movl	%edx, %esi
	addl	%ecx, %eax
	movl	%ecx, y(%rip)
	subl	%edi, %esi
.L15:
	movl	12(%rsp), %edi
	imull	%esi, %eax
	addl	S(%rip), %eax
	movl	%eax, S(%rip)
	leal	-1(%rdi), %esi
	movl	%esi, 12(%rsp)
	testl	%edi, %edi
	je	.L8
	movl	%ecx, %eax
	movl	%edx, %edi
.L9:
	movl	%edi, v(%rip)
	movl	%eax, w(%rip)
	testl	%esi, %esi
	je	.L17
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	x(%rip), %edx
	movl	y(%rip), %ecx
	movl	w(%rip), %esi
	movl	%edx, %eax
	subl	v(%rip), %eax
	addl	%ecx, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movl	S(%rip), %eax
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm0, %xmm0
	leal	1(%r13), %ecx
	movl	%r13d, %esi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rdi
	movl	%ecx, 8(%rsp)
	movl	$1, %eax
	call	printf@PLT
	movl	8(%rsp), %r13d
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, S(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	S
	.bss
	.align 4
	.type	S, @object
	.size	S, 4
S:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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%d"
	.text
	.p2align 4
	.globl	I
	.type	I, @function
I:
.LFB0:
	.cfi_startproc
	endbr64
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	scanf@PLT
	.cfi_endproc
.LFE0:
	.size	I, .-I
	.section	.rodata.str1.1
.LC2:
	.string	"%d %.1f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	12(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	x(%rip), %edi
	movl	y(%rip), %eax
	leal	-1(%rdx), %esi
	movl	%edi, a(%rip)
	movl	%eax, b(%rip)
	movl	%esi, 12(%rsp)
	testl	%edx, %edx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movl	a(%rip), %edx
	movl	b(%rip), %ecx
	movl	%edx, x(%rip)
	movl	%edx, %esi
	addl	%ecx, %eax
	movl	%ecx, y(%rip)
	subl	%edi, %esi
.L15:
	movl	12(%rsp), %edi
	imull	%esi, %eax
	addl	S(%rip), %eax
	movl	%eax, S(%rip)
	leal	-1(%rdi), %esi
	movl	%esi, 12(%rsp)
	testl	%edi, %edi
	je	.L8
	movl	%ecx, %eax
	movl	%edx, %edi
.L9:
	movl	%edi, v(%rip)
	movl	%eax, w(%rip)
	testl	%esi, %esi
	je	.L17
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	x(%rip), %edx
	movl	y(%rip), %ecx
	movl	w(%rip), %esi
	movl	%edx, %eax
	subl	v(%rip), %eax
	addl	%ecx, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movl	S(%rip), %eax
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm0, %xmm0
	leal	1(%r13), %ecx
	movl	%r13d, %esi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rdi
	movl	%ecx, 8(%rsp)
	movl	$1, %eax
	call	printf@PLT
	movl	8(%rsp), %r13d
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, S(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	S
	.bss
	.align 4
	.type	S, @object
	.size	S, 4
S:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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%d"
	.text
	.p2align 4
	.globl	I
	.type	I, @function
I:
.LFB0:
	.cfi_startproc
	endbr64
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	scanf@PLT
	.cfi_endproc
.LFE0:
	.size	I, .-I
	.section	.rodata.str1.1
.LC2:
	.string	"%d %.1f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	12(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	x(%rip), %edi
	movl	y(%rip), %eax
	leal	-1(%rdx), %esi
	movl	%edi, a(%rip)
	movl	%eax, b(%rip)
	movl	%esi, 12(%rsp)
	testl	%edx, %edx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movl	a(%rip), %edx
	movl	b(%rip), %ecx
	movl	%edx, x(%rip)
	movl	%edx, %esi
	addl	%ecx, %eax
	movl	%ecx, y(%rip)
	subl	%edi, %esi
.L15:
	movl	12(%rsp), %edi
	imull	%esi, %eax
	addl	S(%rip), %eax
	movl	%eax, S(%rip)
	leal	-1(%rdi), %esi
	movl	%esi, 12(%rsp)
	testl	%edi, %edi
	je	.L8
	movl	%ecx, %eax
	movl	%edx, %edi
.L9:
	movl	%edi, v(%rip)
	movl	%eax, w(%rip)
	testl	%esi, %esi
	je	.L17
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	x(%rip), %edx
	movl	y(%rip), %ecx
	movl	w(%rip), %esi
	movl	%edx, %eax
	subl	v(%rip), %eax
	addl	%ecx, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movl	S(%rip), %eax
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm0, %xmm0
	leal	1(%r13), %ecx
	movl	%r13d, %esi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rdi
	movl	%ecx, 8(%rsp)
	movl	$1, %eax
	call	printf@PLT
	movl	8(%rsp), %r13d
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, S(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	S
	.bss
	.align 4
	.type	S, @object
	.size	S, 4
S:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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
a,b,x,y,v,w,S;I(){scanf("%d%d",&x,&y);}main(i,n){for(;scanf("%d",&n)*n;S=!printf("%d %.1f\n",i++,S/2.))for(I(),a=x,b=y;n--;S+=(x-v)*(y+w))v=x,w=y,!n?x=a,y=b:I();}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a,b,x,y,v,w,S;I(){scanf("%d%d",&x,&y);}main(i,n){for(;scanf("%d",&n)*n;S=!printf("%d %.1f\n",i++,S/2.))for(I(),a=x,b=y;n--;S+=(x-v)*(y+w))v=x,w=y,!n?x=a,y=b:I();}```

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
1 1
3 4
6 0

7
0 0
10 10
0 20
10 33
0 40
100 40
100 0

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
10 33
0 40
110 40
100 0

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
10 30
0 40
100 40
100 1

0
 3
1 1
3 4
6 0

7
0 0
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 1
6 0

7
0 0
10 10
0 20
10 30
0 40
100 40
100 1

0
 3
1 1
3 4
6 0

7
1 0
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 4
2 0

7
0 0
10 15
0 20
10 33
0 40
110 40
100 0

0
 3
1 1
3 4
6 0

7
1 -1
10 10
0 20
3 33
0 40
100 40
100 0

0
 3
1 1
3 4
2 0

7
0 0
10 15
0 20
10 33
0 40
110 1
100 0

0
 3
1 1
3 4
6 -1

7
1 -1
10 10
0 20
3 33
0 40
100 40
100 0

0

1 8.5
2 3800.0
 1 8.5
2 4000.0
 1 8.5
2 3750.0
 1 8.5
2 3870.0
 1 1.0
2 3750.0
 1 8.5
2 3865.0
 1 2.5
2 4000.0
 1 8.5
2 3910.0
 1 2.5
2 2050.0
 1 9.5
2 3910.0

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
a,b,x,y,v,w,S;I(){scanf("%d%d",&x,&y);}main(i,n){for(;scanf("%d",&n)*n;S=!printf("%d %.1f\n",i++,S/2.))for(I(),a=x,b=y;n--;S+=(x-v)*(y+w))v=x,w=y,!n?x=a,y=b:I();}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
	.text
	.p2align 4
	.globl	I
	.type	I, @function
I:
.LFB0:
	.cfi_startproc
	endbr64
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	scanf@PLT
	.cfi_endproc
.LFE0:
	.size	I, .-I
	.section	.rodata.str1.1
.LC2:
	.string	"%d %.1f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	12(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	x(%rip), %edi
	movl	y(%rip), %eax
	leal	-1(%rdx), %esi
	movl	%edi, a(%rip)
	movl	%eax, b(%rip)
	movl	%esi, 12(%rsp)
	testl	%edx, %edx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movl	a(%rip), %edx
	movl	b(%rip), %ecx
	movl	%edx, x(%rip)
	movl	%edx, %esi
	addl	%ecx, %eax
	movl	%ecx, y(%rip)
	subl	%edi, %esi
.L15:
	movl	12(%rsp), %edi
	imull	%esi, %eax
	addl	S(%rip), %eax
	movl	%eax, S(%rip)
	leal	-1(%rdi), %esi
	movl	%esi, 12(%rsp)
	testl	%edi, %edi
	je	.L8
	movl	%ecx, %eax
	movl	%edx, %edi
.L9:
	movl	%edi, v(%rip)
	movl	%eax, w(%rip)
	testl	%esi, %esi
	je	.L17
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	x(%rip), %edx
	movl	y(%rip), %ecx
	movl	w(%rip), %esi
	movl	%edx, %eax
	subl	v(%rip), %eax
	addl	%ecx, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movl	S(%rip), %eax
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm0, %xmm0
	leal	1(%r13), %ecx
	movl	%r13d, %esi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rdi
	movl	%ecx, 8(%rsp)
	movl	$1, %eax
	call	printf@PLT
	movl	8(%rsp), %r13d
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, S(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	S
	.bss
	.align 4
	.type	S, @object
	.size	S, 4
S:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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%d"
	.text
	.p2align 4
	.globl	I
	.type	I, @function
I:
.LFB0:
	.cfi_startproc
	endbr64
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rsi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	jmp	scanf@PLT
	.cfi_endproc
.LFE0:
	.size	I, .-I
	.section	.rodata.str1.1
.LC2:
	.string	"%d %.1f\n"
.LC3:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	%edi, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	x(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movl	%esi, 12(%rsp)
	leaq	12(%rsp), %r15
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	12(%rsp), %eax
	testl	%eax, %eax
	je	.L16
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	12(%rsp), %edx
	movl	x(%rip), %edi
	movl	y(%rip), %eax
	leal	-1(%rdx), %esi
	movl	%edi, a(%rip)
	movl	%eax, b(%rip)
	movl	%esi, 12(%rsp)
	testl	%edx, %edx
	jne	.L9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	movl	a(%rip), %edx
	movl	b(%rip), %ecx
	movl	%edx, x(%rip)
	movl	%edx, %esi
	addl	%ecx, %eax
	movl	%ecx, y(%rip)
	subl	%edi, %esi
.L15:
	movl	12(%rsp), %edi
	imull	%esi, %eax
	addl	S(%rip), %eax
	movl	%eax, S(%rip)
	leal	-1(%rdi), %esi
	movl	%esi, 12(%rsp)
	testl	%edi, %edi
	je	.L8
	movl	%ecx, %eax
	movl	%edx, %edi
.L9:
	movl	%edi, v(%rip)
	movl	%eax, w(%rip)
	testl	%esi, %esi
	je	.L17
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	x(%rip), %edx
	movl	y(%rip), %ecx
	movl	w(%rip), %esi
	movl	%edx, %eax
	subl	v(%rip), %eax
	addl	%ecx, %esi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L5:
	movl	S(%rip), %eax
	.p2align 4,,10
	.p2align 3
.L8:
	pxor	%xmm0, %xmm0
	leal	1(%r13), %ecx
	movl	%r13d, %esi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC1(%rip), %xmm0
	leaq	.LC2(%rip), %rdi
	movl	%ecx, 8(%rsp)
	movl	$1, %eax
	call	printf@PLT
	movl	8(%rsp), %r13d
	testl	%eax, %eax
	sete	%al
	movzbl	%al, %eax
	movl	%eax, S(%rip)
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.globl	S
	.bss
	.align 4
	.type	S, @object
	.size	S, 4
S:
	.zero	4
	.globl	w
	.align 4
	.type	w, @object
	.size	w, 4
w:
	.zero	4
	.globl	v
	.align 4
	.type	v, @object
	.size	v, 4
v:
	.zero	4
	.globl	y
	.align 4
	.type	y, @object
	.size	y, 4
y:
	.zero	4
	.globl	x
	.align 4
	.type	x, @object
	.size	x, 4
x:
	.zero	4
	.globl	b
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.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:
```