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 main()
{
long long int A,B,C,c,d,e;
scanf("%lld %lld %lld",&A,&B,&C);
c=A*A;
d=B*B;
e=C*C;
if(c+d==e)
printf("%.lf\n",(.5*A*B));
else if(c+e==d)
printf("%.lf\n",(.5*A*B));
else if(d+e==c)
printf("%.lf\n",(.5*C*B));
return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%.lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	16(%rsp), %r8
	movq	%rdi, %rcx
	movq	%rdx, %rax
	imulq	%rdi, %rcx
	movq	%r8, %rsi
	imulq	%rdx, %rax
	imulq	%r8, %rsi
	leaq	(%rcx,%rax), %r9
	cmpq	%rsi, %r9
	je	.L8
	leaq	(%rcx,%rsi), %r9
	cmpq	%rax, %r9
	je	.L8
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	je	.L10
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rdi, %xmm0
.L7:
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$1, %eax
	mulsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rdx, %xmm1
	leaq	.LC2(%rip), %rsi
	mulsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r8, %xmm0
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%lld %lld %lld"
.LC2:
	.string	"%.lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	16(%rsp), %r8
	movq	%rdi, %rcx
	movq	%rdx, %rax
	imulq	%rdi, %rcx
	movq	%r8, %rsi
	imulq	%rdx, %rax
	imulq	%r8, %rsi
	leaq	(%rcx,%rax), %r9
	cmpq	%rsi, %r9
	je	.L8
	leaq	(%rcx,%rsi), %r9
	cmpq	%rax, %r9
	je	.L8
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	je	.L10
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rdi, %xmm0
.L7:
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$1, %eax
	mulsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rdx, %xmm1
	leaq	.LC2(%rip), %rsi
	mulsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r8, %xmm0
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%lld %lld %lld"
.LC2:
	.string	"%.lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	16(%rsp), %r8
	movq	%rdi, %rcx
	movq	%rdx, %rax
	imulq	%rdi, %rcx
	movq	%r8, %rsi
	imulq	%rdx, %rax
	imulq	%r8, %rsi
	leaq	(%rcx,%rax), %r9
	cmpq	%rsi, %r9
	je	.L8
	leaq	(%rcx,%rsi), %r9
	cmpq	%rax, %r9
	je	.L8
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	je	.L10
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rdi, %xmm0
.L7:
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$1, %eax
	mulsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rdx, %xmm1
	leaq	.LC2(%rip), %rsi
	mulsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r8, %xmm0
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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
#include<stdio.h>
#include<math.h>
int main()
{
long long int A,B,C,c,d,e;
scanf("%lld %lld %lld",&A,&B,&C);
c=A*A;
d=B*B;
e=C*C;
if(c+d==e)
printf("%.lf\n",(.5*A*B));
else if(c+e==d)
printf("%.lf\n",(.5*A*B));
else if(d+e==c)
printf("%.lf\n",(.5*C*B));
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 main()
{
long long int A,B,C,c,d,e;
scanf("%lld %lld %lld",&A,&B,&C);
c=A*A;
d=B*B;
e=C*C;
if(c+d==e)
printf("%.lf\n",(.5*A*B));
else if(c+e==d)
printf("%.lf\n",(.5*A*B));
else if(d+e==c)
printf("%.lf\n",(.5*C*B));
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 3 5
 45 38 53
 5 18 13
 0 3 5
 45 30 53
 5 24 13
 45 49 53
 5 13 13
 18 49 53
 1 10 1

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 main()
{
long long int A,B,C,c,d,e;
scanf("%lld %lld %lld",&A,&B,&C);
c=A*A;
d=B*B;
e=C*C;
if(c+d==e)
printf("%.lf\n",(.5*A*B));
else if(c+e==d)
printf("%.lf\n",(.5*A*B));
else if(d+e==c)
printf("%.lf\n",(.5*C*B));
return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld %lld"
.LC2:
	.string	"%.lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	16(%rsp), %r8
	movq	%rdi, %rcx
	movq	%rdx, %rax
	imulq	%rdi, %rcx
	movq	%r8, %rsi
	imulq	%rdx, %rax
	imulq	%r8, %rsi
	leaq	(%rcx,%rax), %r9
	cmpq	%rsi, %r9
	je	.L8
	leaq	(%rcx,%rsi), %r9
	cmpq	%rax, %r9
	je	.L8
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	je	.L10
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rdi, %xmm0
.L7:
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$1, %eax
	mulsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rdx, %xmm1
	leaq	.LC2(%rip), %rsi
	mulsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r8, %xmm0
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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	"%lld %lld %lld"
.LC2:
	.string	"%.lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	movq	8(%rsp), %rdx
	movq	16(%rsp), %r8
	movq	%rdi, %rcx
	movq	%rdx, %rax
	imulq	%rdi, %rcx
	movq	%r8, %rsi
	imulq	%rdx, %rax
	imulq	%r8, %rsi
	leaq	(%rcx,%rax), %r9
	cmpq	%rsi, %r9
	je	.L8
	leaq	(%rcx,%rsi), %r9
	cmpq	%rax, %r9
	je	.L8
	addq	%rsi, %rax
	cmpq	%rcx, %rax
	je	.L10
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%rdi, %xmm0
.L7:
	pxor	%xmm1, %xmm1
	movl	$1, %edi
	movl	$1, %eax
	mulsd	.LC1(%rip), %xmm0
	cvtsi2sdq	%rdx, %xmm1
	leaq	.LC2(%rip), %rsi
	mulsd	%xmm1, %xmm0
	call	__printf_chk@PLT
	jmp	.L3
.L10:
	pxor	%xmm0, %xmm0
	cvtsi2sdq	%r8, %xmm0
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.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:
```