// File: /workspace/github_cpp_makefile_star2_O1/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 0x1b33f(%rip), %rsi     # 0x2a408
leaq 0x1b33c(%rip), %rdx     # 0x2a40c
leaq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0xfc42
movq %r14, %rdi
callq 0xbac6
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xf105
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0xf416
movq %rax, %r12
leaq 0x18(%rsp), %r13
leaq 0x38(%rsp), %rbp
movq 0x8(%rbx), %rdi
callq 0x179ac
cmpl $0x1d, %eax
je 0xf13a
movq 0x8(%rbx), %rdi
callq 0x179ac
cmpl $0x16, %eax
jne 0xf2c6
movq %r13, 0x8(%rsp)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x1b2bf(%rip), %rsi     # 0x2a40d
leaq 0x1b2c7(%rip), %rdx     # 0x2a41c
callq 0xfc42
movq %r14, %rdi
callq 0xbac6
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf179
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x10, %edi
callq 0x8250
movq %rax, %r15
movq %rbx, %rdi
movl $0x1d, %esi
callq 0xc558
movq %r15, %rdi
movq %rax, %rsi
callq 0x1a4f0
movq %rbx, %rdi
callq 0xf416
movq %rax, %r13
movl $0x48, %edi
callq 0x8250
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x24e50
movq %rbp, 0x28(%rsp)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
leaq 0x1b232(%rip), %rsi     # 0x2a40d
leaq 0x1b23a(%rip), %rdx     # 0x2a41c
callq 0xfc42
movq %r12, %rdi
callq 0xbd28
leaq 0x18(%rsp), %r13
movq 0x28(%rsp), %rdi
movq %r14, %r12
cmpq %rbp, %rdi
je 0xf11a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r14, %r12
jmp 0xf11a
movq %rdx, %r14
movq %rax, %r15
jmp 0xf235
movq %rdx, %r14
movq %r15, %rdi
movq %rax, %r15
movl $0x10, %esi
callq 0x8260
cmpl $0x1, %r14d
jne 0xf40e
movq %r15, %rdi
callq 0x80e0
movl $0x10, %edi
callq 0x8250
leaq 0xa8(%rsp), %r14
movq %rax, %r15
movq %rbx, %rdi
movl $0x16, %esi
callq 0xc558
movq %r15, %rdi
movq %rax, %rsi
callq 0x1a4f0
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x179b0
movq %r14, %rdi
leaq 0x1b1a4(%rip), %rsi     # 0x2a42e
callq 0x80a0
movl %eax, %r14d
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0xf2b7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x8260
testl %r14d, %r14d
je 0xf31e
callq 0x83d0
jmp 0xf19e
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b132(%rip), %rsi     # 0x2a408
leaq 0x1b12f(%rip), %rdx     # 0x2a40c
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xfc42
movq %rbx, %rdi
callq 0xbd28
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xf309
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 0x1b0ec(%rip), %rsi     # 0x2a41d
leaq 0x1b0f7(%rip), %rdx     # 0x2a42f
leaq 0x68(%rsp), %rdi
callq 0xfc42
leaq 0x68(%rsp), %rsi
movq %rbx, %rdi
callq 0x16ebd
leaq 0x68(%rsp), %rdi
callq 0x8488
movl $0x1, %edi
callq 0x82e0
movq %rax, %r15
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xf393
movq 0x78(%rsp), %rsi
incq %rsi
jmp 0xf38e
jmp 0xf37e
jmp 0xf37e
movq %rax, %r15
jmp 0xf393
movq %r15, %rdi
movq %rax, %r15
movl $0x10, %esi
callq 0x8260
callq 0x83d0
jmp 0xf40e
movq %rax, %r15
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0xf40e
movq 0x58(%rsp), %rsi
jmp 0xf406
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xf3ce
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %r15
jmp 0xf40e
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf40e
movq 0x38(%rsp), %rsi
jmp 0xf406
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
jmp 0xf409
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xf40e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r15, %rdi
callq 0x8420