// File: /workspace/github_cpp_makefile_star2_O3/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 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b357(%rip), %rsi     # 0x2a408
leaq 0x1b354(%rip), %rdx     # 0x2a40c
leaq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0xfc2a
movq %r14, %rdi
callq 0xbaaa
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xf0ed
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0xf3fe
movq %rax, %r12
leaq 0x18(%rsp), %r13
leaq 0x38(%rsp), %rbp
movq 0x8(%rbx), %rdi
callq 0x17fcc
cmpl $0x1d, %eax
je 0xf122
movq 0x8(%rbx), %rdi
callq 0x17fcc
cmpl $0x16, %eax
jne 0xf2ae
movq %r13, 0x8(%rsp)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x1b2d7(%rip), %rsi     # 0x2a40d
leaq 0x1b2df(%rip), %rdx     # 0x2a41c
callq 0xfc2a
movq %r14, %rdi
callq 0xbaaa
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf161
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x10, %edi
callq 0x8250
movq %rax, %r15
movq %rbx, %rdi
movl $0x1d, %esi
callq 0xc54c
movq %r15, %rdi
movq %rax, %rsi
callq 0x1ab28
movq %rbx, %rdi
callq 0xf3fe
movq %rax, %r13
movl $0x48, %edi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x25480
movq %rbp, 0x28(%rsp)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
leaq 0x1b24a(%rip), %rsi     # 0x2a40d
leaq 0x1b252(%rip), %rdx     # 0x2a41c
callq 0xfc2a
movq %r12, %rdi
callq 0xbd0c
leaq 0x18(%rsp), %r13
movq 0x28(%rsp), %rdi
movq %r14, %r12
cmpq %rbp, %rdi
je 0xf102
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r14, %r12
jmp 0xf102
movq %rdx, %r14
movq %rax, %r15
jmp 0xf21d
movq %rdx, %r14
movq %r15, %rdi
movq %rax, %r15
movl $0x10, %esi
callq 0x8260
cmpl $0x1, %r14d
jne 0xf3f6
movq %r15, %rdi
callq 0x80e0
movl $0x10, %edi
callq 0x8250
leaq 0xa8(%rsp), %r14
movq %rax, %r15
movq %rbx, %rdi
movl $0x16, %esi
callq 0xc54c
movq %r15, %rdi
movq %rax, %rsi
callq 0x1ab28
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x17fd0
movq %r14, %rdi
leaq 0x1b1bc(%rip), %rsi     # 0x2a42e
callq 0x80a0
movl %eax, %r14d
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf29f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x8260
testl %r14d, %r14d
je 0xf306
callq 0x83d0
jmp 0xf186
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b14a(%rip), %rsi     # 0x2a408
leaq 0x1b147(%rip), %rdx     # 0x2a40c
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xfc2a
movq %rbx, %rdi
callq 0xbd0c
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xf2f1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r12, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rbx
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b104(%rip), %rsi     # 0x2a41d
leaq 0x1b10f(%rip), %rdx     # 0x2a42f
leaq 0x68(%rsp), %rdi
callq 0xfc2a
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0x174db
leaq 0x68(%rsp), %rdi
callq 0x8488
movl $0x1, %edi
callq 0x82e0
movq %rax, %r15
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xf37b
movq 0x78(%rsp), %rsi
incq %rsi
jmp 0xf376
jmp 0xf366
jmp 0xf366
movq %rax, %r15
jmp 0xf37b
movq %r15, %rdi
movq %rax, %r15
movl $0x10, %esi
callq 0x8260
callq 0x83d0
jmp 0xf3f6
movq %rax, %r15
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xf3f6
movq 0x58(%rsp), %rsi
jmp 0xf3ee
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xf3b6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %r15
jmp 0xf3f6
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf3f6
movq 0x38(%rsp), %rsi
jmp 0xf3ee
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
jmp 0xf3f1
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf3f6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r15, %rdi
callq 0x8420