// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/SCmain.cpp
// Function: ScMain::find_module_elements(std::basic_ifstream<char, std::char_traits<char>>&, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void ScMain::find_module_elements (ifstream &debugSymbol, unsigned int lineNum, string m_name){
	NT VarNameType;
	NT FuncNameType;
	GotoLine(debugSymbol, lineNum);
	string line, string_type;
	vector<string> split_line;
	
	if (debugSymbol.is_open()){
		while (getline(debugSymbol, line)) {
			if((!string_finder(line, "}")) && (string_finder(line, ");")) && (!line.empty())){
				FuncNameType = find_module_func(line);
				set_static_data_func (m_name, FuncNameType);
			}
			else if ((string_finder(line, ";")) && (!string_finder(line, TYPEDEF)) && (!string_finder(line, "}"))){
				VarNameType = find_module_var (line);
				set_static_data_var (m_name, VarNameType);
				
			}
			else if (string_finder(line, "}"))
				break;
		}
	}		
	else 
		cout << "\033[1;31mUnable to open Debug Symbol file\033[0m\n"; 	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3a8, %rsp            # imm = 0x3A8
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, 0x28(%rsp)
leaq 0x2e0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x300(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2a0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2c0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rsi, %rdi
movl %edx, %esi
callq 0xa61f
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x280(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rax, 0x320(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x310(%rsp)
leaq 0x78(%r14), %rdi
callq 0x2070
testb %al, %al
je 0x956f
leaq 0x40(%rsp), %rbp
leaq 0x210(%rsp), %r12
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %edx
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x9587
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x3a4c
leaq 0x220(%rsp), %rax
movq %rax, 0x210(%rsp)
movq %r12, %rdi
leaq 0x549e(%rip), %rsi      # 0xe2e8
leaq 0x5498(%rip), %rdx      # 0xe2e9
callq 0xa0b2
leaq 0xd0(%rsp), %rdi
movq %r12, %rsi
callq 0xa604
testb %al, %al
je 0x8e72
xorl %r15d, %r15d
jmp 0x8f39
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x3a4c
leaq 0x200(%rsp), %rax
movq %rax, 0x1f0(%rsp)
leaq 0x1f0(%rsp), %r15
movq %r15, %rdi
leaq 0x55aa(%rip), %rsi      # 0xe468
leaq 0x55a5(%rip), %rdx      # 0xe46a
callq 0xa0b2
leaq 0xb0(%rsp), %rdi
movq %r15, %rsi
callq 0xa604
movl %eax, %r15d
cmpq $0x0, 0x10(%rsp)
setne %bpl
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x8f0c
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x21d0
andb %bpl, %r15b
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f34
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x40(%rsp), %rbp
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x8f5e
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x8f83
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x9113
leaq 0x1e0(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %r15
movq %r15, %rdi
callq 0x3a4c
leaq 0x230(%rsp), %r13
movq %r13, %rdi
movq %r15, %rdx
callq 0x99b8
leaq 0x290(%rsp), %rdi
movq %r13, %rsi
callq 0x2220
leaq 0x2b0(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x2220
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x9016
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x903b
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x9060
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x1c0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0x3a4c
leaq 0x368(%rsp), %r15
movq %r15, %rdi
leaq 0x290(%rsp), %rsi
callq 0x9da8
movq 0x28(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
movq %r15, %rdx
callq 0x674e
movq 0x388(%rsp), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x90d9
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x368(%rsp), %rdi
leaq 0x378(%rsp), %rax
cmpq %rax, %rdi
je 0x90fe
movq 0x378(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rcx
jmp 0x94a8
movq %rbp, 0x30(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x3a4c
leaq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
leaq 0x190(%rsp), %r15
movq %r15, %rdi
leaq 0x5318(%rip), %rsi      # 0xe469
leaq 0x5312(%rip), %rdx      # 0xe46a
callq 0xa0b2
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0xa604
testb %al, %al
je 0x91e2
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0x3a4c
leaq 0x180(%rsp), %rax
movq %rax, 0x170(%rsp)
leaq 0x170(%rsp), %r15
movq %r15, %rdi
leaq 0x52b1(%rip), %rsi      # 0xe46b
leaq 0x52b1(%rip), %rdx      # 0xe472
callq 0xa0b2
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0xa604
testb %al, %al
je 0x91ea
xorl %r15d, %r15d
jmp 0x9297
xorl %r15d, %r15d
jmp 0x92e1
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x3a4c
leaq 0x160(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x150(%rsp), %r15
movq %r15, %rdi
leaq 0x50b8(%rip), %rsi      # 0xe2e8
leaq 0x50b2(%rip), %rdx      # 0xe2e9
callq 0xa0b2
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
callq 0xa604
movl %eax, %r15d
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x9271
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x21d0
xorb $0x1, %r15b
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9297
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x92bc
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x92e1
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x9306
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x931d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x94c4
leaq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x130(%rsp), %r13
movq %r13, %rdi
callq 0x3a4c
leaq 0x230(%rsp), %r15
movq %r15, %rdi
movq %r13, %rdx
callq 0x62f8
leaq 0x2d0(%rsp), %rdi
movq %r15, %rsi
callq 0x2220
leaq 0x2f0(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x2220
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x93b0
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x230(%rsp), %rdi
leaq 0x240(%rsp), %rax
cmpq %rax, %rdi
je 0x93d5
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x93fa
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x110(%rsp), %rdi
callq 0x3a4c
leaq 0x328(%rsp), %r15
movq %r15, %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x9da8
movq 0x28(%rsp), %rdi
leaq 0x110(%rsp), %rsi
movq %r15, %rdx
callq 0x69cc
movq 0x348(%rsp), %rdi
leaq 0x358(%rsp), %rax
cmpq %rax, %rdi
je 0x9473
movq 0x358(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x328(%rsp), %rdi
leaq 0x338(%rsp), %rax
cmpq %rax, %rdi
je 0x9498
movq 0x338(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x8dd0
movq (%rax), %rsi
incq %rsi
callq 0x21d0
jmp 0x8dd0
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x3a4c
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
leaq 0xf0(%rsp), %r15
movq %r15, %rdi
leaq 0x4de1(%rip), %rsi      # 0xe2e8
leaq 0x4ddb(%rip), %rdx      # 0xe2e9
callq 0xa0b2
leaq 0x50(%rsp), %rdi
movq %r15, %rsi
callq 0xa604
movl %eax, %r15d
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x9548
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x9564
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x8dd0
jmp 0x9587
movq 0x9a5a(%rip), %rdi      # 0x12fd0
leaq 0x4cfe(%rip), %rsi      # 0xe27b
movl $0x2c, %edx
callq 0x2210
leaq 0x310(%rsp), %rdi
callq 0x36c0
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
leaq 0x2c0(%rsp), %r12
je 0x95c1
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
leaq 0x2e0(%rsp), %rbx
leaq 0x300(%rsp), %r14
leaq 0x2a0(%rsp), %r15
je 0x95f5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2b0(%rsp), %rdi
cmpq %r12, %rdi
je 0x9612
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x290(%rsp), %rdi
cmpq %r15, %rdi
je 0x962f
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x964c
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2d0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9669
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9945
movq %rax, %rbx
jmp 0x9996
movq %rax, %rbx
jmp 0x96b5
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x96b5
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x979b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x979b
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x970d
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x970d
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x60(%rsp), %rsi
jmp 0x993b
movq %rax, %rbx
leaq 0x328(%rsp), %rdi
callq 0x9e0a
jmp 0x9768
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x140(%rsp), %rsi
jmp 0x993b
movq %rax, %rbx
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x120(%rsp), %rsi
jmp 0x993b
jmp 0x9945
movq %rax, %rbx
jmp 0x97c0
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x97c0
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x98b6
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x98b6
movq %rax, %rbx
jmp 0x988c
movq %rax, %rbx
leaq 0x368(%rsp), %rdi
callq 0x9e0a
jmp 0x980b
movq %rax, %rbx
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x1c0(%rsp), %rsi
jmp 0x993b
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x1e0(%rsp), %rsi
jmp 0x993b
jmp 0x9945
movq %rax, %rbx
jmp 0x98db
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
leaq 0x200(%rsp), %rax
cmpq %rax, %rdi
je 0x988c
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x98f9
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x98f9
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x98db
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0x40(%rsp), %rsi
jmp 0x993b
movq %rax, %rbx
jmp 0x991e
movq %rax, %rbx
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x991e
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x9948
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x9948
movq %rax, %rbx
leaq 0x18(%rsp), %r14
leaq 0x310(%rsp), %rdi
callq 0x36c0
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x997f
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9996
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x290(%rsp), %rdi
callq 0x9e0a
leaq 0x2d0(%rsp), %rdi
callq 0x9e0a
movq %rbx, %rdi
callq 0x2300