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(void){

  int so, st, co;
  int total[5];
  int max = 0;
  int i, j;

  for(i = 0; i < 1; i--){
    for(j = 0; j < 5; j++){
      scanf("%d%d", &so, &st);
      if((so == 0) && (st == 0)) return 0;
      total[j] = so + st;
      if(max < total[j]){
	max = total[j];
	co = j;
      }
    }
    printf("%c %d\n", 65+co, max);
    max = 0;
    co = 0;
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%c %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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L8:
	movl	$0, -36(%rbp)
	jmp	.L3
.L7:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, %eax
	jmp	.L9
.L4:
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L6
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -44(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -48(%rbp)
.L6:
	addl	$1, -36(%rbp)
.L3:
	cmpl	$4, -36(%rbp)
	jle	.L7
	movl	-48(%rbp), %eax
	leal	65(%rax), %ecx
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	subl	$1, -40(%rbp)
.L2:
	cmpl	$0, -40(%rbp)
	jle	.L8
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%c %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
.L5:
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	movl	4(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L11
	addl	%edx, %eax
	cmpl	%r12d, %eax
	jle	.L4
	movl	%eax, %r12d
	movl	%r15d, %ebx
.L4:
	addl	$1, %r15d
	cmpl	$5, %r15d
	jne	.L5
	leal	65(%rbx), %edx
	movl	%r12d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$24, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%c %d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	movq	%rsp, %r13
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
.L5:
	movq	%r14, %rdx
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	movl	4(%rsp), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	je	.L11
	addl	%edx, %eax
	cmpl	%r12d, %eax
	jle	.L4
	movl	%eax, %r12d
	movl	%r15d, %ebx
.L4:
	addl	$1, %r15d
	cmpl	$5, %r15d
	jne	.L5
	leal	65(%rbx), %edx
	movl	%r12d, %ecx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L12
	addq	$24, %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
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:

#include <stdio.h>

int main(void){

  int so, st, co;
  int total[5];
  int max = 0;
  int i, j;

  for(i = 0; i < 1; i--){
    for(j = 0; j < 5; j++){
      scanf("%d%d", &so, &st);
      if((so == 0) && (st == 0)) return 0;
      total[j] = so + st;
      if(max < total[j]){
	max = total[j];
	co = j;
      }
    }
    printf("%c %d\n", 65+co, max);
    max = 0;
    co = 0;
  }
  return 0;
}
1593 4311
4321 2155
1256 6421
5310 1455
2152 5421
1549 3386
4528 1578
1234 4321
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 6421
5310 1455
2152 5421
1549 3288
4528 3719
1234 4321
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 6421
5310 1455
2152 5421
1549 3386
4528 1578
1234 8354
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 3848
5310 1455
455 5421
1549 3288
4528 3719
1234 4321
3330 3109
2739 1241
0 0
 1593 4311
4321 2155
1256 3848
5310 1455
455 5421
1549 3288
4528 1686
1234 4321
3330 3109
2739 1241
0 0
 1593 4311
4321 2155
1256 6421
5310 2818
2152 5421
1549 3386
4528 3719
1234 4321
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
974 6421
5310 1455
2152 5421
1549 3386
4528 1578
1234 4321
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 11201
5310 1455
2152 5421
1928 3386
4528 1578
1234 4321
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 6421
5310 1790
2152 6253
1549 3386
4528 1578
1234 8354
3330 3109
2739 2199
0 0
 1593 4311
4321 2155
1256 3848
5310 1455
455 5421
1549 3288
4528 3719
1234 4321
5197 3109
2739 1241
0 0

C 7677
D 6439
 C 7677
B 8247
 C 7677
C 9588
 D 6765
B 8247
 D 6765
D 6439
 D 8128
B 8247
 E 7573
D 6439
 C 12457
D 6439
 E 8405
C 9588
 D 6765
D 8306

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(void){

  int so, st, co;
  int total[5];
  int max = 0;
  int i, j;

  for(i = 0; i < 1; i--){
    for(j = 0; j < 5; j++){
      scanf("%d%d", &so, &st);
      if((so == 0) && (st == 0)) return 0;
      total[j] = so + st;
      if(max < total[j]){
	max = total[j];
	co = j;
      }
    }
    printf("%c %d\n", 65+co, max);
    max = 0;
    co = 0;
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%c %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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L8:
	movl	$0, -36(%rbp)
	jmp	.L3
.L7:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, %eax
	jmp	.L9
.L4:
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L6
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -44(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -48(%rbp)
.L6:
	addl	$1, -36(%rbp)
.L3:
	cmpl	$4, -36(%rbp)
	jle	.L7
	movl	-48(%rbp), %eax
	leal	65(%rax), %ecx
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	subl	$1, -40(%rbp)
.L2:
	cmpl	$0, -40(%rbp)
	jle	.L8
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"%c %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	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -44(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L2
.L8:
	movl	$0, -36(%rbp)
	jmp	.L3
.L7:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, %eax
	jmp	.L9
.L4:
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %eax
	addl	%eax, %edx
	movl	-36(%rbp), %eax
	cltq
	movl	%edx, -32(%rbp,%rax,4)
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	cmpl	%eax, -44(%rbp)
	jge	.L6
	movl	-36(%rbp), %eax
	cltq
	movl	-32(%rbp,%rax,4), %eax
	movl	%eax, -44(%rbp)
	movl	-36(%rbp), %eax
	movl	%eax, -48(%rbp)
.L6:
	addl	$1, -36(%rbp)
.L3:
	cmpl	$4, -36(%rbp)
	jle	.L7
	movl	-48(%rbp), %eax
	leal	65(%rax), %ecx
	movl	-44(%rbp), %eax
	movl	%eax, %edx
	movl	%ecx, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	subl	$1, -40(%rbp)
.L2:
	cmpl	$0, -40(%rbp)
	jle	.L8
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
