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>
#include <ctype.h>

#define MOD_BY 1000000007
#define SIZE_MAX 2000000

#define ESU (-1)
#define SIFUTO (-2)
#define KAKKO (-3)

int expr[SIZE_MAX];
int expr_num;
int stack[SIZE_MAX];
int stack_num;

void compile(const char* expr_str) {
	int i;
	int digit_flag=0;
	int current_number=0;
	expr_num=stack_num=0;
	for(i=0;expr_str[i]!='\0';i++) {
		if(isdigit(expr_str[i])) {
			current_number=current_number*10+expr_str[i]-'0';
			digit_flag=1;
		} else {
			if(digit_flag) {
				expr[expr_num++]=current_number;
				current_number=0;
				digit_flag=0;
			}
			switch(expr_str[i]) {
				case 'S':
					stack[stack_num++]=ESU;
					break;
				case '<':
					stack[stack_num++]=KAKKO;
					break;
				case '>':
					while(stack_num>0 && stack[stack_num-1]!=KAKKO) {
						expr[expr_num++]=stack[--stack_num];
					}
					stack[stack_num++]=SIFUTO;
					i++;
					break;
				case ')':
					while(stack_num>0 && stack[--stack_num]!=KAKKO) {
						expr[expr_num++]=stack[stack_num];
					}
					break;
			}
		}
	}
	if(digit_flag) {
		expr[expr_num++]=current_number;
		digit_flag=0;
	}
	while(stack_num>0) {
		expr[expr_num++]=stack[--stack_num];
	}
}

int run(void) {
	int i;
	stack_num=0;
	for(i=0;i<expr_num;i++) {
		if(expr[i]==ESU) {
			int ret=0,now=stack[stack_num-1],left=stack[stack_num-1];
			while(left>0) {
				if(left&1) {
					ret+=now;
					if(ret>=MOD_BY)ret-=MOD_BY;
				}
				now+=now;
				if(now>=MOD_BY)now-=MOD_BY;
				left>>=1;
			}
			stack[stack_num-1]=ret;
		} else if(expr[i]==SIFUTO) {
			if(stack[stack_num-1]<32) {
				stack[stack_num-2]>>=stack[stack_num-1];
			} else {
				stack[stack_num-2]=0;
			}
			stack_num--;
		} else if(expr[i]>=0) {
			stack[stack_num++]=expr[i];
		}
	}
	return stack[0];
}

