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>
#define STORE 5
struct SoldQuantity {
	int am_quantity;
	int pm_quantity;
	int total_quantity;
};

int main(void){
	struct SoldQuantity data[STORE];
	char str[] = { 'A','B','C','D','E' };
	int i,flag,max,max_index=0;

	while (1) {
		flag = 0;
		max = 0;
		for (i = 0; i < STORE; i++) {
			scanf("%d %d",&data[i].am_quantity, &data[i].pm_quantity);
			if (data[0].am_quantity == 0 && data[0].pm_quantity == 0) {
				flag = 1;
				break;
			}
			data[i].total_quantity = data[i].am_quantity + data[i].pm_quantity;
		}
		if (flag)break;
		for (i = 0; i < STORE; i++) {
			if (max < data[i].total_quantity) {
				max = data[i].total_quantity;
				max_index = i;
			}
		}
		printf("%c %d\n",str[max_index],max);
	}
	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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -13(%rbp)
	movb	$69, -9(%rbp)
	movl	$0, -84(%rbp)
.L11:
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L2
.L5:
	leaq	-80(%rbp), %rcx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	4(%rax), %rdx
	leaq	-80(%rbp), %rsi
	movl	-96(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$1, -92(%rbp)
	jmp	.L4
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$80, %rax
	movl	(%rax), %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$76, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	%ecx, (%rax)
	addl	$1, -96(%rbp)
.L2:
	cmpl	$4, -96(%rbp)
	jle	.L5
.L4:
	cmpl	$0, -92(%rbp)
	jne	.L15
	movl	$0, -96(%rbp)
	jmp	.L8
.L10:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L9
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -84(%rbp)
.L9:
	addl	$1, -96(%rbp)
.L8:
	cmpl	$4, -96(%rbp)
	jle	.L10
	movl	-84(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	-88(%rbp), %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movb	$69, 71(%rsp)
	movq	%rsp, %r14
	leaq	60(%rsp), %r12
	movl	$1145258561, 67(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rbx
.L3:
	xorl	%eax, %eax
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	orl	4(%rsp), %eax
	je	.L2
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	addq	$12, %rbx
	movl	%eax, -4(%rbx)
	cmpq	%rbx, %r12
	jne	.L3
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	xorl	%r13d, %r13d
.L10:
	movl	20(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L5
	movl	%edx, %eax
	movl	$1, %r13d
.L5:
	movl	32(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L6
	movl	%edx, %eax
	movl	$2, %r13d
.L6:
	movl	44(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L7
	movl	%edx, %eax
	movl	$3, %r13d
.L7:
	movl	56(%rsp), %ecx
	cmpl	%ecx, %eax
	jl	.L12
	movslq	%r13d, %rdx
	movl	%eax, %ecx
	movsbl	67(%rsp,%rdx), %edx
.L8:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	movl	$69, %edx
	movl	$4, %r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$88, %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
.L18:
	.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
	leaq	.LC1(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	movb	$69, 71(%rsp)
	movq	%rsp, %r14
	leaq	60(%rsp), %r12
	movl	$1145258561, 67(%rsp)
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rbx
.L3:
	xorl	%eax, %eax
	leaq	4(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %eax
	orl	4(%rsp), %eax
	je	.L2
	movl	4(%rbx), %eax
	addl	(%rbx), %eax
	addq	$12, %rbx
	movl	%eax, -4(%rbx)
	cmpq	%rbx, %r12
	jne	.L3
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L13
	xorl	%r13d, %r13d
.L10:
	movl	20(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L5
	movl	%edx, %eax
	movl	$1, %r13d
.L5:
	movl	32(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L6
	movl	%edx, %eax
	movl	$2, %r13d
.L6:
	movl	44(%rsp), %edx
	cmpl	%edx, %eax
	jge	.L7
	movl	%edx, %eax
	movl	$3, %r13d
.L7:
	movl	56(%rsp), %ecx
	cmpl	%ecx, %eax
	jl	.L12
	movslq	%r13d, %rdx
	movl	%eax, %ecx
	movsbl	67(%rsp,%rdx), %edx
.L8:
	movq	%r15, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L13:
	xorl	%eax, %eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	movl	$69, %edx
	movl	$4, %r13d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$88, %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
.L18:
	.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>
#define STORE 5
struct SoldQuantity {
	int am_quantity;
	int pm_quantity;
	int total_quantity;
};

int main(void){
	struct SoldQuantity data[STORE];
	char str[] = { 'A','B','C','D','E' };
	int i,flag,max,max_index=0;

	while (1) {
		flag = 0;
		max = 0;
		for (i = 0; i < STORE; i++) {
			scanf("%d %d",&data[i].am_quantity, &data[i].pm_quantity);
			if (data[0].am_quantity == 0 && data[0].pm_quantity == 0) {
				flag = 1;
				break;
			}
			data[i].total_quantity = data[i].am_quantity + data[i].pm_quantity;
		}
		if (flag)break;
		for (i = 0; i < STORE; i++) {
			if (max < data[i].total_quantity) {
				max = data[i].total_quantity;
				max_index = i;
			}
		}
		printf("%c %d\n",str[max_index],max);
	}
	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>
#define STORE 5
struct SoldQuantity {
	int am_quantity;
	int pm_quantity;
	int total_quantity;
};

int main(void){
	struct SoldQuantity data[STORE];
	char str[] = { 'A','B','C','D','E' };
	int i,flag,max,max_index=0;

	while (1) {
		flag = 0;
		max = 0;
		for (i = 0; i < STORE; i++) {
			scanf("%d %d",&data[i].am_quantity, &data[i].pm_quantity);
			if (data[0].am_quantity == 0 && data[0].pm_quantity == 0) {
				flag = 1;
				break;
			}
			data[i].total_quantity = data[i].am_quantity + data[i].pm_quantity;
		}
		if (flag)break;
		for (i = 0; i < STORE; i++) {
			if (max < data[i].total_quantity) {
				max = data[i].total_quantity;
				max_index = i;
			}
		}
		printf("%c %d\n",str[max_index],max);
	}
	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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -13(%rbp)
	movb	$69, -9(%rbp)
	movl	$0, -84(%rbp)
.L11:
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L2
.L5:
	leaq	-80(%rbp), %rcx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	4(%rax), %rdx
	leaq	-80(%rbp), %rsi
	movl	-96(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$1, -92(%rbp)
	jmp	.L4
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$80, %rax
	movl	(%rax), %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$76, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	%ecx, (%rax)
	addl	$1, -96(%rbp)
.L2:
	cmpl	$4, -96(%rbp)
	jle	.L5
.L4:
	cmpl	$0, -92(%rbp)
	jne	.L15
	movl	$0, -96(%rbp)
	jmp	.L8
.L10:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L9
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -84(%rbp)
.L9:
	addl	$1, -96(%rbp)
.L8:
	cmpl	$4, -96(%rbp)
	jle	.L10
	movl	-84(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	-88(%rbp), %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -13(%rbp)
	movb	$69, -9(%rbp)
	movl	$0, -84(%rbp)
.L11:
	movl	$0, -92(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -96(%rbp)
	jmp	.L2
.L5:
	leaq	-80(%rbp), %rcx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rcx, %rax
	leaq	4(%rax), %rdx
	leaq	-80(%rbp), %rsi
	movl	-96(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rsi, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-80(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	-76(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$1, -92(%rbp)
	jmp	.L4
.L3:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$80, %rax
	movl	(%rax), %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$76, %rax
	movl	(%rax), %eax
	addl	%eax, %ecx
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	%ecx, (%rax)
	addl	$1, -96(%rbp)
.L2:
	cmpl	$4, -96(%rbp)
	jle	.L5
.L4:
	cmpl	$0, -92(%rbp)
	jne	.L15
	movl	$0, -96(%rbp)
	jmp	.L8
.L10:
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	cmpl	%eax, -88(%rbp)
	jge	.L9
	movl	-96(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rbp, %rax
	subq	$72, %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	-96(%rbp), %eax
	movl	%eax, -84(%rbp)
.L9:
	addl	$1, -96(%rbp)
.L8:
	cmpl	$4, -96(%rbp)
	jle	.L10
	movl	-84(%rbp), %eax
	cltq
	movzbl	-13(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	-88(%rbp), %edx
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L11
.L15:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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:
