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

```c
#include<stdio.h>
int main(){
	int n, m;
	scanf("%d %d", &n, &m);
	
	int a=0, b=0;
	for(int i=2; i<=n; i++){
		a = a+i-1;
	}
	for(int j=2; j<=m; j++){
		b = b+j-1;
	}
	printf("%d\n", a+b);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$2, -16(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	addl	$1, -16(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L3
	movl	$2, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC3:
	.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	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	cmpl	$1, %ecx
	jle	.L13
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %esi
	cmpl	$5, %eax
	jbe	.L14
	movl	%esi, %edx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm2
	shrl	$2, %edx
	pcmpeqd	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm1, %xmm3
	addl	$1, %eax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	2(%rdi), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%edi, %esi
	je	.L2
.L3:
	leal	1(%rax), %esi
	leal	-1(%rdx,%rax), %edx
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	addl	$5, %eax
	leal	-1(%rdx,%rsi), %edx
	cmpl	%eax, %ecx
	jl	.L2
	leal	-1(%rdx,%rax), %edx
.L2:
	movl	4(%rsp), %ecx
	cmpl	$1, %ecx
	jle	.L15
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %edi
	cmpl	$5, %eax
	jbe	.L16
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm2
	shrl	$2, %esi
	pcmpeqd	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm1, %xmm3
	addl	$1, %eax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	cmpl	%eax, %esi
	jne	.L9
	movdqa	%xmm0, %xmm1
	movl	%edi, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	leal	2(%r8), %esi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r8d, %edi
	je	.L7
.L8:
	leal	1(%rsi), %edi
	leal	-1(%rax,%rsi), %eax
	cmpl	%ecx, %edi
	jg	.L7
	leal	-1(%rdi,%rax), %eax
	leal	2(%rsi), %edi
	cmpl	%ecx, %edi
	jg	.L7
	leal	-1(%rdi,%rax), %eax
	leal	3(%rsi), %edi
	cmpl	%edi, %ecx
	jl	.L7
	leal	-1(%rax,%rdi), %eax
	leal	4(%rsi), %edi
	cmpl	%edi, %ecx
	jl	.L7
	addl	$5, %esi
	leal	-1(%rax,%rdi), %eax
	cmpl	%esi, %ecx
	jl	.L7
	leal	-1(%rax,%rsi), %eax
.L7:
	addl	%eax, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L7
.L13:
	xorl	%edx, %edx
	jmp	.L2
.L14:
	movl	$2, %eax
	xorl	%edx, %edx
	jmp	.L3
.L16:
	movl	$2, %esi
	xorl	%eax, %eax
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2
	.long	3
	.long	4
	.long	5
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d %d"
.LC3:
	.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	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	cmpl	$1, %ecx
	jle	.L13
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %esi
	cmpl	$5, %eax
	jbe	.L14
	movl	%esi, %edx
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm2
	shrl	$2, %edx
	pcmpeqd	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L4:
	movdqa	%xmm1, %xmm3
	addl	$1, %eax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	cmpl	%eax, %edx
	jne	.L4
	movdqa	%xmm0, %xmm1
	movl	%esi, %edi
	psrldq	$8, %xmm1
	andl	$-4, %edi
	paddd	%xmm1, %xmm0
	leal	2(%rdi), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%edi, %esi
	je	.L2
.L3:
	leal	1(%rax), %esi
	leal	-1(%rdx,%rax), %edx
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	2(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	3(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	leal	-1(%rdx,%rsi), %edx
	leal	4(%rax), %esi
	cmpl	%esi, %ecx
	jl	.L2
	addl	$5, %eax
	leal	-1(%rdx,%rsi), %edx
	cmpl	%eax, %ecx
	jl	.L2
	leal	-1(%rdx,%rax), %edx
.L2:
	movl	4(%rsp), %ecx
	cmpl	$1, %ecx
	jle	.L15
	leal	-2(%rcx), %eax
	leal	-1(%rcx), %edi
	cmpl	$5, %eax
	jbe	.L16
	movl	%edi, %esi
	movdqa	.LC0(%rip), %xmm1
	xorl	%eax, %eax
	pxor	%xmm0, %xmm0
	movdqa	.LC2(%rip), %xmm2
	shrl	$2, %esi
	pcmpeqd	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm1, %xmm3
	addl	$1, %eax
	paddd	%xmm2, %xmm1
	paddd	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	cmpl	%eax, %esi
	jne	.L9
	movdqa	%xmm0, %xmm1
	movl	%edi, %r8d
	psrldq	$8, %xmm1
	andl	$-4, %r8d
	paddd	%xmm1, %xmm0
	leal	2(%r8), %esi
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpl	%r8d, %edi
	je	.L7
.L8:
	leal	1(%rsi), %edi
	leal	-1(%rax,%rsi), %eax
	cmpl	%ecx, %edi
	jg	.L7
	leal	-1(%rdi,%rax), %eax
	leal	2(%rsi), %edi
	cmpl	%ecx, %edi
	jg	.L7
	leal	-1(%rdi,%rax), %eax
	leal	3(%rsi), %edi
	cmpl	%edi, %ecx
	jl	.L7
	leal	-1(%rax,%rdi), %eax
	leal	4(%rsi), %edi
	cmpl	%edi, %ecx
	jl	.L7
	addl	$5, %esi
	leal	-1(%rax,%rdi), %eax
	cmpl	%esi, %ecx
	jl	.L7
	leal	-1(%rax,%rsi), %eax
.L7:
	addl	%eax, %edx
	leaq	.LC3(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%eax, %eax
	jmp	.L7
.L13:
	xorl	%edx, %edx
	jmp	.L2
.L14:
	movl	$2, %eax
	xorl	%edx, %edx
	jmp	.L3
.L16:
	movl	$2, %esi
	xorl	%eax, %eax
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2
	.long	3
	.long	4
	.long	5
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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:

#include<stdio.h>
int main(){
	int n, m;
	scanf("%d %d", &n, &m);
	
	int a=0, b=0;
	for(int i=2; i<=n; i++){
		a = a+i-1;
	}
	for(int j=2; j<=m; j++){
		b = b+j-1;
	}
	printf("%d\n", a+b);
	return 0;
}
13 5
 1 2
 4 0
 0 5
 13 6
 1 3
 0 0
 2 2
 4 6
 2 3

88
 1
 6
 10
 93
 3
 0
 2
 21
 4

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

```c
#include<stdio.h>
int main(){
	int n, m;
	scanf("%d %d", &n, &m);
	
	int a=0, b=0;
	for(int i=2; i<=n; i++){
		a = a+i-1;
	}
	for(int j=2; j<=m; j++){
		b = b+j-1;
	}
	printf("%d\n", a+b);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$2, -16(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	addl	$1, -16(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L3
	movl	$2, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	movl	$2, -16(%rbp)
	jmp	.L2
.L3:
	movl	-24(%rbp), %edx
	movl	-16(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -24(%rbp)
	addl	$1, -16(%rbp)
.L2:
	movl	-32(%rbp), %eax
	cmpl	%eax, -16(%rbp)
	jle	.L3
	movl	$2, -12(%rbp)
	jmp	.L4
.L5:
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	movl	%eax, -20(%rbp)
	addl	$1, -12(%rbp)
.L4:
	movl	-28(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L5
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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:
