// File: /workspace/github_cpp_makefile_star2_O2/martinda3[P]Compiler/src/TCparser.cpp
// Function: toyc::TCparser::Term()
ASexpression* TCparser::Term() // WIP
	{
		// Term --> Primary { MULTI Primary }
		enteringDEBUG("Term");
        TCtoken *token;
		ASexpression* operand = NULL;
		ASexpression* operand2 = NULL;
		ASoperator* operand3 = NULL;
		operand = Primary();
		while (buff->getTokenType() == MULTI || buff->getTokenType() == DIVOP)
		{
			enteringDEBUG("Term Additional");
            try
            {
                operand3 = new ASoperator(accept(MULTI));
            }
            catch (int t)
            {
                operand3 = new ASoperator(accept(DIVOP));
                token = buff;
                if (token->getLexeme() == "0")
                {
                    reportSEMANTIC_ERROR(scanner,"Cannot Divide by 0");
                    exit(EXIT_FAILURE);
                }
            }
			operand2 = Primary();
			operand = new ASexpr(operand3, operand2, operand);
			exitingDEBUG("Term Additional");
		}
		exitingDEBUG("Term");
		return operand;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x104b5(%rip), %rsi     # 0x1d3dc
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xd770
leaq 0x68(%rsp), %rdi
callq 0xa70a
leaq 0x68(%rsp), %rdi
callq 0x8478
movq %rbx, (%rsp)
movq %rbx, %rdi
callq 0xd1c8
movq %rax, %rbp
leaq 0x10481(%rip), %r12     # 0x1d3e1
leaq 0x88(%rsp), %r15
leaq 0x8(%rsp), %r13
movq (%rsp), %rbx
movq 0x8(%rbx), %rdi
callq 0x119f0
cmpl $0x1d, %eax
je 0xcf91
movq 0x8(%rbx), %rdi
callq 0x119f0
cmpl $0x16, %eax
jne 0xd0cb
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xd770
movq %r15, %rdi
callq 0xa70a
movq %r15, %rdi
callq 0x8478
pushq $0x10
popq %rdi
callq 0x8250
movq %rax, %r15
movq (%rsp), %rdi
pushq $0x1d
popq %rsi
callq 0xaeb8
movq %r15, %rdi
movq %rax, %rsi
callq 0x1311c
movq %rbp, %r13
movq %r12, %rbp
movq (%rsp), %rdi
callq 0xd1c8
movq %rax, %r12
pushq $0x48
popq %rdi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0x19ba0
leaq 0xa8(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %r12
movq %rbp, %rsi
leaq 0x8(%rsp), %r13
movq %r13, %rdx
callq 0xd770
leaq 0x88(%rsp), %r15
movq %rbx, %rdi
callq 0xa888
movq %rbx, %rdi
callq 0x8478
movq %r14, %rbp
jmp 0xcf6d
movq %rdx, %r14
movq %rax, %rbx
jmp 0xd056
movq %rdx, %r14
movq %rax, %rbx
movq %r15, %rdi
pushq $0x10
popq %rsi
callq 0x8260
cmpl $0x1, %r14d
jne 0xd1bf
movq %rbx, %rdi
callq 0x80e0
pushq $0x10
popq %rdi
callq 0x8250
movq %rax, %r15
movq (%rsp), %rdi
pushq $0x16
popq %rsi
callq 0xaeb8
movq %r15, %rdi
movq %rax, %rsi
callq 0x1311c
movq (%rsp), %rax
movq 0x8(%rax), %rsi
movq %r13, %rdi
callq 0x119f4
movq %r13, %r14
movq %rbp, %r13
movq %r14, %rdi
leaq 0x10358(%rip), %rsi     # 0x1d402
callq 0xd821
movl %eax, %ebp
movq %r14, %rdi
callq 0x8478
testb %bpl, %bpl
jne 0xd10a
movq %r12, %rbp
callq 0x83b0
jmp 0xcfd7
leaq 0x1030a(%rip), %rsi     # 0x1d3dc
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xd770
leaq 0x28(%rsp), %rdi
callq 0xa888
leaq 0x28(%rsp), %rdi
callq 0x8478
movq %rbp, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
movq (%rax), %rbx
leaq 0x102d9(%rip), %rsi     # 0x1d3f1
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xd770
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x11393
leaq 0x48(%rsp), %rdi
callq 0x8478
pushq $0x1
popq %rdi
callq 0x82c0
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8478
jmp 0xd16c
jmp 0xd169
jmp 0xd169
movq %rax, %rbx
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x8260
jmp 0xd16c
movq %rax, %rbx
callq 0x83b0
jmp 0xd1bf
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0xd1ba
jmp 0xd1aa
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0xd1ba
jmp 0xd1aa
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0xd1ba
jmp 0xd1aa
movq %rax, %rbx
pushq $0x48
popq %rsi
movq %r14, %rdi
callq 0x8260
jmp 0xd1bf
movq %rax, %rbx
jmp 0xd1bf
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x8478
movq %rbx, %rdi
callq 0x8400
nop