// File: /workspace/github_cpp_makefile_star2_O3/Blaze2305[P]Compiler-Design-2021-Assignment/src/Parser/Parser.cpp
// Function: Parser::parseStmt()
void Parser::parseStmt(){
	tabNum+=1;
	printParseEnters(tabNum,tabChar,"parseStmt");
	if(checkToken(Identifier)){
		parseAssignementStmt();
	}else if(checkToken(Read)){
		parseReadStmt();
	}else if(checkToken(Print)){
		parsePrintStmt();
	}else if(checkToken(If)){
		parseIfStmt();
	}else if(checkToken(While)){
		parseWhileStmt();
	}else{
		std::ostringstream out;
		out << "Syntax error on line ";
		out << currentToken.lineNumber;
		throw  std::runtime_error(out.str());
	}
	tabNum-=1;
	printParseExits(tabNum,tabChar,"parseStmt");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rbx
movl 0x831a(%rip), %r14d     # 0x1020c
incl %r14d
movl %r14d, 0x8310(%rip)     # 0x1020c
movsbl 0x8304(%rip), %r15d     # 0x10208
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x43a9(%rip), %rsi      # 0xc2bc
leaq 0x43ab(%rip), %rdx      # 0xc2c5
leaq -0x68(%rbp), %r12
movq %r12, %rdi
callq 0x644a
movl %r14d, %edi
movl %r15d, %esi
movq %r12, %rdx
callq 0xb2e1
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x7f49
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
movl (%rbx), %ecx
leal -0x10(%rcx), %eax
cmpl $0x4, %eax
ja 0x7f6d
leaq 0x4242(%rip), %rcx      # 0xc19c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
callq 0x8598
jmp 0x7f9b
testl %ecx, %ecx
jne 0x8008
movq %rbx, %rdi
callq 0x823e
jmp 0x7f9b
movq %rbx, %rdi
callq 0x847e
jmp 0x7f9b
movq %rbx, %rdi
callq 0x8362
jmp 0x7f9b
movq %rbx, %rdi
callq 0x86dc
movl 0x826b(%rip), %ebx      # 0x1020c
decl %ebx
movl %ebx, 0x8263(%rip)      # 0x1020c
movsbl 0x8257(%rip), %r14d     # 0x10208
leaq -0x38(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x42fb(%rip), %rsi      # 0xc2bc
leaq 0x42fd(%rip), %rdx      # 0xc2c5
leaq -0x48(%rbp), %r15
movq %r15, %rdi
callq 0x644a
movl %ebx, %edi
movl %r14d, %esi
movq %r15, %rdx
callq 0xb2e7
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x7ff6
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x21e0
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x200(%rbp), %r14
movq %r14, %rdi
callq 0x2290
leaq 0x4192(%rip), %rsi      # 0xc1b0
movl $0x15, %edx
movq %r14, %rdi
callq 0x2210
movl 0x28(%rbx), %esi
leaq -0x200(%rbp), %rdi
callq 0x2380
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
leaq -0x1f8(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0x2310
movb $0x1, %r15b
leaq -0x88(%rbp), %rsi
movq %r14, %rdi
callq 0x2320
xorl %r15d, %r15d
movq 0x7f7a(%rip), %rsi      # 0xfff0
movq 0x7f43(%rip), %rdx      # 0xffc0
movq %r14, %rdi
callq 0x2370
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x80a1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21e0
testb %r15b, %r15b
jne 0x80ab
jmp 0x80b8
movq %rax, %rbx
movq %r14, %rdi
callq 0x2160
jmp 0x80b8
movq %rax, %rbx
movq 0x7f09(%rip), %rsi      # 0xffc8
leaq -0x200(%rbp), %rdi
callq 0x2110
leaq -0x190(%rbp), %rdi
callq 0x20a0
jmp 0x8103
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x8103
movq -0x38(%rbp), %rsi
jmp 0x80fb
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x8103
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
movq %rbx, %rdi
callq 0x2390
nop