int main(void) {
	static char input[SIZE_MAX];
	while(fgets(input,sizeof(input),stdin)!=NULL && input[0]!='#') {
		int i;
		int expect_number=1;
		for(i=0;input[i];i++);
		for(i--;i>=0;i--) {
			if(input[i]=='>') {
				if(expect_number) {
					input[i]=')';
				} else {
					i--;
					expect_number=1;
				}
			} else if(isdigit(input[i])) {
				expect_number=0;
			} else if(input[i]=='S') {
				expect_number=0;
			}
		}
		compile(input);
		printf("%d\n",run());
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	expr
	.bss
	.align 32
	.type	expr, @object
	.size	expr, 8000000
expr:
	.zero	8000000
	.globl	expr_num
	.align 4
	.type	expr_num, @object
	.size	expr_num, 4
expr_num:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 8000000
stack:
	.zero	8000000
	.globl	stack_num
	.align 4
	.type	stack_num, @object
	.size	stack_num, 4
stack_num:
	.zero	4
	.text
	.globl	compile
	.type	compile, @function
compile:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, stack_num(%rip)
	movl	stack_num(%rip), %eax
	movl	%eax, expr_num(%rip)
	movl	$0, -12(%rbp)
	jmp	.L2
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L3
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	addl	%ecx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	cmpl	$0, -8(%rbp)
	je	.L5
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L6
	cmpl	$83, %eax
	jg	.L4
	cmpl	$62, %eax
	je	.L10
	cmpl	$62, %eax
	jg	.L4
	cmpl	$41, %eax
	je	.L13
	cmpl	$60, %eax
	je	.L9
	jmp	.L4
.L6:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-1, (%rdx,%rax)
	jmp	.L4
.L9:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-3, (%rdx,%rax)
	jmp	.L4
.L12:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L10:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L11
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L12
.L11:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-2, (%rdx,%rax)
	addl	$1, -12(%rbp)
	jmp	.L4
.L15:
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L13:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L20
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L15
.L20:
	nop
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L16
	cmpl	$0, -8(%rbp)
	je	.L18
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jg	.L19
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	compile, .-compile
	.globl	run
	.type	run, @function
run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, stack_num(%rip)
	movl	$0, -16(%rbp)
	jmp	.L22
.L32:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, -12(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L27:
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L25
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	cmpl	$1000000006, -12(%rbp)
	jle	.L25
	subl	$1000000007, -12(%rbp)
.L25:
	sall	-8(%rbp)
	cmpl	$1000000006, -8(%rbp)
	jle	.L26
	subl	$1000000007, -8(%rbp)
.L26:
	sarl	-4(%rbp)
.L24:
	cmpl	$0, -4(%rbp)
	jg	.L27
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L28
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-2, %eax
	jne	.L29
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$31, %eax
	jg	.L30
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	stack_num(%rip), %ecx
	leal	-2(%rcx), %esi
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %ecx
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L31
.L30:
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$0, (%rdx,%rax)
.L31:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	expr(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L28:
	addl	$1, -16(%rbp)
.L22:
	movl	expr_num(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L32
	movl	stack(%rip), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	run, .-run
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L35
.L45:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	addl	$1, -8(%rbp)
.L36:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L37
	subl	$1, -8(%rbp)
	jmp	.L38
.L43:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$62, %al
	jne	.L39
	cmpl	$0, -4(%rbp)
	je	.L40
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movb	$41, (%rax,%rdx)
	jmp	.L41
.L40:
	subl	$1, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L41
.L39:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rcx
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L42
	movl	$0, -4(%rbp)
	jmp	.L41
.L42:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L41
	movl	$0, -4(%rbp)
.L41:
	subl	$1, -8(%rbp)
.L38:
	cmpl	$0, -8(%rbp)
	jns	.L43
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	compile
	call	run
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L35:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$2000000, %esi
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L44
	movzbl	input.0(%rip), %eax
	cmpb	$35, %al
	jne	.L45
.L44:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.local	input.0
	.comm	input.0,2000000,32
	.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	compile
	.type	compile, @function
compile:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	$0, stack_num(%rip)
	movl	$0, expr_num(%rip)
	movsbl	(%rdi), %ebx
	testb	%bl, %bl
	je	.L1
	movq	%rdi, %rbp
	call	__ctype_b_loc@PLT
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	xorl	%edi, %edi
	movq	(%rax), %r10
	xorl	%esi, %esi
	xorl	%eax, %eax
	leaq	stack(%rip), %r9
	leaq	expr(%rip), %r8
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L57:
	leal	(%r11,%r11,4), %edx
	movl	$1, %edi
	leal	-48(%rbx,%rdx,2), %r11d
.L5:
	addl	$1, %esi
	movslq	%esi, %rdx
	addq	%rbp, %rdx
	movsbl	(%rdx), %ebx
	testb	%bl, %bl
	je	.L56
.L19:
	movsbq	%bl, %rcx
	testb	$8, 1(%r10,%rcx,2)
	jne	.L57
	testl	%edi, %edi
	je	.L6
	movslq	expr_num(%rip), %rcx
	leal	1(%rcx), %edi
	movl	%r11d, (%r8,%rcx,4)
	xorl	%r11d, %r11d
	movl	%edi, expr_num(%rip)
	movzbl	(%rdx), %ebx
.L6:
	cmpb	$62, %bl
	je	.L7
	jg	.L8
	cmpb	$41, %bl
	je	.L9
	cmpb	$60, %bl
	jne	.L26
	leal	1(%rax), %edx
	addl	$1, %esi
	cltq
	xorl	%edi, %edi
	movl	%edx, stack_num(%rip)
	movl	$-3, (%r9,%rax,4)
	movl	%edx, %eax
	movslq	%esi, %rdx
	addq	%rbp, %rdx
	movsbl	(%rdx), %ebx
	testb	%bl, %bl
	jne	.L19
	.p2align 4,,10
	.p2align 3
.L56:
	testl	%edi, %edi
	je	.L20
	movslq	expr_num(%rip), %rdx
	leaq	expr(%rip), %r8
	leal	1(%rdx), %ecx
	movl	%r11d, (%r8,%rdx,4)
	movl	%ecx, expr_num(%rip)
.L20:
	testl	%eax, %eax
	je	.L1
	leal	-1(%rax), %ecx
	movl	expr_num(%rip), %r10d
	movl	%eax, %ebx
	movl	%ecx, %r11d
	cmpl	$2, %ecx
	jle	.L27
	movslq	%r10d, %rdx
	leaq	expr(%rip), %r8
	leaq	stack(%rip), %r9
	leaq	(%r8,%rdx,4), %rsi
	movslq	%eax, %rdx
	leaq	-16(%r9,%rdx,4), %rcx
	movl	%eax, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %edi
	leaq	16(%rsi), %rdx
	salq	$4, %rdi
	addq	%rdx, %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L58:
	addq	$16, %rdx
.L23:
	movdqu	(%rcx), %xmm1
	subq	$16, %rcx
	pshufd	$27, %xmm1, %xmm0
	movups	%xmm0, (%rsi)
	movq	%rdx, %rsi
	cmpq	%rdi, %rdx
	jne	.L58
	movl	%eax, %ecx
	andl	$-4, %ecx
	subl	%ecx, %eax
	leal	(%r10,%rcx), %edx
	cmpl	%ebx, %ecx
	je	.L24
	leal	-1(%rax), %ecx
.L22:
	movslq	%ecx, %rbx
	movslq	%edx, %rdi
	leal	1(%rdx), %esi
	movl	(%r9,%rbx,4), %ebx
	movl	%ebx, (%r8,%rdi,4)
	testl	%ecx, %ecx
	je	.L24
	leal	-2(%rax), %ecx
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	%ecx, %rdi
	movl	(%r9,%rdi,4), %edi
	movl	%edi, (%r8,%rsi,4)
	testl	%ecx, %ecx
	je	.L24
	subl	$3, %eax
	movslq	%edx, %rdx
	cltq
	movl	(%r9,%rax,4), %eax
	movl	%eax, (%r8,%rdx,4)
.L24:
	movl	$0, stack_num(%rip)
	leal	1(%r10,%r11), %eax
	movl	%eax, expr_num(%rip)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpb	$83, %bl
	jne	.L26
	leal	1(%rax), %edx
	cltq
	xorl	%edi, %edi
	movl	$-1, (%r9,%rax,4)
	movl	%edx, %eax
	movl	%edx, stack_num(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	je	.L26
	leal	-1(%rax), %edi
	movslq	%eax, %rbx
	movslq	expr_num(%rip), %rcx
	xorl	%r12d, %r12d
	movslq	%edi, %rdx
	subq	$2, %rbx
	movl	%edi, %edi
	subq	%rdi, %rbx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	subq	$1, %rdx
	movl	%edi, (%r8,%rcx,4)
	leal	1(%rcx), %r13d
	movl	$1, %r12d
	addq	$1, %rcx
	cmpq	%rdx, %rbx
	je	.L59
.L14:
	movl	(%r9,%rdx,4), %edi
	movl	%edx, %eax
	cmpl	$-3, %edi
	jne	.L17
	movl	%edx, stack_num(%rip)
	testb	%r12b, %r12b
	je	.L26
	movl	%ecx, expr_num(%rip)
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%edi, %edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	je	.L25
	movslq	%eax, %rcx
	movslq	expr_num(%rip), %rdx
	xorl	%r12d, %r12d
	leaq	(%r9,%rcx,4), %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edi, (%r8,%rdx,4)
	leal	1(%rdx), %ebx
	subq	$4, %rcx
	addq	$1, %rdx
	movl	$1, %r12d
	testl	%eax, %eax
	je	.L60
.L13:
	movl	-4(%rcx), %edi
	movslq	%eax, %rbx
	leal	-1(%rbx), %eax
	cmpl	$-3, %edi
	jne	.L15
	testb	%r12b, %r12b
	je	.L16
	movl	%edx, expr_num(%rip)
.L16:
	leal	1(%rbx), %eax
.L12:
	movl	%eax, stack_num(%rip)
	addl	$1, %esi
	xorl	%edi, %edi
	movl	$-2, (%r9,%rbx,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L60:
	movl	%ebx, expr_num(%rip)
	movl	$1, %eax
	xorl	%ebx, %ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L59:
	movl	%eax, stack_num(%rip)
	xorl	%edi, %edi
	movl	%r13d, expr_num(%rip)
	jmp	.L5
.L27:
	movl	%r10d, %edx
	leaq	expr(%rip), %r8
	leaq	stack(%rip), %r9
	jmp	.L22
.L25:
	xorl	%ebx, %ebx
	movl	$1, %eax
	jmp	.L12
	.cfi_endproc
.LFE25:
	.size	compile, .-compile
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB26:
	.cfi_startproc
	endbr64
	movl	$0, stack_num(%rip)
	movl	expr_num(%rip), %eax
	testl	%eax, %eax
	jle	.L85
	leaq	expr(%rip), %rsi
	leal	-1(%rax), %edx
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%r11d, %r11d
	leaq	4(%rsi), %rax
	xorl	%edi, %edi
	leaq	stack(%rip), %r9
	leaq	(%rax,%rdx,4), %r10
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L70:
	testl	%eax, %eax
	js	.L69
	movslq	%edi, %rdx
	movl	$1, %r11d
	addl	$1, %edi
	movl	%eax, (%r9,%rdx,4)
.L69:
	addq	$4, %rsi
	cmpq	%rsi, %r10
	je	.L88
.L72:
	movl	(%rsi), %eax
	cmpl	$-1, %eax
	je	.L89
	cmpl	$-2, %eax
	jne	.L70
	leal	-1(%rdi), %eax
	subl	$2, %edi
	movslq	%eax, %rdx
	movl	(%r9,%rdx,4), %ecx
	cmpl	$31, %ecx
	jg	.L75
	movslq	%edi, %rdi
	movl	(%r9,%rdi,4), %edx
	sarl	%cl, %edx
.L71:
	addq	$4, %rsi
	movl	%edx, (%r9,%rdi,4)
	movl	$1, %r11d
	movl	%eax, %edi
	cmpq	%rsi, %r10
	jne	.L72
.L88:
	testb	%r11b, %r11b
	je	.L63
	movl	%edi, stack_num(%rip)
.L63:
	movl	stack(%rip), %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L89:
	.cfi_restore_state
	leal	-1(%rdi), %ebx
	movslq	%ebx, %rbx
	movl	(%r9,%rbx,4), %eax
	testl	%eax, %eax
	jle	.L74
	movl	%eax, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L68:
	testb	$1, %dl
	je	.L66
	addl	%eax, %ecx
	leal	-1000000007(%rcx), %r8d
	cmpl	$1000000006, %ecx
	cmovg	%r8d, %ecx
.L66:
	addl	%eax, %eax
	cmpl	$1000000006, %eax
	leal	-1000000007(%rax), %r8d
	cmovg	%r8d, %eax
	sarl	%edx
	jne	.L68
	movl	%ecx, (%r9,%rbx,4)
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L75:
	xorl	%edx, %edx
	movslq	%edi, %rdi
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L74:
	xorl	%ecx, %ecx
	movl	%ecx, (%r9,%rbx,4)
	jmp	.L69
.L85:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	movl	stack(%rip), %eax
	ret
	.cfi_endproc
.LFE26:
	.size	run, .-run
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	input.0(%rip), %r15
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L91:
	movq	stdin(%rip), %rdx
	movl	$2000000, %esi
	movq	%r15, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L104
	movzbl	(%r15), %edx
	cmpb	$35, %dl
	je	.L104
	xorl	%eax, %eax
	testb	%dl, %dl
	je	.L101
	.p2align 4,,10
	.p2align 3
.L92:
	movl	%eax, %ebx
	addq	$1, %rax
	movl	%edx, %ebp
	movzbl	(%r15,%rax), %edx
	testb	%dl, %dl
	jne	.L92
	movl	$1, %r14d
	movslq	%ebx, %r13
	cmpb	$62, %bpl
	je	.L135
	.p2align 4,,10
	.p2align 3
.L94:
	call	__ctype_b_loc@PLT
	addq	%r15, %r13
	movq	(%rax), %rdx
.L99:
	subl	$1, %ebx
	movsbq	%bpl, %rax
	movl	%ebx, %ecx
	testb	$8, 1(%rdx,%rax,2)
	jne	.L100
	cmpb	$83, %bpl
	je	.L100
	cmpl	$-1, %ebx
	je	.L101
.L103:
	movslq	%ebx, %r13
	movzbl	(%r15,%r13), %ebp
	movslq	%ebx, %r13
	cmpb	$62, %bpl
	jne	.L94
.L135:
	testl	%r14d, %r14d
	je	.L105
.L98:
	subl	$1, %ebx
	movb	$41, (%r15,%r13)
	movl	$1, %r14d
	cmpl	$-1, %ebx
	jne	.L103
	.p2align 4,,10
	.p2align 3
.L101:
	movq	%r15, %rdi
	call	compile
	call	run
	movq	%r12, %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L100:
	cmpl	$-1, %ebx
	je	.L101
	movzbl	-1(%r13), %ebp
	cmpb	$62, %bpl
	je	.L95
	subq	$1, %r13
	xorl	%r14d, %r14d
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L105:
	movl	%ebx, %ecx
.L95:
	subl	$2, %ecx
	movl	%ecx, %ebx
	js	.L101
	movslq	%ecx, %r13
	movzbl	(%r15,%r13), %ebp
	cmpb	$62, %bpl
	je	.L98
	movl	$1, %r14d
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L104:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.local	input.0
	.comm	input.0,2000000,32
	.globl	stack_num
	.bss
	.align 4
	.type	stack_num, @object
	.size	stack_num, 4
stack_num:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 8000000
stack:
	.zero	8000000
	.globl	expr_num
	.align 4
	.type	expr_num, @object
	.size	expr_num, 4
expr_num:
	.zero	4
	.globl	expr
	.align 32
	.type	expr, @object
	.size	expr, 8000000
expr:
	.zero	8000000
	.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	compile
	.type	compile, @function
compile:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	movl	$0, stack_num(%rip)
	movl	$0, expr_num(%rip)
	movsbl	(%rdi), %ebx
	testb	%bl, %bl
	je	.L1
	movq	%rdi, %rbp
	call	__ctype_b_loc@PLT
	movq	%rbp, %rdx
	xorl	%r11d, %r11d
	xorl	%edi, %edi
	movq	(%rax), %r10
	xorl	%esi, %esi
	xorl	%eax, %eax
	leaq	stack(%rip), %r9
	leaq	expr(%rip), %r8
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L57:
	leal	(%r11,%r11,4), %edx
	movl	$1, %edi
	leal	-48(%rbx,%rdx,2), %r11d
.L5:
	addl	$1, %esi
	movslq	%esi, %rdx
	addq	%rbp, %rdx
	movsbl	(%rdx), %ebx
	testb	%bl, %bl
	je	.L56
.L19:
	movsbq	%bl, %rcx
	testb	$8, 1(%r10,%rcx,2)
	jne	.L57
	testl	%edi, %edi
	je	.L6
	movslq	expr_num(%rip), %rcx
	leal	1(%rcx), %edi
	movl	%r11d, (%r8,%rcx,4)
	xorl	%r11d, %r11d
	movl	%edi, expr_num(%rip)
	movzbl	(%rdx), %ebx
.L6:
	cmpb	$62, %bl
	je	.L7
	jg	.L8
	cmpb	$41, %bl
	je	.L9
	cmpb	$60, %bl
	jne	.L26
	leal	1(%rax), %edx
	addl	$1, %esi
	cltq
	xorl	%edi, %edi
	movl	%edx, stack_num(%rip)
	movl	$-3, (%r9,%rax,4)
	movl	%edx, %eax
	movslq	%esi, %rdx
	addq	%rbp, %rdx
	movsbl	(%rdx), %ebx
	testb	%bl, %bl
	jne	.L19
	.p2align 4,,10
	.p2align 3
.L56:
	testl	%edi, %edi
	je	.L20
	movslq	expr_num(%rip), %rdx
	leaq	expr(%rip), %r8
	leal	1(%rdx), %ecx
	movl	%r11d, (%r8,%rdx,4)
	movl	%ecx, expr_num(%rip)
.L20:
	testl	%eax, %eax
	je	.L1
	leal	-1(%rax), %ecx
	movl	expr_num(%rip), %r10d
	movl	%eax, %ebx
	movl	%ecx, %r11d
	cmpl	$2, %ecx
	jle	.L27
	movslq	%r10d, %rdx
	leaq	expr(%rip), %r8
	leaq	stack(%rip), %r9
	leaq	(%r8,%rdx,4), %rsi
	movslq	%eax, %rdx
	leaq	-16(%r9,%rdx,4), %rcx
	movl	%eax, %edx
	shrl	$2, %edx
	leal	-1(%rdx), %edi
	leaq	16(%rsi), %rdx
	salq	$4, %rdi
	addq	%rdx, %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L58:
	addq	$16, %rdx
.L23:
	movdqu	(%rcx), %xmm1
	subq	$16, %rcx
	pshufd	$27, %xmm1, %xmm0
	movups	%xmm0, (%rsi)
	movq	%rdx, %rsi
	cmpq	%rdi, %rdx
	jne	.L58
	movl	%eax, %ecx
	andl	$-4, %ecx
	subl	%ecx, %eax
	leal	(%r10,%rcx), %edx
	cmpl	%ebx, %ecx
	je	.L24
	leal	-1(%rax), %ecx
.L22:
	movslq	%ecx, %rbx
	movslq	%edx, %rdi
	leal	1(%rdx), %esi
	movl	(%r9,%rbx,4), %ebx
	movl	%ebx, (%r8,%rdi,4)
	testl	%ecx, %ecx
	je	.L24
	leal	-2(%rax), %ecx
	movslq	%esi, %rsi
	addl	$2, %edx
	movslq	%ecx, %rdi
	movl	(%r9,%rdi,4), %edi
	movl	%edi, (%r8,%rsi,4)
	testl	%ecx, %ecx
	je	.L24
	subl	$3, %eax
	movslq	%edx, %rdx
	cltq
	movl	(%r9,%rax,4), %eax
	movl	%eax, (%r8,%rdx,4)
.L24:
	movl	$0, stack_num(%rip)
	leal	1(%r10,%r11), %eax
	movl	%eax, expr_num(%rip)
.L1:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmpb	$83, %bl
	jne	.L26
	leal	1(%rax), %edx
	cltq
	xorl	%edi, %edi
	movl	$-1, (%r9,%rax,4)
	movl	%edx, %eax
	movl	%edx, stack_num(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	testl	%eax, %eax
	je	.L26
	leal	-1(%rax), %edi
	movslq	%eax, %rbx
	movslq	expr_num(%rip), %rcx
	xorl	%r12d, %r12d
	movslq	%edi, %rdx
	subq	$2, %rbx
	movl	%edi, %edi
	subq	%rdi, %rbx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	subq	$1, %rdx
	movl	%edi, (%r8,%rcx,4)
	leal	1(%rcx), %r13d
	movl	$1, %r12d
	addq	$1, %rcx
	cmpq	%rdx, %rbx
	je	.L59
.L14:
	movl	(%r9,%rdx,4), %edi
	movl	%edx, %eax
	cmpl	$-3, %edi
	jne	.L17
	movl	%edx, stack_num(%rip)
	testb	%r12b, %r12b
	je	.L26
	movl	%ecx, expr_num(%rip)
	.p2align 4,,10
	.p2align 3
.L26:
	xorl	%edi, %edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	testl	%eax, %eax
	je	.L25
	movslq	%eax, %rcx
	movslq	expr_num(%rip), %rdx
	xorl	%r12d, %r12d
	leaq	(%r9,%rcx,4), %rcx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	movl	%edi, (%r8,%rdx,4)
	leal	1(%rdx), %ebx
	subq	$4, %rcx
	addq	$1, %rdx
	movl	$1, %r12d
	testl	%eax, %eax
	je	.L60
.L13:
	movl	-4(%rcx), %edi
	movslq	%eax, %rbx
	leal	-1(%rbx), %eax
	cmpl	$-3, %edi
	jne	.L15
	testb	%r12b, %r12b
	je	.L16
	movl	%edx, expr_num(%rip)
.L16:
	leal	1(%rbx), %eax
.L12:
	movl	%eax, stack_num(%rip)
	addl	$1, %esi
	xorl	%edi, %edi
	movl	$-2, (%r9,%rbx,4)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L60:
	movl	%ebx, expr_num(%rip)
	movl	$1, %eax
	xorl	%ebx, %ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L59:
	movl	%eax, stack_num(%rip)
	xorl	%edi, %edi
	movl	%r13d, expr_num(%rip)
	jmp	.L5
.L27:
	movl	%r10d, %edx
	leaq	expr(%rip), %r8
	leaq	stack(%rip), %r9
	jmp	.L22
.L25:
	xorl	%ebx, %ebx
	movl	$1, %eax
	jmp	.L12
	.cfi_endproc
.LFE25:
	.size	compile, .-compile
	.p2align 4
	.globl	run
	.type	run, @function
run:
.LFB26:
	.cfi_startproc
	endbr64
	movl	$0, stack_num(%rip)
	movl	expr_num(%rip), %eax
	testl	%eax, %eax
	jle	.L85
	leaq	expr(%rip), %rsi
	leal	-1(%rax), %edx
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%r11d, %r11d
	leaq	4(%rsi), %rax
	xorl	%edi, %edi
	leaq	stack(%rip), %r9
	leaq	(%rax,%rdx,4), %r10
	jmp	.L72
	.p2align 4,,10
	.p2align 3
.L70:
	testl	%eax, %eax
	js	.L69
	movslq	%edi, %rdx
	movl	$1, %r11d
	addl	$1, %edi
	movl	%eax, (%r9,%rdx,4)
.L69:
	addq	$4, %rsi
	cmpq	%rsi, %r10
	je	.L88
.L72:
	movl	(%rsi), %eax
	cmpl	$-1, %eax
	je	.L89
	cmpl	$-2, %eax
	jne	.L70
	leal	-1(%rdi), %eax
	subl	$2, %edi
	movslq	%eax, %rdx
	movl	(%r9,%rdx,4), %ecx
	cmpl	$31, %ecx
	jg	.L75
	movslq	%edi, %rdi
	movl	(%r9,%rdi,4), %edx
	sarl	%cl, %edx
.L71:
	addq	$4, %rsi
	movl	%edx, (%r9,%rdi,4)
	movl	$1, %r11d
	movl	%eax, %edi
	cmpq	%rsi, %r10
	jne	.L72
.L88:
	testb	%r11b, %r11b
	je	.L63
	movl	%edi, stack_num(%rip)
.L63:
	movl	stack(%rip), %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L89:
	.cfi_restore_state
	leal	-1(%rdi), %ebx
	movslq	%ebx, %rbx
	movl	(%r9,%rbx,4), %eax
	testl	%eax, %eax
	jle	.L74
	movl	%eax, %edx
	xorl	%ecx, %ecx
	.p2align 4,,10
	.p2align 3
.L68:
	testb	$1, %dl
	je	.L66
	addl	%eax, %ecx
	leal	-1000000007(%rcx), %r8d
	cmpl	$1000000006, %ecx
	cmovg	%r8d, %ecx
.L66:
	addl	%eax, %eax
	cmpl	$1000000006, %eax
	leal	-1000000007(%rax), %r8d
	cmovg	%r8d, %eax
	sarl	%edx
	jne	.L68
	movl	%ecx, (%r9,%rbx,4)
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L75:
	xorl	%edx, %edx
	movslq	%edi, %rdi
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L74:
	xorl	%ecx, %ecx
	movl	%ecx, (%r9,%rbx,4)
	jmp	.L69
.L85:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	movl	stack(%rip), %eax
	ret
	.cfi_endproc
.LFE26:
	.size	run, .-run
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB27:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	input.0(%rip), %r15
	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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L91:
	movq	stdin(%rip), %rdx
	movl	$2000000, %esi
	movq	%r15, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L104
	movzbl	(%r15), %edx
	cmpb	$35, %dl
	je	.L104
	xorl	%eax, %eax
	testb	%dl, %dl
	je	.L101
	.p2align 4,,10
	.p2align 3
.L92:
	movl	%eax, %ebx
	addq	$1, %rax
	movl	%edx, %ebp
	movzbl	(%r15,%rax), %edx
	testb	%dl, %dl
	jne	.L92
	movl	$1, %r14d
	movslq	%ebx, %r13
	cmpb	$62, %bpl
	je	.L135
	.p2align 4,,10
	.p2align 3
.L94:
	call	__ctype_b_loc@PLT
	addq	%r15, %r13
	movq	(%rax), %rdx
.L99:
	subl	$1, %ebx
	movsbq	%bpl, %rax
	movl	%ebx, %ecx
	testb	$8, 1(%rdx,%rax,2)
	jne	.L100
	cmpb	$83, %bpl
	je	.L100
	cmpl	$-1, %ebx
	je	.L101
.L103:
	movslq	%ebx, %r13
	movzbl	(%r15,%r13), %ebp
	movslq	%ebx, %r13
	cmpb	$62, %bpl
	jne	.L94
.L135:
	testl	%r14d, %r14d
	je	.L105
.L98:
	subl	$1, %ebx
	movb	$41, (%r15,%r13)
	movl	$1, %r14d
	cmpl	$-1, %ebx
	jne	.L103
	.p2align 4,,10
	.p2align 3
.L101:
	movq	%r15, %rdi
	call	compile
	call	run
	movq	%r12, %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L100:
	cmpl	$-1, %ebx
	je	.L101
	movzbl	-1(%r13), %ebp
	cmpb	$62, %bpl
	je	.L95
	subq	$1, %r13
	xorl	%r14d, %r14d
	jmp	.L99
	.p2align 4,,10
	.p2align 3
.L105:
	movl	%ebx, %ecx
.L95:
	subl	$2, %ecx
	movl	%ecx, %ebx
	js	.L101
	movslq	%ecx, %r13
	movzbl	(%r15,%r13), %ebp
	cmpb	$62, %bpl
	je	.L98
	movl	$1, %r14d
	jmp	.L94
	.p2align 4,,10
	.p2align 3
.L104:
	addq	$8, %rsp
	.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
	.cfi_endproc
.LFE27:
	.size	main, .-main
	.local	input.0
	.comm	input.0,2000000,32
	.globl	stack_num
	.bss
	.align 4
	.type	stack_num, @object
	.size	stack_num, 4
stack_num:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 8000000
stack:
	.zero	8000000
	.globl	expr_num
	.align 4
	.type	expr_num, @object
	.size	expr_num, 4
expr_num:
	.zero	4
	.globl	expr
	.align 32
	.type	expr, @object
	.size	expr, 8000000
expr:
	.zero	8000000
	.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>
#include <ctype.h>

#define MOD_BY 1000000007
#define SIZE_MAX 2000000

#define ESU (-1)
#define SIFUTO (-2)
#define KAKKO (-3)

int expr[SIZE_MAX];
int expr_num;
int stack[SIZE_MAX];
int stack_num;

void compile(const char* expr_str) {
	int i;
	int digit_flag=0;
	int current_number=0;
	expr_num=stack_num=0;
	for(i=0;expr_str[i]!='\0';i++) {
		if(isdigit(expr_str[i])) {
			current_number=current_number*10+expr_str[i]-'0';
			digit_flag=1;
		} else {
			if(digit_flag) {
				expr[expr_num++]=current_number;
				current_number=0;
				digit_flag=0;
			}
			switch(expr_str[i]) {
				case 'S':
					stack[stack_num++]=ESU;
					break;
				case '<':
					stack[stack_num++]=KAKKO;
					break;
				case '>':
					while(stack_num>0 && stack[stack_num-1]!=KAKKO) {
						expr[expr_num++]=stack[--stack_num];
					}
					stack[stack_num++]=SIFUTO;
					i++;
					break;
				case ')':
					while(stack_num>0 && stack[--stack_num]!=KAKKO) {
						expr[expr_num++]=stack[stack_num];
					}
					break;
			}
		}
	}
	if(digit_flag) {
		expr[expr_num++]=current_number;
		digit_flag=0;
	}
	while(stack_num>0) {
		expr[expr_num++]=stack[--stack_num];
	}
}

int run(void) {
	int i;
	stack_num=0;
	for(i=0;i<expr_num;i++) {
		if(expr[i]==ESU) {
			int ret=0,now=stack[stack_num-1],left=stack[stack_num-1];
			while(left>0) {
				if(left&1) {
					ret+=now;
					if(ret>=MOD_BY)ret-=MOD_BY;
				}
				now+=now;
				if(now>=MOD_BY)now-=MOD_BY;
				left>>=1;
			}
			stack[stack_num-1]=ret;
		} else if(expr[i]==SIFUTO) {
			if(stack[stack_num-1]<32) {
				stack[stack_num-2]>>=stack[stack_num-1];
			} else {
				stack[stack_num-2]=0;
			}
			stack_num--;
		} else if(expr[i]>=0) {
			stack[stack_num++]=expr[i];
		}
	}
	return stack[0];
}

int main(void) {
	static char input[SIZE_MAX];
	while(fgets(input,sizeof(input),stdin)!=NULL && input[0]!='#') {
		int i;
		int expect_number=1;
		for(i=0;input[i];i++);
		for(i--;i>=0;i--) {
			if(input[i]=='>') {
				if(expect_number) {
					input[i]=')';
				} else {
					i--;
					expect_number=1;
				}
			} else if(isdigit(input[i])) {
				expect_number=0;
			} else if(input[i]=='S') {
				expect_number=0;
			}
		}
		compile(input);
		printf("%d\n",run());
	}
	return 0;
}
S< S< 12 >> 2 > >
123 >> 1 >> 1
1000000000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 2 > >
202 >> 1 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 2 > >
249 >> 1 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 2 > >
249 >> 2 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 2 > >
123 >> 1 >> 1
1000100000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 11 >>> 10 >
#
 S< S< 4 >> 2 > >
202 >> 1 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 4 >> 2 > >
172 >> 1 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 2 > >
249 >> 1 >> 2
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 12 >
#
 S< S< 12 >> 4 > >
202 >> 1 >> 1
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#
 S< S< 12 >> 4 > >
202 >> 1 >> 0
1000010000   >>129
S<S<S<S<S<2>>>>>
S  <S< S<2013    >>> 13 >>> 10 >
#

81
30
0
294967268
56644
 81
50
0
294967268
56644
 81
62
0
294967268
56644
 81
31
0
294967268
56644
 81
30
0
294967268
14592400
 1
50
0
294967268
56644
 1
43
0
294967268
56644
 81
31
0
294967268
3481
 0
50
0
294967268
56644
 0
101
0
294967268
56644

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>
#include <ctype.h>

#define MOD_BY 1000000007
#define SIZE_MAX 2000000

#define ESU (-1)
#define SIFUTO (-2)
#define KAKKO (-3)

int expr[SIZE_MAX];
int expr_num;
int stack[SIZE_MAX];
int stack_num;

void compile(const char* expr_str) {
	int i;
	int digit_flag=0;
	int current_number=0;
	expr_num=stack_num=0;
	for(i=0;expr_str[i]!='\0';i++) {
		if(isdigit(expr_str[i])) {
			current_number=current_number*10+expr_str[i]-'0';
			digit_flag=1;
		} else {
			if(digit_flag) {
				expr[expr_num++]=current_number;
				current_number=0;
				digit_flag=0;
			}
			switch(expr_str[i]) {
				case 'S':
					stack[stack_num++]=ESU;
					break;
				case '<':
					stack[stack_num++]=KAKKO;
					break;
				case '>':
					while(stack_num>0 && stack[stack_num-1]!=KAKKO) {
						expr[expr_num++]=stack[--stack_num];
					}
					stack[stack_num++]=SIFUTO;
					i++;
					break;
				case ')':
					while(stack_num>0 && stack[--stack_num]!=KAKKO) {
						expr[expr_num++]=stack[stack_num];
					}
					break;
			}
		}
	}
	if(digit_flag) {
		expr[expr_num++]=current_number;
		digit_flag=0;
	}
	while(stack_num>0) {
		expr[expr_num++]=stack[--stack_num];
	}
}

int run(void) {
	int i;
	stack_num=0;
	for(i=0;i<expr_num;i++) {
		if(expr[i]==ESU) {
			int ret=0,now=stack[stack_num-1],left=stack[stack_num-1];
			while(left>0) {
				if(left&1) {
					ret+=now;
					if(ret>=MOD_BY)ret-=MOD_BY;
				}
				now+=now;
				if(now>=MOD_BY)now-=MOD_BY;
				left>>=1;
			}
			stack[stack_num-1]=ret;
		} else if(expr[i]==SIFUTO) {
			if(stack[stack_num-1]<32) {
				stack[stack_num-2]>>=stack[stack_num-1];
			} else {
				stack[stack_num-2]=0;
			}
			stack_num--;
		} else if(expr[i]>=0) {
			stack[stack_num++]=expr[i];
		}
	}
	return stack[0];
}

int main(void) {
	static char input[SIZE_MAX];
	while(fgets(input,sizeof(input),stdin)!=NULL && input[0]!='#') {
		int i;
		int expect_number=1;
		for(i=0;input[i];i++);
		for(i--;i>=0;i--) {
			if(input[i]=='>') {
				if(expect_number) {
					input[i]=')';
				} else {
					i--;
					expect_number=1;
				}
			} else if(isdigit(input[i])) {
				expect_number=0;
			} else if(input[i]=='S') {
				expect_number=0;
			}
		}
		compile(input);
		printf("%d\n",run());
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	expr
	.bss
	.align 32
	.type	expr, @object
	.size	expr, 8000000
expr:
	.zero	8000000
	.globl	expr_num
	.align 4
	.type	expr_num, @object
	.size	expr_num, 4
expr_num:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 8000000
stack:
	.zero	8000000
	.globl	stack_num
	.align 4
	.type	stack_num, @object
	.size	stack_num, 4
stack_num:
	.zero	4
	.text
	.globl	compile
	.type	compile, @function
compile:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, stack_num(%rip)
	movl	stack_num(%rip), %eax
	movl	%eax, expr_num(%rip)
	movl	$0, -12(%rbp)
	jmp	.L2
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L3
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	addl	%ecx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	cmpl	$0, -8(%rbp)
	je	.L5
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L6
	cmpl	$83, %eax
	jg	.L4
	cmpl	$62, %eax
	je	.L10
	cmpl	$62, %eax
	jg	.L4
	cmpl	$41, %eax
	je	.L13
	cmpl	$60, %eax
	je	.L9
	jmp	.L4
.L6:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-1, (%rdx,%rax)
	jmp	.L4
.L9:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-3, (%rdx,%rax)
	jmp	.L4
.L12:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L10:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L11
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L12
.L11:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-2, (%rdx,%rax)
	addl	$1, -12(%rbp)
	jmp	.L4
.L15:
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L13:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L20
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L15
.L20:
	nop
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L16
	cmpl	$0, -8(%rbp)
	je	.L18
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jg	.L19
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	compile, .-compile
	.globl	run
	.type	run, @function
run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, stack_num(%rip)
	movl	$0, -16(%rbp)
	jmp	.L22
.L32:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, -12(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L27:
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L25
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	cmpl	$1000000006, -12(%rbp)
	jle	.L25
	subl	$1000000007, -12(%rbp)
.L25:
	sall	-8(%rbp)
	cmpl	$1000000006, -8(%rbp)
	jle	.L26
	subl	$1000000007, -8(%rbp)
.L26:
	sarl	-4(%rbp)
.L24:
	cmpl	$0, -4(%rbp)
	jg	.L27
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L28
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-2, %eax
	jne	.L29
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$31, %eax
	jg	.L30
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	stack_num(%rip), %ecx
	leal	-2(%rcx), %esi
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %ecx
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L31
.L30:
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$0, (%rdx,%rax)
.L31:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	expr(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L28:
	addl	$1, -16(%rbp)
.L22:
	movl	expr_num(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L32
	movl	stack(%rip), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	run, .-run
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L35
.L45:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	addl	$1, -8(%rbp)
.L36:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L37
	subl	$1, -8(%rbp)
	jmp	.L38
.L43:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$62, %al
	jne	.L39
	cmpl	$0, -4(%rbp)
	je	.L40
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movb	$41, (%rax,%rdx)
	jmp	.L41
.L40:
	subl	$1, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L41
.L39:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rcx
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L42
	movl	$0, -4(%rbp)
	jmp	.L41
.L42:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L41
	movl	$0, -4(%rbp)
.L41:
	subl	$1, -8(%rbp)
.L38:
	cmpl	$0, -8(%rbp)
	jns	.L43
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	compile
	call	run
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L35:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$2000000, %esi
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L44
	movzbl	input.0(%rip), %eax
	cmpb	$35, %al
	jne	.L45
.L44:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.local	input.0
	.comm	input.0,2000000,32
	.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	expr
	.bss
	.align 32
	.type	expr, @object
	.size	expr, 8000000
expr:
	.zero	8000000
	.globl	expr_num
	.align 4
	.type	expr_num, @object
	.size	expr_num, 4
expr_num:
	.zero	4
	.globl	stack
	.align 32
	.type	stack, @object
	.size	stack, 8000000
stack:
	.zero	8000000
	.globl	stack_num
	.align 4
	.type	stack_num, @object
	.size	stack_num, 4
stack_num:
	.zero	4
	.text
	.globl	compile
	.type	compile, @function
compile:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, stack_num(%rip)
	movl	stack_num(%rip), %eax
	movl	%eax, expr_num(%rip)
	movl	$0, -12(%rbp)
	jmp	.L2
.L16:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L3
	movl	-4(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	addl	%ecx, %eax
	subl	$48, %eax
	movl	%eax, -4(%rbp)
	movl	$1, -8(%rbp)
	jmp	.L4
.L3:
	cmpl	$0, -8(%rbp)
	je	.L5
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
.L5:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	cmpl	$83, %eax
	je	.L6
	cmpl	$83, %eax
	jg	.L4
	cmpl	$62, %eax
	je	.L10
	cmpl	$62, %eax
	jg	.L4
	cmpl	$41, %eax
	je	.L13
	cmpl	$60, %eax
	je	.L9
	jmp	.L4
.L6:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-1, (%rdx,%rax)
	jmp	.L4
.L9:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-3, (%rdx,%rax)
	jmp	.L4
.L12:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L10:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L11
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L12
.L11:
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$-2, (%rdx,%rax)
	addl	$1, -12(%rbp)
	jmp	.L4
.L15:
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L13:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jle	.L20
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-3, %eax
	jne	.L15
.L20:
	nop
.L4:
	addl	$1, -12(%rbp)
.L2:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L16
	cmpl	$0, -8(%rbp)
	je	.L18
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$0, -8(%rbp)
	jmp	.L18
.L19:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	movl	stack_num(%rip), %ecx
	movl	expr_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, expr_num(%rip)
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	stack(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	expr(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	movl	stack_num(%rip), %eax
	testl	%eax, %eax
	jg	.L19
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	compile, .-compile
	.globl	run
	.type	run, @function
run:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$0, stack_num(%rip)
	movl	$0, -16(%rbp)
	jmp	.L22
.L32:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-1, %eax
	jne	.L23
	movl	$0, -12(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -8(%rbp)
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	jmp	.L24
.L27:
	movl	-4(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L25
	movl	-8(%rbp), %eax
	addl	%eax, -12(%rbp)
	cmpl	$1000000006, -12(%rbp)
	jle	.L25
	subl	$1000000007, -12(%rbp)
.L25:
	sall	-8(%rbp)
	cmpl	$1000000006, -8(%rbp)
	jle	.L26
	subl	$1000000007, -8(%rbp)
.L26:
	sarl	-4(%rbp)
.L24:
	cmpl	$0, -4(%rbp)
	jg	.L27
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rdx
	movl	-12(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	jmp	.L28
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$-2, %eax
	jne	.L29
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$31, %eax
	jg	.L30
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	(%rcx,%rax), %eax
	movl	stack_num(%rip), %ecx
	leal	-2(%rcx), %esi
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %ecx
	movslq	%esi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L31
.L30:
	movl	stack_num(%rip), %eax
	subl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	stack(%rip), %rax
	movl	$0, (%rdx,%rax)
.L31:
	movl	stack_num(%rip), %eax
	subl	$1, %eax
	movl	%eax, stack_num(%rip)
	jmp	.L28
.L29:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	expr(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L28
	movl	stack_num(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, stack_num(%rip)
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	expr(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	stack(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L28:
	addl	$1, -16(%rbp)
.L22:
	movl	expr_num(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L32
	movl	stack(%rip), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	run, .-run
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	jmp	.L35
.L45:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L36
.L37:
	addl	$1, -8(%rbp)
.L36:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L37
	subl	$1, -8(%rbp)
	jmp	.L38
.L43:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$62, %al
	jne	.L39
	cmpl	$0, -4(%rbp)
	je	.L40
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movb	$41, (%rax,%rdx)
	jmp	.L41
.L40:
	subl	$1, -8(%rbp)
	movl	$1, -4(%rbp)
	jmp	.L41
.L39:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rcx
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	movsbq	%al, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$2048, %eax
	testl	%eax, %eax
	je	.L42
	movl	$0, -4(%rbp)
	jmp	.L41
.L42:
	movl	-8(%rbp), %eax
	cltq
	leaq	input.0(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$83, %al
	jne	.L41
	movl	$0, -4(%rbp)
.L41:
	subl	$1, -8(%rbp)
.L38:
	cmpl	$0, -8(%rbp)
	jns	.L43
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	compile
	call	run
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L35:
	movq	stdin(%rip), %rax
	movq	%rax, %rdx
	movl	$2000000, %esi
	leaq	input.0(%rip), %rax
	movq	%rax, %rdi
	call	fgets@PLT
	testq	%rax, %rax
	je	.L44
	movzbl	input.0(%rip), %eax
	cmpb	$35, %al
	jne	.L45
.L44:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.local	input.0
	.comm	input.0,2000000,32
	.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:
