// File: /workspace/github_cpp_makefile_star2_O1/martinda3[P]Compiler/src/TCparser.cpp
// Function: toyc::TCparser::IfStatement()
ASstatement* TCparser::IfStatement() // WIP
	{
		// IfStatement --> IF LPAREN Expression RPAREN Statement [ ELSE Statement ]
		enteringDEBUG("If Statement");
		ASexpression* operand = NULL;
		ASstatement* operand2 = NULL;
		ASstatement* operand3 = NULL;
		accept(IF);
		accept(LPAREN);
		operand = Expression();
		accept(RPAREN);
		operand2 = Statement();
		if (buff->getTokenType() == ELSE)
		{
			enteringDEBUG("If Statement Additional");
			accept(ELSE);
			operand3 = Statement();
			exitingDEBUG("If Statement Additional");
			exitingDEBUG("If Statement");
			return new ASifState(operand, operand2, operand3);
		}
		exitingDEBUG("If Statement");
		return new ASifState(operand, operand2);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rdi, %r15
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1c895(%rip), %rsi     # 0x2a28b
leaq 0x1c89a(%rip), %rdx     # 0x2a297
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
callq 0xfc42
movq %rbx, %rdi
callq 0xbac6
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0xda32
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r15, %rdi
movl $0x1, %esi
callq 0xc558
movq %r15, %rdi
movl $0x1e, %esi
callq 0xc558
movq %r15, %rdi
callq 0xd682
movq %rax, %rbx
movq %r15, %rdi
movl $0x1f, %esi
callq 0xc558
movq %r15, %rdi
callq 0xd946
movq %rax, %r14
movq 0x8(%r15), %rdi
callq 0x179ac
cmpl $0x4, %eax
jne 0xdb82
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1c807(%rip), %rsi     # 0x2a298
leaq 0x1c817(%rip), %rdx     # 0x2a2af
leaq 0x60(%rsp), %r12
movq %r12, %rdi
callq 0xfc42
movq %r12, %rdi
callq 0xbac6
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0xdac4
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x8260
movq %r15, %rdi
movl $0x4, %esi
callq 0xc558
movq %r15, %rdi
callq 0xd946
movq %rax, %r15
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1c7ac(%rip), %rsi     # 0x2a298
leaq 0x1c7bc(%rip), %rdx     # 0x2a2af
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0xfc42
movq %r12, %rdi
callq 0xbd28
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0xdb1f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x8260
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1c75c(%rip), %rsi     # 0x2a28b
leaq 0x1c761(%rip), %rdx     # 0x2a297
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0xfc42
movq %r12, %rdi
callq 0xbd28
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xdb62
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x50, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0xac88
jmp 0xdbde
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1c6f8(%rip), %rsi     # 0x2a28b
leaq 0x1c6fd(%rip), %rdx     # 0x2a297
movq %rsp, %r15
movq %r15, %rdi
callq 0xfc42
movq %r15, %rdi
callq 0xbd28
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xdbc3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8260
movl $0x50, %edi
callq 0x8250
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xad08
movq %r12, %rax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xdc08
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0xdc70
movq 0x30(%rsp), %rsi
jmp 0xdc68
movq %rax, %rbx
movl $0x50, %esi
movq %r12, %rdi
jmp 0xdc6b
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0xdc70
movq 0x50(%rsp), %rsi
jmp 0xdc68
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xdc70
movq 0x10(%rsp), %rsi
jmp 0xdc68
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0xdc70
movq 0x70(%rsp), %rsi
jmp 0xdc68
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0xdc70
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8260
movq %rbx, %rdi
callq 0x8420