// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/SCmain.cpp
// Function: ScMain::find_module_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
NT ScMain:: find_module_var (string line){
	NT NameType;
	vector<string> split_line = split(line, ' ');
	remove_element_vector(split_line, "");
	int index_var = find_in_vector(split_line, ";");
	
	if (index_var >=0)
		NameType.first = replace_first_occurrence(split_line[index_var],";","");
	else
		NameType.first = replace_first_occurrence(split_line[1],";","");
		
	NameType.second = split_line[0];
	filter_element(NameType.first, {"*","&","["});
	return NameType;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x30(%rdi), %rcx
movq %rcx, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movb %al, 0x30(%rdi)
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
movl $0x20, %edx
callq 0xa66e
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8192(%rip), %rdx      # 0xe4e2
leaq 0x78(%rsp), %rdi
movq %rdx, %rsi
callq 0xa0b2
leaq 0x40(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0xaaa4
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x6386
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x110(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x9e6a
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x80c1(%rip), %rsi      # 0xe469
leaq 0x80bb(%rip), %rdx      # 0xe46a
leaq 0x58(%rsp), %rdi
callq 0xa0b2
leaq 0x110(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xa98a
movl %eax, %ebp
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x63e4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x110(%rsp), %rdi
callq 0x36c0
testl %ebp, %ebp
js 0x6458
movl %ebp, %r14d
shlq $0x5, %r14
addq 0x40(%rsp), %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x8058(%rip), %rsi      # 0xe469
leaq 0x8052(%rip), %rdx      # 0xe46a
movq %rsp, %rdi
callq 0xa0b2
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x80b1(%rip), %rdx      # 0xe4e2
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0xa0b2
leaq 0x98(%rsp), %rdi
movq %rsp, %rdx
leaq 0x20(%rsp), %rcx
movq %r14, %rsi
callq 0xa77c
jmp 0x64b6
movq 0x40(%rsp), %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x7ffc(%rip), %rsi      # 0xe469
leaq 0x7ff6(%rip), %rdx      # 0xe46a
movq %rsp, %rdi
callq 0xa0b2
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x8055(%rip), %rdx      # 0xe4e2
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0xa0b2
addq $0x20, %r14
leaq 0x98(%rsp), %rdi
movq %rsp, %rdx
leaq 0x20(%rsp), %rcx
movq %r14, %rsi
callq 0xa77c
leaq 0x98(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2220
movq (%r14), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x64e9
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x6500
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6516
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x20(%rbx), %rdi
movq 0x40(%rsp), %rsi
callq 0x2110
leaq 0xa8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x7dbb(%rip), %rsi      # 0xe2f2
leaq 0x7db5(%rip), %rdx      # 0xe2f3
leaq 0x98(%rsp), %r15
movq %r15, %rdi
callq 0xa0b2
leaq 0xb8(%rsp), %r12
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x7d8b(%rip), %rsi      # 0xe2f4
leaq 0x7d85(%rip), %rdx      # 0xe2f5
movq %r12, %rdi
callq 0xa0b2
leaq 0xd8(%rsp), %r12
leaq 0xe8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x7ee4(%rip), %rsi      # 0xe477
leaq 0x7ede(%rip), %rdx      # 0xe478
movq %r12, %rdi
callq 0xa0b2
leaq 0xf8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
movq %rsp, %rcx
movl $0x3, %edx
callq 0x3678
leaq 0xf8(%rsp), %rsi
movq %rbx, %rdi
callq 0xab99
leaq 0xf8(%rsp), %rdi
callq 0x36c0
movq $-0x60, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x65f8
movq (%r13), %rsi
incq %rsi
callq 0x21d0
addq $-0x20, %r13
addq $0x20, %r14
jne 0x65e3
leaq 0x40(%rsp), %rdi
callq 0x36c0
movq %rbx, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x662a
jmp 0x6646
jmp 0x6730
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x6649
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x6649
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6733
movq 0x10(%rsp), %rsi
jmp 0x671f
jmp 0x6730
movq %rax, %r14
leaq 0xf8(%rsp), %rdi
callq 0x36c0
jmp 0x667a
movq %rax, %r14
xorl %r15d, %r15d
movq 0xd8(%rsp,%r15), %rdi
leaq (%r15,%r13), %rax
cmpq %rdi, %rax
je 0x6699
movq (%rax), %rsi
incq %rsi
callq 0x21d0
addq $-0x20, %r15
cmpq $-0x60, %r15
jne 0x667d
jmp 0x6733
jmp 0x66aa
movq %rax, %r14
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x66c7
movq (%r12), %rsi
incq %rsi
callq 0x21d0
leaq -0x20(%r12), %rax
addq $-0x10, %r12
cmpq %r15, %r12
movq %rax, %r12
jne 0x66b1
jmp 0x6733
jmp 0x6730
movq %rax, %r14
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x66fb
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x66fb
movq %rax, %r14
leaq 0x110(%rsp), %rdi
callq 0x36c0
jmp 0x6733
movq %rax, %r14
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x6733
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x6733
jmp 0x6730
movq %rax, %r14
jmp 0x673d
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x36c0
movq %rbx, %rdi
callq 0x9e0a
movq %r14, %rdi
callq 0x2300
nop