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

```c
char E[200];
int p;
//A=M[+-]M[+-]M
//M=T[*/]T[*/]T
//T=(A)|%d
PM(){
	int r;
	r=PT();
	for(;;){
		if(E[p]=='*'){
			p++;
			r*=PT();
		}else if(E[p]=='/'){
			p++;
			r/=PT();
		}else
			return r;
	}
}
PA(){
	int r;
	r=PM();
	for(;;){
		if(E[p]=='+'){
			p++;
			r+=PM();
		}else if(E[p]=='-'){
			p++;
			r-=PM();
		}else
			return r;
	}
}
PT(){
	int r,l;
	if(E[p]=='('){
		p++;
		r=PA();
		p++;
	}else{
		sscanf(E+p,"%d%n",&r,&l);
		p+=l;
	}
	return r;
}
main(){
	scanf("%*d\n");
	for(;~scanf("%[^=]=\n",E);){
		p=0;
		printf("%d\n",PA());
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	E
	.bss
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.text
	.globl	PM
	.type	PM, @function
PM:
.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	$0, %eax
	call	PT
	movl	%eax, -4(%rbp)
.L6:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$42, %al
	jne	.L2
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$47, %al
	jne	.L4
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	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	PM, .-PM
	.globl	PA
	.type	PA, @function
PA:
.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	$0, %eax
	call	PM
	movl	%eax, -4(%rbp)
.L13:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$43, %al
	jne	.L9
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$45, %al
	jne	.L11
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	PA, .-PA
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	PT
	.type	PT, @function
PT:
.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$40, %al
	jne	.L16
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, -16(%rbp)
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	jmp	.L17
.L16:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %eax
	call	sscanf@PLT
	movl	p(%rip), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, p(%rip)
.L17:
	movl	-16(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	PT, .-PT
	.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	.L21
.L22:
	movl	$0, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L21:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	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	PA
	.type	PA, @function
PA:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	E(%rip), %r13
	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
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	PM
	movl	%eax, %r12d
	movslq	p(%rip), %rax
	movzbl	0(%r13,%rax), %edx
	movq	%rax, %rcx
.L2:
	cmpb	$43, %dl
	je	.L19
.L3:
	cmpb	$45, %dl
	jne	.L1
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L20
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebp
.L8:
	movslq	%ecx, %rax
	movzbl	0(%r13,%rax), %edx
	cmpb	$42, %dl
	je	.L21
.L9:
	cmpb	$47, %dl
	jne	.L13
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L22
	leaq	4(%rsp), %rcx
	movq	%rbx, %rsi
	movq	%rsp, %rdx
	addq	%r13, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L15:
	movl	%ebp, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebp
	movslq	%ecx, %rax
	movzbl	0(%r13,%rax), %edx
	cmpb	$42, %dl
	jne	.L9
.L21:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L23
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L11:
	imull	%eax, %ebp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	subl	%ebp, %r12d
	cmpb	$43, %dl
	jne	.L3
.L19:
	addl	$1, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PM
	addl	%eax, %r12d
	movslq	p(%rip), %rax
	movzbl	0(%r13,%rax), %edx
	movq	%rax, %rcx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
.L20:
	.cfi_restore_state
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebp
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE1:
	.size	PA, .-PA
	.p2align 4
	.globl	PM
	.type	PM, @function
PM:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	E(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movslq	p(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, 0(%rbp,%rdi)
	je	.L38
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %r12d
.L27:
	leaq	.LC0(%rip), %rbx
.L28:
	movslq	%ecx, %rax
	movzbl	0(%rbp,%rax), %eax
	cmpb	$42, %al
	je	.L39
.L29:
	cmpb	$47, %al
	jne	.L25
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%rbp,%rdi)
	je	.L40
	leaq	4(%rsp), %rcx
	movq	%rbx, %rsi
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L35:
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movslq	%ecx, %rax
	movzbl	0(%rbp,%rax), %eax
	cmpb	$42, %al
	jne	.L29
.L39:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%rbp,%rdi)
	je	.L41
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L31:
	imull	%eax, %r12d
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L40:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L25:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdi, %rax
	addl	$1, %eax
	movl	%eax, p(%rip)
	xorl	%eax, %eax
	call	PA
	movl	%eax, %r12d
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PM, .-PM
	.p2align 4
	.globl	PT
	.type	PT, @function
PT:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movslq	p(%rip), %rdi
	leaq	E(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, (%rdx,%rdi)
	je	.L48
	movq	%rsp, %r8
	addq	%rdx, %rdi
	leaq	4(%rsp), %rcx
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movl	4(%rsp), %eax
	addl	%eax, p(%rip)
	movl	(%rsp), %eax
.L43:
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L49
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L48:
	.cfi_restore_state
	movq	%rdi, %rax
	addl	$1, %eax
	movl	%eax, p(%rip)
	xorl	%eax, %eax
	call	PA
	addl	$1, p(%rip)
	jmp	.L43
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE2:
	.size	PT, .-PT
	.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
	leaq	.LC3(%rip), %r14
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L79
	movl	$0, p(%rip)
	xorl	%eax, %eax
	call	PM
	movl	%eax, %r13d
	movslq	p(%rip), %rax
	movq	%rax, %rcx
	movzbl	(%r15,%rax), %eax
.L52:
	cmpb	$43, %al
	je	.L80
.L53:
	cmpb	$45, %al
	jne	.L65
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L81
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	addq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebx
	.p2align 4,,10
	.p2align 3
.L68:
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	je	.L82
.L69:
	cmpb	$47, %al
	jne	.L73
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L83
	movq	%rbp, %rcx
	movq	%r12, %rsi
	movq	%rsp, %rdx
	addq	%r15, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L75:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	jne	.L69
.L82:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L84
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	addq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L71:
	imull	%eax, %ebx
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L83:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L73:
	subl	%ebx, %r13d
	cmpb	$43, %al
	jne	.L53
.L80:
	leal	1(%rcx), %eax
	movl	%eax, p(%rip)
	cltq
	cmpb	$40, (%r15,%rax)
	je	.L85
	leaq	(%r15,%rax), %rdi
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebx
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	je	.L86
.L57:
	cmpb	$47, %al
	jne	.L61
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L87
	movq	%rbp, %rcx
	movq	%r12, %rsi
	movq	%rsp, %rdx
	addq	%r15, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L63:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	jne	.L57
.L86:
	leal	1(%rcx), %eax
	movl	%eax, p(%rip)
	cltq
	cmpb	$40, (%r15,%rax)
	je	.L88
	leaq	(%r15,%rax), %rdi
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L59:
	imull	%eax, %ebx
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L84:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L81:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebx
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L87:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L61:
	addl	%ebx, %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L88:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%r13d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L51
.L85:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebx
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L56
.L79:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	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
.L89:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.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	PA
	.type	PA, @function
PA:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	E(%rip), %r13
	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
	leaq	.LC0(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	PM
	movl	%eax, %r12d
	movslq	p(%rip), %rax
	movzbl	0(%r13,%rax), %edx
	movq	%rax, %rcx
.L2:
	cmpb	$43, %dl
	je	.L19
.L3:
	cmpb	$45, %dl
	jne	.L1
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L20
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebp
.L8:
	movslq	%ecx, %rax
	movzbl	0(%r13,%rax), %edx
	cmpb	$42, %dl
	je	.L21
.L9:
	cmpb	$47, %dl
	jne	.L13
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L22
	leaq	4(%rsp), %rcx
	movq	%rbx, %rsi
	movq	%rsp, %rdx
	addq	%r13, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L15:
	movl	%ebp, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebp
	movslq	%ecx, %rax
	movzbl	0(%r13,%rax), %edx
	cmpb	$42, %dl
	jne	.L9
.L21:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%r13,%rdi)
	je	.L23
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L11:
	imull	%eax, %ebp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	subl	%ebp, %r12d
	cmpb	$43, %dl
	jne	.L3
.L19:
	addl	$1, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PM
	addl	%eax, %r12d
	movslq	p(%rip), %rax
	movzbl	0(%r13,%rax), %edx
	movq	%rax, %rcx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	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
.L20:
	.cfi_restore_state
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebp
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L11
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE1:
	.size	PA, .-PA
	.p2align 4
	.globl	PM
	.type	PM, @function
PM:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	E(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movslq	p(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, 0(%rbp,%rdi)
	je	.L38
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %r12d
.L27:
	leaq	.LC0(%rip), %rbx
.L28:
	movslq	%ecx, %rax
	movzbl	0(%rbp,%rax), %eax
	cmpb	$42, %al
	je	.L39
.L29:
	cmpb	$47, %al
	jne	.L25
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%rbp,%rdi)
	je	.L40
	leaq	4(%rsp), %rcx
	movq	%rbx, %rsi
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L35:
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r12d
	movslq	%ecx, %rax
	movzbl	0(%rbp,%rax), %eax
	cmpb	$42, %al
	jne	.L29
.L39:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, 0(%rbp,%rdi)
	je	.L41
	leaq	4(%rsp), %rcx
	movq	%rsp, %rdx
	addq	%rbp, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L31:
	imull	%eax, %r12d
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L40:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L25:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	movl	%r12d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdi, %rax
	addl	$1, %eax
	movl	%eax, p(%rip)
	xorl	%eax, %eax
	call	PA
	movl	%eax, %r12d
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L27
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PM, .-PM
	.p2align 4
	.globl	PT
	.type	PT, @function
PT:
.LFB2:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	movslq	p(%rip), %rdi
	leaq	E(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	cmpb	$40, (%rdx,%rdi)
	je	.L48
	movq	%rsp, %r8
	addq	%rdx, %rdi
	leaq	4(%rsp), %rcx
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC0(%rip), %rsi
	call	sscanf@PLT
	movl	4(%rsp), %eax
	addl	%eax, p(%rip)
	movl	(%rsp), %eax
.L43:
	movq	8(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L49
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L48:
	.cfi_restore_state
	movq	%rdi, %rax
	addl	$1, %eax
	movl	%eax, p(%rip)
	xorl	%eax, %eax
	call	PA
	addl	$1, p(%rip)
	jmp	.L43
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE2:
	.size	PT, .-PT
	.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
	leaq	.LC3(%rip), %r14
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rbp
	call	scanf@PLT
	.p2align 4,,10
	.p2align 3
.L51:
	xorl	%eax, %eax
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	scanf@PLT
	cmpl	$-1, %eax
	je	.L79
	movl	$0, p(%rip)
	xorl	%eax, %eax
	call	PM
	movl	%eax, %r13d
	movslq	p(%rip), %rax
	movq	%rax, %rcx
	movzbl	(%r15,%rax), %eax
.L52:
	cmpb	$43, %al
	je	.L80
.L53:
	cmpb	$45, %al
	jne	.L65
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L81
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	addq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebx
	.p2align 4,,10
	.p2align 3
.L68:
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	je	.L82
.L69:
	cmpb	$47, %al
	jne	.L73
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L83
	movq	%rbp, %rcx
	movq	%r12, %rsi
	movq	%rsp, %rdx
	addq	%r15, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L75:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	jne	.L69
.L82:
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L84
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	addq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L71:
	imull	%eax, %ebx
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L83:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L73:
	subl	%ebx, %r13d
	cmpb	$43, %al
	jne	.L53
.L80:
	leal	1(%rcx), %eax
	movl	%eax, p(%rip)
	cltq
	cmpb	$40, (%r15,%rax)
	je	.L85
	leaq	(%r15,%rax), %rdi
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %ebx
	.p2align 4,,10
	.p2align 3
.L56:
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	je	.L86
.L57:
	cmpb	$47, %al
	jne	.L61
	leal	1(%rcx), %edi
	movl	%edi, p(%rip)
	movslq	%edi, %rdi
	cmpb	$40, (%r15,%rdi)
	je	.L87
	movq	%rbp, %rcx
	movq	%r12, %rsi
	movq	%rsp, %rdx
	addq	%r15, %rdi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %esi
.L63:
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movslq	%ecx, %rax
	movzbl	(%r15,%rax), %eax
	cmpb	$42, %al
	jne	.L57
.L86:
	leal	1(%rcx), %eax
	movl	%eax, p(%rip)
	cltq
	cmpb	$40, (%r15,%rax)
	je	.L88
	leaq	(%r15,%rax), %rdi
	movq	%rbp, %rcx
	movq	%rsp, %rdx
	movq	%r12, %rsi
	xorl	%eax, %eax
	call	sscanf@PLT
	movl	4(%rsp), %ecx
	addl	p(%rip), %ecx
	movl	%ecx, p(%rip)
	movl	(%rsp), %eax
.L59:
	imull	%eax, %ebx
	jmp	.L56
	.p2align 4,,10
	.p2align 3
.L84:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L71
	.p2align 4,,10
	.p2align 3
.L81:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebx
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L87:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %esi
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L61:
	addl	%ebx, %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L88:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	p(%rip), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, p(%rip)
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L65:
	movl	%r13d, %esi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L51
.L85:
	addl	$2, %ecx
	xorl	%eax, %eax
	movl	%ecx, p(%rip)
	call	PA
	movl	%eax, %ebx
	movl	p(%rip), %eax
	leal	1(%rax), %ecx
	movl	%ecx, p(%rip)
	jmp	.L56
.L79:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L89
	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
.L89:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	E
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.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 E[200];
int p;
//A=M[+-]M[+-]M
//M=T[*/]T[*/]T
//T=(A)|%d
PM(){
	int r;
	r=PT();
	for(;;){
		if(E[p]=='*'){
			p++;
			r*=PT();
		}else if(E[p]=='/'){
			p++;
			r/=PT();
		}else
			return r;
	}
}
PA(){
	int r;
	r=PM();
	for(;;){
		if(E[p]=='+'){
			p++;
			r+=PM();
		}else if(E[p]=='-'){
			p++;
			r-=PM();
		}else
			return r;
	}
}
PT(){
	int r,l;
	if(E[p]=='('){
		p++;
		r=PA();
		p++;
	}else{
		sscanf(E+p,"%d%n",&r,&l);
		p+=l;
	}
	return r;
}
main(){
	scanf("%*d\n");
	for(;~scanf("%[^=]=\n",E);){
		p=0;
		printf("%d\n",PA());
	}
}
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 E[200];
int p;
//A=M[+-]M[+-]M
//M=T[*/]T[*/]T
//T=(A)|%d
PM(){
	int r;
	r=PT();
	for(;;){
		if(E[p]=='*'){
			p++;
			r*=PT();
		}else if(E[p]=='/'){
			p++;
			r/=PT();
		}else
			return r;
	}
}
PA(){
	int r;
	r=PM();
	for(;;){
		if(E[p]=='+'){
			p++;
			r+=PM();
		}else if(E[p]=='-'){
			p++;
			r-=PM();
		}else
			return r;
	}
}
PT(){
	int r,l;
	if(E[p]=='('){
		p++;
		r=PA();
		p++;
	}else{
		sscanf(E+p,"%d%n",&r,&l);
		p+=l;
	}
	return r;
}
main(){
	scanf("%*d\n");
	for(;~scanf("%[^=]=\n",E);){
		p=0;
		printf("%d\n",PA());
	}
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	E
	.bss
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.text
	.globl	PM
	.type	PM, @function
PM:
.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	$0, %eax
	call	PT
	movl	%eax, -4(%rbp)
.L6:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$42, %al
	jne	.L2
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$47, %al
	jne	.L4
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	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	PM, .-PM
	.globl	PA
	.type	PA, @function
PA:
.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	$0, %eax
	call	PM
	movl	%eax, -4(%rbp)
.L13:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$43, %al
	jne	.L9
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$45, %al
	jne	.L11
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	PA, .-PA
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	PT
	.type	PT, @function
PT:
.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$40, %al
	jne	.L16
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, -16(%rbp)
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	jmp	.L17
.L16:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %eax
	call	sscanf@PLT
	movl	p(%rip), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, p(%rip)
.L17:
	movl	-16(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	PT, .-PT
	.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	.L21
.L22:
	movl	$0, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L21:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	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	E
	.bss
	.align 32
	.type	E, @object
	.size	E, 200
E:
	.zero	200
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.text
	.globl	PM
	.type	PM, @function
PM:
.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	$0, %eax
	call	PT
	movl	%eax, -4(%rbp)
.L6:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$42, %al
	jne	.L2
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	movl	-4(%rbp), %edx
	imull	%edx, %eax
	movl	%eax, -4(%rbp)
	jmp	.L6
.L2:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$47, %al
	jne	.L4
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PT
	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	PM, .-PM
	.globl	PA
	.type	PA, @function
PA:
.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	$0, %eax
	call	PM
	movl	%eax, -4(%rbp)
.L13:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$43, %al
	jne	.L9
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	addl	%eax, -4(%rbp)
	jmp	.L13
.L9:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$45, %al
	jne	.L11
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PM
	subl	%eax, -4(%rbp)
	jmp	.L13
.L11:
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	PA, .-PA
	.section	.rodata
.LC0:
	.string	"%d%n"
	.text
	.globl	PT
	.type	PT, @function
PT:
.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	cmpb	$40, %al
	jne	.L16
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, -16(%rbp)
	movl	p(%rip), %eax
	addl	$1, %eax
	movl	%eax, p(%rip)
	jmp	.L17
.L16:
	movl	p(%rip), %eax
	cltq
	leaq	E(%rip), %rdx
	leaq	(%rax,%rdx), %rdi
	leaq	-12(%rbp), %rdx
	leaq	-16(%rbp), %rax
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	.LC0(%rip), %rax
	movq	%rax, %rsi
	movl	$0, %eax
	call	sscanf@PLT
	movl	p(%rip), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, p(%rip)
.L17:
	movl	-16(%rbp), %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	PT, .-PT
	.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	.L21
.L22:
	movl	$0, p(%rip)
	movl	$0, %eax
	call	PA
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L21:
	leaq	E(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L22
	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:
