// File: /workspace/github_cpp_makefile_star2_O1/mehrangoli[P]Static-Data-Extractor/SCmain.cpp
// Function: ScMain::find_module_func(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
NT ScMain:: find_module_func (string line){
	NT NameType;
	vector<string> split_line = split(line, ' ');
	remove_element_vector(split_line, "");

	if ((split_line.size()>1) && (!string_finder(line, "~"))){  			 //------------------- ignore constractor and destrocture function
		int index = find_in_vector(split_line, "(");
		if (index>=0){
			size_t pos = split_line[index].find("("); 
			NameType.first = split_line[index].substr(0,pos);
			NameType.second = split_line[index-1];
		}
	}
	return NameType;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r14
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 0x8(%rsp), %rdi
movq %rdx, %rsi
movl $0x20, %edx
callq 0xad6a
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5413(%rip), %rdx      # 0xf4e2
leaq 0x80(%rsp), %rdi
movq %rdx, %rsi
callq 0xa7aa
leaq 0x8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0xb195
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xa10e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x10(%rsp), %r12
subq 0x8(%rsp), %r12
cmpq $0x21, %r12
jb 0xa173
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x3a5a
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x5328(%rip), %rsi      # 0xf473
leaq 0x5322(%rip), %rdx      # 0xf474
leaq 0x40(%rsp), %rdi
callq 0xa7aa
leaq 0x60(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xad00
movl %eax, %ebp
xorb $0x1, %bpl
jmp 0xa175
xorl %ebp, %ebp
cmpq $0x21, %r12
jb 0xa1b1
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa196
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1b1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %bpl, %bpl
je 0xa2bc
leaq 0xa0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xa55c
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5299(%rip), %rsi      # 0xf475
leaq 0x5293(%rip), %rdx      # 0xf476
leaq 0x20(%rsp), %rdi
callq 0xa7aa
leaq 0xa0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0xb07b
movl %eax, %ebp
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xa218
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0xa0(%rsp), %rdi
callq 0x36d0
testl %ebp, %ebp
js 0xa2bc
movl %ebp, %r12d
movq %r12, %r14
shlq $0x5, %r14
movq 0x8(%rsp), %rdi
addq %r14, %rdi
leaq 0x522f(%rip), %rsi      # 0xf475
movl $0x1, %ecx
xorl %edx, %edx
callq 0x22f0
addq 0x8(%rsp), %r14
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x21f0
leaq 0x20(%rbx), %r14
leaq 0xb8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r15), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0xa2a3
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rax
shlq $0x5, %r12
leaq (%rax,%r12), %rsi
addq $-0x20, %rsi
movq %r14, %rdi
callq 0x2110
leaq 0x8(%rsp), %rdi
callq 0x36d0
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa369
jmp 0xa369
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0xa304
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0xa304
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
callq 0x36d0
jmp 0xa36c
movq %rax, %r14
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0xa334
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0xa334
jmp 0xa369
movq %rax, %r14
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0xa36c
movq 0x70(%rsp), %rsi
jmp 0xa35f
jmp 0xa369
movq %rax, %r14
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xa36c
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0xa36c
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x36d0
movq %rbx, %rdi
callq 0xa4fc
movq %r14, %rdi
callq 0x2300
movq %rax, %r14
jmp 0xa376
nop