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>
int main(void)
{
	int s[5],s1,s2,i,temp,max,x;
	while(1){
		max=0;
		scanf("%d %d",&s1,&s2);
		if(s1==0&&s2==0)break;
		s[0]=s1+s2;
		for(i=1;i<=4;i++){
			scanf("%d %d",&s1,&s2);
			s[i]=s1+s2;
		}
		for(i=0;i<5;i++){
			if(max<s[i]){
				max=s[i];
				x=i;
			}
		}
		if(x==0){
			printf("A %d\n",max);
		}
		if(x==1){
			printf("B %d\n",max);
		}
		if(x==2){
			printf("C %d\n",max);
		}
		if(x==3){
			printf("D %d\n",max);
		}
		if(x==4){
			printf("E %d\n",max);
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"A %d\n"
.LC2:
	.string	"B %d\n"
.LC3:
	.string	"C %d\n"
.LC4:
	.string	"D %d\n"
.LC5:
	.string	"E %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %rbp
.L18:
	movl	$4, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	movl	28(%rsp), %eax
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	.L3
	addl	%eax, %r12d
	leaq	32(%rsp), %r15
	leaq	48(%rsp), %r14
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	24(%rsp), %eax
	addq	$4, %r15
	movl	%eax, (%r15)
	cmpq	%r15, %r14
	jne	.L4
	testl	%r12d, %r12d
	jle	.L20
	movl	$0, 12(%rsp)
.L5:
	movl	36(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L6
	movl	$1, 12(%rsp)
	movl	%eax, %r12d
.L6:
	movl	40(%rsp), %edx
	movl	44(%rsp), %r8d
	movl	48(%rsp), %r9d
	cmpl	%edx, %r12d
	jge	.L7
	cmpl	%r8d, %edx
	jl	.L8
	cmpl	%edx, %r9d
	jle	.L10
.L9:
	movl	%r9d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%r12d, %r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %r9d
	jg	.L9
.L12:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$3, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r12d
	jl	.L8
	cmpl	%r12d, %r9d
	jg	.L9
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L29:
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, 12(%rsp)
	jmp	.L2
.L13:
	cmpl	$1, 12(%rsp)
	jne	.L27
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$72, %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
.L27:
	.cfi_restore_state
	cmpl	$2, 12(%rsp)
	je	.L29
	cmpl	$3, 12(%rsp)
	jne	.L30
	movl	%r12d, %r8d
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
.L30:
	movl	%r12d, %r9d
	jmp	.L9
	.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:
```

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"
.LC1:
	.string	"A %d\n"
.LC2:
	.string	"B %d\n"
.LC3:
	.string	"C %d\n"
.LC4:
	.string	"D %d\n"
.LC5:
	.string	"E %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %rbp
.L18:
	movl	$4, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	movl	28(%rsp), %eax
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	.L3
	addl	%eax, %r12d
	leaq	32(%rsp), %r15
	leaq	48(%rsp), %r14
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	24(%rsp), %eax
	addq	$4, %r15
	movl	%eax, (%r15)
	cmpq	%r15, %r14
	jne	.L4
	testl	%r12d, %r12d
	jle	.L20
	movl	$0, 12(%rsp)
.L5:
	movl	36(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L6
	movl	$1, 12(%rsp)
	movl	%eax, %r12d
.L6:
	movl	40(%rsp), %edx
	movl	44(%rsp), %r8d
	movl	48(%rsp), %r9d
	cmpl	%edx, %r12d
	jge	.L7
	cmpl	%r8d, %edx
	jl	.L8
	cmpl	%edx, %r9d
	jle	.L10
.L9:
	movl	%r9d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%r12d, %r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %r9d
	jg	.L9
.L12:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$3, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r12d
	jl	.L8
	cmpl	%r12d, %r9d
	jg	.L9
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L29:
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, 12(%rsp)
	jmp	.L2
.L13:
	cmpl	$1, 12(%rsp)
	jne	.L27
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$72, %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
.L27:
	.cfi_restore_state
	cmpl	$2, 12(%rsp)
	je	.L29
	cmpl	$3, 12(%rsp)
	jne	.L30
	movl	%r12d, %r8d
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
.L30:
	movl	%r12d, %r9d
	jmp	.L9
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"A %d\n"
.LC2:
	.string	"B %d\n"
.LC3:
	.string	"C %d\n"
.LC4:
	.string	"D %d\n"
.LC5:
	.string	"E %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %rbp
.L18:
	movl	$4, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	movl	28(%rsp), %eax
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	.L3
	addl	%eax, %r12d
	leaq	32(%rsp), %r15
	leaq	48(%rsp), %r14
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	24(%rsp), %eax
	addq	$4, %r15
	movl	%eax, (%r15)
	cmpq	%r15, %r14
	jne	.L4
	testl	%r12d, %r12d
	jle	.L20
	movl	$0, 12(%rsp)
.L5:
	movl	36(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L6
	movl	$1, 12(%rsp)
	movl	%eax, %r12d
.L6:
	movl	40(%rsp), %edx
	movl	44(%rsp), %r8d
	movl	48(%rsp), %r9d
	cmpl	%edx, %r12d
	jge	.L7
	cmpl	%r8d, %edx
	jl	.L8
	cmpl	%edx, %r9d
	jle	.L10
.L9:
	movl	%r9d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%r12d, %r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %r9d
	jg	.L9
.L12:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$3, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r12d
	jl	.L8
	cmpl	%r12d, %r9d
	jg	.L9
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L29:
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, 12(%rsp)
	jmp	.L2
.L13:
	cmpl	$1, 12(%rsp)
	jne	.L27
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$72, %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
.L27:
	.cfi_restore_state
	cmpl	$2, 12(%rsp)
	je	.L29
	cmpl	$3, 12(%rsp)
	jne	.L30
	movl	%r12d, %r8d
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
.L30:
	movl	%r12d, %r9d
	jmp	.L9
	.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:
```
```c
#include<stdio.h>
int main(void)
{
	int s[5],s1,s2,i,temp,max,x;
	while(1){
		max=0;
		scanf("%d %d",&s1,&s2);
		if(s1==0&&s2==0)break;
		s[0]=s1+s2;
		for(i=1;i<=4;i++){
			scanf("%d %d",&s1,&s2);
			s[i]=s1+s2;
		}
		for(i=0;i<5;i++){
			if(max<s[i]){
				max=s[i];
				x=i;
			}
		}
		if(x==0){
			printf("A %d\n",max);
		}
		if(x==1){
			printf("B %d\n",max);
		}
		if(x==2){
			printf("C %d\n",max);
		}
		if(x==3){
			printf("D %d\n",max);
		}
		if(x==4){
			printf("E %d\n",max);
		}
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
	int s[5],s1,s2,i,temp,max,x;
	while(1){
		max=0;
		scanf("%d %d",&s1,&s2);
		if(s1==0&&s2==0)break;
		s[0]=s1+s2;
		for(i=1;i<=4;i++){
			scanf("%d %d",&s1,&s2);
			s[i]=s1+s2;
		}
		for(i=0;i<5;i++){
			if(max<s[i]){
				max=s[i];
				x=i;
			}
		}
		if(x==0){
			printf("A %d\n",max);
		}
		if(x==1){
			printf("B %d\n",max);
		}
		if(x==2){
			printf("C %d\n",max);
		}
		if(x==3){
			printf("D %d\n",max);
		}
		if(x==4){
			printf("E %d\n",max);
		}
	}
	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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
	int s[5],s1,s2,i,temp,max,x;
	while(1){
		max=0;
		scanf("%d %d",&s1,&s2);
		if(s1==0&&s2==0)break;
		s[0]=s1+s2;
		for(i=1;i<=4;i++){
			scanf("%d %d",&s1,&s2);
			s[i]=s1+s2;
		}
		for(i=0;i<5;i++){
			if(max<s[i]){
				max=s[i];
				x=i;
			}
		}
		if(x==0){
			printf("A %d\n",max);
		}
		if(x==1){
			printf("B %d\n",max);
		}
		if(x==2){
			printf("C %d\n",max);
		}
		if(x==3){
			printf("D %d\n",max);
		}
		if(x==4){
			printf("E %d\n",max);
		}
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"A %d\n"
.LC2:
	.string	"B %d\n"
.LC3:
	.string	"C %d\n"
.LC4:
	.string	"D %d\n"
.LC5:
	.string	"E %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %rbp
.L18:
	movl	$4, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	movl	28(%rsp), %eax
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	.L3
	addl	%eax, %r12d
	leaq	32(%rsp), %r15
	leaq	48(%rsp), %r14
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	24(%rsp), %eax
	addq	$4, %r15
	movl	%eax, (%r15)
	cmpq	%r15, %r14
	jne	.L4
	testl	%r12d, %r12d
	jle	.L20
	movl	$0, 12(%rsp)
.L5:
	movl	36(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L6
	movl	$1, 12(%rsp)
	movl	%eax, %r12d
.L6:
	movl	40(%rsp), %edx
	movl	44(%rsp), %r8d
	movl	48(%rsp), %r9d
	cmpl	%edx, %r12d
	jge	.L7
	cmpl	%r8d, %edx
	jl	.L8
	cmpl	%edx, %r9d
	jle	.L10
.L9:
	movl	%r9d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%r12d, %r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %r9d
	jg	.L9
.L12:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$3, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r12d
	jl	.L8
	cmpl	%r12d, %r9d
	jg	.L9
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L29:
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, 12(%rsp)
	jmp	.L2
.L13:
	cmpl	$1, 12(%rsp)
	jne	.L27
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$72, %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
.L27:
	.cfi_restore_state
	cmpl	$2, 12(%rsp)
	je	.L29
	cmpl	$3, 12(%rsp)
	jne	.L30
	movl	%r12d, %r8d
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
.L30:
	movl	%r12d, %r9d
	jmp	.L9
	.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:
```

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"
.LC1:
	.string	"A %d\n"
.LC2:
	.string	"B %d\n"
.LC3:
	.string	"C %d\n"
.LC4:
	.string	"D %d\n"
.LC5:
	.string	"E %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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC0(%rip), %rbx
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %r13
	leaq	24(%rsp), %rbp
.L18:
	movl	$4, 12(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	24(%rsp), %r12d
	movl	28(%rsp), %eax
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	.L3
	addl	%eax, %r12d
	leaq	32(%rsp), %r15
	leaq	48(%rsp), %r14
.L4:
	movq	%r13, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %eax
	addl	24(%rsp), %eax
	addq	$4, %r15
	movl	%eax, (%r15)
	cmpq	%r15, %r14
	jne	.L4
	testl	%r12d, %r12d
	jle	.L20
	movl	$0, 12(%rsp)
.L5:
	movl	36(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L6
	movl	$1, 12(%rsp)
	movl	%eax, %r12d
.L6:
	movl	40(%rsp), %edx
	movl	44(%rsp), %r8d
	movl	48(%rsp), %r9d
	cmpl	%edx, %r12d
	jge	.L7
	cmpl	%r8d, %edx
	jl	.L8
	cmpl	%edx, %r9d
	jle	.L10
.L9:
	movl	%r9d, %edx
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%r12d, %r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	cmpl	%r8d, %r9d
	jg	.L9
.L12:
	movl	%r8d, %edx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$3, 12(%rsp)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	%r8d, %r12d
	jl	.L8
	cmpl	%r12d, %r9d
	jg	.L9
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L13
	movl	%r12d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L29:
	movl	%r12d, %edx
	.p2align 4,,10
	.p2align 3
.L10:
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$2, 12(%rsp)
	jmp	.L2
.L13:
	cmpl	$1, 12(%rsp)
	jne	.L27
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
.L3:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$72, %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
.L27:
	.cfi_restore_state
	cmpl	$2, 12(%rsp)
	je	.L29
	cmpl	$3, 12(%rsp)
	jne	.L30
	movl	%r12d, %r8d
	jmp	.L12
.L28:
	call	__stack_chk_fail@PLT
.L30:
	movl	%r12d, %r9d
	jmp	.L9
	.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:
```