// File: /workspace/github_cpp_makefile_star2_O3/Blaze2305[P]Compiler-Design-2021-Assignment/src/SymTab/SymTab.cpp
// Function: SymbolTable::addSymbolToTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void SymbolTable::addSymbolToTable(std::string symbolName,int lineNumber ,std::string type){
	try{
		SymTabRow tableRow = SymbolTableMap.at(symbolName); 
		std::ostringstream out;
		out << "Symbol " << symbolName << " already declared before.\n";
		out << "Previous declaration at " << tableRow.lineNumber + "\n";
		throw std::runtime_error(out.str());
	}catch(std::out_of_range err){
		this->SymbolTableMap[symbolName] = SymTabRow{symbolName,type,"",lineNumber};
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rcx, %r12
movl %edx, -0x2c(%rbp)
movq %rsi, %rbx
movq %rdi, -0x40(%rbp)
callq 0xa5ae
movq %rax, %r15
leaq -0x98(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x67c4
leaq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x20(%r15), %rsi
movq 0x28(%r15), %rdx
addq %rsi, %rdx
callq 0x67c4
leaq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x40(%r15), %rsi
movq 0x48(%r15), %rdx
addq %rsi, %rdx
callq 0x67c4
movl 0x60(%r15), %eax
movl %eax, -0x48(%rbp)
leaq -0x240(%rbp), %rdi
callq 0x2290
leaq 0x2760(%rip), %rsi      # 0xc377
leaq -0x240(%rbp), %rdi
movl $0x7, %edx
callq 0x2210
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
leaq -0x240(%rbp), %rdi
callq 0x2210
leaq 0x273d(%rip), %rsi      # 0xc37f
movl $0x1a, %edx
movq %rax, %rdi
callq 0x2210
leaq 0x2744(%rip), %rsi      # 0xc39a
leaq -0x240(%rbp), %rdi
movl $0x18, %edx
callq 0x2210
movslq -0x48(%rbp), %rax
leaq 0x2760(%rip), %r15      # 0xc3d2
addq %rax, %r15
movq %r15, %rdi
callq 0x20e0
leaq -0x240(%rbp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2210
movl $0x10, %edi
callq 0x20f0
movq %rax, %r14
leaq -0x238(%rbp), %rsi
leaq -0xc8(%rbp), %rdi
movq %rax, -0x38(%rbp)
callq 0x2310
movb $0x1, %r13b
leaq -0xc8(%rbp), %rsi
movq %r14, %rdi
callq 0x2320
xorl %r13d, %r13d
movq 0x6321(%rip), %rsi      # 0xfff0
movq 0x62ea(%rip), %rdx      # 0xffc0
movq -0x38(%rbp), %rdi
callq 0x2370
movq %rdx, %r15
movq %rax, %r14
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d04
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x21e0
testb %r13b, %r13b
leaq -0x98(%rbp), %r13
jne 0x9d18
jmp 0x9d29
movq %rdx, %r15
movq %rax, %r14
movq -0x38(%rbp), %rdi
callq 0x2160
jmp 0x9d29
movq %rdx, %r15
movq %rax, %r14
movq 0x6298(%rip), %rsi      # 0xffc8
leaq -0x240(%rbp), %rdi
callq 0x2110
leaq -0x1d0(%rbp), %rdi
callq 0x20a0
jmp 0x9d50
movq %rdx, %r15
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x9d71
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x9d71
movq %rdx, %r15
movq %rax, %r14
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x9d95
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x9d95
movq %rdx, %r15
movq %rax, %r14
movq -0xa8(%rbp), %rdi
cmpq %r13, %rdi
je 0x9db8
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x9db8
movq %rdx, %r15
movq %rax, %r14
cmpl $0x1, %r15d
jne 0x9f97
movq %r14, %rdi
callq 0x2270
leaq -0xa8(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2350
movq 0x61d5(%rip), %rax      # 0xffb8
addq $0x10, %rax
movq %rax, (%r15)
movq %r14, %rdi
callq 0x20c0
leaq -0x230(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x240(%rbp), %rdi
callq 0x67c4
leaq -0x220(%rbp), %r15
leaq -0x210(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x67c4
leaq -0x200(%rbp), %r12
leaq -0x1f0(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2581(%rip), %rdx      # 0xc3d3
movq %r12, %rdi
movq %rdx, %rsi
callq 0x644a
movl -0x2c(%rbp), %eax
movl %eax, -0x1e0(%rbp)
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
callq 0xa66a
movq %rax, %rbx
leaq -0x240(%rbp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x2260
leaq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x2260
movq %rbx, %rdi
addq $0x40, %rdi
movq %r12, %rsi
callq 0x2260
movl 0x60(%r14), %eax
movl %eax, 0x60(%rbx)
movq 0x40(%r14), %rdi
cmpq %r13, %rdi
je 0x9ec1
movq -0x1f0(%rbp), %rsi
incq %rsi
callq 0x21e0
movq -0x220(%rbp), %rdi
leaq -0x210(%rbp), %rax
cmpq %rax, %rdi
leaq -0x230(%rbp), %rbx
je 0x9eea
movq -0x210(%rbp), %rsi
incq %rsi
callq 0x21e0
movq -0x240(%rbp), %rdi
cmpq %rbx, %rdi
je 0x9f05
movq -0x230(%rbp), %rsi
incq %rsi
callq 0x21e0
leaq -0xa8(%rbp), %rdi
callq 0x22b0
callq 0x2330
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x240(%rbp), %rdi
callq 0xa60c
jmp 0x9f86
movq %r14, %rcx
movq %rax, %r14
movq -0x220(%rbp), %rdi
cmpq %rcx, %rdi
je 0x9f5f
movq -0x210(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x9f5f
movq %rax, %r14
movq -0x240(%rbp), %rdi
leaq -0x230(%rbp), %rax
cmpq %rax, %rdi
je 0x9f86
movq -0x230(%rbp), %rsi
incq %rsi
callq 0x21e0
jmp 0x9f86
movq %rax, %r14
leaq -0xa8(%rbp), %rdi
callq 0x22b0
callq 0x2330
movq %r14, %rdi
callq 0x2390
movq %rax, %rdi
callq 0x63ac
nop