LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: Jailer::Jailer(ProcessConfig const&, void*)
Jailer(const ProcessConfig& config, void* isolatedProcessStack = nullptr)
          : config(config), isolatedProcessStack(isolatedProcessStack) {
        /// sanity check
        if (config.boxId == -1) {
            Die("Specify box-id.");
        }

        if (config.processId < 0 or config.processId >= maxProcessesPerCG) {
            Die("Process if out of range [0, %d). Id=%d", maxProcessesPerCG, config.processId);
        }

        uid = firstProcessUid + maxProcessesPerCG * config.boxId + config.processId;
        gid = firstProcessGid + maxProcessesPerCG * config.boxId + config.processId;
        cgid = firstCgroupId + maxProcessesPerCG * config.boxId + config.processId;

        boxDir = Base::StrCat(baseBoxDir, "/", config.boxId);
        this->meta_fd = -1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
callq 0x45920
movq %r14, 0x168(%rbx)
leaq 0x170(%rbx), %r14
leaq 0x180(%rbx), %r12
movq %r12, 0x170(%rbx)
movq $0x0, 0x178(%rbx)
movb $0x0, 0x180(%rbx)
movl 0x4(%r15), %ecx
cmpl $-0x1, %ecx
je 0x39149
movl 0x8(%r15), %edx
testl %edx, %edx
js 0x39135
movl 0x31466(%rip), %eax     # 0x6a4d4
cmpl %eax, %edx
jge 0x39135
imull %ecx, %eax
addl %edx, %eax
movl 0x31447(%rip), %ecx     # 0x6a4c8
addl %eax, %ecx
movl %ecx, 0x190(%rbx)
movl 0x3143d(%rip), %ecx     # 0x6a4cc
addl %eax, %ecx
movl %ecx, 0x194(%rbx)
addl 0x31433(%rip), %eax     # 0x6a4d0
movl %eax, 0x198(%rbx)
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x32a45(%rip), %rsi     # 0x6baf8
movq 0x32a46(%rip), %rdx     # 0x6bb00
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x47a78
movl 0x4(%r15), %ecx
leaq 0x1d183(%rip), %rdx     # 0x56253
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x45be9
leaq 0x20(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x275a0
movq (%r15), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x39107
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x27480
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x3911d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
movl $0xffffffff, 0x19c(%rbx) # imm = 0xFFFFFFFF
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl 0x31399(%rip), %esi     # 0x6a4d4
leaq 0x1d4e3(%rip), %rdi     # 0x56625
xorl %eax, %eax
callq 0x2ce45
leaq 0x1d4c5(%rip), %rdi     # 0x56615
xorl %eax, %eax
callq 0x2ce45
movq %rax, %r15
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x39177
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x39177
jmp 0x39174
movq %rax, %r15
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x3918b
movq (%r12), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x38f36
movq %r15, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: Jailer::Start()
void Start() {
        Base::verbose_level = config.verboseLevel;

        BoxInit();
        typedef ProcessConfig::Modes Modes;
        switch (config.mode) {
            case Modes::kUnspecified:
                Die("Specify a mode for isolate");
                break;
            case Modes::kInit:
                Init();
                break;
            case Modes::kRun:
                Run();
                break;
            case Modes::kCleanup:
                Cleanup();
                break;
            default:
                Die("Unknown mode");
                break;
        }
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0xc(%rdi), %eax
movl %eax, 0x317df(%rip)     # 0x6a988
callq 0x46012
movl (%rbx), %eax
cmpq $0x3, %rax
ja 0x391ea
leaq 0x1befb(%rip), %rcx     # 0x550b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
popq %rbx
jmp 0x460f8
movq %rbx, %rdi
popq %rbx
jmp 0x461d0
movq %rbx, %rdi
popq %rbx
jmp 0x464ee
leaq 0x1d464(%rip), %rdi     # 0x5664c
jmp 0x391f1
leaq 0x1d476(%rip), %rdi     # 0x56667
xorl %eax, %eax
callq 0x2ce45
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/cgroups.hpp
// Function: CGroups::memoryKB()
size_t memoryKB() {
        // Memory usage statistics
        size_t mem = 0, memsw = 0;
        if (readStat(cgMemory, "memory.max_usage_in_bytes", true)) {
            mem = atoll(buffer);
        } else {
            Base::Msg("Failed to read memory from cgroup");
        }

        if (readStat(cgMemory, "memory.memsw.max_usage_in_bytes", true)) {
            memsw = atoll(buffer);
            if (memsw > mem) {
                mem = memsw;
            }
        } else {
            Base::Msg("Failed to read swap memory from cgroup");
        }

        return mem >> 10;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x2fc3e(%rip), %rsi     # 0x6a9b8
movq 0x2fc3f(%rip), %rdx     # 0x6a9c0
addq %rsi, %rdx
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x47a78
movb 0x2fc41(%rip), %al      # 0x6a9d8
movb %al, 0x20(%r14)
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1b254(%rip), %rsi     # 0x55fff
leaq 0x1b266(%rip), %rdx     # 0x56018
leaq 0x8(%rsp), %rdi
callq 0x43424
leaq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x39fd6
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3adec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x3ae03
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x27480
testl %ebp, %ebp
je 0x3ae15
leaq 0x28(%rbx), %rdi
callq 0x27380
movq %rax, %r14
jmp 0x3ae26
leaq 0x1b1fd(%rip), %rdi     # 0x56019
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x2cfe4
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x2fb81(%rip), %rsi     # 0x6a9b8
movq 0x2fb82(%rip), %rdx     # 0x6a9c0
addq %rsi, %rdx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x47a78
movb 0x2fb84(%rip), %al      # 0x6a9d8
movb %al, 0x20(%r15)
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x1b1d4(%rip), %rsi     # 0x5603b
leaq 0x1b1ec(%rip), %rdx     # 0x5605a
callq 0x43424
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x1, %ecx
callq 0x39fd6
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3aea3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x3aeba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x27480
testl %ebp, %ebp
je 0x3aed3
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x27380
cmpq %r14, %rax
cmovaq %rax, %r14
jmp 0x3aee1
leaq 0x1b181(%rip), %rdi     # 0x5605b
xorl %eax, %eax
callq 0x2cfe4
shrq $0xa, %r14
movq %r14, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3af16
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x3af16
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x3af41
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x3af3c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x3af3c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x3af52
movq (%r12), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessKeeper::startStatusCheck(unsigned long long)
void startStatusCheck(unsigned long long checkIntervalMs) {
        /// setup callback for SIGALRM signal
        struct sigaction sa;
        bzero(&sa, sizeof(sa));
        sa.sa_handler = ProcessKeeper::alarmSignalHandler;
        sigaction(SIGALRM, &sa, NULL);

        /// setup initial time and interval time for signal triggering
        itimerval timer;

        timer.it_interval.tv_sec = checkIntervalMs / 1000;
        timer.it_interval.tv_usec = (checkIntervalMs % 1000) * 1000;
        timer.it_value = timer.it_interval;

        if (setitimer(ITIMER_REAL, &timer, NULL) != 0) {
            Die("ERROR: setitimer failed");
            exit(-1);
        }
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %rbx
leaq 0x20(%rsp), %r14
movl $0x98, %esi
movq %r14, %rdi
callq 0x27810
leaq -0xceb0(%rip), %rax     # 0x2e15c
movq %rax, (%r14)
movl $0xe, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x275b0
movq %rbx, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
mulq %rcx
shrq $0x4, %rdx
movq %rsp, %rsi
movq %rdx, (%rsi)
imulq $0x3e8, %rdx, %rax      # imm = 0x3E8
subq %rax, %rbx
imulq $0x3e8, %rbx, %rax      # imm = 0x3E8
movq %rax, 0x8(%rsi)
movq (%rsi), %rax
movq %rax, 0x10(%rsi)
movq 0x8(%rsi), %rax
movq %rax, 0x18(%rsi)
xorl %edi, %edi
xorl %edx, %edx
callq 0x27720
testl %eax, %eax
jne 0x3b078
addq $0xb8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1b003(%rip), %rdi     # 0x56082
xorl %eax, %eax
callq 0x2ce45
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/cgroups.hpp
// Function: CGroups::getFullTime()
RunStats::TimeStat getFullTime() {
        RunStats::TimeStat timeStat;
        timeStat.wallTimeMs = 0;
        timeStat.cpuTimeMs = cpuTimeMs();

        /// http://stackoverflow.com/questions/3875801/convert-jiffies-to-seconds/6786757#6786757
        /// returns in jiffies. jiffies/sec = 100. num_juffies / 100 * 1000 to ms
        readStat(cgCpuacct, "cpuacct.stat");
        timeStat.userTimeMs = 10 * atoll(strstr(buffer, "user ") + strlen("user "));
        timeStat.systemTimeMs = 10 * atoll(strstr(buffer, "system ") + strlen("system "));

        return timeStat;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, (%rdi)
movq %rsi, %rdi
callq 0x39ee2
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
mulq %rcx
shrq $0x12, %rdx
movq %rdx, 0x8(%rbx)
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x2f914(%rip), %rsi     # 0x6a9e0
movq 0x2f915(%rip), %rdx     # 0x6a9e8
addq %rsi, %rdx
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x47a78
movb 0x2f917(%rip), %al      # 0x6aa00
movb %al, 0x20(%r15)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1af9d(%rip), %rsi     # 0x5609a
leaq 0x1afa2(%rip), %rdx     # 0x560a6
movq %rsp, %rdi
callq 0x43424
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
callq 0x39fd6
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3b134
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b14b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x27480
addq $0x28, %r14
leaq 0x1af51(%rip), %rsi     # 0x560a7
movq %r14, %rdi
callq 0x270d0
leaq 0x5(%rax), %rdi
callq 0x27380
addq %rax, %rax
leaq (%rax,%rax,4), %rax
movq %rax, 0x10(%rbx)
leaq 0x1af34(%rip), %rsi     # 0x560ad
movq %r14, %rdi
callq 0x270d0
leaq 0x7(%rax), %rdi
callq 0x27380
addq %rax, %rax
leaq (%rax,%rax,4), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3b1c2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x3b1c2
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x3b1d9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::setupPipes()
void setupPipes() {
        if (config.swapPipeOpenOrder == false) {
            if (config.redirectStdin.size()) {
                close(0);
                if (open(config.redirectStdin.c_str(), O_RDONLY) != 0) {
                    Die("open(\"%s\"): %m", config.redirectStdin.c_str());
                }
            }

            if (config.redirectStdout.size()) {
                close(1);
                if (open(config.redirectStdout.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666) != 1) {
                    Die("open(\"%s\"): %m", config.redirectStdout.c_str());
                }
            }
        } else {
            if (config.redirectStdout.size()) {
                close(1);
                if (open(config.redirectStdout.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666) != 1) {
                    Die("open(\"%s\"): %m", config.redirectStdout.c_str());
                }
            }

            if (config.redirectStdin.size()) {
                close(0);
                if (open(config.redirectStdin.c_str(), O_RDONLY) != 0) {
                    Die("open(\"%s\"): %m", config.redirectStdin.c_str());
                }
            }
        }

        if (config.redirectStderr.size()) {
            close(2);
            if (open(config.redirectStderr.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666) != 2) {
                Die("open(\"%s\"): %m", config.redirectStderr.c_str());
            }
        } else {
            dup2(1, 2);
        }
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0xe4(%rdi)
je 0x3ba01
cmpq $0x0, 0x80(%rbx)
je 0x3b9dd
movl $0x1, %edi
callq 0x27930
movq 0x78(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x27350
cmpl $0x1, %eax
jne 0x3ba91
cmpq $0x0, 0x60(%rbx)
je 0x3ba4e
xorl %edi, %edi
callq 0x27930
movq 0x58(%rbx), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x27350
testl %eax, %eax
je 0x3ba4e
jmp 0x3ba97
cmpq $0x0, 0x60(%rbx)
je 0x3ba20
xorl %edi, %edi
callq 0x27930
movq 0x58(%rbx), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x27350
testl %eax, %eax
jne 0x3ba97
cmpq $0x0, 0x80(%rbx)
je 0x3ba4e
movl $0x1, %edi
callq 0x27930
movq 0x78(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x27350
cmpl $0x1, %eax
jne 0x3ba91
cmpq $0x0, 0xa0(%rbx)
je 0x3ba81
movl $0x2, %edi
callq 0x27930
movq 0x98(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1b6, %edx            # imm = 0x1B6
xorl %eax, %eax
callq 0x27350
cmpl $0x2, %eax
jne 0x3ba9d
popq %rbx
retq
movl $0x1, %edi
movl $0x2, %esi
popq %rbx
jmp 0x27430
movq 0x78(%rbx), %rsi
jmp 0x3baa4
movq 0x58(%rbx), %rsi
jmp 0x3baa4
movq 0x98(%rbx), %rsi
leaq 0x1a866(%rip), %rdi     # 0x56311
xorl %eax, %eax
callq 0x2ce45
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::setupRlimits()
void setupRlimits() {
        /// max file limit
        if (config.fileSizeLimitKB) {
            setRlimit(RLIMIT_FSIZE, (rlim_t)config.fileSizeLimitKB * 1024);
        }

        /// stack limit
        if (config.stackLimitKB) {
            setRlimit(RLIMIT_STACK, (rlim_t)config.stackLimitKB * 1024);
        } else {
            setRlimit(RLIMIT_STACK, RLIM_INFINITY);
        }

        /// max opened files at once
        setRlimit(RLIMIT_NOFILE, (rlim_t)64);

        /// prevents the process from locking memory into RAM - preventing
        /// the os to move the memory to swap space
        setRlimit(RLIMIT_MEMLOCK, (rlim_t)0);

        /// max num of processes/threads that can be created
        if (config.maxProcesses) {
            setRlimit(RLIMIT_NPROC, (rlim_t)config.maxProcesses);
        }
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0xd8(%rdi), %rdx
testq %rdx, %rdx
je 0x3bb27
shlq $0xa, %rdx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3e86c
movslq 0x54(%rbx), %rax
movq %rax, %rcx
shlq $0xa, %rcx
xorl %edx, %edx
cmpq $0x1, %rax
sbbq %rdx, %rdx
orq %rcx, %rdx
movq %rbx, %rdi
movl $0x3, %esi
callq 0x3e86c
movl $0x40, %edx
movq %rbx, %rdi
movl $0x7, %esi
callq 0x3e86c
movq %rbx, %rdi
movl $0x8, %esi
xorl %edx, %edx
callq 0x3e86c
movslq 0xdc(%rbx), %rdx
testq %rdx, %rdx
je 0x3bb86
movq %rbx, %rdi
movl $0x6, %esi
popq %rbx
jmp 0x3e86c
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::setupCredentials()
void setupCredentials() {
        if (setresgid(gid, gid, gid) < 0) {
            Die("setresgid: %m");
        }

        if (setgroups(0, NULL) < 0) {
            Die("setgroups: %m");
        }

        if (setresuid(uid, uid, uid) < 0) {
            Die("setresuid: %m");
        }

        setpgrp();
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x16c(%rdi), %edi
movl %edi, %esi
movl %edi, %edx
callq 0x27170
testl %eax, %eax
js 0x3bbc5
xorl %edi, %edi
xorl %esi, %esi
callq 0x27780
testl %eax, %eax
js 0x3bbce
movl 0x168(%rbx), %edi
movl %edi, %esi
movl %edi, %edx
callq 0x270b0
testl %eax, %eax
js 0x3bbd7
popq %rbx
jmp 0x27550
leaq 0x1a85a(%rip), %rdi     # 0x56426
jmp 0x3bbde
leaq 0x1a85f(%rip), %rdi     # 0x56434
jmp 0x3bbde
leaq 0x1a864(%rip), %rdi     # 0x56442
xorl %eax, %eax
callq 0x2ce45
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::FilePermissions::addRule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void addRule(std::string path, std::string mode) {
            Permission p;
            p.path = path;
            p.mode = modeFromString(mode);
            allPermissions.push_back(p);
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x8(%rsp), %rdi
callq 0x27260
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3d74e
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x275a0
movq (%r14), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3d544
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x27480
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3d866
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x3d568
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3d57f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x3d58d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3d890
movq %rbx, %rdi
callq 0x27830
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::FilePermissions::addRule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void addRule(std::string rule) {
            auto colonLocation = rule.find(":");
            if (colonLocation == std::string::npos) {
                addRule(rule, "");
            } else {
                addRule(rule.substr(0, colonLocation), rule.substr(colonLocation + 1, rule.size()));
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x17e3d(%rip), %rsi     # 0x553f8
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x27820
cmpq $-0x1, %rax
je 0x3d634
movq %rax, %r15
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x274c0
incq %r15
movq 0x8(%r14), %rcx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x274c0
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x3d4c8
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d629
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x27480
leaq 0x70(%rsp), %r15
movq -0x10(%r15), %rdi
jmp 0x3d697
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x47a78
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x17b27(%rip), %rdx     # 0x55188
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x43424
leaq 0x40(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x3d4c8
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3d692
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x3d6a7
movq (%r15), %rsi
incq %rsi
callq 0x27480
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3d6d2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x3d6d2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
jmp 0x3d705
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3d6fc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x27480
jmp 0x3d6fc
movq %rax, %rbx
leaq 0x70(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x3d715
movq (%r15), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::FilePermissions::modeFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string modeFromString(const std::string& mode) {
            int bitmask = 0;

            for (char c : mode) {
                if (c == 'x' or c == 'X') {
                    bitmask |= (1 << 0);
                }
                if (c == 'w' or c == 'W') {
                    bitmask |= (1 << 1);
                }
                if (c == 'r' or c == 'R') {
                    bitmask |= (1 << 2);
                }
            }

            std::string result = "";
            std::string modes = "xwr";
            for (int i = 0; i < 3; i += 1) {
                if (bitmask & (1 << i)) {
                    result += modes[i];
                }
            }

            return result;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x3d7a8
movq (%rdx), %rcx
xorl %edx, %edx
xorl %ebp, %ebp
movb (%rcx,%rdx), %sil
andb $-0x21, %sil
xorl %edi, %edi
cmpb $0x58, %sil
sete %dil
orl %ebp, %edi
movl %edi, %r8d
orl $0x2, %r8d
cmpb $0x57, %sil
cmovnel %edi, %r8d
movl %r8d, %ebp
orl $0x4, %ebp
cmpb $0x52, %sil
cmovnel %r8d, %ebp
incq %rdx
cmpq %rdx, %rax
jne 0x3d76d
jmp 0x3d7aa
xorl %ebp, %ebp
leaq 0x10(%rbx), %r15
movq %r15, (%rbx)
leaq 0x179d0(%rip), %rdx     # 0x55188
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x43424
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x18b50(%rip), %rsi     # 0x56324
leaq 0x18b4c(%rip), %rdx     # 0x56327
movq %rsp, %rdi
callq 0x43424
xorl %r14d, %r14d
btl %r14d, %ebp
jae 0x3d7fd
movq (%rsp), %rax
movsbl (%rax,%r14), %esi
movq %rbx, %rdi
callq 0x273c0
incq %r14
cmpq $0x3, %r14
jne 0x3d7e6
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x3d81c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3d84a
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x3d84a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x3d85d
movq (%r15), %rsi
incq %rsi
callq 0x27480
movq %r14, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::setRlimit(int, unsigned long)
void setRlimit(int resource, rlim_t limit) {
        struct rlimit rl;
        bzero(&rl, sizeof(rl));
        rl.rlim_cur = limit;
        rl.rlim_max = limit;

        if (setrlimit(resource, &rl) < 0) {
            Die("setrlimit(%s, %jd)", getRlimitName(resource).c_str(), (intmax_t)limit);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x28(%rsp), %r15
movl $0x10, %esi
movq %r15, %rdi
callq 0x27810
movq %rbx, (%r15)
movq %rbx, 0x8(%r15)
movl %ebp, %edi
movq %r15, %rsi
callq 0x27410
testl %eax, %eax
js 0x3e8b0
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3e900
movq (%r15), %rsi
xorl %edx, %edx
testq %rbx, %rbx
setne %dl
leaq 0x17aec(%rip), %rdi     # 0x563c0
callq 0x2c889
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3e8f7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::getRlimitName[abi:cxx11](int)
string getRlimitName(int resource) {
        static std::map<int, string> resource_name = {
            {RLIMIT_AS, "RMLIMIT_AS"},        {RLIMIT_FSIZE, "RMLIMIT_FSIZE"},     {RLIMIT_STACK, "RMLIMIT_STACK"},
            {RLIMIT_NOFILE, "RLIMIT_NOFILE"}, {RLIMIT_MEMLOCK, "RMLIMIT_MEMLOCK"}, {RLIMIT_NPROC, "RMLIMIT_NPROC"},
        };

        return resource_name[resource];
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movq %rdi, %r15
movl %edx, 0x4(%rsp)
movb 0x2d287(%rip), %al      # 0x6bba0
testb %al, %al
je 0x3e957
leaq 0x2d24c(%rip), %rdi     # 0x6bb70
leaq 0x4(%rsp), %rsi
callq 0x3ec48
leaq 0x10(%r15), %rcx
movq %rcx, (%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x47a78
movq %r15, %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2d242(%rip), %rdi     # 0x6bba0
callq 0x27860
testl %eax, %eax
je 0x3e91d
leaq 0x1c(%rsp), %rsi
movl $0x9, (%rsi)
leaq 0x17a5a(%rip), %rdx     # 0x563d3
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x3eb1c
leaq 0x48(%rsp), %rbx
leaq 0x18(%rsp), %rsi
movl $0x1, (%rsi)
leaq 0x17a41(%rip), %rdx     # 0x563de
movq %rbx, %rdi
callq 0x3eb52
leaq 0x70(%rsp), %rbx
leaq 0x14(%rsp), %rsi
movl $0x3, (%rsi)
leaq 0x17a30(%rip), %rdx     # 0x563ec
movq %rbx, %rdi
callq 0x3eb52
leaq 0x98(%rsp), %rbx
leaq 0x10(%rsp), %rsi
movl $0x7, (%rsi)
leaq 0x17a1c(%rip), %rdx     # 0x563fa
movq %rbx, %rdi
callq 0x3eb52
leaq 0xc0(%rsp), %rbx
leaq 0xc(%rsp), %rsi
movl $0x8, (%rsi)
leaq 0x17a08(%rip), %rdx     # 0x56408
movq %rbx, %rdi
callq 0x3eb88
leaq 0xe8(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movl $0x6, (%rsi)
leaq 0x179f6(%rip), %rdx     # 0x56418
movq %rbx, %rdi
callq 0x3eb52
leaq 0x2d13f(%rip), %rdi     # 0x6bb70
leaq 0x20(%rsp), %rsi
leaq 0x3(%rsp), %rcx
leaq 0x2(%rsp), %r8
movl $0x6, %edx
callq 0x3ebbe
movq $-0xf0, %rbx
leaq 0x100(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x3ea6d
movq (%r14), %rsi
incq %rsi
callq 0x27480
addq $-0x28, %r14
addq $0x28, %rbx
jne 0x3ea59
leaq 0x1c4(%rip), %rdi       # 0x3ec42
leaq 0x2d0eb(%rip), %rsi     # 0x6bb70
leaq 0x2ba2c(%rip), %rdx     # 0x6a4b8
callq 0x273e0
leaq 0x2d108(%rip), %rdi     # 0x6bba0
callq 0x27300
jmp 0x3e91d
movq %rax, %r15
leaq 0x110(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x279f7
movb $0x1, %al
jmp 0x3eac8
jmp 0x3eac3
jmp 0x3eac3
jmp 0x3eac3
jmp 0x3eac3
movq %rax, %r15
xorl %eax, %eax
cmpq %rbx, %r14
je 0x3eafe
testb %al, %al
jne 0x3eafe
addq $-0x10, %rbx
leaq 0x20(%rsp), %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x3eaee
movq (%rbx), %rsi
incq %rsi
callq 0x27480
leaq -0x28(%rbx), %rax
addq $-0x18, %rbx
cmpq %r14, %rbx
movq %rax, %rbx
jne 0x3eada
leaq 0x2d09b(%rip), %rdi     # 0x6bba0
callq 0x272f0
movq %r15, %rdi
callq 0x27830
movq %rax, %r15
xorl %eax, %eax
movq %r14, %rbx
jmp 0x3eac8
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::Environment::getRule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::pair<std::string, std::string> getRule(const std::string& commandLineRule) {
            // search for "="
            std::size_t equalPosition = commandLineRule.find("=");

            if (equalPosition == std::string::npos) {
                // equal not found, inherit from global environment.
                return {commandLineRule, allRules[commandLineRule]};
            } else {
                return {commandLineRule.substr(0, equalPosition),
                                 commandLineRule.substr(equalPosition + 1)};
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x17528(%rip), %rsi     # 0x56607
movl $0x1, %ecx
movq %rdx, %rdi
xorl %edx, %edx
callq 0x27820
cmpq $-0x1, %rax
je 0x3f146
movq %rax, %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x274c0
incq %r15
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x274c0
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0x3f165
movq %rdx, (%rbx)
movq 0x18(%rsp), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x3f16b
addq $0x8, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x3f208
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3f7aa
jmp 0x3f1d2
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x30(%rbx), %rcx
movq %rcx, 0x20(%rbx)
leaq 0x38(%rsp), %rdx
movq -0x10(%rdx), %rsi
cmpq %rdx, %rsi
je 0x3f1ac
movq %rsi, 0x20(%rbx)
movq 0x38(%rsp), %rcx
movq %rcx, 0x30(%rbx)
jmp 0x3f1b2
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
movq 0x30(%rsp), %rcx
movq %rcx, 0x28(%rbx)
movq 0x8(%rsp), %rdi
cmpq %rax, %rdi
je 0x3f1d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f1ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::Environment::addRule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
int addRule(const std::string& commandLineRule) {
            std::pair<std::string, std::string> rule = getRule(commandLineRule);
            if (rule.first == "") {
                return 0;
            }

            allRules[rule.first] = rule.second;
            return 1;
        }

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3f0c4
leaq 0x15e30(%rip), %rsi     # 0x55188
movq %r14, %rdi
callq 0x27100
testl %eax, %eax
je 0x3f389
addq $0x8, %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3f208
movl $0x1, %ebx
leaq 0x28(%rsp), %rsi
movq %rax, %rdi
callq 0x27260
jmp 0x3f38b
xorl %ebx, %ebx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f3a6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x27480
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3f3c1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3f284
movq %rbx, %rdi
callq 0x27830
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: Jailer::BoxInit()
void BoxInit() {
        if (config.metaFile.size()) {
            meta_fd = open(config.metaFile.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 0777);
        }

        umask(0027);  // new files will be created with 0750

        Base::MakeDir(boxDir.c_str());
        if (chdir(boxDir.c_str()) < 0) {
            Die("chdir(%s): %m", boxDir.c_str());
        }

        cg.init(cgid);
        cg.cgMemoryLimitKB = config.memoryLimitKB;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x4603e
movq 0x10(%rbx), %rdi
movl $0x241, %esi            # imm = 0x241
movl $0x1ff, %edx            # imm = 0x1FF
xorl %eax, %eax
callq 0x27350
movl %eax, 0x19c(%rbx)
movl $0x17, %edi
callq 0x27840
movq 0x170(%rbx), %rsi
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x35eac
movq %r14, %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x2d14d
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46089
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x170(%rbx), %rdi
callq 0x27700
testl %eax, %eax
js 0x460bc
movl 0x198(%rbx), %esi
leaq 0x24a22(%rip), %rdi     # 0x6aac8
callq 0x465c0
movl 0x50(%rbx), %eax
movl %eax, 0x24a34(%rip)     # 0x6aae8
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x170(%rbx), %rsi
leaq 0x105aa(%rip), %rdi     # 0x56674
xorl %eax, %eax
callq 0x2ce45
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x460ef
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: Jailer::Init()
void Init() {
        Msg("Preparing sandbox directory\n");
        Base::RMTree("box");
        Base::MakeDir("box", 0750);

        cg.prepare();

        Rules::DiskQuota diskQuota(config.diskQuota, uid);
        diskQuota.applyQuota();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10592(%rip), %rdi     # 0x5669f
xorl %eax, %eax
callq 0x2cfe4
leaq 0x1011c(%rip), %r14     # 0x56237
leaq -0x18e02(%rip), %rsi    # 0x2d320
movq %r14, %rdi
movl $0x20, %edx
movl $0xb, %ecx
callq 0x275e0
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x100f5(%rip), %rdx     # 0x5623a
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x43424
movq %r15, %rdi
movl $0x1e8, %esi            # imm = 0x1E8
callq 0x2d14d
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x46179
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
leaq 0x24948(%rip), %rdi     # 0x6aac8
callq 0x4661e
movl 0x190(%rbx), %eax
leaq 0x8(%rsp), %rdi
movl %eax, (%rdi)
movq 0x140(%rbx), %rax
movq %rax, 0x4(%rdi)
callq 0x46d3c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x461c8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: Jailer::Cleanup()
void Cleanup() {
        if (!Base::DirExists("box")) {
            Msg("Box directory not found, there isn't anything to clean up");
        } else {
            Msg("Deleting sandbox directory\n");
            Base::RMTree(boxDir.c_str());
        }

        cg.cleanup();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xfd26(%rip), %rsi      # 0x56237
leaq 0xfd22(%rip), %rdx      # 0x5623a
movq %rsp, %r14
movq %r14, %rdi
callq 0x43424
movq (%r14), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0x273f0
testl %eax, %eax
sets %al
movl 0x18(%r15), %ecx
andl $0xf000, %ecx           # imm = 0xF000
cmpl $0x4000, %ecx           # imm = 0x4000
setne %bpl
orb %al, %bpl
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x46564
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x27480
testb %bpl, %bpl
je 0x46579
leaq 0x104eb(%rip), %rdi     # 0x56a5b
xorl %eax, %eax
callq 0x2cfe4
jmp 0x465a4
leaq 0x10515(%rip), %rdi     # 0x56a95
xorl %eax, %eax
callq 0x2cfe4
movq 0x170(%rbx), %rdi
leaq -0x19275(%rip), %rsi    # 0x2d320
movl $0x20, %edx
movl $0xb, %ecx
callq 0x275e0
leaq 0x2451d(%rip), %rdi     # 0x6aac8
callq 0x4765e
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/rules.hpp
// Function: Rules::DiskQuota::findDevice(char const*)
static char* findDevice(const char* path) {
            FILE* f = setmntent("/proc/mounts", "r");
            if (!f)
                Die("Cannot open /proc/mounts: %m");

            struct mntent* me;
            int best_len = 0;
            char* best_dev = NULL;
            while ((me = getmntent(f))) {
                if (!Base::PathBeginsWith(me->mnt_fsname, "/dev"))
                    continue;

                if (Base::PathBeginsWith(path, me->mnt_dir)) {
                    int len = strlen(me->mnt_dir);
                    if (len > best_len) {
                        best_len = len;
                        free(best_dev);
                        best_dev = strdup(me->mnt_fsname);
                    }
                }
            }
            endmntent(f);
            return best_dev;
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
leaq 0xf9cb(%rip), %rdi      # 0x568bd
leaq 0xe29b(%rip), %rsi      # 0x55194
callq 0x27450
testq %rax, %rax
je 0x47071
movq %rax, %r14
leaq 0x50(%rsp), %r12
movq $0x0, 0x38(%rsp)
leaq 0x18(%rsp), %r15
leaq 0x40(%rsp), %rbx
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
callq 0x27570
testq %rax, %rax
je 0x47055
movq %rax, %r13
movq (%rax), %rsi
movq %r15, %rdi
leaq 0xe(%rsp), %rdx
callq 0x35eac
movq %r12, 0x40(%rsp)
movq %rbx, %rdi
leaq 0xf989(%rip), %rsi      # 0x568e7
leaq 0xf986(%rip), %rdx      # 0x568eb
callq 0x43424
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2d0db
movl %eax, %ebp
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x46f8e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x46faa
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x27480
testl %ebp, %ebp
je 0x46f2b
movq %r15, %rdi
movq 0x60(%rsp), %rsi
leaq 0xe(%rsp), %rdx
callq 0x35eac
movq 0x8(%r13), %rsi
movq %rbx, %rdi
leaq 0xf(%rsp), %rdx
callq 0x35eac
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2d0db
movl %eax, %ebp
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x46ff9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x47015
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x27480
testl %ebp, %ebp
je 0x46f2b
movq 0x8(%r13), %rdi
callq 0x271e0
movq %rax, %rbp
cmpl %ebp, 0x38(%rsp)
jge 0x46f2b
movq 0x10(%rsp), %rdi
callq 0x27560
movq (%r13), %rdi
callq 0x27870
movq %rax, 0x10(%rsp)
movq %rbp, 0x38(%rsp)
jmp 0x46f2b
movq %r14, %rdi
callq 0x27060
movq 0x10(%rsp), %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf852(%rip), %rdi      # 0x568ca
xorl %eax, %eax
callq 0x2ce45
jmp 0x4708f
jmp 0x4708a
jmp 0x47085
movq %rax, %rbx
jmp 0x470c5
movq %rax, %rbx
jmp 0x470a9
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x470a9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x27480
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x470c5
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x27480
movq %rbx, %rdi
callq 0x27830
nop
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessInitialiser::ProcessInitialiser(ProcessConfig, int, int, int*)
ProcessInitialiser(ProcessConfig config, int uid, int gid, int errorPipes[2]) {
        this->config = config;
        this->uid = uid;
        this->gid = gid;
        this->errorPipes[0] = errorPipes[0];
        this->errorPipes[1] = errorPipes[1];
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %rbx
callq 0x365ae
movups (%r12), %xmm0
movups %xmm0, (%rbx)
leaq 0x10(%rbx), %rdi
leaq 0x10(%r12), %rsi
callq 0x27260
movq 0x50(%r12), %rax
movq %rax, 0x50(%rbx)
movups 0x30(%r12), %xmm0
movups 0x40(%r12), %xmm1
movups %xmm1, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
leaq 0x58(%rbx), %rdi
leaq 0x58(%r12), %rsi
callq 0x27260
leaq 0x78(%rbx), %rdi
leaq 0x78(%r12), %rsi
callq 0x27260
movl $0x98, %esi
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x27260
movl $0xb8, %esi
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x27260
movq 0xd8(%r12), %rax
movq 0xdd(%r12), %rcx
movq %rcx, 0xdd(%rbx)
movq %rax, 0xd8(%rbx)
movl $0xe8, %esi
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x27260
movq 0x108(%r12), %rax
movq %rax, 0x108(%rbx)
movl $0x110, %esi            # imm = 0x110
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x396e0
movl $0x128, %esi            # imm = 0x128
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x39a3e
movq 0x140(%r12), %rax
movq %rax, 0x140(%rbx)
movl $0x148, %esi            # imm = 0x148
leaq (%rbx,%rsi), %rdi
addq %r12, %rsi
callq 0x396e0
movl 0x160(%r12), %eax
movl %eax, 0x160(%rbx)
movl %r15d, 0x168(%rbx)
movl %ebp, 0x16c(%rbx)
movl (%r14), %eax
movl %eax, 0x170(%rbx)
movl 0x4(%r14), %eax
movl %eax, 0x174(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x38f36
movq %r14, %rdi
callq 0x27830
// File: /workspace/github_cpp_makefile_star2_O1/establishment[P]sandman/src/lib.hpp
// Function: ProcessKeeper::mockSignals()
void mockSignals() {
        struct sigaction sa;
        bzero(&sa, sizeof(sa));
        sa.sa_handler = ProcessKeeper::dummySignalHandler;
        sigaction(SIGHUP, &sa, NULL);
        sigaction(SIGINT, &sa, NULL);
        sigaction(SIGQUIT, &sa, NULL);
        sigaction(SIGILL, &sa, NULL);
        sigaction(SIGABRT, &sa, NULL);
        sigaction(SIGFPE, &sa, NULL);
        sigaction(SIGSEGV, &sa, NULL);
        sigaction(SIGPIPE, &sa, NULL);
        sigaction(SIGTERM, &sa, NULL);
        sigaction(SIGUSR1, &sa, NULL);
        sigaction(SIGUSR2, &sa, NULL);

        /// mock alert sig as well since it can be overwriteSize
        sigaction(SIGALRM, &sa, NULL);
    }

// Assembly:
pushq %rbx
subq $0xa0, %rsp
leaq 0x8(%rsp), %rbx
movl $0x98, %esi
movq %rbx, %rdi
callq 0x27810
leaq -0x193a9(%rip), %rax    # 0x2e1f4
movq %rax, (%rbx)
movl $0x1, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0x2, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0x3, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0x4, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0x6, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0x8, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xb, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xd, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xf, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xa, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xc, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
movl $0xe, %edi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x275b0
addq $0xa0, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/UltiRTS[P]gameLauncher/launcher.cpp
// Function: getPath[abi:cxx11](int, char**)
string getPath(int argc, char *passedargv[]) {
	// Get the last position of '/'
	string aux(passedargv[0]);
	// get '/' or '\\' depending on unix/mac or windows.
#if defined(_WIN32) || defined(WIN32)
	int pos = aux.rfind('\\');
#else
	int pos = aux.rfind('/');
#endif
	// Get the path and the name
	string path = aux.substr(0,pos+1);
	string name = aux.substr(pos+1);
	// show results
	return (path);
	//cout << "Name: " << name << std::endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rdx), %rsi
leaq -0x38(%rbp), %r15
leaq -0x58(%rbp), %rdx
movq %r15, %rdi
callq 0x419c
movq %r15, %rdi
movl $0x2f, %esi
movq $-0x1, %rdx
callq 0x23a0
incl %eax
movslq %eax, %r14
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x2260
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movq %r14, %rdx
movq $-0x1, %rcx
callq 0x2260
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2668
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2681
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2240
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x26ae
movq (%rbx), %rsi
incq %rsi
callq 0x2240
jmp 0x26ae
movq %rax, %r14
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x26c7
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2240
movq %r14, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/UltiRTS[P]gameLauncher/launcher.cpp
// Function: exec[abi:cxx11](char const*)
string exec(const char* cmd) {
	array<char, 128> buffer;
	string result;
	unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd, "r"), pclose);
	if (!pipe) {
		throw std::runtime_error("popen() failed!");
	}
	while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) {
		result += buffer.data();
	}
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x2ac5(%rip), %rsi      # 0x5217
movq %rax, %rdi
callq 0x20b0
movq %rax, %r14
testq %rax, %rax
je 0x27a8
leaq -0xa8(%rbp), %r15
movq %r15, %rdi
movl $0x80, %esi
movq %r14, %rdx
callq 0x2310
testq %rax, %rax
je 0x278b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2390
jmp 0x2769
movq %r14, %rdi
callq 0x22d0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2120
movq %rax, %r12
leaq 0x285c(%rip), %rsi      # 0x5018
movq %rax, %rdi
callq 0x20e0
movq 0x4825(%rip), %rsi      # 0x6ff0
movq 0x47f6(%rip), %rdx      # 0x6fc8
movq %r12, %rdi
callq 0x2350
jmp 0x27e9
movq %rax, %r15
movq %r12, %rdi
callq 0x2180
jmp 0x27ec
movq %rax, %r15
testq %r14, %r14
je 0x27f9
movq %r14, %rdi
callq 0x22d0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x280d
movq (%r13), %rsi
incq %rsi
callq 0x2240
movq %r15, %rdi
callq 0x2360
// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/tsl_hopscotch_map/./hopscotch_hash.h
// Function: std::_List_iterator<std::pair<unsigned int, unsigned int>> tsl::detail_hopscotch_hash::hopscotch_hash<std::pair<unsigned int, unsigned int>, tsl::hopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::KeySelect, tsl::hopscotch_map<unsigned int, unsigned int, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>>::ValueSelect, Hash32, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>, 62u, false, tsl::hh::power_of_two_growth_policy<2ul>, std::__cxx11::list<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>>::insert_in_overflow<std::piecewise_construct_t const&, std::tuple<unsigned int&&>, std::tuple<>, std::__cxx11::list<std::pair<unsigned int, unsigned int>, std::allocator<std::pair<unsigned int, unsigned int>>>, (void*)0>(unsigned long, std::piecewise_construct_t const&, std::tuple<unsigned int&&>&&, std::tuple<>&&)
iterator_overflow insert_in_overflow(std::size_t ibucket_for_hash, Args&&... value_type_args) {
        auto it = m_overflow_elements.emplace(m_overflow_elements.end(), std::forward<Args>(value_type_args)...);
        
        m_buckets[ibucket_for_hash].set_overflow(true);
        m_nb_elements++;
            
        return it;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x20(%rdi), %r12
movl $0x18, %edi
callq 0x1110
movq %rax, %r13
movq (%rbx), %rax
movl (%rax), %eax
movl %eax, 0x10(%r13)
movl $0x0, 0x14(%r13)
movq %r13, %rdi
movq %r12, %rsi
callq 0x1040
incq 0x30(%r15)
movq 0x38(%r15), %rax
shlq $0x4, %r14
orq $0x2, (%rax,%r14)
incq 0x40(%r15)
movq %r13, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/adhipradhana[P]sliding-window-protocol/src/packet.cpp
// Function: create_packet(char*, unsigned int, unsigned long, char*, bool)
size_t create_packet(char* packet, unsigned int seq_num, size_t data_length, char* data, bool eot) {
	// convert data into network type (big endian/little endian)
	unsigned int network_seq_num = htonl(seq_num);
	unsigned int network_data_length = htonl(data_length);

	// copy data into frame
	if (eot) {
		packet[0] = 0x0;
	} else {
		packet[0] = 0x1;
	}

	memcpy(packet+1, &network_seq_num, 4);
	memcpy(packet+5, &network_data_length, 4);
	memcpy(packet+9, data, data_length);

	packet[9 + data_length] = count_checksum(data_length, data);

	return data_length + (size_t)10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %rbx
movq %rdi, %r14
bswapl %esi
movl %ebx, %eax
bswapl %eax
xorb $0x1, %r8b
movb %r8b, (%rdi)
movl %esi, 0x1(%rdi)
movl %eax, 0x5(%rdi)
addq $0x9, %rdi
movq %rcx, %rsi
callq 0x10d0
testq %rbx, %rbx
je 0x138b
xorl %ecx, %ecx
xorl %eax, %eax
movsbq (%r15,%rcx), %rdx
addq %rax, %rdx
movzbl %dl, %eax
incq %rax
testl $0xff00, %edx           # imm = 0xFF00
cmoveq %rdx, %rax
incq %rcx
cmpq %rcx, %rbx
jne 0x1367
notb %al
jmp 0x138d
movb $-0x1, %al
movb %al, 0x9(%r14,%rbx)
addq $0xa, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/adhipradhana[P]sliding-window-protocol/src/packet.cpp
// Function: count_checksum(unsigned long, char*)
char count_checksum(size_t data_length, char* data) {
	unsigned long sum = 0;
	for (size_t i = 0; i < data_length; i++) {
		sum += *data++;
		if (sum & 0xFF00) {
			sum &= 0xFF;
			sum++;
		}
	}
	return (char)(~(sum & 0xFF));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x13d5
xorl %ecx, %ecx
xorl %eax, %eax
movsbq (%rsi,%rcx), %rdx
addq %rax, %rdx
movzbl %dl, %eax
incq %rax
testl $0xff00, %edx           # imm = 0xFF00
cmoveq %rdx, %rax
incq %rcx
cmpq %rcx, %rdi
jne 0x13b1
notb %al
jmp 0x13d7
movb $-0x1, %al
popq %rbp
retq