// File: /workspace/github_cpp_makefile_star2_O1/WShabti-Team[P]WShabtiPict/wshabtilib/java-source-code-parser/java-source-code-parser.cpp
// Function: get_prototypes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<string> get_prototypes(string source_code_path)
{
    std::ifstream source_input_file;
    source_input_file.open(source_code_path, std::ios_base::in);

    string search_string = "";
    string source_code = "";
    vector<string> prototype;

    smatch sm ;

    //PROTOTYPE REGEX
    regex prototype_regex(R"rgx(((public|private|protected|static|final|native|synchronized|abstract|transient)+\s)+[\w\<\>\[\]]+\s+(\w+) *\([^\)]*\))rgx");
    
    while(!source_input_file.eof())
	{
        getline(source_input_file, search_string);
        source_code.append(search_string);        
    }

    while(regex_search(source_code, sm, prototype_regex))
    {
        prototype.push_back(sm[0]);
        source_code = sm.suffix();
    }

    return prototype;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
callq 0x5480
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x5360
leaq 0x60(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x15906(%rip), %rdx     # 0x27b9a
leaq 0x50(%rsp), %rdi
movq %rdx, %rsi
callq 0x7592
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x158e9(%rip), %rdx     # 0x27b9a
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x7592
xorps %xmm0, %xmm0
movq 0x8(%rsp), %rax
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
leaq 0x14a16(%rip), %rsi     # 0x26cfb
leaq 0x90(%rsp), %rdi
movl $0x10, %edx
callq 0x1283a
leaq 0xb0(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0x30(%rsp), %r12
movq 0xb0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xd0(%rsp,%rax)
jne 0x12356
leaq (%rsp,%rax), %rdi
addq $0xb0, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x56f0
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r12, %rdi
callq 0x5130
jmp 0x12309
leaq 0x20(%rsp), %rbp
leaq 0x70(%rsp), %r14
leaq 0x90(%rsp), %r15
leaq 0x10(%rsp), %r12
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x30(%rsp), %r13
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
addq %rdi, %rsi
movq %r14, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x1d889
testb %al, %al
je 0x1249e
movq 0x70(%rsp), %rcx
movq 0x78(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
leaq -0x48(%rdx), %rsi
cmpq $0x48, %rax
movq %rcx, %rax
cmoveq %rsi, %rax
cmpq %rcx, %rdx
cmoveq %rsi, %rax
cmpb $0x1, 0x10(%rax)
jne 0x123e1
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbp, 0x10(%rsp)
movq %r12, %rdi
callq 0x1f8ce
jmp 0x123f4
movq %rbp, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x10c22
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x12418
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x78(%rsp), %rax
movq %rax, %rdx
subq 0x70(%rsp), %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
movq $-0x48, %rcx
cmpq $0x4, %rdx
jb 0x12441
movq $-0x18, %rcx
cmpb $0x1, 0x10(%rax,%rcx)
jne 0x12460
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq %rbp, 0x10(%rsp)
movq %r12, %rdi
callq 0x1f8ce
jmp 0x12473
movq %rbp, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movb $0x0, 0x20(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x54e0
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1237c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x1237c
leaq 0x90(%rsp), %rdi
callq 0x128a2
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x124c5
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
leaq 0x60(%rsp), %rbx
je 0x124e6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x124fd
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq 0x8(%rsp), %rax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x12577
movq %rax, %r14
jmp 0x125b2
jmp 0x12530
movq %rax, %r14
jmp 0x125c9
jmp 0x12558
jmp 0x12558
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1255b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0x1255b
movq %rax, %r14
leaq 0x60(%rsp), %rbx
leaq 0x40(%rsp), %r13
jmp 0x1256a
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x128a2
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x12591
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
movq 0x8(%rsp), %rdi
callq 0x10982
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x125b2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x125c9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq %r14, %rdi
callq 0x56a0