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 evaluate(const char* expr, int mode) {
	int rp_data[100];
	int data_num = 0;
	int stack[100];
	int stack_num = 0;
	int i;
	/* siki wo gyaku poorando kihou ni hennkann suru */
	for (i = 0; expr[i] != '\0'; i++) {
		if (expr[i] == '+' || expr[i] == '*') {
			while (stack_num > 0 && (mode || expr[i] == '+' || stack[stack_num - 1] == '*')) {
				rp_data[data_num++] = stack[--stack_num];
			}
			stack[stack_num++] = expr[i];
		} else {
			rp_data[data_num++] = expr[i];
		}
	}
	while (stack_num > 0) {
		rp_data[data_num++] = stack[--stack_num];
	}
	/* evaluate the converted data */
	stack_num = 0;
	for (i = 0; i < data_num; i++) {
		if (rp_data[i] == '+') {
			stack[stack_num - 2] += stack[stack_num - 1];
			stack_num--;
		} else if (rp_data[i] == '*') {
			stack[stack_num - 2] *= stack[stack_num - 1];
			stack_num--;
		} else {
			stack[stack_num++] = rp_data[i] - '0';
		}
	}
	return stack[0];
}

int main(void) {
	char expr[32];
	int value;
	if (scanf("%s", expr) != 1) return 1;
	if (scanf("%d", &value) != 1) return 1;
	printf("%c\n", "IMLU"[(evaluate(expr, 0) == value) + (evaluate(expr, 1) == value) * 2]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%rdi, -840(%rbp)
	movl	%esi, -844(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L2
.L9:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L5
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L4
	jmp	.L5
.L7:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L5:
	cmpl	$0, -824(%rbp)
	jle	.L6
	cmpl	$0, -844(%rbp)
	jne	.L7
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L7
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	je	.L7
.L6:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	jmp	.L8
.L4:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L8:
	addl	$1, -820(%rbp)
.L2:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L10
.L11:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L10:
	cmpl	$0, -824(%rbp)
	jg	.L11
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L12
.L16:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$43, %eax
	jne	.L13
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$2, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L13:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	jne	.L15
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-824(%rbp), %ecx
	subl	$2, %ecx
	imull	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L15:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	leal	-48(%rcx), %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
.L14:
	addl	$1, -820(%rbp)
.L12:
	movl	-820(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jl	.L16
	movl	-416(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%c\n"
.LC2:
	.string	"IMLU"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L25
.L20:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L22
	movl	$1, %eax
	jmp	.L25
.L22:
	leaq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	sete	%al
	movzbl	%al, %ebx
	leaq	-64(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	$2, %eax
	jmp	.L24
.L23:
	movl	$0, %eax
.L24:
	addl	%ebx, %eax
	cltq
	leaq	.LC2(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L25:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$816, %rsp
	.cfi_def_cfa_offset 864
	movq	%fs:40, %rax
	movq	%rax, 808(%rsp)
	xorl	%eax, %eax
	movzbl	(%rdi), %eax
	testb	%al, %al
	je	.L22
	movl	%esi, %r10d
	leaq	1(%rdi), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	400(%rsp), %r9
	movq	%rsp, %r11
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%esi, %rax
	addq	$1, %rcx
	addl	$1, %esi
	movl	%r8d, (%rsp,%rax,4)
	movzbl	-1(%rcx), %eax
	testb	%al, %al
	je	.L59
.L15:
	leal	-42(%rax), %edi
	movsbl	%al, %r8d
	cmpb	$1, %dil
	ja	.L3
	testl	%edx, %edx
	je	.L28
	cmpb	$43, %al
	je	.L31
	testl	%r10d, %r10d
	jne	.L31
	movslq	%edx, %rax
	movslq	%esi, %rdx
	leaq	(%r11,%rdx,4), %rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L60:
	subq	$1, %rax
	movl	$42, (%rdx)
	addl	$1, %esi
	addq	$4, %rdx
	testl	%eax, %eax
	je	.L11
.L10:
	cmpl	$42, -4(%r9,%rax,4)
	movslq	%eax, %rdi
	je	.L60
	leal	1(%rdi), %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	leal	-1(%rdx), %eax
	movl	%edx, %r13d
	movl	%eax, %r12d
	cmpl	$2, %eax
	jle	.L29
	movslq	%edx, %rax
	movl	%edx, %ebp
	leaq	-16(%r9,%rax,4), %rbx
	shrl	$2, %ebp
	movslq	%esi, %rax
	leal	-1(%rbp), %r14d
	leaq	(%r11,%rax,4), %rdi
	leaq	-16(%rbx), %rax
	salq	$4, %r14
	movq	%rax, %rbp
	subq	%r14, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L61:
	subq	$16, %rax
.L8:
	movdqu	(%rbx), %xmm0
	addq	$16, %rdi
	movq	%rax, %rbx
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rdi)
	cmpq	%rbp, %rax
	jne	.L61
	movl	%edx, %eax
	andl	$-4, %eax
	leal	(%rsi,%rax), %edi
	subl	%eax, %edx
	cmpl	%eax, %r13d
	je	.L12
	leal	-1(%rdx), %eax
.L7:
	movslq	%eax, %r13
	movslq	%edi, %rbp
	leal	1(%rdi), %ebx
	movl	400(%rsp,%r13,4), %r13d
	movl	%r13d, (%rsp,%rbp,4)
	testl	%eax, %eax
	je	.L12
	leal	-2(%rdx), %eax
	movslq	%ebx, %rbx
	addl	$2, %edi
	movslq	%eax, %rbp
	movl	400(%rsp,%rbp,4), %ebp
	movl	%ebp, (%rsp,%rbx,4)
	testl	%eax, %eax
	je	.L12
	leal	-3(%rdx), %eax
	movslq	%edi, %rdi
	cltq
	movl	400(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rdi,4)
.L12:
	leal	1(%rsi,%r12), %esi
.L11:
	movl	$1, %edx
	xorl	%edi, %edi
.L4:
	movzbl	(%rcx), %eax
	addq	$1, %rcx
	movl	%r8d, 400(%rsp,%rdi,4)
	testb	%al, %al
	jne	.L15
.L59:
	testl	%edx, %edx
	je	.L16
	leal	-1(%rdx), %eax
	movl	%edx, %ebx
	movl	%eax, %r10d
	cmpl	$2, %eax
	jle	.L30
	movslq	%edx, %rax
	movl	%edx, %r9d
	movq	%rsp, %r8
	leaq	384(%rsp,%rax,4), %rdi
	shrl	$2, %r9d
	movslq	%esi, %rax
	leal	-1(%r9), %r11d
	leaq	(%r8,%rax,4), %rcx
	leaq	-16(%rdi), %rax
	salq	$4, %r11
	movq	%rax, %r9
	subq	%r11, %r9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L62:
	subq	$16, %rax
.L18:
	movdqu	(%rdi), %xmm0
	addq	$16, %rcx
	movq	%rax, %rdi
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rcx)
	cmpq	%r9, %rax
	jne	.L62
	movl	%edx, %eax
	andl	$-4, %eax
	leal	(%rsi,%rax), %ecx
	subl	%eax, %edx
	cmpl	%eax, %ebx
	je	.L21
	leal	-1(%rdx), %eax
.L17:
	movslq	%eax, %r11
	movslq	%ecx, %r9
	leal	1(%rcx), %edi
	movl	400(%rsp,%r11,4), %r11d
	movl	%r11d, (%rsp,%r9,4)
	testl	%eax, %eax
	je	.L21
	leal	-2(%rdx), %eax
	movslq	%edi, %rdi
	addl	$2, %ecx
	movslq	%eax, %r9
	movl	400(%rsp,%r9,4), %r9d
	movl	%r9d, (%rsp,%rdi,4)
	testl	%eax, %eax
	je	.L21
	leal	-3(%rdx), %eax
	movslq	%ecx, %rcx
	cltq
	movl	400(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rcx,4)
.L21:
	leal	1(%rsi,%r10), %esi
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	cmpl	$42, %edx
	je	.L63
	movslq	%ecx, %rdi
	subl	$48, %edx
	addl	$1, %ecx
	movl	%edx, 400(%rsp,%rdi,4)
.L24:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L22
.L26:
	movl	(%r8,%rax,4), %edx
	cmpl	$43, %edx
	jne	.L23
	leal	-2(%rcx), %edx
	subl	$1, %ecx
	addq	$1, %rax
	movslq	%edx, %rdx
	movslq	%ecx, %rdi
	movl	400(%rsp,%rdi,4), %edi
	addl	%edi, 400(%rsp,%rdx,4)
	cmpl	%eax, %esi
	jg	.L26
.L22:
	movl	400(%rsp), %eax
	movq	808(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L64
	addq	$816, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	leal	-2(%rcx), %edx
	subl	$1, %ecx
	movslq	%edx, %rdx
	movslq	%ecx, %r9
	movl	400(%rsp,%rdx,4), %edi
	imull	400(%rsp,%r9,4), %edi
	movl	%edi, 400(%rsp,%rdx,4)
	jmp	.L24
.L29:
	movl	%esi, %edi
	jmp	.L7
.L28:
	xorl	%edi, %edi
	movl	$1, %edx
	jmp	.L4
.L30:
	movl	%esi, %ecx
	movq	%rsp, %r8
	jmp	.L17
.L16:
	testl	%esi, %esi
	je	.L22
	movq	%rsp, %r8
	jmp	.L20
.L64:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	evaluate, .-evaluate
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%c\n"
.LC2:
	.string	"IMLU"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L66
.L68:
	movl	$1, %eax
.L65:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L71
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L66:
	.cfi_restore_state
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L68
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	evaluate
	movl	12(%rsp), %r12d
	movl	$1, %esi
	movq	%rbp, %rdi
	movl	%eax, %ebx
	call	evaluate
	xorl	%edx, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	cmpl	%eax, %r12d
	sete	%dl
	xorl	%eax, %eax
	cmpl	%r12d, %ebx
	sete	%al
	leal	(%rax,%rdx,2), %eax
	leaq	.LC2(%rip), %rdx
	cltq
	movsbl	(%rdx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L65
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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
	.p2align 4
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$816, %rsp
	.cfi_def_cfa_offset 864
	movq	%fs:40, %rax
	movq	%rax, 808(%rsp)
	xorl	%eax, %eax
	movzbl	(%rdi), %eax
	testb	%al, %al
	je	.L22
	movl	%esi, %r10d
	leaq	1(%rdi), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	leaq	400(%rsp), %r9
	movq	%rsp, %r11
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	movslq	%esi, %rax
	addq	$1, %rcx
	addl	$1, %esi
	movl	%r8d, (%rsp,%rax,4)
	movzbl	-1(%rcx), %eax
	testb	%al, %al
	je	.L59
.L15:
	leal	-42(%rax), %edi
	movsbl	%al, %r8d
	cmpb	$1, %dil
	ja	.L3
	testl	%edx, %edx
	je	.L28
	cmpb	$43, %al
	je	.L31
	testl	%r10d, %r10d
	jne	.L31
	movslq	%edx, %rax
	movslq	%esi, %rdx
	leaq	(%r11,%rdx,4), %rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L60:
	subq	$1, %rax
	movl	$42, (%rdx)
	addl	$1, %esi
	addq	$4, %rdx
	testl	%eax, %eax
	je	.L11
.L10:
	cmpl	$42, -4(%r9,%rax,4)
	movslq	%eax, %rdi
	je	.L60
	leal	1(%rdi), %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L31:
	leal	-1(%rdx), %eax
	movl	%edx, %r13d
	movl	%eax, %r12d
	cmpl	$2, %eax
	jle	.L29
	movslq	%edx, %rax
	movl	%edx, %ebp
	leaq	-16(%r9,%rax,4), %rbx
	shrl	$2, %ebp
	movslq	%esi, %rax
	leal	-1(%rbp), %r14d
	leaq	(%r11,%rax,4), %rdi
	leaq	-16(%rbx), %rax
	salq	$4, %r14
	movq	%rax, %rbp
	subq	%r14, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L61:
	subq	$16, %rax
.L8:
	movdqu	(%rbx), %xmm0
	addq	$16, %rdi
	movq	%rax, %rbx
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rdi)
	cmpq	%rbp, %rax
	jne	.L61
	movl	%edx, %eax
	andl	$-4, %eax
	leal	(%rsi,%rax), %edi
	subl	%eax, %edx
	cmpl	%eax, %r13d
	je	.L12
	leal	-1(%rdx), %eax
.L7:
	movslq	%eax, %r13
	movslq	%edi, %rbp
	leal	1(%rdi), %ebx
	movl	400(%rsp,%r13,4), %r13d
	movl	%r13d, (%rsp,%rbp,4)
	testl	%eax, %eax
	je	.L12
	leal	-2(%rdx), %eax
	movslq	%ebx, %rbx
	addl	$2, %edi
	movslq	%eax, %rbp
	movl	400(%rsp,%rbp,4), %ebp
	movl	%ebp, (%rsp,%rbx,4)
	testl	%eax, %eax
	je	.L12
	leal	-3(%rdx), %eax
	movslq	%edi, %rdi
	cltq
	movl	400(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rdi,4)
.L12:
	leal	1(%rsi,%r12), %esi
.L11:
	movl	$1, %edx
	xorl	%edi, %edi
.L4:
	movzbl	(%rcx), %eax
	addq	$1, %rcx
	movl	%r8d, 400(%rsp,%rdi,4)
	testb	%al, %al
	jne	.L15
.L59:
	testl	%edx, %edx
	je	.L16
	leal	-1(%rdx), %eax
	movl	%edx, %ebx
	movl	%eax, %r10d
	cmpl	$2, %eax
	jle	.L30
	movslq	%edx, %rax
	movl	%edx, %r9d
	movq	%rsp, %r8
	leaq	384(%rsp,%rax,4), %rdi
	shrl	$2, %r9d
	movslq	%esi, %rax
	leal	-1(%r9), %r11d
	leaq	(%r8,%rax,4), %rcx
	leaq	-16(%rdi), %rax
	salq	$4, %r11
	movq	%rax, %r9
	subq	%r11, %r9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L62:
	subq	$16, %rax
.L18:
	movdqu	(%rdi), %xmm0
	addq	$16, %rcx
	movq	%rax, %rdi
	pshufd	$27, %xmm0, %xmm0
	movups	%xmm0, -16(%rcx)
	cmpq	%r9, %rax
	jne	.L62
	movl	%edx, %eax
	andl	$-4, %eax
	leal	(%rsi,%rax), %ecx
	subl	%eax, %edx
	cmpl	%eax, %ebx
	je	.L21
	leal	-1(%rdx), %eax
.L17:
	movslq	%eax, %r11
	movslq	%ecx, %r9
	leal	1(%rcx), %edi
	movl	400(%rsp,%r11,4), %r11d
	movl	%r11d, (%rsp,%r9,4)
	testl	%eax, %eax
	je	.L21
	leal	-2(%rdx), %eax
	movslq	%edi, %rdi
	addl	$2, %ecx
	movslq	%eax, %r9
	movl	400(%rsp,%r9,4), %r9d
	movl	%r9d, (%rsp,%rdi,4)
	testl	%eax, %eax
	je	.L21
	leal	-3(%rdx), %eax
	movslq	%ecx, %rcx
	cltq
	movl	400(%rsp,%rax,4), %eax
	movl	%eax, (%rsp,%rcx,4)
.L21:
	leal	1(%rsi,%r10), %esi
.L20:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L23:
	cmpl	$42, %edx
	je	.L63
	movslq	%ecx, %rdi
	subl	$48, %edx
	addl	$1, %ecx
	movl	%edx, 400(%rsp,%rdi,4)
.L24:
	addq	$1, %rax
	cmpl	%eax, %esi
	jle	.L22
.L26:
	movl	(%r8,%rax,4), %edx
	cmpl	$43, %edx
	jne	.L23
	leal	-2(%rcx), %edx
	subl	$1, %ecx
	addq	$1, %rax
	movslq	%edx, %rdx
	movslq	%ecx, %rdi
	movl	400(%rsp,%rdi,4), %edi
	addl	%edi, 400(%rsp,%rdx,4)
	cmpl	%eax, %esi
	jg	.L26
.L22:
	movl	400(%rsp), %eax
	movq	808(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L64
	addq	$816, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	leal	-2(%rcx), %edx
	subl	$1, %ecx
	movslq	%edx, %rdx
	movslq	%ecx, %r9
	movl	400(%rsp,%rdx,4), %edi
	imull	400(%rsp,%r9,4), %edi
	movl	%edi, 400(%rsp,%rdx,4)
	jmp	.L24
.L29:
	movl	%esi, %edi
	jmp	.L7
.L28:
	xorl	%edi, %edi
	movl	$1, %edx
	jmp	.L4
.L30:
	movl	%esi, %ecx
	movq	%rsp, %r8
	jmp	.L17
.L16:
	testl	%esi, %esi
	je	.L22
	movq	%rsp, %r8
	jmp	.L20
.L64:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	evaluate, .-evaluate
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%c\n"
.LC2:
	.string	"IMLU"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$64, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L66
.L68:
	movl	$1, %eax
.L65:
	movq	56(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L71
	addq	$64, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L66:
	.cfi_restore_state
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	.LC1(%rip), %rdi
	call	__isoc99_scanf@PLT
	subl	$1, %eax
	jne	.L68
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	evaluate
	movl	12(%rsp), %r12d
	movl	$1, %esi
	movq	%rbp, %rdi
	movl	%eax, %ebx
	call	evaluate
	xorl	%edx, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	cmpl	%eax, %r12d
	sete	%dl
	xorl	%eax, %eax
	cmpl	%r12d, %ebx
	sete	%al
	leal	(%rax,%rdx,2), %eax
	leaq	.LC2(%rip), %rdx
	cltq
	movsbl	(%rdx,%rax), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L65
.L71:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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 evaluate(const char* expr, int mode) {
	int rp_data[100];
	int data_num = 0;
	int stack[100];
	int stack_num = 0;
	int i;
	/* siki wo gyaku poorando kihou ni hennkann suru */
	for (i = 0; expr[i] != '\0'; i++) {
		if (expr[i] == '+' || expr[i] == '*') {
			while (stack_num > 0 && (mode || expr[i] == '+' || stack[stack_num - 1] == '*')) {
				rp_data[data_num++] = stack[--stack_num];
			}
			stack[stack_num++] = expr[i];
		} else {
			rp_data[data_num++] = expr[i];
		}
	}
	while (stack_num > 0) {
		rp_data[data_num++] = stack[--stack_num];
	}
	/* evaluate the converted data */
	stack_num = 0;
	for (i = 0; i < data_num; i++) {
		if (rp_data[i] == '+') {
			stack[stack_num - 2] += stack[stack_num - 1];
			stack_num--;
		} else if (rp_data[i] == '*') {
			stack[stack_num - 2] *= stack[stack_num - 1];
			stack_num--;
		} else {
			stack[stack_num++] = rp_data[i] - '0';
		}
	}
	return stack[0];
}

int main(void) {
	char expr[32];
	int value;
	if (scanf("%s", expr) != 1) return 1;
	if (scanf("%d", &value) != 1) return 1;
	printf("%c\n", "IMLU"[(evaluate(expr, 0) == value) + (evaluate(expr, 1) == value) * 2]);
	return 0;
}
1+2*3+4
9
 0+1*3+4
7
 4+3*0+4
8
 3*1+0*4
12
 1+2*3+4
7
 0+2*3+4
7
 1+2+3+4
11
 0+2*3+4
9
 1+2*3+4
14
 4+3+2+1
11

I
 U
 M
 L
 I
 I
 I
 I
 I
 I

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 evaluate(const char* expr, int mode) {
	int rp_data[100];
	int data_num = 0;
	int stack[100];
	int stack_num = 0;
	int i;
	/* siki wo gyaku poorando kihou ni hennkann suru */
	for (i = 0; expr[i] != '\0'; i++) {
		if (expr[i] == '+' || expr[i] == '*') {
			while (stack_num > 0 && (mode || expr[i] == '+' || stack[stack_num - 1] == '*')) {
				rp_data[data_num++] = stack[--stack_num];
			}
			stack[stack_num++] = expr[i];
		} else {
			rp_data[data_num++] = expr[i];
		}
	}
	while (stack_num > 0) {
		rp_data[data_num++] = stack[--stack_num];
	}
	/* evaluate the converted data */
	stack_num = 0;
	for (i = 0; i < data_num; i++) {
		if (rp_data[i] == '+') {
			stack[stack_num - 2] += stack[stack_num - 1];
			stack_num--;
		} else if (rp_data[i] == '*') {
			stack[stack_num - 2] *= stack[stack_num - 1];
			stack_num--;
		} else {
			stack[stack_num++] = rp_data[i] - '0';
		}
	}
	return stack[0];
}

int main(void) {
	char expr[32];
	int value;
	if (scanf("%s", expr) != 1) return 1;
	if (scanf("%d", &value) != 1) return 1;
	printf("%c\n", "IMLU"[(evaluate(expr, 0) == value) + (evaluate(expr, 1) == value) * 2]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%rdi, -840(%rbp)
	movl	%esi, -844(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L2
.L9:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L5
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L4
	jmp	.L5
.L7:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L5:
	cmpl	$0, -824(%rbp)
	jle	.L6
	cmpl	$0, -844(%rbp)
	jne	.L7
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L7
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	je	.L7
.L6:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	jmp	.L8
.L4:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L8:
	addl	$1, -820(%rbp)
.L2:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L10
.L11:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L10:
	cmpl	$0, -824(%rbp)
	jg	.L11
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L12
.L16:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$43, %eax
	jne	.L13
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$2, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L13:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	jne	.L15
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-824(%rbp), %ecx
	subl	$2, %ecx
	imull	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L15:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	leal	-48(%rcx), %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
.L14:
	addl	$1, -820(%rbp)
.L12:
	movl	-820(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jl	.L16
	movl	-416(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%c\n"
.LC2:
	.string	"IMLU"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L25
.L20:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L22
	movl	$1, %eax
	jmp	.L25
.L22:
	leaq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	sete	%al
	movzbl	%al, %ebx
	leaq	-64(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	$2, %eax
	jmp	.L24
.L23:
	movl	$0, %eax
.L24:
	addl	%ebx, %eax
	cltq
	leaq	.LC2(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L25:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	evaluate
	.type	evaluate, @function
evaluate:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$848, %rsp
	movq	%rdi, -840(%rbp)
	movl	%esi, -844(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -828(%rbp)
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L2
.L9:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L5
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L4
	jmp	.L5
.L7:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L5:
	cmpl	$0, -824(%rbp)
	jle	.L6
	cmpl	$0, -844(%rbp)
	jne	.L7
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	je	.L7
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	je	.L7
.L6:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	jmp	.L8
.L4:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %ecx
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movsbl	%cl, %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L8:
	addl	$1, -820(%rbp)
.L2:
	movl	-820(%rbp), %eax
	movslq	%eax, %rdx
	movq	-840(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L10
.L11:
	subl	$1, -824(%rbp)
	movl	-828(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -828(%rbp)
	movl	-824(%rbp), %edx
	movslq	%edx, %rdx
	movl	-416(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -816(%rbp,%rax,4)
.L10:
	cmpl	$0, -824(%rbp)
	jg	.L11
	movl	$0, -824(%rbp)
	movl	$0, -820(%rbp)
	jmp	.L12
.L16:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$43, %eax
	jne	.L13
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$2, %eax
	addl	%ecx, %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L13:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %eax
	cmpl	$42, %eax
	jne	.L15
	movl	-824(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-824(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	movl	-824(%rbp), %ecx
	subl	$2, %ecx
	imull	%eax, %edx
	movslq	%ecx, %rax
	movl	%edx, -416(%rbp,%rax,4)
	subl	$1, -824(%rbp)
	jmp	.L14
.L15:
	movl	-820(%rbp), %eax
	cltq
	movl	-816(%rbp,%rax,4), %ecx
	movl	-824(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -824(%rbp)
	leal	-48(%rcx), %edx
	cltq
	movl	%edx, -416(%rbp,%rax,4)
.L14:
	addl	$1, -820(%rbp)
.L12:
	movl	-820(%rbp), %eax
	cmpl	-828(%rbp), %eax
	jl	.L16
	movl	-416(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	evaluate, .-evaluate
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC3:
	.string	"%c\n"
.LC2:
	.string	"IMLU"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L20
	movl	$1, %eax
	jmp	.L25
.L20:
	leaq	-68(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L22
	movl	$1, %eax
	jmp	.L25
.L22:
	leaq	-64(%rbp), %rax
	movl	$0, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	sete	%al
	movzbl	%al, %ebx
	leaq	-64(%rbp), %rax
	movl	$1, %esi
	movq	%rax, %rdi
	call	evaluate
	movl	-68(%rbp), %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	$2, %eax
	jmp	.L24
.L23:
	movl	$0, %eax
.L24:
	addl	%ebx, %eax
	cltq
	leaq	.LC2(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbl	%al, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L25:
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
