LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/Kyle-Alvares[P]SQA1/request.cpp
// Function: req::askNames(User)
void req::askNames(User user)
{
    string fName;
    string lName;
    bool valid = false;
    while(!valid) {
        cout << "Enter your first name: ";
        cin >> fName;
        cout << "Enter your last name: ";
        cin >> lName;
        if (fName == user.getFirstName() && lName == user.getLastName())
            valid = true;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %ebp, %ebp
movq %rbp, -0x8(%rax)
movb %bpl, (%rax)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq %rbp, -0x8(%rax)
movb %bpl, (%rax)
movq 0x4e42(%rip), %r14      # 0xdfc8
movq 0x4e4b(%rip), %r12      # 0xdfd8
movl $0x17, %edx
movq %r14, %rdi
leaq 0x15a8(%rip), %rsi      # 0xa744
callq 0x2270
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
callq 0x22b0
movl $0x16, %edx
movq %r14, %rdi
leaq 0x159f(%rip), %rsi      # 0xa75c
callq 0x2270
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x22b0
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x3d96
movq 0x30(%rsp), %rdx
cmpq 0x50(%rsp), %rdx
jne 0x9204
testq %rdx, %rdx
je 0x9209
movq 0x48(%rsp), %rsi
movq 0x28(%rsp), %rdi
callq 0x2240
testl %eax, %eax
sete %r13b
jmp 0x920c
xorl %r13d, %r13d
jmp 0x920c
movb $0x1, %r13b
testb %r13b, %r13b
je 0x9246
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0x3dde
movq 0x10(%rsp), %rdx
cmpq 0x70(%rsp), %rdx
jne 0x9246
testq %rdx, %rdx
je 0x92a1
movq 0x68(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x2240
testl %eax, %eax
sete %r15b
jmp 0x9249
xorl %r15d, %r15d
testb %r13b, %r13b
je 0x926a
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x926a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9286
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movzbl %bpl, %ebp
testb %r15b, %r15b
movl $0x1, %eax
cmovnel %eax, %ebp
testb $0x1, %bpl
je 0x918d
jmp 0x92a6
movb $0x1, %r15b
jmp 0x9249
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x92c2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x92de
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2230
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9316
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x9316
jmp 0x9313
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9332
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x934e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/Kyle-Alvares[P]SQA1/request.cpp
// Function: req::askAmount(double)
double req::askAmount(double max)
{
    double amount;
    bool validDecimal;
    bool valid = false;
    while(!valid) 
    {
        cout << "Enter amount: $";
        cin >> amount;
        string strAmount = to_string(amount);
        string decimal = strAmount.substr(strAmount.find('.') + 1);
        validDecimal = true;
        for(int i = 2; i < decimal.length(); i++)
            if(decimal[i] != '0')
                validDecimal = false;
        if(amount <= 0 || amount > max || !validDecimal)
            cerr << "Error: Invalid amount!" << endl;
        else 
            valid = true;
    }
    return amount;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movsd %xmm0, 0x30(%rsp)
xorl %r12d, %r12d
leaq 0x38(%rsp), %rbx
leaq 0x10(%rsp), %r14
movq 0x4c65(%rip), %r15      # 0xdff0
xorl %r13d, %r13d
movl $0xf, %edx
movq 0x4c2e(%rip), %rdi      # 0xdfc8
leaq 0x13d2(%rip), %rsi      # 0xa773
callq 0x2270
movq 0x4c2b(%rip), %rdi      # 0xdfd8
leaq 0x8(%rsp), %rsi
callq 0x2170
movsd 0x8(%rsp), %xmm0
movl $0x148, %edx            # imm = 0x148
movq %rbx, %rdi
movq 0x4be4(%rip), %rsi      # 0xdfb0
leaq 0x130e(%rip), %rcx      # 0xa6e1
movb $0x1, %al
callq 0x8946
movq %rbx, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x22c0
leaq 0x1(%rax), %rdx
movq %r14, %rdi
movq %rbx, %rsi
movq $-0x1, %rcx
callq 0x2250
movq 0x18(%rsp), %rcx
cmpq $0x3, %rcx
jb 0x942d
movb $0x1, %al
movl $0x2, %edx
movq 0x10(%rsp), %rsi
cmpb $0x30, (%rsi,%rdx)
movzbl %al, %eax
cmovnel %r12d, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x9416
xorb $0x1, %al
jmp 0x942f
xorl %eax, %eax
movsd 0x8(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x944e
ucomisd 0x30(%rsp), %xmm0
ja 0x944e
movb $0x1, %bpl
testb $0x1, %al
je 0x948c
movl $0x16, %edx
movq %r15, %rdi
leaq 0x1326(%rip), %rsi      # 0xa783
callq 0x2270
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movl %r13d, %ebp
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x94a8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x94c4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebp, %r13d
testb $0x1, %bpl
je 0x938e
movsd 0x8(%rsp), %xmm0
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x950a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x950a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x9526
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/ALSchwalm[P]cppEvolve/include/cppEvolve/Genome/List1D/Mutator.hpp
// Function: void evolve::list1d::mutator::swap<std::array<int, 3ul>>(std::array<int, 3ul>&)
void swap(Genome& g) {
    unsigned int s1 = utils::random_uint(g.size());
    unsigned int s2 = utils::random_uint(g.size());

    auto s1location = begin(g);
    auto s2location = begin(g);

    std::advance(s1location, s1);
    std::advance(s2location, s2);

    std::swap(*s1location, *s2location);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x3, %esi
xorl %edi, %edi
callq 0x230c
movq %rax, %r14
movl $0x3, %esi
xorl %edi, %edi
callq 0x230c
movl %r14d, %ecx
movl %eax, %eax
movl (%rbx,%rcx,4), %edx
movl (%rbx,%rax,4), %esi
movl %esi, (%rbx,%rcx,4)
movl %edx, (%rbx,%rax,4)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ALSchwalm[P]cppEvolve/include/cppEvolve/Genome/List1D/Crossover.hpp
// Function: std::array<int, 3ul> evolve::list1d::crossover::details::singlePointHelper<std::array<int, 3ul>>(std::array<int, 3ul> const&, std::array<int, 3ul> const&, std::integral_constant<bool, false>)
Genome singlePointHelper(const Genome& g1, const Genome& g2, std::false_type) {
    Genome g;

    auto size = std::min(g1.size(), g2.size());
    auto location = utils::random_uint(size);

    for (auto i = 0U; i < size; ++i) {
        if (i <= location)
            g[i] = g1[i];
        else
            g[i] = g2[i];
    }

    return g;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl $0x3, %esi
xorl %edi, %edi
callq 0x230c
cmpq %r15, %rax
movq %r14, %rcx
cmovbq %rbx, %rcx
movl (%rcx,%r15,4), %ecx
movl %ecx, -0x28(%rbp,%r15,4)
incq %r15
cmpq $0x3, %r15
jne 0x2ec7
movq -0x28(%rbp), %rax
movl -0x20(%rbp), %edx
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/ALSchwalm[P]cppEvolve/include/cppEvolve/Selector.hpp
// Function: void evolve::selector::details::topHelper<std::array<int, 3ul>, 3ul, (evolve::Ordering)1>(std::vector<std::array<int, 3ul>, std::allocator<std::array<int, 3ul>>>&, std::function<float (std::array<int, 3ul> const&)> const&, std::integral_constant<bool, false>)
void topHelper(std::vector<Genome>& population,
               const std::function<float(const Genome&)>& evaluator,
               std::false_type) {
    orderedSort(population, evaluator, Ord);

    auto location = population.begin();
    std::advance(location, Num);

    population.erase(location, population.end());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %edx
callq 0x2fa3
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
addq $0x24, %rax
cmpq %rcx, %rax
je 0x2f9c
movq 0x8(%rbx), %rdx
movq %rdx, %rsi
subq %rcx, %rsi
addq %rsi, %rax
cmpq %rax, %rdx
je 0x2f9c
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/ALSchwalm[P]cppEvolve/include/cppEvolve/Selector.hpp
// Function: void evolve::selector::details::orderedSort<std::array<int, 3ul>>(std::vector<std::array<int, 3ul>, std::allocator<std::array<int, 3ul>>>&, std::function<float (std::array<int, 3ul> const&)> const&, evolve::Ordering)
void orderedSort(std::vector<Genome>& population,
                 const std::function<float(const Genome&)>& evaluator,
                 Ordering Ord) {

    if (Ord == Ordering::LOWER) {
        std::sort(population.begin(), population.end(),
                  [&evaluator](const Genome& left, const Genome& right) {
            return evaluator(left) < evaluator(right);
        });
    } else {
        std::sort(population.begin(), population.end(),
                  [&evaluator](const Genome& left, const Genome& right) {
            return evaluator(left) > evaluator(right);
        });
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq (%rdi), %r15
movq 0x8(%rdi), %r14
testl %edx, %edx
je 0x300f
cmpq %r14, %r15
je 0x305f
movq %r14, %rax
subq %r15, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x3822
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3903
cmpq %r14, %r15
je 0x305f
movq %r14, %rax
subq %r15, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x306a
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x314b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/dinitcheck.cc
// Function: report_service_description_exc(service_description_exc&)
static void report_service_description_exc(service_description_exc &exc)
{
    if (exc.input_pos.get_line_num() != (unsigned)-1) {
        report_service_description_err(exc.service_name, exc.input_pos, exc.exc_description);
    }
    else {
        report_service_description_err(exc.service_name, exc.setting_name, exc.exc_description);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $-0x1, 0x40(%rdi)
je 0xf4dd
movq 0x16b96(%rip), %r14     # 0x25ff0
leaq 0xd396(%rip), %rsi      # 0x1c7f7
movl $0x9, %edx
movq %r14, %rdi
callq 0x4410
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x4410
movq %rax, %r14
leaq 0xe1ff(%rip), %rsi      # 0x1d686
movl $0x3, %edx
movq %rax, %rdi
callq 0x4410
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
movq %r14, %rdi
callq 0x4410
movq %rax, %r14
leaq 0xdeca(%rip), %rsi      # 0x1d378
movl $0x1, %edx
movq %rax, %rdi
callq 0x4410
movl 0x40(%rbx), %esi
movq %r14, %rdi
callq 0x4290
movq %rax, %r14
leaq 0xe1ba(%rip), %rsi      # 0x1d68a
movl $0x3, %edx
movq %rax, %rdi
jmp 0xf568
movq 0x68(%rbx), %r15
movq 0x16b08(%rip), %r14     # 0x25ff0
leaq 0xd308(%rip), %rsi      # 0x1c7f7
movl $0x9, %edx
movq %r14, %rdi
callq 0x4410
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x4410
movq %rax, %r14
leaq 0xe179(%rip), %rsi      # 0x1d68e
movl $0xb, %edx
movq %rax, %rdi
callq 0x4410
testq %r15, %r15
je 0xf53f
movq %r15, %rdi
callq 0x4190
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4410
jmp 0xf559
movq (%r14), %rax
movq -0x18(%rax), %rax
movq %r14, %rdi
addq %rax, %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x4610
leaq 0xd1f1(%rip), %rsi      # 0x1c751
movl $0x3, %edx
movq %r14, %rdi
callq 0x4410
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %r14, %rdi
callq 0x4410
leaq 0xcfe7(%rip), %rsi      # 0x1c56b
movl $0x1, %edx
movq %rax, %rdi
callq 0x4410
movb $0x1, 0x17251(%rip)     # 0x267e9
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::clear_no_inherit()
void clear_no_inherit()
    {
        keep_parent_env = false;
        import_from_parent.clear();
        undefine.clear();
        set_vars.clear();
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movb $0x0, (%rdi)
addq $0x8, %rdi
callq 0x12838
leaq 0x38(%rbx), %rdi
callq 0x12838
addq $0x68, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x128c6
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::set_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, bool)
void set_var(std::string &&var_and_val, bool notify = false)
    {
        string_view var_name = find_var_name(var_and_val);

        import_from_parent.erase(var_name);
        auto n_removed = undefine.erase(var_name);

        bool in_sysenv = false;
        if (notify && n_removed == 0) {
            // workaround to avoid an allocation; when notify is true,
            // we know for sure that the value is sanitized from before
            //
            // we don't check this when the variable was in undefine,
            // as that means we were undefining it explicitly
            auto name_size = var_name.size();
            var_and_val[name_size] = '\0';
            in_sysenv = !!bp_sys::getenv(var_and_val.c_str());
            var_and_val[name_size] = '=';
        }

        auto insert_result = set_vars.insert(std::move(var_and_val));
        // if the variable was in sys environment, it is always overridden
        bool overridden = in_sysenv;
        if (!insert_result.second) {
            *insert_result.first = var_and_val;
            overridden = true;
        }

        if (notify) {
            notify_listeners(*insert_result.first, overridden);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
xorl %ecx, %ecx
movzbl (%rax,%rcx), %edx
testl %edx, %edx
je 0x11679
cmpl $0x3d, %edx
je 0x11679
incq %rcx
jmp 0x11667
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq %rcx, 0x8(%r15)
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x140fc
leaq 0x38(%rbx), %rdi
movq %r15, %rsi
callq 0x140fc
testq %rax, %rax
setne %al
movl %ebp, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x116d2
movq 0x10(%rsp), %r13
movq (%r14), %rax
movb $0x0, (%rax,%r13)
movq (%r14), %r15
movq %r15, %rdi
callq 0x4470
testq %rax, %rax
setne %r12b
movb $0x3d, (%r15,%r13)
jmp 0x116d5
xorl %r12d, %r12d
leaq 0x68(%rbx), %rsi
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x14182
cmpb $0x0, 0x18(%r15)
jne 0x11704
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
movq %r14, %rsi
callq 0x4230
movb $0x1, %r12b
testb %bpl, %bpl
je 0x1173b
movq 0xa8(%rbx), %r15
testq %r15, %r15
je 0x1173b
movq 0x20(%rsp), %r14
addq $0x10, %r14
movzbl %r12b, %ebp
movq 0x8(%r15), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq *(%rax)
movq (%r15), %r15
testq %r15, %r15
jne 0x11722
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::clear()
void clear() noexcept
    {
        for (auto &bucket : buckets) {
            bucket.clear();
        }
        current_size = 0;
        current_limit = 0;
        buckets.clear();
        try {
            buckets.shrink_to_fit();
        }
        catch (std::bad_alloc &) {
            // ignore any (unlikely) error
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq 0x10(%rdi), %r15
cmpq %r15, %r14
je 0x1286d
movq %r14, %rdi
callq 0x1217a
movq %r14, 0x8(%r14)
movq %r14, (%r14)
movq $0x0, 0x10(%r14)
addq $0x18, %r14
jmp 0x1284b
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq 0x8(%rbx), %r15
movq 0x10(%rbx), %r12
cmpq %r15, %r12
je 0x12899
movq %r15, %r14
movq %r14, %rdi
callq 0x1217a
addq $0x18, %r14
cmpq %r12, %r14
jne 0x12884
movq %r15, 0x10(%rbx)
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
je 0x128ba
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x12954
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::iterator dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::find<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
iterator find(const V &value) noexcept
    {
        if (buckets.empty()) return end();
        size_t hashval = hash_f(value);
        size_t bucket_num = hashval % buckets.size();
        for (auto list_it = buckets[bucket_num].begin(); list_it != buckets[bucket_num].end(); ++list_it) {
            if (key_equal_f(*list_it, value)) {
                return { &buckets, list_it, bucket_num };
            }
        }
        return end();
    }

// Assembly:
movq %rdi, %rax
movq 0x8(%rsi), %rcx
movq 0x10(%rsi), %rdi
cmpq %rdi, %rcx
je 0x14cac
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq %rax, (%rsp)
movq (%rdx), %r15
movq 0x8(%rdx), %r13
testq %r13, %r13
je 0x14cbb
xorl %ebx, %ebx
movq %r13, %rbp
xorl %r14d, %r14d
movq %r14, %r12
movq $0x0, 0x8(%rsp)
leaq (%r15,%rbx), %rsi
cmpq $0x8, %rbp
movl $0x8, %edx
cmovbq %rbp, %rdx
leaq 0x8(%rsp), %rdi
callq 0x4310
shlq $0x5, %r12
subq %r14, %r12
addq 0x8(%rsp), %r12
addq $0x8, %rbx
addq $-0x8, %rbp
movq %r12, %r14
cmpq %r13, %rbx
jb 0x14c6a
jmp 0x14cbe
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $-0x1, 0x10(%rax)
retq
xorl %r12d, %r12d
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rax
subq %rsi, %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq %r12, %rax
xorl %edx, %edx
divq %rcx
leaq (%rdx,%rdx,2), %rax
leaq (%rsi,%rax,8), %r14
movq (%r14), %rbx
cmpq %r14, %rbx
movq 0x20(%rsp), %rbp
je 0x14d27
movq %rdx, %r12
addq $0x8, %rbp
movq 0x18(%rbx), %rdx
cmpq %r13, %rdx
jne 0x14d1f
testq %rdx, %rdx
je 0x14d3b
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x43b0
testl %eax, %eax
je 0x14d3b
movq (%rbx), %rbx
cmpq %r14, %rbx
jne 0x14d01
xorps %xmm0, %xmm0
movq (%rsp), %rax
movups %xmm0, (%rax)
movq $-0x1, 0x10(%rax)
jmp 0x14d4a
movq (%rsp), %rax
movq %rbp, (%rax)
movq %rbx, 0x8(%rax)
movq %r12, 0x10(%rax)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::begin()
iterator begin() noexcept
    {
        if (current_size == 0) return end();
        for (size_t i = 0; i < buckets.size(); ++i) {
            if (!buckets[i].empty()) {
                return { &buckets, buckets[i].begin(), i };
            }
        }
        return end(); // (should not be reachable)
    }

// Assembly:
movq %rdi, %rax
cmpq $0x0, 0x20(%rsi)
je 0x138b9
movq 0x8(%rsi), %rcx
movq 0x10(%rsi), %rdx
subq %rcx, %rdx
setne %r8b
je 0x138b9
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rdi
cmpq $0x1, %rdi
movq %rdi, %r10
adcq $0x0, %r10
movq (%rcx), %r9
cmpq %rcx, %r9
je 0x13884
xorl %edx, %edx
jmp 0x138a5
decq %r10
xorl %edx, %edx
cmpq %rdx, %r10
je 0x138b9
movq 0x18(%rcx), %r9
addq $0x18, %rcx
incq %rdx
cmpq %r9, %rcx
je 0x13889
cmpq %rdi, %rdx
setb %r8b
addq $0x8, %rsi
movq %rsi, (%rax)
movq %r9, 0x8(%rax)
movq %rdx, 0x10(%rax)
testb %r8b, %r8b
jne 0x138c7
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $-0x1, 0x10(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: unsigned long dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::erase<string_view>(string_view const&)
size_type erase(const V &value) noexcept
    {
        auto it = find(value);
        if (it != end()) {
            buckets[it.bucket_num].erase(it.list_it);
            return 1;
        }
        return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rdx
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13336
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
movq %rax, %rcx
notq %rcx
orq %rsi, %rcx
je 0x14142
leaq (%rax,%rax,2), %rdi
shlq $0x3, %rdi
addq 0x8(%rbx), %rdi
callq 0x1414c
movl $0x1, %eax
jmp 0x14144
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_env_name, env_equal_name>::rehash(unsigned long)
void rehash(size_type new_bucket_count)
    {
        // calculate minimum bucket count, limited by maximum possible count.
        size_t max_buckets = buckets.max_size();
        size_t max_count = buckets_to_max(max_buckets);
        size_t min_buckets;
        if (current_size > max_count) {
            min_buckets = max_buckets;
        }
        else {
            size_t base = current_size / 3 * 4;
            size_t extra = (current_size % 3) * 4 / 3;
            min_buckets = base + extra;
        }

        new_bucket_count = std::max(new_bucket_count, min_buckets);

        if (new_bucket_count < buckets.size()) {
            // buckets vector will shrink: we need to reallocate entries into their new buckets first
            do_rehash(new_bucket_count);
            buckets.resize(new_bucket_count);
        }
        else {
            // grow the vector, then rehash
            buckets.resize(new_bucket_count);
            do_rehash(new_bucket_count);
        }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rcx
movq %rcx, %rax
shrq $0x3a, %rax
movabsq $-0x5555555555555555, %rdi # imm = 0xAAAAAAAAAAAAAAAB
je 0x14496
movabsq $0x555555555555555, %rax # imm = 0x555555555555555
jmp 0x144be
movq %rcx, %rax
mulq %rdi
movq %rdx, %rsi
shrq %rsi
leal (%rsi,%rsi,2), %eax
subl %eax, %ecx
shll $0x2, %ecx
movabsq $0x5555555555555556, %rdx # imm = 0x5555555555555556
movq %rcx, %rax
mulq %rdx
leaq (%rdx,%rsi,4), %rax
cmpq %rbx, %rax
cmovaq %rax, %rbx
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
leaq 0x8(%r14), %r15
sarq $0x3, %rax
imulq %rdi, %rax
cmpq %rax, %rbx
jae 0x144f9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1474c
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x143ec
movq %r15, %rdi
movq %rbx, %rsi
callq 0x143ec
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x1474c
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: dinit_unordered_set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, hash_sv, dinit_equal_to>::do_rehash(unsigned long)
void do_rehash(size_t new_buckets) noexcept
    {
        // note, buckets vector is already at least new_buckets in size
        size_t old_buckets = buckets.size();

        // first splice all nodes from all buckets into a single list
        std::list<K> all_nodes;
        for (size_t i = 0; i < old_buckets; ++i) {
            all_nodes.splice(all_nodes.end(), buckets[i]);
        }

        // now put all nodes into the correct bucket
        auto node_i = all_nodes.begin();
        while (node_i != all_nodes.end()) {
            auto next_node_i = std::next(node_i);
            size_t hashval = hash_f(*node_i);
            size_t bucket_num = hashval % new_buckets;
            buckets[bucket_num].splice(buckets[bucket_num].end(), all_nodes, node_i);
            node_i = next_node_i;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x30(%rsp)
movq %rdi, %rbp
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rax
leaq 0x10(%rsp), %rdx
movq %rdx, 0x8(%rdx)
movq %rdx, (%rdx)
movq $0x0, 0x10(%rdx)
subq %rcx, %rax
je 0x15d3e
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rbx
cmpq $0x1, %rbx
adcq $0x0, %rbx
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
movq 0x8(%rbp), %r12
leaq (%r12,%r14), %rdx
movq (%r12,%r14), %rsi
cmpq %rsi, %rdx
je 0x15d35
movq %r15, %rdi
callq 0x41f0
movq 0x10(%r12,%r14), %rax
addq %rax, 0x20(%rsp)
movq $0x0, 0x10(%r12,%r14)
addq $0x18, %r14
decq %rbx
jne 0x15d09
movq 0x10(%rsp), %rcx
leaq 0x10(%rsp), %rax
cmpq %rax, %rcx
je 0x15e1b
movq %rbp, 0x28(%rsp)
movq (%rcx), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rcx), %rbp
testq %rbp, %rbp
movq %rcx, 0x40(%rsp)
je 0x15dbe
movq 0x10(%rcx), %r14
movq %rbp, %rbx
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %r15, %r13
movq $0x0, 0x8(%rsp)
leaq (%r14,%r12), %rsi
cmpq $0x8, %rbx
movl $0x8, %edx
cmovbq %rbx, %rdx
leaq 0x8(%rsp), %rdi
callq 0x4310
shlq $0x5, %r13
subq %r15, %r13
addq 0x8(%rsp), %r13
addq $0x8, %r12
addq $-0x8, %rbx
movq %r13, %r15
cmpq %rbp, %r12
jb 0x15d7c
jmp 0x15dc1
xorl %r13d, %r13d
movq %r13, %rax
xorl %edx, %edx
divq 0x30(%rsp)
leaq (%rdx,%rdx,2), %r13
shlq $0x3, %r13
movq 0x28(%rsp), %rbp
addq 0x8(%rbp), %r13
movq 0x40(%rsp), %rsi
movq (%rsi), %rdx
cmpq %rsi, %r13
sete %al
cmpq %r13, %rdx
sete %cl
orb %al, %cl
jne 0x15e05
movq %r13, %rdi
callq 0x41f0
incq 0x10(%r13)
decq 0x20(%rsp)
movq 0x38(%rsp), %rdx
movq %rdx, %rcx
leaq 0x10(%rsp), %rax
cmpq %rax, %rdx
jne 0x15d56
leaq 0x10(%rsp), %rdi
callq 0x1217a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
string_view get(const std::string &name) const
    {
        auto it = set_vars.find(string_view(name));
        if (it != set_vars.end()) {
            return *it;
        }

        if (!keep_parent_env && !import_from_parent.contains(name)) {
            return {};
        }

        const char *val = bp_sys::getenv(name.c_str());
        if (val == nullptr) {
            return {};
        }
        const char *name_and_val = val - (name.length() + 1);
        size_t val_len = strlen(val);
        return {name_and_val, name.length() + 1 + val_len};
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x68(%rdi), %rsi
movq (%rbx), %rax
movq %rsp, %rdx
movq %rax, (%rdx)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rdx)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x14a8e
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
notq %rcx
orq %rax, %rcx
je 0x14915
movq 0x10(%rax), %r14
movq 0x18(%rax), %rdx
jmp 0x14979
cmpb $0x0, (%r14)
je 0x14946
movq (%rbx), %rdi
callq 0x4470
testq %rax, %rax
je 0x14974
movq 0x8(%rbx), %rbx
movq %rbx, %r14
notq %r14
addq %rax, %r14
movq %rax, %rdi
callq 0x4190
leaq (%rbx,%rax), %rdx
incq %rdx
jmp 0x14979
addq $0x8, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x14c22
cmpq $-0x1, 0x10(%r15)
jne 0x1491b
xorl %edx, %edx
cmpq $0x0, 0x8(%rsp)
movl $0x0, %r14d
je 0x14979
jmp 0x1491b
xorl %edx, %edx
xorl %r14d, %r14d
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::undefine_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, bool)
void undefine_var(std::string &&var_name, bool notify = false)
    {
        import_from_parent.erase(var_name);

        auto n_removed = set_vars.erase(string_view(var_name));
        bool was_set = n_removed > 0;
        if (notify && !was_set) {
            // also track if we're undefining it from system environment
            was_set = !!bp_sys::getenv(var_name.c_str());
        }
        if (keep_parent_env) {
            auto insert_result = undefine.insert(std::move(var_name));
            if (notify) {
                notify_listeners(*insert_result.first, was_set);
            }
        }
        else if (notify) {
            notify_listeners(var_name, was_set);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x158f8
leaq 0x68(%rbx), %rdi
movq (%r14), %rax
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rsi)
callq 0x15948
testq %rax, %rax
setne %r15b
movl %ebp, %eax
xorb $0x1, %al
orb %r15b, %al
jne 0x15664
movq (%r14), %rdi
callq 0x4470
testq %rax, %rax
setne %r15b
cmpb $0x1, (%rbx)
jne 0x156b3
leaq 0x38(%rbx), %rsi
movq %rsp, %rdi
movq %r14, %rdx
callq 0x15998
testb %bpl, %bpl
je 0x156e8
movq 0xa8(%rbx), %r12
testq %r12, %r12
je 0x156e8
movq 0x8(%rsp), %r14
addq $0x10, %r14
movzbl %r15b, %ebp
movq 0x8(%r12), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq *(%rax)
movq (%r12), %r12
testq %r12, %r12
jne 0x15696
jmp 0x156e8
movq 0xa8(%rbx), %r12
testq %r12, %r12
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x156e8
movzbl %r15b, %ebp
movq 0x8(%r12), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq *(%rax)
movq (%r12), %r12
testq %r12, %r12
jne 0x156cd
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::import_parent_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
void import_parent_var(std::string &&var_name)
    {
        undefine.erase(var_name);
        set_vars.erase(string_view(var_name));
        if (!keep_parent_env) {
            import_from_parent.insert(std::move(var_name));
        }
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
addq $0x38, %rdi
callq 0x158f8
leaq 0x68(%r14), %rdi
movq (%rbx), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsi)
callq 0x15948
cmpb $0x0, (%r14)
jne 0x15742
addq $0x8, %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x15998
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/load-service.h
// Function: dinit_load::parse_perms(file_pos_ref, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*)
inline int parse_perms(file_pos_ref input_pos, string &paramval, const std::string &servicename,
        const char * paramname)
{
    std::size_t ind = 0;
    try {
        int perms = std::stoi(paramval, &ind, 8);
        if (ind != paramval.length()) {
            throw std::logic_error("");
        }
        return perms;
    }
    catch (std::logic_error &exc) {
        throw service_description_exc(servicename, paramname,
                "badly-formed or out-of-range numeric value", input_pos);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rcx, 0x10(%rsp)
movq %rdx, %r15
movl %edi, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq (%rdx), %r13
callq 0x4060
movq %rax, %r12
movl (%rax), %ebx
movl $0x0, (%rax)
leaq 0x28(%rsp), %rbp
movq %r13, %rdi
movq %rbp, %rsi
movl $0x8, %edx
callq 0x4520
movq (%rbp), %rcx
subq %r13, %rcx
je 0x1759c
movslq %eax, %rdx
cmpq %rax, %rdx
jne 0x175a8
movl (%r12), %edx
cmpl $0x22, %edx
je 0x175a8
testl %edx, %edx
jne 0x17587
movl %ebx, (%r12)
cmpq 0x8(%r15), %rcx
jne 0x175b4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5f21(%rip), %rdi      # 0x1d4c4
callq 0x4270
leaq 0x5f15(%rip), %rdi      # 0x1d4c4
callq 0x4550
movl $0x10, %edi
callq 0x41c0
movq %rax, %r12
leaq 0x4fa4(%rip), %rsi      # 0x1c56c
movq %rax, %rdi
callq 0x4540
movq 0xe9f1(%rip), %rsi      # 0x25fc8
movq 0xe9a2(%rip), %rdx      # 0x25f80
movq %r12, %rdi
callq 0x4620
jmp 0x1767e
movq %rdx, %r13
movq %rax, %r15
jmp 0x17614
movq %rdx, %r13
movq %rax, %r15
movq %r12, %rdi
callq 0x42d0
jmp 0x17614
movq %rdx, %r13
movq %rax, %r15
cmpl $0x0, (%r12)
jne 0x17614
movl %ebx, (%r12)
cmpl $0x1, %r13d
jne 0x176b6
movq %r15, %rdi
callq 0x4170
movl $0x70, %edi
callq 0x41c0
movq %rax, %r12
leaq 0x28(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0xfcc6
movb $0x1, %bpl
leaq 0x5e4a(%rip), %rcx      # 0x1d499
leaq 0x28(%rsp), %rdx
leaq 0x18(%rsp), %r8
movq %r12, %rdi
movq 0x10(%rsp), %rsi
callq 0x18502
xorl %ebp, %ebp
leaq 0xe5b1(%rip), %rsi      # 0x25c20
leaq -0xbae(%rip), %rdx      # 0x16ac8
movq %r12, %rdi
callq 0x4620
movq %rax, %r15
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x176a4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x43a0
jmp 0x176a4
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x176b1
movq %r12, %rdi
callq 0x42d0
callq 0x4600
movq %r15, %rdi
callq 0x4630
movq %rax, %rdi
callq 0xfd03
// File: /workspace/github_cpp_makefile_star2_O1/davmac314[P]dinit/src/includes/dinit-util.h
// Function: ha_string::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
ha_string &operator=(const std::string &other)
    {
        char *new_str_data = new char[other.length() + 1];
        delete[] str_data;
        memcpy(new_str_data, other.data(), other.length() + 1);
        str_data = new_str_data;
        str_len = other.length();
        return *this;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %rdi
incq %rdi
callq 0x4030
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x192e5
callq 0x44a0
movq (%r14), %rsi
movq 0x8(%r14), %r14
leaq 0x1(%r14), %rdx
movq %r15, %rdi
callq 0x4310
movq %r15, (%rbx)
movq %r14, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/josh0xA[P]bf/src/bf.cc
// Function: bf::Parser::get_loop_closer(bf::Environment&)
void Parser::get_loop_closer(Environment& env) {
    temp_value = 1;
    do {
      env.bf_instruction_pointer++;
      if (*env.bf_instruction_pointer == '[') temp_value++;
      else if (*env.bf_instruction_pointer == ']') temp_value--;
    } while (temp_value != BF_SUCCESS_CODE_STANDARD);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x1, 0x1c0(%rdi)
movq 0x30(%rsi), %rax
incq %rax
movl $0x1, %ecx
movq %rax, 0x30(%rsi)
movzbl (%rax), %r8d
movl $0x1, %edx
cmpl $0x5b, %r8d
je 0x24c8
cmpl $0x5d, %r8d
jne 0x24d0
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
addl %edx, %ecx
movl %ecx, 0x1c0(%rdi)
incq %rax
testl %ecx, %ecx
jne 0x24aa
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/josh0xA[P]bf/src/bf.cc
// Function: bf::Parser::get_loop_opener(bf::Environment&)
void Parser::get_loop_opener(Environment& env) {
    temp_value = BF_SUCCESS_CODE_STANDARD;
    do {
      if (*env.bf_instruction_pointer == '[') temp_value++;
      else if (*env.bf_instruction_pointer == ']') temp_value--;
      env.bf_instruction_pointer--;
    } while (temp_value != BF_SUCCESS_CODE_STANDARD);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, 0x1c0(%rdi)
movq 0x30(%rsi), %rax
decq %rax
xorl %ecx, %ecx
movzbl 0x1(%rax), %edx
cmpl $0x5b, %edx
je 0x2506
cmpl $0x5d, %edx
jne 0x2513
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0x250b
movl $0x1, %edx
addl %edx, %ecx
movl %ecx, 0x1c0(%rdi)
movq %rax, 0x30(%rsi)
decq %rax
testl %ecx, %ecx
jne 0x24f1
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/josh0xA[P]bf/src/bf.cc
// Function: bf::User::load_interactive_interpreter(bf::Environment&)
bool User::load_interactive_interpreter(Environment& env) {
    while (bf::bfuck_should_succeed<bool>(true, true)) {
      std::cout << ": ";
      std::getline(std::cin, interpreter_prompt);
      if (!std::cin) {
        std::cerr << "(error): broken input stream\n";
        break;
      }
      if (temp_bracks == BF_SUCCESS_CODE_STANDARD) { env.wipe_instruction_buffer(true);  }
      BF_SET_VALUE(temp_bracks, entry_point_line(env, interpreter_prompt, temp_bracks));
      if (temp_bracks == BF_SUCCESS_CODE_STANDARD) {
        interpret_bf_instructions(env);
        output_bf_stream(*env.bf_memory_pointer);
        BF_FLUSH(std::endl);
      } else {
          std::cout << "... ";
      }
    }
    return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x1c8(%rdi), %r15
movq 0x38e0(%rip), %r12      # 0x5fc0
movq 0x38e9(%rip), %r13      # 0x5fd0
movl $0x2, %edx
movq %r12, %rdi
leaq 0x194f(%rip), %rsi      # 0x4045
callq 0x2160
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r13,%rax)
jne 0x27c8
movl 0x1c4(%r14), %ecx
testl %ecx, %ecx
jne 0x274f
movq 0x18(%rbx), %rax
cmpq %rax, 0x20(%rbx)
je 0x274b
movq %rax, 0x20(%rbx)
movq %rax, 0x30(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2e6a
movl %eax, 0x1c4(%r14)
testl %eax, %eax
je 0x2781
movl $0x4, %edx
movq %r12, %rdi
leaq 0x18ef(%rip), %rsi      # 0x4066
callq 0x2160
jmp 0x26e7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2520
movq 0x38(%rbx), %rax
movsbl (%rax), %esi
movq %r14, %rdi
callq 0x2e10
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20c0
jmp 0x26e7
movq 0x3821(%rip), %rdi      # 0x5ff0
leaq 0x1872(%rip), %rsi      # 0x4048
movl $0x1d, %edx
callq 0x2160
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/josh0xA[P]bf/src/bf.cc
// Function: bf::Stream<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::istream, char>::entry_point_stream(bf::Environment&, std::istream&, int)
bfint_t Stream<BFBytes, BFStream, BFType>::entry_point_stream(Environment& env, BFStream& bfstream, bfint_t bracks) {
    bf_word stream_word;
    if (bracks == BF_SUCCESS_CODE_STANDARD) { env.program_instruction.push_back(bf::nullchar); }
    while (bf::bfuck_should_succeed<bool> (true, true)) {
      bfstream >> stream_word;
      if (!bfstream) {
        break;
      }
      switch (stream_word) {
        case BF_CELL_SHIFT_BACK: env.program_instruction.push_back(stream_word); break;
        case BF_CELL_SHIFT_FRONT: env.program_instruction.push_back(stream_word); break;
        case BF_INCREMENT_VALUE: env.program_instruction.push_back(stream_word); break;
        case BF_DECREMENT_VALUE: env.program_instruction.push_back(stream_word); break;
        case BF_READ_STDIN_BUFFER: env.program_instruction.push_back(stream_word); break;
        case BF_SHOW_STDOUT_BUFFER: env.program_instruction.push_back(stream_word); break;
        case BF_LOOP_BEGIN:
          bracks++;
          env.program_instruction.push_back(stream_word);
          break;
        case BF_LOOP_END:
          bracks--;
          env.program_instruction.push_back(stream_word);
          break;
        default: break;

      }

    }
    if (bracks == BF_SUCCESS_CODE_STANDARD) { env.program_instruction.push_back(bf::nullchar); }
    return bracks;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r14
testl %ecx, %ecx
jne 0x3010
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x3000
movb $0x0, (%rsi)
incq 0x20(%r14)
jmp 0x3010
leaq 0x18(%r14), %rdi
leaq 0x1009(%rip), %rdx      # 0x4014
callq 0x3262
leaq -0x29(%rbp), %rsi
movq %r15, %rdi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r15,%rax)
je 0x304d
testl %ebx, %ebx
jne 0x30ef
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x30dc
movb $0x0, (%rsi)
incq 0x20(%r14)
jmp 0x30ef
leaq 0x18(%r14), %rax
movq %rax, -0x38(%rbp)
leaq 0xfd4(%rip), %r12       # 0x4030
leaq -0x29(%rbp), %r13
movb -0x29(%rbp), %al
movzbl %al, %ecx
cmpl $0x3b, %ecx
jg 0x308e
addl $-0x2b, %ecx
cmpl $0x3, %ecx
ja 0x30ab
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x309f
movb %al, (%rsi)
incq 0x20(%r14)
jmp 0x30ab
cmpl $0x5a, %ecx
jg 0x30ca
cmpl $0x3c, %ecx
je 0x307c
cmpl $0x3e, %ecx
je 0x307c
jmp 0x30ab
movq -0x38(%rbp), %rdi
movq %r13, %rdx
callq 0x3262
movq %r15, %rdi
movq %r13, %rsi
callq 0x2170
movq (%r15), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r15,%rax)
je 0x3060
jmp 0x302b
cmpl $0x5b, %ecx
je 0x30d8
cmpl $0x5d, %ecx
jne 0x30ab
decl %ebx
jmp 0x307c
incl %ebx
jmp 0x307c
addq $0x18, %r14
leaq 0xf2d(%rip), %rdx       # 0x4014
movq %r14, %rdi
callq 0x3262
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/hyp1231[P]FMSS/disk.cpp
// Function: Disk::Disk()
Disk::Disk() : disk_file("diskdata") {
	ifstream ifile(disk_file);
	BLKsize = 0;
	if(!ifile) { cout << "Disk initialization error! ！(◎_◎;)" << endl; return; }
	char tmp = 0;
	for(int i = 0; i < 2; ++i) {		// read the basic size of a block in the disk
		ifile.read((char*)&tmp, sizeof(tmp));
		BLKsize += (int)tmp << (8 * i);	// Little endian
	}
	ifile.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x210, %rsp            # imm = 0x210
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x6a58(%rip), %rsi      # 0x9004
leaq 0x6a59(%rip), %rdx      # 0x900c
callq 0x2910
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2310
movl $0x0, 0x20(%rbx)
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
je 0x2629
movq 0xa9e8(%rip), %r14      # 0xcfd0
leaq 0x6a1e(%rip), %rsi      # 0x900d
movl $0x28, %edx
movq %r14, %rdi
callq 0x2240
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xa9b6(%rip), %rdi      # 0xcfd0
callq 0x2030
movq %rax, %rdi
callq 0x2120
jmp 0x2667
leaq 0x7(%rsp), %r14
movb $0x0, (%r14)
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2270
movsbl 0x7(%rsp), %eax
movl %ebp, %ecx
shll %cl, %eax
addl %eax, 0x20(%rbx)
addl $0x8, %ebp
cmpl $0x8, %ebp
je 0x2639
leaq 0x8(%rsp), %rdi
callq 0x2060
leaq 0x8(%rsp), %rdi
callq 0x2070
addq $0x210, %rsp            # imm = 0x210
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x268a
movq %rax, %r14
jmp 0x2697
jmp 0x268a
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x2070
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x26ab
movq (%r12), %rsi
incq %rsi
callq 0x2200
movq %r14, %rdi
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O1/hyp1231[P]FMSS/disk.cpp
// Function: Disk::Getblk(char*, int)
bool Disk::Getblk(char buf[], int blk_num) {
	ifstream ifile(disk_file);
	if(!ifile) {	// cannot open file
		cout << "Diskfile not found... (´Д` )" << endl;
		return false;
	}
	ifile.seekg(ifile.beg + BLKsize * blk_num);
	for(int i = 0; i < BLKsize; ++i) {
		ifile.read((char*)&buf[i], sizeof(char));
	}
	ifile.close();
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x2310
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x20(%rsp,%rax), %r12d
testb $0x5, %r12b
je 0x2756
movq 0xa8bb(%rip), %rbx      # 0xcfd0
leaq 0x691a(%rip), %rsi      # 0x9036
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xa889(%rip), %rdi      # 0xcfd0
callq 0x2030
movq %rax, %rdi
callq 0x2120
jmp 0x279d
movslq 0x20(%r14), %rax
movslq %ebp, %rsi
imulq %rax, %rsi
movq %rsp, %rdi
xorl %edx, %edx
callq 0x2280
cmpl $0x0, 0x20(%r14)
jle 0x2795
xorl %r13d, %r13d
movq %rsp, %r15
leaq (%rbx,%r13), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x2270
incq %r13
movslq 0x20(%r14), %rax
cmpq %rax, %r13
jl 0x2778
movq %rsp, %rdi
callq 0x2060
testb $0x5, %r12b
sete %bl
movq %rsp, %rdi
callq 0x2070
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27c2
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O1/hyp1231[P]FMSS/disk.cpp
// Function: Disk::Putblk(char*, int)
bool Disk::Putblk(char buf[], int blk_num) {
	ofstream ofile(disk_file, ios::out | ios::in);
	if(!ofile) {	// cannot open file
		cout << "Diskfile not found... (´Д` )" << endl;
		return false;
	}
	ofile.seekp(ofile.beg + BLKsize * blk_num);
	for(int i = 0; i < BLKsize; ++i) {
		ofile.write((char*)&buf[i], sizeof(char));
	}
	ofile.close();
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl $0x18, %edx
callq 0x2390
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %r12d
testb $0x5, %r12b
je 0x285e
movq 0xa7b3(%rip), %rbx      # 0xcfd0
leaq 0x6812(%rip), %rsi      # 0x9036
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xa781(%rip), %rdi      # 0xcfd0
callq 0x2030
movq %rax, %rdi
callq 0x2120
jmp 0x28ab
movslq 0x20(%r14), %rax
movslq %ebp, %rsi
imulq %rax, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x2250
cmpl $0x0, 0x20(%r14)
jle 0x28a1
xorl %r13d, %r13d
leaq 0x8(%rsp), %r15
leaq (%rbx,%r13), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x22b0
incq %r13
movslq 0x20(%r14), %rax
cmpq %rax, %r13
jl 0x2884
leaq 0x8(%rsp), %rdi
callq 0x22c0
testb $0x5, %r12b
sete %bl
movq 0xa70f(%rip), %rax      # 0xcfc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x21a0
leaq 0x100(%rsp), %rdi
callq 0x20b0
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x28fa
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22e0
movq %rbx, %rdi
callq 0x2350
nop
// File: /workspace/github_cpp_makefile_star2_O1/hyp1231[P]FMSS/filesystem.cpp
// Function: byte2int(char*, int, int)
int byte2int(char buf[], int begin, int end) {
    if (end - begin > 4) {
        cout << "[Error] Too many bytes to convert them to int!" << endl;
        return -1;
    }

    int ret = 0;
    for (int i = 0; i < end - begin; i++) {
        ret += (int)buf[begin + i] << (i * 8);   // little endian
    }
    return ret;
}

// Assembly:
pushq %rbx
subl %esi, %edx
cmpl $0x4, %edx
jle 0x2a89
movq 0xa589(%rip), %rbx      # 0xcfd0
leaq 0x6631(%rip), %rsi      # 0x907f
movl $0x2e, %edx
movq %rbx, %rdi
callq 0x2240
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2ab4
testl %edx, %edx
jle 0x2ab2
movslq %esi, %rax
movl %edx, %edx
addq %rax, %rdi
shlq $0x3, %rdx
xorl %ecx, %ecx
xorl %eax, %eax
movsbl (%rdi), %esi
shll %cl, %esi
addl %esi, %eax
incq %rdi
addq $0x8, %rcx
cmpq %rcx, %rdx
jne 0x2a9d
jmp 0x2ab4
xorl %eax, %eax
popq %rbx
retq