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>
#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;
}```

Assembly Code:

```assembly
	.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:
```

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	"%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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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>
#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;
}```

Assembly Code:

```assembly
	.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:
```

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	"%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:
```