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

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() {
	int i, a;
	int a_array[20000], b_array[20000];
	char op_array[20000];

	for (i = 0; i < 20000; i++) {
		scanf("%d %c %d", &a_array[i], &op_array[i], &b_array[i]);
		if (op_array[i] == '?') {
			break;
		}
	}
	for (i = 0; i < 20000; i++) {
		if (op_array[i] == '?') {
			break;
		}
		switch (op_array[i]){
		case'+':
			printf("%d\n", a_array[i] + b_array[i]);
			break;
		case'-':
			printf("%d\n", a_array[i] - b_array[i]);
			break;
		case'*':
			printf("%d\n", a_array[i] * b_array[i]);
			break;
		case'/':
			printf("%d\n", a_array[i] / b_array[i]);
			break;
		}
	}
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %c %d"
.LC1:
	.string	"%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	-176128(%rsp), %r11
	.cfi_def_cfa 11, 176184
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3912, %rsp
	.cfi_def_cfa_offset 180096
	xorl	%ebx, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 180024(%rsp)
	xorl	%eax, %eax
	leaq	160016(%rsp), %r13
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %r15
	leaq	80016(%rsp), %r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rbx
	addq	$1, %r15
	cmpq	$80000, %rbx
	je	.L13
.L3:
	movq	8(%rsp), %rbp
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rcx
	movq	%r15, %rdx
	movq	%r14, %rdi
	leaq	(%rbx,%rbp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$63, (%r15)
	jne	.L20
.L13:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$43, %al
	jne	.L9
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	addl	0(%rbp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rbx
	addq	$4, %rbp
	cmpq	$20000, %rbx
	je	.L11
.L14:
	movzbl	0(%r13,%rbx), %eax
	cmpb	$63, %al
	je	.L11
	cmpb	$45, %al
	je	.L5
	jg	.L6
	cmpb	$42, %al
	jne	.L21
	movl	0(%rbp), %edx
	imull	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$47, %al
	jne	.L9
	movl	0(%rbp), %eax
	movq	%r14, %rsi
	movl	$1, %edi
	cltd
	idivl	(%r12,%rbx,4)
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	0(%rbp), %edx
	movq	%r14, %rsi
	subl	(%r12,%rbx,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	180024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$180040, %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
.L22:
	.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 %c %d"
.LC1:
	.string	"%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	-176128(%rsp), %r11
	.cfi_def_cfa 11, 176184
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3912, %rsp
	.cfi_def_cfa_offset 180096
	xorl	%ebx, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 180024(%rsp)
	xorl	%eax, %eax
	leaq	160016(%rsp), %r13
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %r15
	leaq	80016(%rsp), %r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rbx
	addq	$1, %r15
	cmpq	$80000, %rbx
	je	.L13
.L3:
	movq	8(%rsp), %rbp
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rcx
	movq	%r15, %rdx
	movq	%r14, %rdi
	leaq	(%rbx,%rbp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$63, (%r15)
	jne	.L20
.L13:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$43, %al
	jne	.L9
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	addl	0(%rbp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rbx
	addq	$4, %rbp
	cmpq	$20000, %rbx
	je	.L11
.L14:
	movzbl	0(%r13,%rbx), %eax
	cmpb	$63, %al
	je	.L11
	cmpb	$45, %al
	je	.L5
	jg	.L6
	cmpb	$42, %al
	jne	.L21
	movl	0(%rbp), %edx
	imull	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$47, %al
	jne	.L9
	movl	0(%rbp), %eax
	movq	%r14, %rsi
	movl	$1, %edi
	cltd
	idivl	(%r12,%rbx,4)
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	0(%rbp), %edx
	movq	%r14, %rsi
	subl	(%r12,%rbx,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	180024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$180040, %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
.L22:
	.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 %c %d"
.LC1:
	.string	"%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	-176128(%rsp), %r11
	.cfi_def_cfa 11, 176184
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3912, %rsp
	.cfi_def_cfa_offset 180096
	xorl	%ebx, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 180024(%rsp)
	xorl	%eax, %eax
	leaq	160016(%rsp), %r13
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %r15
	leaq	80016(%rsp), %r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rbx
	addq	$1, %r15
	cmpq	$80000, %rbx
	je	.L13
.L3:
	movq	8(%rsp), %rbp
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rcx
	movq	%r15, %rdx
	movq	%r14, %rdi
	leaq	(%rbx,%rbp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$63, (%r15)
	jne	.L20
.L13:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$43, %al
	jne	.L9
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	addl	0(%rbp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rbx
	addq	$4, %rbp
	cmpq	$20000, %rbx
	je	.L11
.L14:
	movzbl	0(%r13,%rbx), %eax
	cmpb	$63, %al
	je	.L11
	cmpb	$45, %al
	je	.L5
	jg	.L6
	cmpb	$42, %al
	jne	.L21
	movl	0(%rbp), %edx
	imull	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$47, %al
	jne	.L9
	movl	0(%rbp), %eax
	movq	%r14, %rsi
	movl	$1, %edi
	cltd
	idivl	(%r12,%rbx,4)
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	0(%rbp), %edx
	movq	%r14, %rsi
	subl	(%r12,%rbx,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	180024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$180040, %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
.L22:
	.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
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() {
	int i, a;
	int a_array[20000], b_array[20000];
	char op_array[20000];

	for (i = 0; i < 20000; i++) {
		scanf("%d %c %d", &a_array[i], &op_array[i], &b_array[i]);
		if (op_array[i] == '?') {
			break;
		}
	}
	for (i = 0; i < 20000; i++) {
		if (op_array[i] == '?') {
			break;
		}
		switch (op_array[i]){
		case'+':
			printf("%d\n", a_array[i] + b_array[i]);
			break;
		case'-':
			printf("%d\n", a_array[i] - b_array[i]);
			break;
		case'*':
			printf("%d\n", a_array[i] * b_array[i]);
			break;
		case'/':
			printf("%d\n", a_array[i] / b_array[i]);
			break;
		}
	}
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() {
	int i, a;
	int a_array[20000], b_array[20000];
	char op_array[20000];

	for (i = 0; i < 20000; i++) {
		scanf("%d %c %d", &a_array[i], &op_array[i], &b_array[i]);
		if (op_array[i] == '?') {
			break;
		}
	}
	for (i = 0; i < 20000; i++) {
		if (op_array[i] == '?') {
			break;
		}
		switch (op_array[i]){
		case'+':
			printf("%d\n", a_array[i] + b_array[i]);
			break;
		case'-':
			printf("%d\n", a_array[i] - b_array[i]);
			break;
		case'*':
			printf("%d\n", a_array[i] * b_array[i]);
			break;
		case'/':
			printf("%d\n", a_array[i] / b_array[i]);
			break;
		}
	}
	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:

1 + 2
56 - 18
13 * 2
100 / 10
27 + 81
-1 ? 0
 1 + 2
56 - 18
13 * 2
100 / 10
27 , 81
-1 ? 0
 1 + 2
56 - 18
21 * 2
100 / 10
27 , 81
-1 ? 0
 1 + 2
56 - 18
13 * 2
100 / 10
27 + 136
-1 ? 0
 1 + 2
56 - 18
21 * 2
100 / 10
9 , 81
-1 ? 0
 2 + 2
56 - 18
13 * 2
100 / 10
27 , 81
0 ? 0
 2 + 2
56 - 18
13 * 2
100 / 10
42 , 81
0 ? 0
 1 + 2
56 - 18
21 * 2
100 / 10
3 , 81
-1 ? -1
 2 + 2
56 - 18
10 * 2
100 / 10
42 , 81
0 ? 0
 1 + 2
56 - 18
21 * 2
100 / 10
1 , 81
-1 ? -1

3
38
26
10
108
 3
38
26
10
 3
38
42
10
 3
38
26
10
163
 3
38
42
10
 4
38
26
10
 4
38
26
10
 3
38
42
10
 4
38
20
10
 3
38
42
10

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

```c
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main() {
	int i, a;
	int a_array[20000], b_array[20000];
	char op_array[20000];

	for (i = 0; i < 20000; i++) {
		scanf("%d %c %d", &a_array[i], &op_array[i], &b_array[i]);
		if (op_array[i] == '?') {
			break;
		}
	}
	for (i = 0; i < 20000; i++) {
		if (op_array[i] == '?') {
			break;
		}
		switch (op_array[i]){
		case'+':
			printf("%d\n", a_array[i] + b_array[i]);
			break;
		case'-':
			printf("%d\n", a_array[i] - b_array[i]);
			break;
		case'*':
			printf("%d\n", a_array[i] * b_array[i]);
			break;
		case'/':
			printf("%d\n", a_array[i] / b_array[i]);
			break;
		}
	}
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %c %d"
.LC1:
	.string	"%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	-176128(%rsp), %r11
	.cfi_def_cfa 11, 176184
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3912, %rsp
	.cfi_def_cfa_offset 180096
	xorl	%ebx, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 180024(%rsp)
	xorl	%eax, %eax
	leaq	160016(%rsp), %r13
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %r15
	leaq	80016(%rsp), %r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rbx
	addq	$1, %r15
	cmpq	$80000, %rbx
	je	.L13
.L3:
	movq	8(%rsp), %rbp
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rcx
	movq	%r15, %rdx
	movq	%r14, %rdi
	leaq	(%rbx,%rbp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$63, (%r15)
	jne	.L20
.L13:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$43, %al
	jne	.L9
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	addl	0(%rbp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rbx
	addq	$4, %rbp
	cmpq	$20000, %rbx
	je	.L11
.L14:
	movzbl	0(%r13,%rbx), %eax
	cmpb	$63, %al
	je	.L11
	cmpb	$45, %al
	je	.L5
	jg	.L6
	cmpb	$42, %al
	jne	.L21
	movl	0(%rbp), %edx
	imull	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$47, %al
	jne	.L9
	movl	0(%rbp), %eax
	movq	%r14, %rsi
	movl	$1, %edi
	cltd
	idivl	(%r12,%rbx,4)
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	0(%rbp), %edx
	movq	%r14, %rsi
	subl	(%r12,%rbx,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	180024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$180040, %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
.L22:
	.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 %c %d"
.LC1:
	.string	"%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	-176128(%rsp), %r11
	.cfi_def_cfa 11, 176184
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3912, %rsp
	.cfi_def_cfa_offset 180096
	xorl	%ebx, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 180024(%rsp)
	xorl	%eax, %eax
	leaq	160016(%rsp), %r13
	leaq	16(%rsp), %rax
	movq	%rax, 8(%rsp)
	movq	%r13, %r15
	leaq	80016(%rsp), %r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rbx
	addq	$1, %r15
	cmpq	$80000, %rbx
	je	.L13
.L3:
	movq	8(%rsp), %rbp
	xorl	%eax, %eax
	leaq	(%r12,%rbx), %rcx
	movq	%r15, %rdx
	movq	%r14, %rdi
	leaq	(%rbx,%rbp), %rsi
	call	__isoc99_scanf@PLT
	cmpb	$63, (%r15)
	jne	.L20
.L13:
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	cmpb	$43, %al
	jne	.L9
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	addl	0(%rbp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, %rbx
	addq	$4, %rbp
	cmpq	$20000, %rbx
	je	.L11
.L14:
	movzbl	0(%r13,%rbx), %eax
	cmpb	$63, %al
	je	.L11
	cmpb	$45, %al
	je	.L5
	jg	.L6
	cmpb	$42, %al
	jne	.L21
	movl	0(%rbp), %edx
	imull	(%r12,%rbx,4), %edx
	movq	%r14, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmpb	$47, %al
	jne	.L9
	movl	0(%rbp), %eax
	movq	%r14, %rsi
	movl	$1, %edi
	cltd
	idivl	(%r12,%rbx,4)
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	movl	0(%rbp), %edx
	movq	%r14, %rsi
	subl	(%r12,%rbx,4), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	movq	180024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$180040, %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
.L22:
	.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:
```