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

```c
char*p,E[200];l;M(r){for(r=T();;){if(*p==42){p++;r*=T();}else if(*p==47){p++;r/=T();}else return r;}}A(r){for(r=M();;){if(*p==43){p++;r+=M();}else if(*p==45){p++;r-=M();}else return r;}}T(r){if(*p==40){p++;r=A();p++;}else{sscanf(p,"%d%n",&r,&l);p+=l;}return r;}main(){scanf("%*d\n");for(;~scanf("%[^=]=\n",E);)printf("%d\n",A(p=E));}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.text
	.globl	M
	.type	M, @function
M:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	T
	movl	%eax, -4(%rbp)
.L6:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L2
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -4(%rbp)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.globl	A
	.type	A, @function
A:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	M
	movl	%eax, -4(%rbp)
.L13:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L9
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L11
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	A, .-A
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	T
	.type	T, @function
T:
.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
	movl	%edi, -4(%rbp)
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L16
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	A
	movl	%eax, -4(%rbp)
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L17
.L16:
	movq	p(%rip), %rax
	leaq	-4(%rbp), %rdx
	leaq	l(%rip), %rcx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sscanf@PLT
	movq	p(%rip), %rdx
	movl	l(%rip), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, p(%rip)
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	T, .-T
	.section	.rodata
.LC1:
	.string	"%*d\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^=]=\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L20
.L21:
	leaq	E(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	A
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L21
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%n"
	.text
	.p2align 4
	.globl	A
	.type	A, @function
A:
.LFB1:
	.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
	leaq	l(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	M
	movq	p(%rip), %rcx
	movl	%eax, %r13d
	movzbl	(%rcx), %eax
.L2:
	cmpb	$43, %al
	je	.L19
.L3:
	cmpb	$45, %al
	jne	.L1
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L20
	movq	%rbp, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %r14d
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L8:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L21
.L9:
	cmpb	$47, %al
	jne	.L13
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L22
	movq	%rbp, %rcx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L15:
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r14d
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L9
.L21:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L23
	movq	%rbp, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L11:
	imull	%eax, %r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	subl	%r14d, %r13d
	cmpb	$43, %al
	jne	.L3
.L19:
	addq	$1, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	M
	movq	p(%rip), %rcx
	addl	%eax, %r13d
	movzbl	(%rcx), %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	movl	%r13d, %eax
	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
.L20:
	.cfi_restore_state
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %r14d
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE1:
	.size	A, .-A
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.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	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	p(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, (%rdi)
	je	.L38
	leaq	l(%rip), %rcx
	leaq	4(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %r12d
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L27:
	leaq	4(%rsp), %r13
	leaq	l(%rip), %rbp
	leaq	.LC0(%rip), %rbx
.L28:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L39
.L29:
	cmpb	$47, %al
	jne	.L25
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L40
	movq	%rbp, %rcx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L35:
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L29
.L39:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L41
	movq	%rbp, %rcx
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L31:
	imull	%eax, %r12d
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L40:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L25:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%r12d, %eax
	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
.L41:
	.cfi_restore_state
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L38:
	addq	$1, %rdi
	movq	%rdi, p(%rip)
	call	A
	movl	%eax, %r12d
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.p2align 4
	.globl	T
	.type	T, @function
T:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	p(%rip), %rdi
	cmpb	$40, (%rdi)
	je	.L47
	leaq	12(%rsp), %rdx
	leaq	l(%rip), %rcx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movslq	l(%rip), %rax
	addq	%rax, p(%rip)
	movl	12(%rsp), %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	addq	$1, %rdi
	xorl	%eax, %eax
	movq	%rdi, p(%rip)
	call	A
	addq	$1, p(%rip)
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2:
	.size	T, .-T
	.section	.rodata.str1.1
.LC1:
	.string	"%*d\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^=]=\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	leaq	E(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	l(%rip), %r13
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L49:
	xorl	%eax, %eax
	movq	%r15, %rsi
	leaq	.LC3(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L77
	xorl	%eax, %eax
	movq	%r15, p(%rip)
	leaq	4(%rsp), %rbp
	call	M
	movq	p(%rip), %rcx
	movl	%eax, %r14d
	movzbl	(%rcx), %eax
.L50:
	cmpb	$43, %al
	je	.L78
.L51:
	cmpb	$45, %al
	jne	.L63
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L79
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %ebx
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
	.p2align 4,,10
	.p2align 3
.L66:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L80
.L67:
	cmpb	$47, %al
	jne	.L71
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L81
	movq	%r13, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L73:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L67
.L80:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L82
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L69:
	imull	%eax, %ebx
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L81:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L71:
	subl	%ebx, %r14d
	cmpb	$43, %al
	jne	.L51
.L78:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L83
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %ebx
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
	.p2align 4,,10
	.p2align 3
.L54:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L84
.L55:
	cmpb	$47, %al
	jne	.L59
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L85
	movq	%r13, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L61:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L55
.L84:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L86
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L57:
	imull	%eax, %ebx
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L82:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L79:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %ebx
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L85:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%ebx, %r14d
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L86:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L63:
	movl	%r14d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L49
.L83:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %ebx
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L54
.L77:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$24, %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
.L87:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%n"
	.text
	.p2align 4
	.globl	A
	.type	A, @function
A:
.LFB1:
	.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
	leaq	l(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r12
	call	M
	movq	p(%rip), %rcx
	movl	%eax, %r13d
	movzbl	(%rcx), %eax
.L2:
	cmpb	$43, %al
	je	.L19
.L3:
	cmpb	$45, %al
	jne	.L1
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L20
	movq	%rbp, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %r14d
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L8:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L21
.L9:
	cmpb	$47, %al
	jne	.L13
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L22
	movq	%rbp, %rcx
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L15:
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r14d
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L9
.L21:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L23
	movq	%rbp, %rcx
	movq	%r12, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L11:
	imull	%eax, %r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	subl	%r14d, %r13d
	cmpb	$43, %al
	jne	.L3
.L19:
	addq	$1, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	M
	movq	p(%rip), %rcx
	addl	%eax, %r13d
	movzbl	(%rcx), %eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	movl	%r13d, %eax
	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
.L20:
	.cfi_restore_state
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %r14d
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE1:
	.size	A, .-A
	.p2align 4
	.globl	M
	.type	M, @function
M:
.LFB0:
	.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	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	p(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, (%rdi)
	je	.L38
	leaq	l(%rip), %rcx
	leaq	4(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %r12d
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L27:
	leaq	4(%rsp), %r13
	leaq	l(%rip), %rbp
	leaq	.LC0(%rip), %rbx
.L28:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L39
.L29:
	cmpb	$47, %al
	jne	.L25
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L40
	movq	%rbp, %rcx
	movq	%rbx, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L35:
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L29
.L39:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L41
	movq	%rbp, %rcx
	movq	%r13, %rdx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L31:
	imull	%eax, %r12d
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L40:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L25:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movl	%r12d, %eax
	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
.L41:
	.cfi_restore_state
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L38:
	addq	$1, %rdi
	movq	%rdi, p(%rip)
	call	A
	movl	%eax, %r12d
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.p2align 4
	.globl	T
	.type	T, @function
T:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	movq	p(%rip), %rdi
	cmpb	$40, (%rdi)
	je	.L47
	leaq	12(%rsp), %rdx
	leaq	l(%rip), %rcx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movslq	l(%rip), %rax
	addq	%rax, p(%rip)
	movl	12(%rsp), %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	addq	$1, %rdi
	xorl	%eax, %eax
	movq	%rdi, p(%rip)
	call	A
	addq	$1, p(%rip)
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2:
	.size	T, .-T
	.section	.rodata.str1.1
.LC1:
	.string	"%*d\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^=]=\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	leaq	E(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	l(%rip), %r13
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L49:
	xorl	%eax, %eax
	movq	%r15, %rsi
	leaq	.LC3(%rip), %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L77
	xorl	%eax, %eax
	movq	%r15, p(%rip)
	leaq	4(%rsp), %rbp
	call	M
	movq	p(%rip), %rcx
	movl	%eax, %r14d
	movzbl	(%rcx), %eax
.L50:
	cmpb	$43, %al
	je	.L78
.L51:
	cmpb	$45, %al
	jne	.L63
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L79
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %ebx
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
	.p2align 4,,10
	.p2align 3
.L66:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L80
.L67:
	cmpb	$47, %al
	jne	.L71
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L81
	movq	%r13, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L73:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L67
.L80:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L82
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L69:
	imull	%eax, %ebx
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L81:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L73
	.p2align 4,,10
	.p2align 3
.L71:
	subl	%ebx, %r14d
	cmpb	$43, %al
	jne	.L51
.L78:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L83
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %ebx
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
	.p2align 4,,10
	.p2align 3
.L54:
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	je	.L84
.L55:
	cmpb	$47, %al
	jne	.L59
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L85
	movq	%r13, %rcx
	movq	%r12, %rsi
	movq	%rbp, %rdx
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %esi
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L61:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movzbl	(%rcx), %eax
	cmpb	$42, %al
	jne	.L55
.L84:
	leaq	1(%rcx), %rdi
	movq	%rdi, p(%rip)
	cmpb	$40, 1(%rcx)
	je	.L86
	movq	%r13, %rcx
	movq	%rbp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movslq	l(%rip), %rcx
	movl	4(%rsp), %eax
	addq	p(%rip), %rcx
	movq	%rcx, p(%rip)
.L57:
	imull	%eax, %ebx
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L82:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L69
	.p2align 4,,10
	.p2align 3
.L79:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %ebx
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L85:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %esi
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L59:
	addl	%ebx, %r14d
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L86:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movq	p(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, p(%rip)
	jmp	.L57
	.p2align 4,,10
	.p2align 3
.L63:
	movl	%r14d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L49
.L83:
	addq	$2, %rcx
	xorl	%eax, %eax
	movq	%rcx, p(%rip)
	call	A
	movl	%eax, %ebx
	movq	p(%rip), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, p(%rip)
	jmp	.L54
.L77:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L87
	addq	$24, %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
.L87:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.globl	l
	.bss
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.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:

char*p,E[200];l;M(r){for(r=T();;){if(*p==42){p++;r*=T();}else if(*p==47){p++;r/=T();}else return r;}}A(r){for(r=M();;){if(*p==43){p++;r+=M();}else if(*p==45){p++;r-=M();}else return r;}}T(r){if(*p==40){p++;r=A();p++;}else{sscanf(p,"%d%n",&r,&l);p+=l;}return r;}main(){scanf("%*d\n");for(;~scanf("%[^=]=\n",E);)printf("%d\n",A(p=E));}
2
4-2*3=
8*(4+4+3)=
 2
4-2*3=
8*(4+4+2)=
 2
4-3*3=
4*(8+4+3)=
 2
4-1*3=
4*(8+4+3)=
 2
4-1+3=
4*(8+4+3)=
 2
4-2+3=
4*(8+4+3)=
 2
5-1+3=
4*(8+4+3)=
 2
3-1*3=
4*(8+4+3)=
 2
4-2+3=
4+(8+4*3)=
 2
4-2*3=
4+(8+4*3)=

-2
88
 -2
80
 -5
60
 1
60
 6
60
 5
60
 7
60
 0
60
 5
24
 -2
24

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

```c
char*p,E[200];l;M(r){for(r=T();;){if(*p==42){p++;r*=T();}else if(*p==47){p++;r/=T();}else return r;}}A(r){for(r=M();;){if(*p==43){p++;r+=M();}else if(*p==45){p++;r-=M();}else return r;}}T(r){if(*p==40){p++;r=A();p++;}else{sscanf(p,"%d%n",&r,&l);p+=l;}return r;}main(){scanf("%*d\n");for(;~scanf("%[^=]=\n",E);)printf("%d\n",A(p=E));}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.text
	.globl	M
	.type	M, @function
M:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	T
	movl	%eax, -4(%rbp)
.L6:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L2
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -4(%rbp)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.globl	A
	.type	A, @function
A:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	M
	movl	%eax, -4(%rbp)
.L13:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L9
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L11
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	A, .-A
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	T
	.type	T, @function
T:
.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
	movl	%edi, -4(%rbp)
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L16
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	A
	movl	%eax, -4(%rbp)
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L17
.L16:
	movq	p(%rip), %rax
	leaq	-4(%rbp), %rdx
	leaq	l(%rip), %rcx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sscanf@PLT
	movq	p(%rip), %rdx
	movl	l(%rip), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, p(%rip)
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	T, .-T
	.section	.rodata
.LC1:
	.string	"%*d\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^=]=\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L20
.L21:
	leaq	E(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	A
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L21
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	p
	.bss
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	l
	.align 4
	.type	l, @object
	.size	l, 4
l:
	.zero	4
	.text
	.globl	M
	.type	M, @function
M:
.LFB0:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	T
	movl	%eax, -4(%rbp)
.L6:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$42, %al
	jne	.L2
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$47, %al
	jne	.L4
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	T
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, -4(%rbp)
	jmp	.L6
.L4:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	M, .-M
	.globl	A
	.type	A, @function
A:
.LFB1:
	.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
	movl	%edi, -4(%rbp)
	movl	$0, %eax
	call	M
	movl	%eax, -4(%rbp)
.L13:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$43, %al
	jne	.L9
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$45, %al
	jne	.L11
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	M
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	A, .-A
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	T
	.type	T, @function
T:
.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
	movl	%edi, -4(%rbp)
	movq	p(%rip), %rax
	movzbl	(%rax), %eax
	cmpb	$40, %al
	jne	.L16
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	movl	$0, %eax
	call	A
	movl	%eax, -4(%rbp)
	movq	p(%rip), %rax
	addq	$1, %rax
	movq	%rax, p(%rip)
	jmp	.L17
.L16:
	movq	p(%rip), %rax
	leaq	-4(%rbp), %rdx
	leaq	l(%rip), %rcx
	leaq	.LC0(%rip), %rsi
	movq	%rax, %rdi
	movl	$0, %eax
	call	sscanf@PLT
	movq	p(%rip), %rdx
	movl	l(%rip), %eax
	cltq
	addq	%rdx, %rax
	movq	%rax, p(%rip)
.L17:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	T, .-T
	.section	.rodata
.LC1:
	.string	"%*d\n"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%[^=]=\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L20
.L21:
	leaq	E(%rip), %rax
	movq	%rax, p(%rip)
	movq	p(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	A
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L20:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L21
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
