// File: /workspace/github_cpp_makefile_star2_O1/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 $0x3c8, %rsp            # imm = 0x3C8
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, 0x58(%rsp)
leaq 0x300(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x320(%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)
leaq 0x2e0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rsi, %rdi
movl %edx, %esi
callq 0xad1b
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x2a0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq %rax, 0x340(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x330(%rsp)
leaq 0x78(%r14), %rdi
callq 0x2070
testb %al, %al
je 0x9c02
leaq 0xf0(%rsp), %rax
movq %rax, 0x248(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0xb0(%rsp), %rax
movq %rax, 0x240(%rsp)
leaq 0x220(%rsp), %r13
leaq 0x200(%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 0x9c1a
leaq 0x230(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x3a5a
leaq 0x210(%rsp), %rax
movq %rax, 0x200(%rsp)
movq %r12, %rdi
leaq 0x5e1e(%rip), %rsi      # 0xf2e8
leaq 0x5e18(%rip), %rdx      # 0xf2e9
callq 0xa7aa
movq %r13, %rdi
movq %r12, %rsi
callq 0xad00
movl %eax, %ebp
testb %al, %al
jne 0x955f
leaq 0xf0(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0x3a5a
leaq 0x1f0(%rsp), %rax
movq %rax, 0x1e0(%rsp)
leaq 0x1e0(%rsp), %r15
movq %r15, %rdi
leaq 0x5f35(%rip), %rsi      # 0xf468
leaq 0x5f30(%rip), %rdx      # 0xf46a
callq 0xa7aa
leaq 0xe0(%rsp), %rdi
movq %r15, %rsi
callq 0xad00
testb %al, %al
je 0x955f
cmpq $0x0, 0x10(%rsp)
setne %r15b
jmp 0x9562
xorl %r15d, %r15d
testb %bpl, %bpl
jne 0x95b1
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x958c
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x95b1
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rax
cmpq %rax, %rdi
je 0x95d6
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0x95fb
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x978b
leaq 0x1d0(%rsp), %rax
movq %rax, 0x1c0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %r15
movq %r15, %rdi
callq 0x3a5a
leaq 0x250(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rdx
callq 0xa074
leaq 0x2b0(%rsp), %rdi
movq %rbp, %rsi
callq 0x2220
leaq 0x2d0(%rsp), %rdi
leaq 0x270(%rsp), %rsi
callq 0x2220
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x968e
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x96b3
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x96d8
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x1b0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x1a0(%rsp), %rdi
callq 0x3a5a
leaq 0x388(%rsp), %r15
movq %r15, %rdi
leaq 0x2b0(%rsp), %rsi
callq 0xa49a
movq 0x58(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
movq %r15, %rdx
callq 0x6902
movq 0x3a8(%rsp), %rdi
leaq 0x3b8(%rsp), %rax
cmpq %rax, %rdi
je 0x9751
movq 0x3b8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x388(%rsp), %rdi
leaq 0x398(%rsp), %rax
cmpq %rax, %rdi
je 0x9776
movq 0x398(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rcx
jmp 0x9b27
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x3a5a
leaq 0x190(%rsp), %rax
movq %rax, 0x180(%rsp)
leaq 0x180(%rsp), %r15
movq %r15, %rdi
leaq 0x5c92(%rip), %rsi      # 0xf469
leaq 0x5c8c(%rip), %rdx      # 0xf46a
callq 0xa7aa
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
callq 0xad00
movl %eax, %r15d
testb %al, %al
je 0x9851
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x3a5a
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x60(%rsp), %rbp
movq %rbp, %rdi
leaq 0x5c37(%rip), %rsi      # 0xf46b
leaq 0x5c37(%rip), %rdx      # 0xf472
callq 0xa7aa
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
callq 0xad00
testb %al, %al
je 0x9857
xorl %eax, %eax
xorl %ebp, %ebp
jmp 0x98c7
leaq 0xb0(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x3a5a
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
leaq 0x160(%rsp), %rbp
movq %rbp, %rdi
leaq 0x5a45(%rip), %rsi      # 0xf2e8
leaq 0x5a3f(%rip), %rdx      # 0xf2e9
callq 0xa7aa
leaq 0xa0(%rsp), %rdi
movq %rbp, %rsi
callq 0xad00
movl %eax, %ebp
xorb $0x1, %bpl
movb $0x1, %al
testb %al, %al
je 0x9915
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x98f0
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x9915
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x9952
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x9936
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9952
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x9977
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x999c
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %bpl, %bpl
je 0x9b43
leaq 0x150(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rbp
movq %rbp, %rdi
callq 0x3a5a
leaq 0x250(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rdx
callq 0x6490
leaq 0x2f0(%rsp), %rdi
movq %r15, %rsi
callq 0x2220
leaq 0x310(%rsp), %rdi
leaq 0x270(%rsp), %rsi
callq 0x2220
movq 0x270(%rsp), %rdi
leaq 0x280(%rsp), %rax
cmpq %rax, %rdi
je 0x9a2f
movq 0x280(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x9a54
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x9a79
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x130(%rsp), %rax
movq %rax, 0x120(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0x3a5a
leaq 0x348(%rsp), %r15
movq %r15, %rdi
leaq 0x2f0(%rsp), %rsi
callq 0xa49a
movq 0x58(%rsp), %rdi
leaq 0x120(%rsp), %rsi
movq %r15, %rdx
callq 0x6b80
movq 0x368(%rsp), %rdi
leaq 0x378(%rsp), %rax
cmpq %rax, %rdi
je 0x9af2
movq 0x378(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x348(%rsp), %rdi
leaq 0x358(%rsp), %rax
cmpq %rax, %rdi
je 0x9b17
movq 0x358(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
je 0x9455
movq (%rax), %rsi
incq %rsi
callq 0x21d0
jmp 0x9455
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0x3a5a
leaq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
leaq 0x100(%rsp), %r15
movq %r15, %rdi
leaq 0x5759(%rip), %rsi      # 0xf2e8
leaq 0x5753(%rip), %rdx      # 0xf2e9
callq 0xa7aa
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0xad00
movl %eax, %ebp
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x9bd2
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x9bf7
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %bpl, %bpl
je 0x9455
jmp 0x9c1a
movq 0xa3c7(%rip), %rdi      # 0x13fd0
leaq 0x566b(%rip), %rsi      # 0xf27b
movl $0x2c, %edx
callq 0x2210
leaq 0x330(%rsp), %rdi
callq 0x36d0
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x2e0(%rsp), %r12
je 0x9c54
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
leaq 0x300(%rsp), %rbx
leaq 0x320(%rsp), %r14
leaq 0x2c0(%rsp), %r15
je 0x9c88
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2d0(%rsp), %rdi
cmpq %r12, %rdi
je 0x9ca5
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x9cc2
movq 0x2c0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x310(%rsp), %rdi
cmpq %r14, %rdi
je 0x9cdf
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x2f0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9cfc
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa001
movq %rax, %rbx
jmp 0xa052
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x9d70
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x9d70
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xa0(%rsp), %rdi
cmpq 0x240(%rsp), %rdi
je 0x9e69
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x9e69
movq %rax, %rbx
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x9dc8
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x9dc8
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x90(%rsp), %rsi
jmp 0x9ff7
movq %rax, %rbx
leaq 0x348(%rsp), %rdi
callq 0xa4fc
jmp 0x9e2c
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x150(%rsp), %rsi
jmp 0x9ff7
movq %rax, %rbx
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x130(%rsp), %rsi
jmp 0x9ff7
jmp 0xa001
movq %rax, %rbx
jmp 0x9e82
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x60(%rsp), %rdi
cmpq 0x30(%rsp), %rdi
je 0x9e82
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x38(%rsp), %rdi
cmpq 0x28(%rsp), %rdi
je 0x9f69
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x9f69
movq %rax, %rbx
jmp 0x9f42
movq %rax, %rbx
leaq 0x388(%rsp), %rdi
callq 0xa4fc
jmp 0x9ec1
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x1b0(%rsp), %rsi
jmp 0x9ff7
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x1d0(%rsp), %rsi
jmp 0x9ff7
jmp 0xa001
movq %rax, %rbx
jmp 0x9f8e
movq %rax, %rbx
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x9f42
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xe0(%rsp), %rdi
cmpq 0x248(%rsp), %rdi
je 0x9fb5
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x9fb5
movq %rax, %rbx
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x9f8e
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0xd0(%rsp), %rsi
jmp 0x9ff7
movq %rax, %rbx
jmp 0x9fda
movq %rax, %rbx
movq 0x200(%rsp), %rdi
leaq 0x210(%rsp), %rax
cmpq %rax, %rdi
je 0x9fda
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0xa004
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0xa004
movq %rax, %rbx
leaq 0x18(%rsp), %r14
leaq 0x330(%rsp), %rdi
callq 0x36d0
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0xa03b
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xa052
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x2b0(%rsp), %rdi
callq 0xa4fc
leaq 0x2f0(%rsp), %rdi
callq 0xa4fc
movq %rbx, %rdi
callq 0x2300