// File: yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::term()
obj_t* tscrpt_t::term() {
	obj_t *o(factor());
	while(more()){ // mul,div
		obj_t *l(0),*r(0);
		try {
			if     (is('*')){ o=mul(l=o, r=factor()); }
			else if(is('/')){ o=div(l=o, r=factor()); }
			else if(is('%')){ o=rem(l=o, r=factor()); }
			else break;
		}catch(std::runtime_error& e){
			delete l;
			delete r;
			clear();
			throw;
		}
		delete l;
		delete r;
	}
	return o;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
callq 0x3ae0
movq %rax, -0x10(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3160
testb $0x1, %al
jne 0x3562
jmp 0x37c5
movq -0x40(%rbp), %rdi
movq $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x2a, %esi
movl $0x1, %edx
callq 0x3190
movb %al, -0x41(%rbp)
jmp 0x358a
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x3596
jmp 0x3661
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rax, -0x18(%rbp)
callq 0x3ae0
movq %rax, -0x50(%rbp)
jmp 0x35b1
movq -0x50(%rbp), %rdx
movq -0x58(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq %rdx, -0x20(%rbp)
callq 0x3ce0
movq %rax, -0x60(%rbp)
jmp 0x35cc
movq -0x60(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x374d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x37d2
movq -0x28(%rbp), %rdi
callq 0x20d0
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, %rax
je 0x3627
movq -0x68(%rbp), %rdi
callq 0x4480
movq -0x68(%rbp), %rdi
movl $0x30, %esi
callq 0x21d0
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0x364c
movq -0x70(%rbp), %rdi
callq 0x4480
movq -0x70(%rbp), %rdi
movl $0x30, %esi
callq 0x21d0
movq -0x40(%rbp), %rdi
callq 0x2600
jmp 0x3657
callq 0x22c0
jmp 0x37e3
movq -0x40(%rbp), %rdi
movl $0x2f, %esi
movl $0x1, %edx
callq 0x3190
movb %al, -0x71(%rbp)
jmp 0x3679
movb -0x71(%rbp), %al
testb $0x1, %al
jne 0x3682
jmp 0x36ce
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq %rax, -0x18(%rbp)
callq 0x3ae0
movq %rax, -0x80(%rbp)
jmp 0x36a0
movq -0x80(%rbp), %rdx
movq -0x88(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq %rdx, -0x20(%rbp)
callq 0x3e90
movq %rax, -0x90(%rbp)
jmp 0x36c1
movq -0x90(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x374b
movq -0x40(%rbp), %rdi
movl $0x25, %esi
movl $0x1, %edx
callq 0x3190
movb %al, -0x91(%rbp)
jmp 0x36e9
movb -0x91(%rbp), %al
testb $0x1, %al
jne 0x36f5
jmp 0x3747
movq -0x40(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq %rax, -0x18(%rbp)
callq 0x3ae0
movq %rax, -0xa0(%rbp)
jmp 0x3716
movq -0xa0(%rbp), %rdx
movq -0xa8(%rbp), %rsi
movq -0x40(%rbp), %rdi
movq %rdx, -0x20(%rbp)
callq 0x4010
movq %rax, -0xb0(%rbp)
jmp 0x373a
movq -0xb0(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x3749
jmp 0x37c5
jmp 0x374b
jmp 0x374d
jmp 0x3764
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x22f0
jmp 0x3762
jmp 0x37d2
movq -0x18(%rbp), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, %rax
je 0x3792
movq -0xb8(%rbp), %rdi
callq 0x4480
movq -0xb8(%rbp), %rdi
movl $0x30, %esi
callq 0x21d0
movq -0x20(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, %rax
je 0x37c0
movq -0xc0(%rbp), %rdi
callq 0x4480
movq -0xc0(%rbp), %rdi
movl $0x30, %esi
callq 0x21d0
jmp 0x3550
movq -0x10(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x2330
movq %rax, %rdi
callq 0x4240
nopw %cs:(%rax,%rax)