// File: /workspace/github_cpp_makefile_star2_O3/WShabti-Team[P]WShabtiPict/wshabtilib/java-source-code-parser/java-source-code-parser.cpp
// Function: get_class_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string get_class_name(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 = "";

    while(!source_input_file.eof())
	{
        getline(source_input_file, search_string);
        source_code.append(search_string);        
    }

    smatch sm ;

    //CLASS NAME REGEX (WITH CLASS|INTERFACE|ENUM)
    regex class_regex (R"rgx((class|interface|enum)\s([^\n\s]*))rgx");
    regex_search(source_code, sm, class_regex);
    string class_name_with_decl = ((string) sm[0]);
    string class_name = (class_name_with_decl.replace(0,class_name_with_decl.find(" ")+1, ""));
    return class_name;
 }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
callq 0x5480
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x5360
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x15e33(%rip), %rdx     # 0x27b9a
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
callq 0x74e8
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x15e16(%rip), %rdx     # 0x27b9a
leaq 0x20(%rsp), %rdi
movq %rdx, %rsi
callq 0x74e8
leaq 0xa0(%rsp), %r14
leaq 0x40(%rsp), %r15
leaq 0x20(%rsp), %r12
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xc0(%rsp,%rax)
jne 0x11df0
leaq (%rsp,%rax), %rdi
addq $0xa0, %rdi
movl $0xa, %esi
callq 0x53b0
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x56f0
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rdi
callq 0x5130
jmp 0x11da3
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
leaq 0x14ed5(%rip), %rsi     # 0x26cd8
leaq 0x80(%rsp), %rdi
movl $0x10, %edx
callq 0x125f6
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
addq %rdi, %rsi
movq %rsp, %rdx
leaq 0x80(%rsp), %rcx
xorl %r8d, %r8d
callq 0x1d687
movq (%rsp), %rcx
movq 0x8(%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 0x11e7c
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x60(%rsp), %rdi
callq 0x1f6dc
jmp 0x11e90
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x15d84(%rip), %rsi     # 0x27c1b
leaq 0x60(%rsp), %r14
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x5690
leaq 0x1(%rax), %rdx
leaq 0x15ce4(%rip), %rcx     # 0x27b9a
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x5460
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x757e
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11ef7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x80(%rsp), %rdi
callq 0x1265e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11f1a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x11f31
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x11f48
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xa0(%rsp), %rdi
callq 0x50d0
movq %rbx, %rax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11f6c
movq %rax, %rbx
jmp 0x11f9d
jmp 0x11fc2
movq %rax, %rbx
jmp 0x11fdc
jmp 0x11f7a
movq %rax, %rbx
jmp 0x11ff3
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x11f9d
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0x80(%rsp), %rdi
callq 0x1265e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x11fc5
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
jmp 0x11fc5
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x11fdc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x53e0
movq 0x40(%rsp), %rdi
cmpq %r13, %rdi
je 0x11ff3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x53e0
leaq 0xa0(%rsp), %rdi
callq 0x50d0
movq %rbx, %rdi
callq 0x56a0