LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/symbol.cpp
// Function: nextch()
static bool nextch() 
{
    if (g_pos == g_line.size()) {
        if (!safeGetline(source_stream, g_line)) {
            if (check_remaining_flag) {
                return false;
            }
            error(ERR_PROGRAM_INCOMPLETE);
            printCachedErrors();
            std::exit(1);
        }
        g_line.push_back('\n');
        
        g_pos = 0;
        g_line_no++;

        std::cout << std::setw(4) << (int)g_line_no 
            << " " << g_line;
    } 
    ch = g_line[g_pos];
    g_pos++;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl 0x10a1c(%rip), %eax     # 0x24680
cmpq %rax, 0x109fd(%rip)     # 0x24668
jne 0x13d88
andq $0x0, 0x109ef(%rip)     # 0x24668
movq 0x109e0(%rip), %rax     # 0x24660
movb $0x0, (%rax)
leaq 0xd3de(%rip), %rbx      # 0x21068
leaq -0x19(%rbp), %rdi
pushq $0x1
popq %rdx
movq %rbx, %rsi
callq 0x33c0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq 0xe8(%rbx,%rax), %r14
leaq 0x109b1(%rip), %r15     # 0x24660
movq %r14, %rdi
callq 0x3150
cmpl $-0x1, %eax
je 0x13cd3
cmpl $0xa, %eax
je 0x13d06
cmpl $0xd, %eax
je 0x13cf1
movsbl %al, %esi
movq %r15, %rdi
callq 0x3220
jmp 0x13caf
cmpq $0x0, 0x1098d(%rip)     # 0x24668
jne 0x13d06
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
pushq $0x2
popq %rsi
callq 0x3190
jmp 0x13d06
movq %r14, %rdi
callq 0x3390
cmpl $0xa, %eax
jne 0x13d06
movq %r14, %rdi
callq 0x3150
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
je 0x13d25
cmpb $0x0, 0x10971(%rip)     # 0x2468c
je 0x13dad
xorl %eax, %eax
jmp 0x13da2
leaq 0x10934(%rip), %rbx     # 0x24660
pushq $0xa
popq %rsi
movq %rbx, %rdi
callq 0x3220
andl $0x0, 0x10942(%rip)     # 0x24680
movl 0x10940(%rip), %esi     # 0x24684
incl %esi
movl %esi, 0x10938(%rip)     # 0x24684
movq 0xa275(%rip), %rdi      # 0x1dfc8
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%rdi,%rax)
callq 0x3420
leaq 0x2edd(%rip), %rsi      # 0x16c4c
movq %rax, %rdi
callq 0x3280
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3250
movl 0x108f8(%rip), %eax     # 0x24680
movq 0x108d1(%rip), %rcx     # 0x24660
movb (%rcx,%rax), %cl
movb %cl, 0xa4c8(%rip)       # 0x1e260
incl %eax
movl %eax, 0x108e0(%rip)     # 0x24680
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x34f8(%rip), %rsi      # 0x172ac
leaq -0x40(%rbp), %rbx
leaq -0x19(%rbp), %rdx
movq %rbx, %rdi
callq 0x30f0
movq %rbx, %rdi
callq 0xa247
leaq -0x40(%rbp), %rdi
callq 0x3498
callq 0x9e1c
pushq $0x1
popq %rdi
callq 0x3300
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3498
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/symbol.cpp
// Function: extraCodeChecking()
void extraCodeChecking()
{
    check_remaining_flag = true;
    while (nextch()) {
        if (!isBlankCharacter(ch)) {
            error(ERR_REDUNDENT_CODE);
            printCachedErrors();
            std::exit(1);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x28, %rsp
movb $0x1, 0x10886(%rip)     # 0x2468c
movabsq $0x100000600, %rbx      # imm = 0x100000600
callq 0x13c51
testb %al, %al
je 0x13e61
movzbl 0xa440(%rip), %eax      # 0x1e260
cmpq $0x20, %rax
ja 0x13e2c
btq %rax, %rbx
jb 0x13e10
leaq 0x33df(%rip), %rsi      # 0x17212
leaq -0x30(%rbp), %rbx
leaq -0x9(%rbp), %rdx
movq %rbx, %rdi
callq 0x30f0
movq %rbx, %rdi
callq 0xa247
leaq -0x30(%rbp), %rdi
callq 0x3498
callq 0x9e1c
pushq $0x1
popq %rdi
callq 0x3300
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x3498
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: tabInsertParam(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, DataType&)
void tabInsertParam(const std::string &id, DataType &dtype)
{
    std::unordered_map<std::string, std::vector
        <DataType>>::iterator it;
    if ((it = funcParams.find(id)) == funcParams.end()) {
        std::vector<DataType> params;
        params.push_back(dtype);
        funcParams[id] = params;
    } 
    else {
        std::vector<DataType> &params = (*it).second;
        params.push_back(dtype);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x11248(%rip), %rdi     # 0x25230
movq %rbx, %rsi
callq 0x147fe
testq %rax, %rax
je 0x1400c
addq $0x28, %rax
movq %rax, %rdi
movq %r14, %rsi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x1444e
xorps %xmm0, %xmm0
leaq -0x30(%rbp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq %r14, %rsi
callq 0x1444e
leaq 0x11206(%rip), %rdi     # 0x25230
movq %rbx, %rsi
callq 0x14a42
leaq -0x30(%rbp), %rsi
movq %rax, %rdi
callq 0x14474
leaq -0x30(%rbp), %rdi
callq 0x148dc
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x148dc
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: tabGetParams(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
const std::vector<DataType> & tabGetParams(const std::string &id) 
{
    const static std::vector<DataType> EMPTY_PARAMS;
    std::unordered_map<std::string, std::vector
        <DataType>>::iterator it;
    if ((it = funcParams.find(id)) != funcParams.end()) {
        return (*it).second;
    }
    else return EMPTY_PARAMS;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movb 0x1120d(%rip), %al      # 0x25280
testb %al, %al
je 0x1409f
leaq 0x111b2(%rip), %rdi     # 0x25230
movq %rbx, %rsi
callq 0x147fe
leaq 0x28(%rax), %rcx
testq %rax, %rax
leaq 0x111d4(%rip), %rax     # 0x25268
cmovneq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x111da(%rip), %rdi     # 0x25280
callq 0x3440
testl %eax, %eax
je 0x14077
xorps %xmm0, %xmm0
movups %xmm0, 0x111af(%rip)    # 0x25268
andq $0x0, 0x111b7(%rip)     # 0x25278
leaq 0x111a0(%rip), %rsi     # 0x25268
leaq 0x471(%rip), %rdi       # 0x14540
leaq 0xa17a(%rip), %rdx      # 0x1e250
callq 0x3240
leaq 0x1119e(%rip), %rdi     # 0x25280
callq 0x31b0
jmp 0x14077
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: tabFind(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _TabEntry&)
bool tabFind(const std::string &id, TabEntry &entry)
{
    std::unordered_map<std::string, TabEntry>::iterator it;
    // find in local
    if ((it = symbolTableL.find(id)) != symbolTableL.end()) {
        entry = (*it).second;
        return true;
    }
    // find in global
    if ((it = symbolTableG.find(id)) != symbolTableG.end()) {
        entry = (*it).second;
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x110fb(%rip), %rdi     # 0x251f8
movq %r14, %rsi
callq 0x14e22
testq %rax, %rax
jne 0x1411e
leaq 0x110af(%rip), %rdi     # 0x251c0
movq %r14, %rsi
callq 0x14e22
testq %rax, %rax
je 0x14132
movl 0x38(%rax), %ecx
movl %ecx, 0x10(%rbx)
movups 0x28(%rax), %xmm0
movups %xmm0, (%rbx)
movb $0x1, %al
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
jmp 0x1412d
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: printSymbolTable(IdentScope)
void printSymbolTable(IdentScope scope)
{
    std::cout << (scope == GLOBAL ? 
        "##############Global table##############\n":
        "##############Local table###############\n");
    const std::unordered_map<std::string, TabEntry> &symbolTable =
        (scope == GLOBAL) ? symbolTableG : symbolTableL;
    int count = 0;
    for (auto const& item : symbolTable) {
        count++;
        std::cout << count << ":";
        printTabEntry(item.first, item.second);
    }
    std::cout << "################Table End###########\n";
    count = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edi, %edi
leaq 0x3173(%rip), %rax      # 0x172c0
leaq 0x3196(%rip), %rsi      # 0x172ea
cmoveq %rax, %rsi
movq 0x9e69(%rip), %rbx      # 0x1dfc8
leaq 0x1106a(%rip), %rax     # 0x251d0
leaq 0x1109b(%rip), %r14     # 0x25208
cmoveq %rax, %r14
movq %rbx, %rdi
callq 0x3280
movq (%r14), %r15
pushq $0x1
popq %r14
leaq 0x2e97(%rip), %r12      # 0x1701e
testq %r15, %r15
je 0x14266
leaq 0x8(%r15), %r13
movq %rbx, %rdi
movl %r14d, %esi
callq 0x3420
movq %rax, %rdi
leaq 0x20b6(%rip), %rsi      # 0x1625f
callq 0x3280
movq %rbx, %rdi
movq %r13, %rsi
callq 0x3250
movq %rax, %rdi
movq %r12, %rsi
callq 0x3280
movl 0x2c(%r15), %esi
shlq $0x5, %rsi
leaq 0x10e8d(%rip), %rcx     # 0x25060
addq %rcx, %rsi
movq %rax, %rdi
callq 0x3250
movq %rax, %rdi
movq %r12, %rsi
callq 0x3280
movl 0x30(%r15), %esi
shlq $0x5, %rsi
leaq 0x10ec8(%rip), %rcx     # 0x250c0
addq %rcx, %rsi
movq %rax, %rdi
callq 0x3250
movq %rax, %rdi
movq %r12, %rsi
callq 0x3280
cmpl $0x0, 0x2c(%r15)
je 0x1421b
movl 0x34(%r15), %esi
jmp 0x14226
movl 0x34(%r15), %esi
cmpl $0x1, 0x30(%r15)
jne 0x14258
movq %rbx, %rdi
callq 0x3420
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3280
movl 0x38(%r15), %esi
movq %rax, %rdi
callq 0x3420
movq %rbx, %rdi
callq 0x3130
movq (%r15), %r15
incl %r14d
jmp 0x14187
movsbl %sil, %esi
movq %rbx, %rdi
callq 0x32f0
jmp 0x1422e
movq 0x9d5b(%rip), %rdi      # 0x1dfc8
leaq 0x30a0(%rip), %rsi      # 0x17314
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3280
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: tabInsert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, _TabEntry const&)
void tabInsert(
    const std::string &id, 
    const TabEntry &entry)
{
    // TODO: 
    // local variable name can't be same with the name
    // of the function where the local variable is defined in.
    // (What a stupid rule!)
    std::unordered_map<std::string, TabEntry> &symbolTable =
        (entry.scope == GLOBAL) ? symbolTableG : symbolTableL;
    if (symbolTable.find(id) != symbolTable.end()) {
        error(entry.scope == GLOBAL ? ERR_DUPLICATE_GLOBAL_IDENTIFIER :
                ERR_DUPLICATE_LOCAL_IDENTIFIER);
        return;
    }
    symbolTable[id] = entry;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, (%rsi)
leaq 0x10f1c(%rip), %rax     # 0x251c0
leaq 0x10f4d(%rip), %r15     # 0x251f8
cmoveq %rax, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x14e22
testq %rax, %rax
je 0x142f7
cmpl $0x0, (%rbx)
leaq 0x3071(%rip), %rax      # 0x1733a
leaq 0x30c3(%rip), %rsi      # 0x17393
cmoveq %rax, %rsi
leaq -0x40(%rbp), %rbx
leaq -0x19(%rbp), %rdx
movq %rbx, %rdi
callq 0x30f0
movq %rbx, %rdi
callq 0xa247
leaq -0x40(%rbp), %rdi
callq 0x3498
jmp 0x1430e
movq %r15, %rdi
movq %r14, %rsi
callq 0x14f00
movups (%rbx), %xmm0
movups %xmm0, (%rax)
movl 0x10(%rbx), %ecx
movl %ecx, 0x10(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x3498
movq %rbx, %rdi
callq 0x3430
// File: /workspace/github_cpp_makefile_star2_O2/fondoger[P]C0-Compiler/src/table.cpp
// Function: string2label(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string string2label(const std::string &str)
{
    std::map<std::string, std::string>::iterator it;
    if ((it = strings_table.find(str)) != strings_table.end()) {
        return (*it).second;
    }
    std::stringstream ss;
    ss << "$STRING_" << strings_count;
    std::string label = ss.str();
    strings_table[str] = label;
    strings_count++;
    return label;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10f0c(%rip), %rdi     # 0x25288
callq 0x152b2
leaq 0x10f08(%rip), %rcx     # 0x25290
cmpq %rcx, %rax
je 0x1439e
addq $0x40, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3350
jmp 0x14406
leaq -0x198(%rbp), %rdi
callq 0x31f0
leaq -0x188(%rbp), %rdi
leaq 0x3064(%rip), %rsi      # 0x1741c
callq 0x3280
movl 0x10ef5(%rip), %esi     # 0x252b8
movq %rax, %rdi
callq 0x3420
leaq -0x180(%rbp), %rsi
movq %rbx, %rdi
callq 0x33d0
leaq 0x10ea7(%rip), %rdi     # 0x25288
movq %r14, %rsi
callq 0x14554
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3160
incl 0x10ebe(%rip)           # 0x252b8
leaq -0x198(%rbp), %rdi
callq 0x34a0
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x3498
jmp 0x14425
movq %rax, %r14
leaq -0x198(%rbp), %rdi
callq 0x34a0
movq %r14, %rdi
callq 0x3430
nop
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/compareSpec.cc
// Function: main
int main()
{
	int *p1 = new int(45);
	int *p2 = new int(42);

	// because we're comparing pointer values, the result of
    // this call may vary each time the program is run
	cout << compare(*p1, *p2) << endl;
	cout << compare(p1, p2) << endl;

	cout << strcmp("hi", "mom") << endl;
	cout << compare("hi", "mom") << endl;

	const char *cp1 = "hi", *cp2= "mom";
	cout << compare(cp1, cp2) << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
pushq $0x4
popq %rbx
movq %rbx, %rdi
callq 0x1060
movq %rax, %r14
movl $0x2d, (%rax)
leaq -0x40(%rbp), %r15
movq %rax, (%r15)
movq %rbx, %rdi
callq 0x1060
movl $0x2a, (%rax)
leaq -0x38(%rbp), %r12
movq %rax, (%r12)
movq %r14, %rdi
movq %rax, %rsi
callq 0x130d
movq 0x2d6c(%rip), %rbx      # 0x3fd8
movq %rbx, %rdi
movl %eax, %esi
callq 0x1090
movq %rax, %rdi
callq 0x1030
movq %r15, %rdi
movq %r12, %rsi
callq 0x1353
movq %rbx, %rdi
movl %eax, %esi
callq 0x1090
movq %rax, %rdi
callq 0x1030
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0x1090
movq %rax, %rdi
callq 0x1030
leaq 0xd6b(%rip), %r14       # 0x2020
leaq 0xd67(%rip), %r15       # 0x2023
movq %r14, %rdi
movq %r15, %rsi
callq 0x139b
movq %rbx, %rdi
movl %eax, %esi
callq 0x1090
movq %rax, %rdi
callq 0x1030
leaq -0x30(%rbp), %rdi
movq %r14, (%rdi)
leaq -0x28(%rbp), %rsi
movq %r15, (%rsi)
callq 0x11dc
movq %rbx, %rdi
movl %eax, %esi
callq 0x1090
movq %rax, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/DiskUtils.cpp
// Function: DiskUtils::IsSimilarFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool DiskUtils::IsSimilarFile( std::string _pathA, std::string _pathB )
{
	// just in case we're stupid, make sure the paths aren't
	// exact, if so, short circuit out quick.
	// (quick check for alike files)
	if( _pathA.compare( _pathB ) == 0 ) return true;

	// 1. check filesizes. (quick check for non-differing files)
	long sizeA = DiskUtils::FileSize( _pathA );
	long sizeB = DiskUtils::FileSize( _pathB );

	// file sizes are different.  just bail out.
	if( sizeA != sizeB ) return false;	// both are different-sized

	if( sizeA == 0 || sizeB == 0 ) return false;	// one or the other couldn't be opened.

	// 2. check a few bytes to see if they're the same
	FILE * fpA = fopen( _pathA.c_str(), "rb" );
	FILE * fpB = fopen( _pathB.c_str(), "rb" );

	int differences = 0;

	if( fpA && fpB ) {
		// check at 0x0000 and again at 0x800 for different bytes
		for( int offs = 0 ; offs < 0x900 ; offs += 0x800 )
		{
			// go to 0x0000 or 0x800
			fseek( fpA, offs, SEEK_SET );
			fseek( fpB, offs, SEEK_SET );

			for( int addr=0 ; addr < 0x100  ; addr++ ) 
			{
				int dA = fgetc( fpA );
				int dB = fgetc( fpB );

				if( dA != dB ) differences++;
			}
		}
	}

	if( fpA ) fclose( fpA );
	if( fpB ) fclose( fpB );

	return (differences == 0) ? true : false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2040
testl %eax, %eax
je 0x251c
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2170
movq %r15, %rdi
callq 0x2478
movq %rax, %r12
movq %r15, %rdi
callq 0x2060
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2170
movq %r15, %rdi
callq 0x2478
movq %rax, %r13
movq %r15, %rdi
callq 0x2060
cmpq %r13, %r12
setne %al
testq %r12, %r12
sete %cl
orb %al, %cl
je 0x2524
xorl %ebp, %ebp
jmp 0x25d7
movb $0x1, %bpl
jmp 0x25d7
movq (%rbx), %rdi
leaq 0x1af1(%rip), %r15      # 0x401f
movq %r15, %rsi
callq 0x2130
movq %rax, %rbx
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2130
movq %rax, %r14
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
movb $0x1, %bpl
orb %al, %cl
jne 0x25bd
xorl %r15d, %r15d
xorl %r12d, %r12d
cmpq $0x900, %r15            # imm = 0x900
jae 0x25b6
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2120
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x2120
movl $0x100, %r13d           # imm = 0x100
subl $0x1, %r13d
jb 0x25ad
movq %rbx, %rdi
callq 0x21c0
movl %eax, %ebp
movq %r14, %rdi
callq 0x21c0
xorl %ecx, %ecx
cmpl %eax, %ebp
setne %cl
addl %ecx, %r12d
jmp 0x2589
addq $0x800, %r15            # imm = 0x800
jmp 0x2560
testl %r12d, %r12d
sete %bpl
testq %rbx, %rbx
je 0x25ca
movq %rbx, %rdi
callq 0x2110
testq %r14, %r14
je 0x25d7
movq %r14, %rdi
callq 0x2110
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/DiskUtils.cpp
// Function: DiskUtils::CopyFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
bool DiskUtils::CopyFile( std::string fromPath, std::string toPath, bool skipIfExists )
{
	char buf[ kCopyFileBufSize ];

	// if the file is already there, and it's okay to skip, we're done
	if( skipIfExists ) {
		if( DiskUtils::IsSimilarFile( fromPath, toPath )) return true;
	}
	
	// copy the file from fromPath to toPath. ;)

	// open the files
	FILE * inf = fopen( fromPath.c_str(), "rb" );
	if( !inf ) {
		std::cerr << "Couldn't open input file " << fromPath << std::endl;
		return true;
	}

	FILE * outf = fopen( toPath.c_str(), "wb" );
	if( !outf ) {
		std::cerr << "Couldn't open output file " << toPath << std::endl;
		fclose( inf );
		return true;
	}


	// copy it over one buffer at a time
	size_t n = 0;
	do {
		n = fread( buf, 1, kCopyFileBufSize, inf );
		fwrite( buf, n, 1, outf );
	} while( n!= 0 );

	// close the files
	fclose( inf );
	fclose( outf );

	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40048, %rsp          # imm = 0x40048
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x2853
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x2170
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x2170
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x24a2
movl %eax, %ebp
movq %rsp, %rdi
callq 0x2060
leaq 0x20(%rsp), %rdi
callq 0x2060
movb $0x1, %al
testb %bpl, %bpl
jne 0x2922
movq (%r14), %rdi
leaq 0x17c2(%rip), %rsi      # 0x401f
callq 0x2130
testq %rax, %rax
je 0x28ca
movq %rax, %r15
movq (%rbx), %rdi
leaq 0x17c8(%rip), %rsi      # 0x403c
callq 0x2130
testq %rax, %rax
je 0x28f2
movq %rax, %r14
leaq 0x40(%rsp), %rbx
pushq $0x1
popq %r12
movl $0x40000, %edx          # imm = 0x40000
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rcx
callq 0x2180
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2240
testq %r13, %r13
jne 0x288a
movq %r15, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2110
xorl %eax, %eax
jmp 0x2922
movq 0x471f(%rip), %rdi      # 0x6ff0
leaq 0x174a(%rip), %rsi      # 0x4022
callq 0x2100
movq %rax, %rdi
movq %r14, %rsi
callq 0x20e0
movq %rax, %rdi
callq 0x2080
jmp 0x2920
movq 0x46f7(%rip), %rdi      # 0x6ff0
leaq 0x173f(%rip), %rsi      # 0x403f
callq 0x2100
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20e0
movq %rax, %rdi
callq 0x2080
movq %r15, %rdi
callq 0x2110
movb $0x1, %al
addq $0x40048, %rsp          # imm = 0x40048
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2060
jmp 0x2944
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2200
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::ConfigurePath(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void VoiceFile::ConfigurePath( std::string _path )
{
	this->vrDir.assign( _path );
	this->vrVoiceDir.assign( _path );
	vrVoiceDir += "/VOICE/";

	vrMSFFile.assign( vrVoiceDir );
	vrMSFFile += "MSGLISTS.MSF";

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
addq $0x10, %rdi
callq 0x2090
leaq 0x30(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2090
leaq 0x1431(%rip), %rsi      # 0x410f
movq %r15, %rdi
callq 0x2220
addq $0x50, %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x2090
leaq 0x141b(%rip), %rsi      # 0x4117
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2220
nop
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::GetFolderName[abi:cxx11](int)
std::string VoiceFile::GetFolderName( int folderIndex )
{
	if( !this->ValidFolder( folderIndex )) return "";

	long folderOffset = this->GetOffsetToFolder( folderIndex );
	
	char * folderName = (char * ) (this->buffer + folderOffset  + 4);

	return folderName;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $0x4, %edx
ja 0x3233
cmpb $0x0, (%rsi)
je 0x3233
imull $0xcc0, %edx, %eax      # imm = 0xCC0
movq 0x8(%rsi), %rcx
leaq (%rcx,%rax), %rsi
addq $0x24, %rsi
leaq 0xe(%rsp), %rdx
jmp 0x323f
leaq 0xf72(%rip), %rsi       # 0x41ac
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x2956
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::GetPathForFolder[abi:cxx11](int)
std::string VoiceFile::GetPathForFolder( int folderIndex )
{
	if( !this->ValidFolder( folderIndex )) return "";

	std::string folderPath( this->vrVoiceDir );
	folderPath.append( this->GetFolderName( folderIndex ));
	folderPath.append( "/" );

	return folderPath;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
cmpl $0x4, %edx
ja 0x32a7
movq %rsi, %r14
cmpb $0x0, (%rsi)
je 0x32a7
movl %edx, %ebp
leaq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0x2170
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3208
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2250
movq %rsp, %rdi
callq 0x2060
leaq 0xe78(%rip), %rsi       # 0x4115
movq %rbx, %rdi
callq 0x2220
jmp 0x32b9
leaq 0xefe(%rip), %rsi       # 0x41ac
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x2956
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x32d4
movq %rax, %r14
movq %rsp, %rdi
callq 0x2060
jmp 0x32d7
movq %rax, %r14
movq %rbx, %rdi
callq 0x2060
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::GetFileCountForFolder(int)
int VoiceFile::GetFileCountForFolder( int folderIndex )
{
	if( !this->ValidFolder( folderIndex )) return 0;

	long offs = this->GetOffsetToFolder( folderIndex );

	int count = 0;

	offs += kFolderHeaderSz;

	// check for items until we find a null item
	for( count = 0 ; (count < kFolderNItems) && (this->buffer[offs] != '\0') ; count++, offs+= kFolderItemSz);

	return count;
}

// Assembly:
xorl %eax, %eax
cmpl $0x4, %esi
ja 0x331a
cmpb $0x0, (%rdi)
je 0x331a
imull $0xcc0, %esi, %ecx      # imm = 0xCC0
addl $0x60, %ecx
addq 0x8(%rdi), %rcx
xorl %edx, %edx
pushq $0x63
popq %rax
cmpl $0x63, %edx
je 0x331a
cmpb $0x0, (%rcx)
je 0x3318
incl %edx
addq $0x20, %rcx
jmp 0x3306
movl %edx, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::GetFileInFolder[abi:cxx11](int, int)
std::string VoiceFile::GetFileInFolder( int fileIndex, int folderIndex )
{
	if( !this->valid || !this->ValidFile( fileIndex, folderIndex )) return "";

	// get the offset to the item
	long offs = this->GetOffsetToFolder( folderIndex );
	offs += this->GetOffsetToFile( fileIndex );
	
	sFldItm *fi = (sFldItm *)&this->buffer[ offs ];
	char fn[9];


	for( int i=0 ; i<8 ; i++ ) {
		fn[i] = fi->file[i];
	}
	fn[8] = '\0';

	std::string filename( fn );
	filename.append( ".MP3" );

	return filename;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x1, (%rsi)
jne 0x3387
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rsi, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x35e0
testb %al, %al
je 0x3387
imull $0xcc0, %r15d, %ecx     # imm = 0xCC0
orl $0x20, %ecx
xorl %eax, %eax
cmpl $0x5, %r15d
cmovael %eax, %ecx
movl %ebp, %edx
shll $0x5, %edx
addl $0x40, %edx
cmpl $0x63, %ebp
cmovael %eax, %edx
movslq %ecx, %rcx
addq 0x8(%r14), %rcx
addq %rdx, %rcx
addq $0x10, %rcx
cmpq $0x8, %rax
je 0x339d
movb (%rcx,%rax), %dl
movb %dl, 0xf(%rsp,%rax)
incq %rax
jmp 0x3375
leaq 0xe1e(%rip), %rsi       # 0x41ac
leaq 0xe(%rsp), %rdx
movq %rbx, %rdi
callq 0x2956
jmp 0x33c2
leaq 0xf(%rsp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x2956
leaq 0xe16(%rip), %rsi       # 0x41d0
movq %rbx, %rdi
callq 0x2220
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2060
movq %r14, %rdi
callq 0x2200
nop
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::PrintableDateForFileInFolder[abi:cxx11](int, int)
std::string VoiceFile::PrintableDateForFileInFolder( int fileIndex, int folderIndex )
{
	if( !this->valid || !this->ValidFile( fileIndex, folderIndex )) return "";

	long offs = this->GetOffsetToFolder( folderIndex );
	offs += this->GetOffsetToFile( fileIndex );

	sFldItm *fi = (sFldItm *)&this->buffer[ offs ];

	char b[128];

	snprintf( b, 127, "%d-%02d-%02d  %02d:%02d:%02d",
		fi->Year + 1980, fi->Month, fi->Day,
		fi->Hour, fi->Minute, fi->Second );

	return b;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
cmpb $0x1, (%rsi)
jne 0x349d
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rsi, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x35e0
testb %al, %al
je 0x349d
imull $0xcc0, %r15d, %eax     # imm = 0xCC0
orl $0x20, %eax
xorl %ecx, %ecx
cmpl $0x5, %r15d
cmovael %ecx, %eax
cltq
movl %ebp, %edx
shll $0x5, %edx
addl $0x40, %edx
cmpl $0x63, %ebp
cmovael %ecx, %edx
addq 0x8(%r14), %rax
movzbl 0x18(%rdx,%rax), %ecx
addl $0x7bc, %ecx            # imm = 0x7BC
movzbl 0x19(%rdx,%rax), %r8d
movzbl 0x1a(%rdx,%rax), %r9d
movzbl 0x1b(%rdx,%rax), %r10d
movzbl 0x1c(%rdx,%rax), %r11d
movzbl 0x1d(%rdx,%rax), %r15d
subq $0x8, %rsp
leaq 0xd61(%rip), %rdx       # 0x41d5
leaq 0x18(%rsp), %r14
pushq $0x7f
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
pushq %r15
pushq %r11
pushq %r10
callq 0x21d0
addq $0x20, %rsp
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x34ac
leaq 0xd08(%rip), %rsi       # 0x41ac
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x2956
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/VoiceFile.cpp
// Function: VoiceFile::SortableDateForFileInFolder[abi:cxx11](int, int)
std::string VoiceFile::SortableDateForFileInFolder( int fileIndex, int folderIndex )
{
	if( !this->valid || !this->ValidFile( fileIndex, folderIndex )) return "";

	long offs = this->GetOffsetToFolder( folderIndex );
	offs += this->GetOffsetToFile( fileIndex );

	sFldItm *fi = (sFldItm *)&this->buffer[ offs ];

	char b[128];

	snprintf( b, 127, "%d_%02d_%02d_%02d%02d%02d",
		fi->Year + 1980, fi->Month, fi->Day,
		fi->Hour, fi->Minute, fi->Second );

	return b;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
cmpb $0x1, (%rsi)
jne 0x357b
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rsi, %rdi
movl %edx, %esi
movl %ecx, %edx
callq 0x35e0
testb %al, %al
je 0x357b
imull $0xcc0, %r15d, %eax     # imm = 0xCC0
orl $0x20, %eax
xorl %ecx, %ecx
cmpl $0x5, %r15d
cmovael %ecx, %eax
cltq
movl %ebp, %edx
shll $0x5, %edx
addl $0x40, %edx
cmpl $0x63, %ebp
cmovael %ecx, %edx
addq 0x8(%r14), %rax
movzbl 0x18(%rdx,%rax), %ecx
addl $0x7bc, %ecx            # imm = 0x7BC
movzbl 0x19(%rdx,%rax), %r8d
movzbl 0x1a(%rdx,%rax), %r9d
movzbl 0x1b(%rdx,%rax), %r10d
movzbl 0x1c(%rdx,%rax), %r11d
movzbl 0x1d(%rdx,%rax), %r15d
subq $0x8, %rsp
leaq 0xca0(%rip), %rdx       # 0x41f2
leaq 0x18(%rsp), %r14
pushq $0x7f
popq %rsi
movq %r14, %rdi
xorl %eax, %eax
pushq %r15
pushq %r11
pushq %r10
callq 0x21d0
addq $0x20, %rsp
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x358a
leaq 0xc2a(%rip), %rsi       # 0x41ac
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x2956
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/BleuLlama[P]msf-tools/msf-autosave.cpp
// Function: usage(char*)
void usage( char * av0 )
{
	std::cout << "Usage:  " << av0 << " <LOCAL PATH TO SAVE TO>" << std::endl;
	std::cout << std::endl;
	std::cout << "note: define VOICERECORDER env var to set root path." << std::endl;
	std::cout << "  eg:" << std::endl;
	std::cout << "      export VOICERECORDER=/Volumes/IC_RECORDER" << std::endl;
	std::cout << "      export VOICERECORDER=/v/" << std::endl;
	std::cout << "      export VOICERECORDER=v:\\" << std::endl;

	std::cout << std::endl;
	std::cout << "Version 1.0  yorgle@gmail.com  Scott Lawrence" << std::endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x39be(%rip), %rbx      # 0x6fd0
leaq 0xbff(%rip), %rsi       # 0x4218
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
movq %r14, %rsi
callq 0x2100
leaq 0xbee(%rip), %rsi       # 0x4221
movq %rax, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2080
leaq 0xbe8(%rip), %rsi       # 0x423a
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
leaq 0xc06(%rip), %rsi       # 0x426f
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
leaq 0xbf5(%rip), %rsi       # 0x4275
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
leaq 0xc0e(%rip), %rsi       # 0x42a5
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
leaq 0xc16(%rip), %rsi       # 0x42c4
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2080
leaq 0xc16(%rip), %rsi       # 0x42e3
movq %rbx, %rdi
callq 0x2100
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2080
// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prp2prp/prp2prp.cpp
// Function: GetProperty(gaps::R3MeshPropertySet*, char const*)
R3MeshProperty
GetProperty(R3MeshPropertySet *properties, const char *name)
{
  // Initialize property
  R3MeshProperty property(properties->Mesh());

  // Find property in properties
  R3MeshProperty *existing_property = properties->Property(name);
  if (existing_property) return R3MeshProperty(*existing_property);

  // Read property from file
  R3MeshProperty new_property(properties->Mesh());
  if (new_property.Read(name)) return new_property;

  // Property not found
  RNFail("Unable to get property %s\n", name); 
  exit(-1); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x450, %rsp            # imm = 0x450
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq (%rsi), %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12488
movq %r15, %rdi
movq %r14, %rsi
callq 0x10be2
testq %rax, %rax
je 0xf0df
movq %rbx, %rdi
movq %rax, %rsi
callq 0x12580
jmp 0xf0fd
movq (%r15), %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x12488
movq %rbx, %rdi
movq %r14, %rsi
callq 0x14842
testl %eax, %eax
je 0xf117
leaq 0x8(%rsp), %rdi
callq 0x12624
movq %rbx, %rax
addq $0x450, %rsp            # imm = 0x450
popq %rbx
popq %r14
popq %r15
retq
leaq 0x41f22(%rip), %rdi     # 0x51040
movq %r14, %rsi
xorl %eax, %eax
callq 0x50826
pushq $-0x1
popq %rdi
callq 0xd490
movq %rax, %r14
movq %rbx, %rdi
callq 0x12624
jmp 0xf140
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x12624
movq %r14, %rdi
callq 0xd680
// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prp2prp/prp2prp.cpp
// Function: ParseArgs(int, char**)
int ParseArgs(int argc, char **argv)
{
  // Parse arguments
  for (int i = 0; i < argc; i++) {
    if (!strcmp(argv[i], "-v")) print_verbose = 1; 
    else if (!strcmp(argv[i], "-debug")) print_debug = 1; 
    else if (!strcmp(argv[i], "-parameters_in_absolute_units")) parameters_in_relative_units = 0; 
    else if (!strcmp(argv[i], "-parameters_in_relative_units")) parameters_in_relative_units = 1; 
  }

  // Return OK status 
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
xorl %r13d, %r13d
testl %edi, %edi
cmovlel %r13d, %ebx
movq %rsi, %r14
leaq 0x41ee9(%rip), %r15     # 0x5105b
leaq 0x41ee9(%rip), %r12     # 0x51062
cmpq %r13, %rbx
je 0xf1ec
movq (%r14,%r13,8), %rbp
cmpb $0x2d, (%rbp)
jne 0xf194
cmpb $0x76, 0x1(%rbp)
jne 0xf194
cmpb $0x0, 0x2(%rbp)
je 0xf1e0
movq %rbp, %rdi
movq %r15, %rsi
callq 0xd530
testl %eax, %eax
je 0xf1ce
movq %rbp, %rdi
movq %r12, %rsi
callq 0xd530
testl %eax, %eax
je 0xf1d7
movq %rbp, %rdi
leaq 0x41ec4(%rip), %rsi     # 0x51080
callq 0xd530
testl %eax, %eax
jne 0xf1e7
movb $0x0, 0x6a904(%rip)     # 0x79ad0
jmp 0xf1e7
movb $0x1, 0x6a8f7(%rip)     # 0x79acc
jmp 0xf1e7
movb $0x1, 0x6a8f2(%rip)     # 0x79ad0
jmp 0xf1e7
movb $0x1, 0x6a8e1(%rip)     # 0x79ac8
incq %r13
jmp 0xf179
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prp2prp/prp2prp.cpp
// Function: FindProperties(gaps::R3MeshPropertySet*, char const*)
static RNArray<R3MeshProperty *>
FindProperties(R3MeshPropertySet *properties, const char *property_name)
{
  // Make an array of matching properties
  RNArray<R3MeshProperty *> result;

  // Check if "all"
  if (!strcmp(property_name, "all")) {
    // Insert all properties
    for (int i = 0; i < properties->NProperties(); i++) {
      R3MeshProperty *property = properties->Property(i);
      result.Insert(property);
    }
  }
  else if (properties->Property(property_name)) { 
    // Insert single property
    R3MeshProperty *property = properties->Property(property_name);
    result.Insert(property);
  }
  else { 
    // Insert properties names read from a file
    char buffer[1024];
    FILE *fp = fopen(property_name, "r");
    if (!fp) { RNFail("Invalid property name: %s\n", property_name); exit(-1); }
    while (fscanf(fp, "%s", buffer) == (unsigned int) 1) {
      R3MeshProperty *property = properties->Property(buffer);
      if (!property) { RNFail("Unrecognized property %s in file %s\n", buffer, property_name); exit(-1); }
      result.Insert(property);
    }
    fclose(fp);
  }

  // Check if found any properties
  if (result.IsEmpty()) {
    RNFail("No properties found for %s\n", property_name);
    exit(-1);
  }

  // Return array of properties
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x4e966
leaq 0x41245(%rip), %rsi     # 0x5126d
movq %r14, %rdi
callq 0xd530
testl %eax, %eax
je 0x1005f
movq %r15, %rdi
movq %r14, %rsi
callq 0x10be2
testq %rax, %rax
je 0x10080
movq %r15, %rdi
movq %r14, %rsi
callq 0x10be2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10c08
jmp 0x100df
xorl %r12d, %r12d
movslq 0x14(%r15), %rax
cmpq %rax, %r12
jge 0x100df
movq 0x8(%r15), %rax
movq (%rax,%r12,8), %rsi
movq %rbx, %rdi
callq 0x10c08
incq %r12
jmp 0x10062
leaq 0x4126d(%rip), %rsi     # 0x512f4
movq %r14, %rdi
callq 0xd470
testq %rax, %rax
je 0x10129
movq %rax, %r12
leaq 0x41e82(%rip), %r13     # 0x51f24
movq %rsp, %rbp
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xd6e0
cmpl $0x1, %eax
jne 0x100d7
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10be2
testq %rax, %rax
je 0x100fa
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10c08
jmp 0x100a5
movq %r12, %rdi
callq 0xd390
cmpl $0x0, 0xc(%rbx)
je 0x10116
movq %rbx, %rax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4118b(%rip), %rdi     # 0x5128c
movq %rsp, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x50826
pushq $-0x1
popq %rdi
callq 0xd490
leaq 0x41194(%rip), %rdi     # 0x512b1
movq %r14, %rsi
xorl %eax, %eax
callq 0x50826
jmp 0x1010e
leaq 0x41141(%rip), %rdi     # 0x51271
movq %r14, %rsi
xorl %eax, %eax
callq 0x50826
jmp 0x1010e
jmp 0x10148
jmp 0x10148
jmp 0x10148
jmp 0x10148
jmp 0x10148
jmp 0x10148
movq %rax, %r14
movq %rbx, %rdi
callq 0x4e9d4
movq %r14, %rdi
callq 0xd680
// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prp2prp/prp2prp.cpp
// Function: IsNumber(char const*)
static int
IsNumber(const char *s)
{
  if (!strcmp(s, "keep") || !strcmp(s, "Keep")) return 1;
  if (*s == '\0') return 0;
  if (*s == '+') s++;
  if (*s == '\0') return 0;
  if (*s == '-') s++;
  if (*s == '\0') return 0;
  while (*s) {
    if (!isdigit(*s) && (*s != '.') && (*s != 'E')) return 0;
    s++;
  }
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x408cb(%rip), %rsi     # 0x513c1
callq 0xd530
pushq $0x1
popq %rbx
testl %eax, %eax
je 0x10b6d
leaq 0x408df(%rip), %rsi     # 0x513e8
movq %r14, %rdi
callq 0xd530
testl %eax, %eax
je 0x10b6d
movzbl (%r14), %eax
testl %eax, %eax
je 0x10b63
cmpl $0x2b, %eax
jne 0x10b29
movb 0x1(%r14), %al
incq %r14
movzbl %al, %ecx
testb %cl, %cl
je 0x10b67
cmpl $0x2d, %ecx
jne 0x10b3c
movb 0x1(%r14), %al
incq %r14
testb %al, %al
je 0x10b6b
incq %r14
testb %al, %al
je 0x10b6d
movsbl %al, %ecx
addl $-0x30, %ecx
cmpl $0xa, %ecx
jb 0x10b5e
cmpb $0x45, %al
je 0x10b5e
movzbl %al, %eax
cmpl $0x2e, %eax
jne 0x10b6b
movb (%r14), %al
jmp 0x10b40
movl %eax, %ebx
jmp 0x10b6d
movl %ecx, %ebx
jmp 0x10b6d
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prp2prp/prp2prp.cpp
// Function: Scale(gaps::R3Mesh*)
static RNScalar
Scale(R3Mesh *mesh)
{
  // Check if absolute scale
  if (!parameters_in_relative_units) return 1.0;

  // Compute smallest sigma
  static RNScalar scale = 1;
  static R3Mesh *last_mesh = NULL;
  if (mesh != last_mesh) {
    RNLength length = sqrt(mesh->Area());
    if (length > 0) scale = 1.0 / length;
    last_mesh = mesh;
  }

  // Return scale
  return scale;
}

// Assembly:
cmpb $0x0, 0x68f52(%rip)     # 0x79ad0
je 0x10b89
movsd 0x404b0(%rip), %xmm0    # 0x51038
retq
pushq %rbx
movq %rdi, %rbx
cmpq %rdi, 0x68f44(%rip)     # 0x79ad8
je 0x10bd8
movq %rbx, %rdi
callq 0x1613a
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x10bae
sqrtsd %xmm0, %xmm0
jmp 0x10bb7
callq 0xd2d0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x10bd1
movsd 0x40473(%rip), %xmm1    # 0x51038
divsd %xmm0, %xmm1
movsd %xmm1, 0x687ef(%rip)    # 0x793c0
movq %rbx, 0x68f00(%rip)     # 0x79ad8
movsd 0x687e0(%rip), %xmm0    # 0x793c0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Shadowsith[P]gtts/gtts.cpp
// Function: gtts::GoogleTTS::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::vector<string> GoogleTTS::split(string& msg) {
    std::vector<string> vec;
    std::istringstream iss(msg);
    std::vector<string> words(std::istream_iterator<string>{iss},
            std::istream_iterator<string>());
    string part = "";
    for (string s : words) {
        if(part.size()-1 + s.size() <= 200) {
            part += s + " ";
        } else {
            vec.push_back(part);
            part = s + " ";
        }
    }
    if(part != "") vec.push_back(part);

    return vec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, -0x30(%rbp)
andq $0x0, 0x10(%rdi)
leaq -0x288(%rbp), %rdi
pushq $0x8
popq %rax
movq %rdx, %rsi
movl %eax, %edx
callq 0x2250
leaq -0xb8(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0x46c6
leaq -0x100(%rbp), %rbx
andq $0x0, -0x8(%rbx)
leaq -0xf0(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
movb %cl, 0x10(%rax)
leaq -0x68(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x108(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0x4706
movq %rbx, %rdi
callq 0x20a0
leaq -0xb0(%rbp), %rdi
callq 0x20a0
leaq 0x2da9(%rip), %rsi      # 0x65f0
leaq -0x50(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0x465e
movq -0x68(%rbp), %r14
movq -0x60(%rbp), %r12
leaq -0x88(%rbp), %r15
leaq -0xd8(%rbp), %r13
leaq -0x50(%rbp), %rbx
cmpq %r12, %r14
je 0x38fc
movq %r15, %rdi
movq %r14, %rsi
callq 0x2200
movq -0x48(%rbp), %rax
movq -0x80(%rbp), %rcx
addq %rcx, %rax
decq %rax
cmpq $0xc8, %rax
ja 0x38ba
movq %r13, %rdi
movq %r15, %rsi
leaq 0x2b5d(%rip), %rdx      # 0x6405
callq 0x4791
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2290
jmp 0x38e3
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
callq 0x47ca
movq %r13, %rdi
movq %r15, %rsi
leaq 0x2b32(%rip), %rdx      # 0x6405
callq 0x4791
movq %rbx, %rdi
movq %r13, %rsi
callq 0x21d0
movq %r13, %rdi
callq 0x20a0
movq %r15, %rdi
callq 0x20a0
addq $0x20, %r14
jmp 0x3871
leaq 0x2ced(%rip), %rsi      # 0x65f0
leaq -0x50(%rbp), %rdi
callq 0x4805
testb %al, %al
je 0x391d
leaq -0x50(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x47ca
leaq -0x50(%rbp), %rdi
callq 0x20a0
leaq -0x68(%rbp), %rdi
callq 0x469a
leaq -0x288(%rbp), %rdi
callq 0x20b0
movq -0x30(%rbp), %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x39ad
movq %rax, %r14
movq %rbx, %rdi
callq 0x20a0
leaq -0xb0(%rbp), %rdi
callq 0x20a0
jmp 0x39b6
movq %rax, %r14
jmp 0x39b6
movq %rax, %r14
jmp 0x39c2
jmp 0x39a1
jmp 0x397f
jmp 0x397f
movq %rax, %r14
jmp 0x3993
movq %rax, %r14
leaq -0xd8(%rbp), %rdi
callq 0x20a0
leaq -0x88(%rbp), %rdi
callq 0x20a0
jmp 0x39a4
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x20a0
leaq -0x68(%rbp), %rdi
callq 0x469a
leaq -0x288(%rbp), %rdi
callq 0x20b0
movq -0x30(%rbp), %rdi
callq 0x469a
movq %r14, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O2/Shadowsith[P]gtts/gtts.cpp
// Function: gtts::GoogleTTS::parse()
void GoogleTTS::parse() {
    this->replace(_text);
    string cmd = _curl + _text + _lang + _client + "-H" + _ref + "-H";
    cmd += _agent + _out + " 2>/dev/null"; 
    _cmds.push_back(cmd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movq %r14, %rsi
callq 0x3fbe
leaq -0xd8(%rbp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x4812
leaq 0x20(%rbx), %rdx
leaq -0x98(%rbp), %rdi
movq %r15, %rsi
callq 0x4873
leaq 0x60(%rbx), %rdx
leaq -0xb8(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x4873
leaq 0x26fe(%rip), %rdx      # 0x646b
leaq -0x38(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x484a
leaq 0xc0(%rbx), %rdx
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x4873
leaq 0x26d3(%rip), %rdx      # 0x646b
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x484a
leaq -0x58(%rbp), %rdi
callq 0x20a0
leaq -0x38(%rbp), %rdi
callq 0x20a0
leaq -0xb8(%rbp), %rdi
callq 0x20a0
leaq -0x98(%rbp), %rdi
callq 0x20a0
leaq -0xd8(%rbp), %rdi
callq 0x20a0
leaq 0xe0(%rbx), %rsi
leaq 0x80(%rbx), %rdx
leaq -0x38(%rbp), %rdi
callq 0x4812
leaq 0x2675(%rip), %rdx      # 0x646e
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x484a
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x2290
leaq -0x58(%rbp), %rdi
callq 0x20a0
leaq -0x38(%rbp), %rdi
callq 0x20a0
addq $0x1a0, %rbx            # imm = 0x1A0
leaq -0x78(%rbp), %rsi
movq %rbx, %rdi
callq 0x47ca
leaq -0x78(%rbp), %rdi
callq 0x20a0
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e6d
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20a0
jmp 0x3e62
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x20a0
jmp 0x3e70
movq %rax, %rbx
leaq -0x78(%rbp), %rdi
jmp 0x3ebe
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20a0
jmp 0x3e87
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x20a0
jmp 0x3e95
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x20a0
jmp 0x3ea6
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x20a0
jmp 0x3eb7
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O2/Shadowsith[P]gtts/gtts.cpp
// Function: gtts::GoogleTTS::execute()
void GoogleTTS::execute() {
    if (_cmds.size() == 1) {
        std::system(_cmds[0].c_str());
    } else {
        for(string cmd : _cmds) {
            std::system(cmd.c_str());
        }
        this->unite();
    }
    _mpv += _speed + _play;
    std::system(_mpv.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x1a0(%rdi), %r14
movq 0x1a8(%rdi), %r12
movq %r12, %rax
subq %r14, %rax
cmpq $0x20, %rax
jne 0x3f2a
movq (%r14), %rdi
callq 0x2140
jmp 0x3f5d
leaq -0x40(%rbp), %r15
cmpq %r12, %r14
je 0x3f55
movq %r15, %rdi
movq %r14, %rsi
callq 0x2200
movq -0x40(%rbp), %rdi
callq 0x2140
movq %r15, %rdi
callq 0x20a0
addq $0x20, %r14
jmp 0x3f2e
movq %rbx, %rdi
callq 0x3ecc
leaq 0x120(%rbx), %rsi
leaq 0x140(%rbx), %rdx
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x4812
addq $0x100, %rbx            # imm = 0x100
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2290
leaq -0x40(%rbp), %rdi
callq 0x20a0
movq (%rbx), %rdi
callq 0x2140
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3fa9
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2260
nop
// File: /workspace/github_cpp_makefile_star2_O2/Shadowsith[P]gtts/gtts.cpp
// Function: gtts::GoogleTTS::replace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void GoogleTTS::replace(string& text) {
    size_t start_pos = 0;
    while ((start_pos = text.find(" ", start_pos)) != string::npos) {
       text.replace(start_pos, 1, "%20");
       start_pos += 3; // Handles case where 'to' is a substring of 'from'
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
xorl %r12d, %r12d
leaq 0x242c(%rip), %r14      # 0x6405
leaq 0x2487(%rip), %r15      # 0x6467
pushq $0x1
popq %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x22a0
cmpq $-0x1, %rax
je 0x4012
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x20f0
addq $0x3, %r12
jmp 0x3fe4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop