// File: /workspace/github_cpp_makefile_star2_O2/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 $0x3b8, %rsp            # imm = 0x3B8
movq %rcx, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
leaq 0x208(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x228(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x1c8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
andq $0x0, -0x8(%rsi)
movb %cl, (%rax)
movb %cl, (%rsi)
leaq 0x1e8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movq %rbx, %rdi
movl %edx, %esi
callq 0x7641
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
leaq 0x1a8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
leaq 0x78(%rbx), %rdi
callq 0x2070
testb %al, %al
je 0x67bf
movq %rbx, 0x18(%rsp)
leaq 0xb8(%rsp), %r12
leaq 0x2d8(%rsp), %rbx
leaq 0x378(%rsp), %r15
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x2050
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x67d2
leaq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
movq %rbx, %rdi
leaq 0x3e85(%rip), %rsi      # 0xa2f2
movq %r15, %rdx
callq 0x31b8
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x7630
testb %al, %al
je 0x64a3
movq %rbx, %rdi
callq 0x2110
leaq 0x98(%rsp), %rdi
callq 0x2110
jmp 0x65aa
leaq 0x178(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
leaq 0x2b8(%rsp), %r13
movq %r13, %rdi
leaq 0x3fad(%rip), %rsi      # 0xa472
leaq 0x6(%rsp), %rdx
callq 0x31b8
leaq 0x178(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x7630
movl %eax, %ebp
cmpq $0x0, 0xc0(%rsp)
setne %al
andb %al, %bpl
movq %r13, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2110
leaq 0x98(%rsp), %rdi
callq 0x2110
cmpb $0x1, %bpl
jne 0x65aa
leaq 0x298(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x2260
movq %r15, %rdi
movq %r14, %rdx
callq 0x69ac
leaq 0x1b8(%rsp), %rdi
movq %r15, %rsi
callq 0x6d5e
movq %r15, %rdi
callq 0x334e
movq %r14, %rdi
callq 0x2110
leaq 0x158(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2260
leaq 0x338(%rsp), %r14
movq %r14, %rdi
leaq 0x1b8(%rsp), %rsi
callq 0x6d24
movq 0x8(%rsp), %rdi
leaq 0x158(%rsp), %rbp
movq %rbp, %rsi
movq %r14, %rdx
callq 0x4e18
movq %r14, %rdi
jmp 0x67ad
leaq 0x78(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
leaq 0x58(%rsp), %rbp
movq %rbp, %rdi
leaq 0x3ead(%rip), %rsi      # 0xa473
movq %r15, %rdx
callq 0x31b8
leaq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x7630
testb %al, %al
je 0x6634
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
leaq 0xd8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x3e77(%rip), %rsi      # 0xa475
leaq 0x6(%rsp), %rdx
callq 0x31b8
leaq 0x38(%rsp), %rdi
movq %rbp, %rsi
callq 0x7630
testb %al, %al
je 0x66a5
leaq 0xd8(%rsp), %rdi
callq 0x2110
leaq 0x38(%rsp), %rdi
callq 0x2110
leaq 0x58(%rsp), %rdi
callq 0x2110
leaq 0x78(%rsp), %rdi
callq 0x2110
leaq 0xf8(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
leaq 0x238(%rsp), %r14
movq %r14, %rdi
leaq 0x3c88(%rip), %rsi      # 0xa2f2
movq %r15, %rdx
callq 0x31b8
leaq 0xf8(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x7630
movl %eax, %ebp
movq %r14, %rdi
callq 0x2110
movq %r13, %rdi
callq 0x2110
testb %bpl, %bpl
je 0x6434
jmp 0x67d2
leaq 0x138(%rsp), %rdi
movq %r12, %rsi
callq 0x2260
leaq 0x278(%rsp), %r13
movq %r13, %rdi
leaq 0x3c2b(%rip), %rsi      # 0xa2f2
leaq 0x7(%rsp), %rdx
callq 0x31b8
leaq 0x138(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x7630
movl %eax, %ebp
movq %r13, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2110
leaq 0xd8(%rsp), %rdi
callq 0x2110
leaq 0x38(%rsp), %rdi
callq 0x2110
leaq 0x58(%rsp), %rdi
callq 0x2110
leaq 0x78(%rsp), %rdi
callq 0x2110
testb %bpl, %bpl
jne 0x6648
leaq 0x258(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x2260
movq %r15, %rdi
movq %r13, %rdx
callq 0x4ad4
leaq 0x1f8(%rsp), %rdi
movq %r15, %rsi
callq 0x6d5e
movq %r15, %rdi
callq 0x334e
movq %r13, %rdi
callq 0x2110
leaq 0x118(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2260
leaq 0x2f8(%rsp), %r13
movq %r13, %rdi
leaq 0x1f8(%rsp), %rsi
callq 0x6d24
movq 0x8(%rsp), %rdi
leaq 0x118(%rsp), %rbp
movq %rbp, %rsi
movq %r13, %rdx
callq 0x4fa0
movq %r13, %rdi
callq 0x334e
movq %rbp, %rdi
callq 0x2110
jmp 0x6434
movq 0x880a(%rip), %rdi      # 0xefd0
leaq 0x3ab8(%rip), %rsi      # 0xa285
callq 0x21d0
leaq 0x20(%rsp), %rdi
callq 0x322e
leaq 0x198(%rsp), %rdi
callq 0x2110
leaq 0xb8(%rsp), %rdi
callq 0x2110
leaq 0x1b8(%rsp), %rdi
callq 0x334e
leaq 0x1f8(%rsp), %rdi
callq 0x334e
addq $0x3b8, %rsp            # imm = 0x3B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6962
movq %rax, %rbx
leaq 0x2f8(%rsp), %rdi
callq 0x334e
jmp 0x683c
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
jmp 0x695b
movq %rax, %rbx
leaq 0x258(%rsp), %rdi
jmp 0x695b
jmp 0x6962
movq %rax, %rbx
jmp 0x6989
movq %rax, %rbx
leaq 0x278(%rsp), %rdi
callq 0x2110
jmp 0x687b
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x2110
jmp 0x68ed
movq %rax, %rbx
leaq 0x338(%rsp), %rdi
callq 0x334e
jmp 0x689f
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
jmp 0x695b
movq %rax, %rbx
leaq 0x298(%rsp), %rdi
jmp 0x695b
jmp 0x6962
movq %rax, %rbx
jmp 0x68fa
movq %rax, %rbx
leaq 0x2b8(%rsp), %rdi
callq 0x2110
jmp 0x68db
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x2110
jmp 0x6946
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x2110
leaq 0x38(%rsp), %rdi
callq 0x2110
jmp 0x6932
movq %rax, %rbx
leaq 0x238(%rsp), %rdi
callq 0x2110
jmp 0x691b
movq %rax, %rbx
leaq 0xf8(%rsp), %rdi
jmp 0x695b
movq %rax, %rbx
jmp 0x693c
movq %rax, %rbx
jmp 0x6953
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2110
leaq 0x78(%rsp), %rdi
jmp 0x695b
movq %rax, %rbx
leaq 0x2d8(%rsp), %rdi
callq 0x2110
leaq 0x98(%rsp), %rdi
callq 0x2110
jmp 0x6965
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x322e
leaq 0x198(%rsp), %rdi
callq 0x2110
leaq 0xb8(%rsp), %rdi
callq 0x2110
leaq 0x1b8(%rsp), %rdi
callq 0x334e
leaq 0x1f8(%rsp), %rdi
callq 0x334e
movq %rbx, %rdi
callq 0x2300
nop