LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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, (%rsp)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movq 0x4c32(%rip), %r14      # 0xafc0
leaq 0x13b7(%rip), %r15      # 0x774c
movq 0x4c3c(%rip), %r12      # 0xafd8
leaq 0x28(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x21f0
movq %r12, %rdi
movq %r13, %rsi
callq 0x2260
movq %r14, %rdi
leaq 0x13a3(%rip), %rsi      # 0x7764
callq 0x21f0
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2260
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0x3352
movq %r13, %rdi
movq %rbx, %rsi
callq 0x65ec
testb %al, %al
je 0x642f
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
movq (%rsp), %rsi
callq 0x3376
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x65ec
movl %eax, %ebx
movq %rbp, %rdi
callq 0x2110
leaq 0x48(%rsp), %rdi
callq 0x2110
testb %bl, %bl
je 0x63a1
jmp 0x643c
movq %rbx, %rdi
callq 0x2110
jmp 0x63a1
leaq 0x8(%rsp), %rdi
callq 0x2110
leaq 0x28(%rsp), %rdi
callq 0x2110
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x2110
jmp 0x6476
jmp 0x6473
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2110
leaq 0x28(%rsp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x68, %rsp
movapd %xmm0, 0x30(%rsp)
leaq 0x48(%rsp), %r13
leaq 0x10(%rsp), %rbx
pushq $-0x1
popq %r14
pushq $0x2
popq %rbp
leaq 0x12c0(%rip), %r12      # 0x778b
movq 0x4aee(%rip), %rdi      # 0xafc0
leaq 0x12a2(%rip), %rsi      # 0x777b
callq 0x21f0
movq 0x4af3(%rip), %rdi      # 0xafd8
leaq 0x8(%rsp), %rsi
callq 0x2170
movsd 0x8(%rsp), %xmm0
movq %r13, %rdi
callq 0x599d
movq %r13, %rdi
pushq $0x2e
popq %rsi
xorl %edx, %edx
callq 0x2280
leaq 0x1(%rax), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rcx
callq 0x2220
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rdx
movb $0x1, %al
movq %rbp, %rsi
cmpq %rsi, %rdx
jbe 0x6540
cmpb $0x30, (%rcx,%rsi)
sete %dil
andb %dil, %al
incq %rsi
jmp 0x652b
movsd 0x8(%rsp), %xmm0
movapd 0x30(%rsp), %xmm1
cmpnltpd %xmm0, %xmm1
xorpd %xmm2, %xmm2
cmpnlepd %xmm2, %xmm0
andpd %xmm1, %xmm0
movd %xmm0, %r15d
andb %al, %r15b
testb $0x1, %r15b
jne 0x659f
movq 0x4a7d(%rip), %rdi      # 0xaff0
movq %r12, %rsi
callq 0x21f0
movq %rax, %rdi
callq 0x2120
movq %rbx, %rdi
callq 0x2110
movq %r13, %rdi
callq 0x2110
testb $0x1, %r15b
je 0x64cb
jmp 0x65b3
leaq 0x10(%rsp), %rdi
callq 0x2110
leaq 0x48(%rsp), %rdi
callq 0x2110
movsd 0x8(%rsp), %xmm0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x65da
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2110
leaq 0x48(%rsp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O2/ALSchwalm[P]cppEvolve/examples/readme_sample.cpp
// Function: main
int main() {
    auto generator = []() -> Genome {return {1, 2, 3};};

    auto fitness = [](const Genome& g) -> double {
        return std::count_if(g.begin(), g.end(),
                             [](int allele) {return allele % 2 == 0;});
    };

    SimpleGA<Genome, 100> ga(generator,
                             fitness,
                             list1d::crossover::singlePoint<Genome>,
                             list1d::mutator::swap<Genome>,
                             selector::top<Genome, 3>);

    ga.run(1000);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rsi
movaps %xmm0, (%rsi)
leaq 0x167(%rip), %rax       # 0x24a6
movq %rax, 0x18(%rsi)
leaq 0x172(%rip), %rax       # 0x24bc
movq %rax, 0x10(%rsi)
leaq -0x30(%rbp), %rdx
movaps %xmm0, (%rdx)
leaq 0x17e(%rip), %rax       # 0x24da
movq %rax, 0x18(%rdx)
leaq -0xb0(%rbp), %rcx
andq $0x0, 0x8(%rcx)
leaq 0x18d(%rip), %rax       # 0x2500
movq %rax, 0x10(%rdx)
leaq 0x1ad(%rip), %rax       # 0x252b
movq %rax, (%rcx)
leaq 0x7ae(%rip), %rax       # 0x2b36
movq %rax, 0x18(%rcx)
leaq 0x7b3(%rip), %rax       # 0x2b46
movq %rax, 0x10(%rcx)
leaq -0x90(%rbp), %r8
andq $0x0, 0x8(%r8)
leaq 0x18b(%rip), %rax       # 0x2535
movq %rax, (%r8)
leaq 0x7ba(%rip), %rax       # 0x2b6e
movq %rax, 0x18(%r8)
leaq -0x70(%rbp), %r9
andq $0x0, 0x8(%r9)
leaq 0x7b4(%rip), %rax       # 0x2b7c
movq %rax, 0x10(%r8)
leaq 0x1a2(%rip), %rax       # 0x2575
movq %rax, (%r9)
leaq 0x1709(%rip), %rax      # 0x3ae6
movq %rax, 0x18(%r9)
leaq 0x1708(%rip), %rax      # 0x3af0
movq %rax, 0x10(%r9)
leaq -0x190(%rbp), %rdi
callq 0x25b0
leaq -0x70(%rbp), %rdi
callq 0x3bb8
leaq -0x90(%rbp), %rdi
callq 0x3bb8
leaq -0xb0(%rbp), %rdi
callq 0x3bb8
leaq -0x30(%rbp), %rdi
callq 0x3bb8
leaq -0x50(%rbp), %rdi
callq 0x3bb8
leaq -0x190(%rbp), %rdi
pushq $0x64
popq %rdx
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x26aa
leaq -0x190(%rbp), %rdi
callq 0x297e
xorl %eax, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %rbp
retq
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
callq 0x297e
jmp 0x249e
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3bb8
leaq -0x90(%rbp), %rdi
callq 0x3bb8
leaq -0xb0(%rbp), %rdi
callq 0x3bb8
leaq -0x30(%rbp), %rdi
callq 0x3bb8
leaq -0x50(%rbp), %rdi
callq 0x3bb8
movq %rbx, %rdi
callq 0x2150
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x3
popq %r14
movq %r14, %rdi
callq 0x2313
movq %rax, %r15
movq %r14, %rdi
callq 0x2313
movl %r15d, %ecx
movl %eax, %eax
movl (%rbx,%rcx,4), %edx
movl (%rbx,%rax,4), %esi
movl %esi, (%rbx,%rcx,4)
movl %edx, (%rbx,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x3
popq %rdi
callq 0x2313
xorl %ecx, %ecx
cmpq $0x3, %rcx
je 0x2b26
cmpq %rcx, %rax
movq %r14, %rdx
cmovbq %rbx, %rdx
movl (%rdx,%rcx,4), %edx
movl %edx, -0x20(%rbp,%rcx,4)
incq %rcx
jmp 0x2b0a
movq -0x20(%rbp), %rax
movl -0x18(%rbp), %edx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x1
popq %rdx
callq 0x2bcd
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq $0x24, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2bf0
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/load-service.h
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> dinit_load::read_value_resolved<load_service(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, service_record*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, service_record*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<dir_entry, std::allocator<dir_entry>> const&)::$_0>(char const*, file_pos_ref, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, char const*, load_service(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, service_record*, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, service_record*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<dir_entry, std::allocator<dir_entry>> const&)::$_0 const&)
inline string read_value_resolved(const char *setting_name, file_pos_ref input_pos, string_iterator &i,
        string_iterator end, const char *argval, const resolve_var_t &resolve_var)
{
    string rval;
    read_setting_value(rval, setting_op_t::ASSIGN, input_pos, i, end, nullptr);

    std::list<std::pair<unsigned,unsigned>> offsets;
    offsets.emplace_back(0, rval.size());
    value_var_subst(setting_name, rval, offsets, resolve_var, argval);
    return rval;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
andq $0x0, (%rsp)
movl $0x20, 0x8(%rsp)
xorl %esi, %esi
callq 0x12123
leaq 0x18(%rsp), %rdi
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x14(%rsp), %rsi
andl $0x0, (%rsi)
movq 0x8(%rbx), %rax
leaq 0x30(%rsp), %rdx
movq %rax, (%rdx)
callq 0x1243a
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %r8
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8cce
leaq 0x18(%rsp), %rdi
callq 0xecea
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
jmp 0xb599
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0xecea
jmp 0xb5ab
movq %rax, %r14
movq %rbx, %rdi
callq 0x41a0
movq %r14, %rdi
callq 0x4620
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0xd904
leaq 0x38(%rbx), %rdi
callq 0xd904
addq $0x68, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0xd952
// File: /workspace/github_cpp_makefile_star2_O2/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
movl %ebp, %r12d
xorb $0x1, %r12b
movq (%rsi), %rsi
movq 0x8(%r14), %rdx
callq 0xf2c4
leaq 0x8(%rsp), %r15
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
leaq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0xf2dc
leaq 0x38(%rbx), %rdi
movq %r15, %rsi
callq 0xf2dc
testq %rax, %rax
setne %al
orb %r12b, %al
jne 0xc9d6
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 0xc9d9
xorl %r12d, %r12d
leaq 0x68(%rbx), %rsi
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0xf398
cmpb $0x0, 0x18(%r15)
jne 0xca08
movq 0x20(%rsp), %rdi
addq $0x10, %rdi
movq %r14, %rsi
callq 0x4240
movb $0x1, %r12b
testb %bpl, %bpl
je 0xca22
movq 0x20(%rsp), %rsi
addq $0x10, %rsi
movzbl %r12b, %edx
movq %rbx, %rdi
callq 0xf326
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
leaq 0x8(%rdi), %rbx
movq 0x8(%rdi), %r15
movq 0x10(%rdi), %r12
cmpq %r12, %r15
je 0xd92e
movq %r15, %rdi
callq 0xd9a0
addq $0x18, %r15
jmp 0xd91b
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movq %rbx, %rdi
callq 0xd9b8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xd9f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/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::operator++()
iterator &operator++() noexcept
        {
            if (++list_it == (*buckets)[bucket_num].end()) {
                for (size_type i = bucket_num + 1; i < buckets->size(); ++i) {
                    if (!(*buckets)[i].empty()) {
                        list_it = (*buckets)[i].begin();
                        bucket_num = i;
                        return *this;
                    }
                }
                list_it = {};
                bucket_num = -1;
            }
            return *this;
        }

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq (%rcx), %r8
movq %r8, 0x8(%rdi)
movq 0x10(%rdi), %rcx
movq (%rax), %rdx
imulq $0x18, %rcx, %rsi
addq %rdx, %rsi
cmpq %rsi, %r8
jne 0xe47e
movq 0x8(%rax), %rax
subq %rdx, %rax
pushq $0x18
popq %r8
cqto
idivq %r8
pushq $-0x1
popq %rdx
xorl %r8d, %r8d
incq %rcx
cmpq %rax, %rcx
jae 0xe476
movq 0x18(%rsi), %r9
addq $0x18, %rsi
cmpq %r9, %rsi
je 0xe45b
movq %r9, %r8
movq %rcx, %rdx
movq %r8, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %rax
cmpq 0x10(%rsi), %rax
je 0xfeb5
movq %rdx, %r14
movq %rsi, %r15
leaq 0x8(%rsi), %r12
movq (%rdx), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movq 0x8(%rdx), %rax
movq %rax, 0x8(%rdi)
callq 0xe5a1
movq %rax, %rcx
movq 0x8(%r15), %r13
movq 0x10(%r15), %rax
subq %r13, %rax
pushq $0x18
popq %rsi
cqto
idivq %rsi
movq %rax, %rsi
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
movq %rdx, %r15
imulq $0x18, %rdx, %rbp
addq %rbp, %r13
movq (%r13), %r13
movq (%r12), %rax
addq %rbp, %rax
cmpq %rax, %r13
je 0xfeb5
leaq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0xfed2
testb %al, %al
je 0xfe88
movq %r12, (%rbx)
movq %r13, 0x8(%rbx)
movq %r15, 0x10(%rbx)
jmp 0xfec0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
orq $-0x1, 0x10(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/dinit-util.h
// Function: hash(string_view const&)
inline size_t hash(const string_view &str)
{
    size_t end_pos = str.length();
    size_t hash_val = 0;
    for (size_t i = 0; i < end_pos; i += sizeof(size_t)) {
        // collect as many characters as will fit into size_t
        size_t hash_unit = 0;
        std::memcpy(&hash_unit, str.data() + i, std::min(sizeof(size_t), end_pos - i));
        // then incorporate the collected characters into the hash value
        hash_val *= 31;
        hash_val += hash_unit;
    }
    return hash_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r15
movq 0x8(%rdi), %r12
xorl %ebx, %ebx
movq %rsp, %r14
movq %r12, %rbp
xorl %r13d, %r13d
cmpq %r12, %r13
jae 0xe5f1
andq $0x0, (%rsp)
leaq (%r15,%r13), %rsi
cmpq $0x8, %rbp
pushq $0x8
popq %rdx
cmovbq %rbp, %rdx
movq %r14, %rdi
callq 0x4310
imulq $0x1f, %rbx, %rbx
addq (%rsp), %rbx
addq $0x8, %r13
addq $-0x8, %rbp
jmp 0xe5be
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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:
cmpq $0x0, 0x20(%rsi)
je 0xea6a
leaq 0x8(%rsi), %rcx
movq 0x8(%rsi), %r8
movq 0x10(%rsi), %rax
subq %r8, %rax
pushq $0x18
popq %rsi
cqto
idivq %rsi
xorl %edx, %edx
cmpq %rdx, %rax
je 0xea6a
movq (%r8), %rsi
cmpq %rsi, %r8
jne 0xea77
incq %rdx
addq $0x18, %r8
jmp 0xea54
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
orq $-0x1, 0x10(%rdi)
jmp 0xea82
movq %rcx, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0xe4e0
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
movq %rax, %rcx
notq %rcx
orq %rsi, %rcx
je 0xf31c
imulq $0x18, %rax, %rdi
addq 0x8(%rbx), %rdi
callq 0xf364
pushq $0x1
popq %rax
jmp 0xf31e
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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), %rax
movq %rax, %rcx
shrq $0x3a, %rcx
je 0xf586
movabsq $0x555555555555555, %rax # imm = 0x555555555555555
jmp 0xf5a2
pushq $0x3
popq %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
shlb $0x2, %dl
movzbl %dl, %eax
movb $0x3, %dl
divb %dl
movzbl %al, %eax
leaq (%rax,%rcx,4), %rax
leaq 0x8(%r14), %r15
cmpq %rbx, %rax
cmovaq %rax, %rbx
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
cmpq %rax, %rbx
jae 0xf5dd
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf860
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xf52c
movq %r15, %rdi
movq %rbx, %rsi
callq 0xf52c
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xf860
// File: /workspace/github_cpp_makefile_star2_O2/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 $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movq %rax, %r12
leaq 0x10(%rsp), %r14
movq %r14, 0x8(%r14)
movq %r14, (%r14)
andq $0x0, 0x10(%r14)
movq %rsi, %r15
xorl %r13d, %r13d
subq $0x1, %r12
jb 0x11069
movq 0x8(%rbx), %rdx
addq %r13, %rdx
movq %r14, %rdi
movq %r14, %rsi
callq 0xf93c
addq $0x18, %r13
jmp 0x1104b
movq 0x10(%rsp), %rbp
movq %rsp, %r13
cmpq %r14, %rbp
je 0x110bd
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0xf91d
movq %rax, %r12
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
movq 0x18(%rbp), %rax
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0xe5a1
xorl %edx, %edx
divq %r15
imulq $0x18, %rdx, %rdi
addq 0x8(%rbx), %rdi
movq %rdi, %rsi
movq %r14, %rdx
movq %rbp, %rcx
callq 0xf99a
movq %r12, %rbp
jmp 0x11071
leaq 0x10(%rsp), %rdi
callq 0xd176
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
callq 0xba09
// File: /workspace/github_cpp_makefile_star2_O2/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
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rdx)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0xfd0a
movq 0x8(%r15), %rax
movq 0x10(%r15), %rcx
notq %rcx
orq %rax, %rcx
je 0xfb45
movq 0x10(%rax), %r14
movq 0x18(%rax), %rdx
jmp 0xfb96
cmpb $0x0, (%r14)
jne 0xfb66
addq $0x8, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xfcde
xorl %edx, %edx
movl $0x0, %r14d
testb %al, %al
je 0xfb96
movq (%rbx), %rdi
callq 0x4470
testq %rax, %rax
je 0xfb91
movq 0x8(%rbx), %rbx
movq %rbx, %r14
notq %r14
addq %rax, %r14
movq %rax, %rdi
callq 0x4180
leaq (%rbx,%rax), %rdx
incq %rdx
jmp 0xfb96
xorl %edx, %edx
xorl %r14d, %r14d
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/dinit-util.h
// Function: string_view::operator==(char const*) const
bool operator==(const char *other) const noexcept
    {
        // Note: we can't use strncmp, it might deduce equal strings if other is shorter and our
        // string contains a nul character.
        const char *sp = s;
        const char *op = other;
        while (*op != '\0') {
            if (*op != *sp) {
                return false;
            }
            ++op; ++sp;
        }

        return ((size_t)(op - other) == count);
    }

// Assembly:
movq (%rdi), %rcx
xorl %eax, %eax
movb (%rsi,%rax), %dl
testb %dl, %dl
je 0x109a0
cmpb (%rcx,%rax), %dl
jne 0x109a8
incq %rax
jmp 0x1098f
cmpq %rax, 0x8(%rdi)
sete %al
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x8, %rdi
callq 0x10d40
leaq 0x68(%rbx), %rdi
movq (%r14), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rsi)
callq 0x10d8a
testq %rax, %rax
setne %r15b
movl %ebp, %eax
xorb $0x1, %al
orb %r15b, %al
jne 0x10a02
movq (%r14), %rdi
callq 0x4470
testq %rax, %rax
setne %r15b
cmpb $0x1, (%rbx)
jne 0x10a2f
leaq 0x38(%rbx), %rsi
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x10dd4
testb %bpl, %bpl
je 0x10a43
movq 0x10(%rsp), %rsi
addq $0x10, %rsi
movzbl %r15b, %edx
movq %rbx, %rdi
jmp 0x10a3e
testb %bpl, %bpl
je 0x10a43
movzbl %r15b, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf326
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x10d40
leaq 0x68(%r14), %rdi
movq (%rbx), %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsi)
callq 0x10d8a
cmpb $0x0, (%r14)
jne 0x10a9a
addq $0x8, %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x10dd4
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/dinit-env.h
// Function: environment::env_map::lookup(string_view) const
const char *lookup(string_view sv) const {
            auto it = var_map.find(sv);
            if (it != var_map.end()) {
                return env_list[it->second] + sv.size() + 1;
            }
            return nullptr;
        }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsp, %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
addq $0x18, %rdi
movq %rax, %rsi
callq 0x12770
testq %rax, %rax
je 0x12768
movl 0x18(%rax), %eax
movq (%rbx), %rcx
movq (%rcx,%rax,8), %rax
movq 0x8(%rsp), %rcx
addq %rcx, %rax
incq %rax
jmp 0x1276a
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
movq %rdx, %r15
movl %edi, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
pushq $0x8
popq %rdx
movq %r15, %rdi
callq 0x14036
movq 0x10(%rsp), %rcx
cmpq 0x8(%r15), %rcx
jne 0x12ba6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x41d0
movq %rax, %r15
leaq 0x49b2(%rip), %rsi      # 0x1756a
movq %rax, %rdi
callq 0x4550
movq 0x113f9(%rip), %rsi     # 0x23fc0
movq 0x1139a(%rip), %rdx     # 0x23f68
movq %r15, %rdi
callq 0x4610
jmp 0x12c54
movq %rdx, %r13
movq %rax, %r12
movq %r15, %rdi
callq 0x42d0
jmp 0x12bee
movq %rdx, %r13
movq %rax, %r12
cmpl $0x1, %r13d
jne 0x12c78
movq %r12, %rdi
callq 0x4160
pushq $0x70
popq %rdi
callq 0x41d0
movq %rax, %r15
leaq 0x28(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r14, %rsi
callq 0xb9ce
movb $0x1, %bpl
leaq 0x5870(%rip), %rcx      # 0x18497
leaq 0x28(%rsp), %rdx
leaq 0x18(%rsp), %r8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x134c6
xorl %ebp, %ebp
leaq 0x10fbb(%rip), %rsi     # 0x23c00
leaq -0xe70(%rip), %rdx      # 0x11ddc
movq %r15, %rdi
callq 0x4610
movq %rax, %r12
leaq 0x28(%rsp), %rdi
callq 0x41a0
testb %bpl, %bpl
jne 0x12c6b
jmp 0x12c73
movq %rax, %r12
movq %r15, %rdi
callq 0x42d0
callq 0x4600
movq %r12, %rdi
callq 0x4620
movq %rax, %rdi
callq 0xba09
// File: /workspace/github_cpp_makefile_star2_O2/davmac314[P]dinit/src/includes/load-service.h
// Function: dinit_load::find_rlimits(std::vector<service_rlimits, std::allocator<service_rlimits>>&, int)
inline service_rlimits &find_rlimits(std::vector<service_rlimits> &all_rlimits, int resource_id)
{
    for (service_rlimits &limits : all_rlimits) {
        if (limits.resource_id == resource_id) {
            return limits;
        }
    }

    all_rlimits.emplace_back(resource_id);
    return all_rlimits.back();
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rcx, %rax
je 0x139fb
cmpl %esi, (%rax)
je 0x13a10
addq $0x18, %rax
jmp 0x139ec
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x1436e
movq 0x8(%rbx), %rax
addq $-0x18, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r13
leaq 0x1(%r13), %r12
movq %r12, %rdi
callq 0x4030
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x13f3d
callq 0x44a0
movq 0x8(%r14), %r13
leaq 0x1(%r13), %r12
movq (%r14), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x4310
movq %r15, (%rbx)
movq %r13, 0x8(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x4a8f(%rip), %rsi      # 0x7004
leaq 0x8(%rsp), %rdx
callq 0x27fc
leaq 0x8(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x2310
andl $0x0, 0x20(%rbx)
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
je 0x25c0
movq 0x8a26(%rip), %rdi      # 0xafd0
leaq 0x4a5c(%rip), %rsi      # 0x700d
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
jmp 0x2602
leaq 0x7(%rsp), %r14
movb $0x0, (%r14)
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
pushq $0x1
popq %r12
cmpl $0x10, %ebp
je 0x25f8
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2250
movsbl 0x7(%rsp), %eax
movl %ebp, %ecx
shll %cl, %eax
addl %eax, 0x20(%rbx)
addl $0x8, %ebp
jmp 0x25d4
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 0x2625
movq %rax, %r14
jmp 0x2632
jmp 0x2625
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x8
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2310
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x20(%rsp,%rax), %r13d
testb $0x5, %r13b
je 0x26a1
movq 0x8945(%rip), %rdi      # 0xafd0
leaq 0x49a4(%rip), %rsi      # 0x7036
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
jmp 0x26e4
movslq 0x20(%r14), %rax
movslq %ebp, %rsi
imulq %rax, %rsi
movq %rsp, %rdi
xorl %edx, %edx
callq 0x2260
xorl %ebp, %ebp
movq %rsp, %r15
pushq $0x1
popq %r12
movslq 0x20(%r14), %rax
cmpq %rax, %rbp
jge 0x26dc
leaq (%rbx,%rbp), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x2250
incq %rbp
jmp 0x26bf
movq %rsp, %rdi
callq 0x2060
testb $0x5, %r13b
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 0x2709
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $0x18
popq %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2360
movq (%r15), %rax
movq -0x18(%rax), %rax
movl 0x28(%rsp,%rax), %r13d
testb $0x5, %r13b
je 0x2777
movq 0x886f(%rip), %rdi      # 0xafd0
leaq 0x48ce(%rip), %rsi      # 0x7036
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
jmp 0x27c0
movslq 0x20(%r14), %rax
movslq %ebp, %rsi
imulq %rax, %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x2230
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
pushq $0x1
popq %r12
movslq 0x20(%r14), %rax
cmpq %rax, %rbp
jge 0x27b6
leaq (%rbx,%rbp), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x22a0
incq %rbp
jmp 0x2799
leaq 0x8(%rsp), %rdi
callq 0x22c0
testb $0x5, %r13b
sete %bl
leaq 0x8(%rsp), %rdi
callq 0x22e0
movl %ebx, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x27e7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x22e0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/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 %rax
subl %esi, %edx
cmpl $0x4, %edx
jle 0x293f
movq 0x86aa(%rip), %rdi      # 0xafd0
leaq 0x4752(%rip), %rsi      # 0x707f
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
pushq $-0x1
popq %rax
popq %rcx
retq
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
movslq %esi, %rax
addq %rax, %rdi
shlq $0x3, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
je 0x293d
movsbl (%rdi), %esi
shll %cl, %esi
addl %esi, %eax
incq %rdi
addq $0x8, %rcx
jmp 0x2952
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: byte2string[abi:cxx11](char*, int, int)
string byte2string(char buf[], int begin, int end) {
    string ret = "";
    for (int i = begin; i < end; i++) {
        int tmp = byte2int(buf, i, i + 1);
        if (tmp == 0)
            break;
        ret += buf[i];
    }
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4c0c(%rip), %rsi      # 0x7591
leaq 0xf(%rsp), %rdx
callq 0x27fc
movslq %r15d, %r15
movslq %ebp, %r12
cmpq %r12, %r15
jge 0x29bf
leal 0x1(%r15), %edx
movq %r14, %rdi
movl %r15d, %esi
callq 0x2917
testl %eax, %eax
je 0x29bf
movsbl (%r14,%r15), %esi
incq %r15
movq %rbx, %rdi
callq 0x2190
jmp 0x2995
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: getTime[abi:cxx11]()
string getTime() {
    time_t timep;
    time (&timep);
    char tmp[64];
    strftime(tmp, sizeof(tmp), "%Y-%m-%d %H:%M",localtime(&timep) );
    return tmp;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x21c0
movq %r14, %rdi
callq 0x2140
leaq 0x4520(%rip), %rdx      # 0x70b0
leaq 0x10(%rsp), %r14
pushq $0x40
popq %rsi
movq %r14, %rdi
movq %rax, %rcx
callq 0x2170
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x27fc
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/hyp1231[P]FMSS/filesystem.cpp
// Function: FileSystem::FileSystem()
FileSystem::FileSystem() : D(), BLKsize(1024) {
	cout << "Welcome to use our system!" << endl;
	cout << "If you need help, just type \"help\", and hit [enter]." << endl;
	cout << "Input \"exit\" to exit the ststem." << endl;
	cout << "Hope you enjoy yourself~ (´▽｀)" << endl;

    // set BLK_No. of root directory to 0 
    // (the implementation of diskdata has done this work)

    // get super block
    char buf[BLKsize];
    D.Getblk(buf, 0);

    // get root path inodeNum and cur dir inodeNum
    root_dir_inodeNum = cur_dir_inodeNum = buf[2];

    // get inode bitmap
    for(int i = 3; i <= 12; ++i) {
        inode_bitmap[i - 3] = buf[i];
    }

    // get data block bitmap
    for(int i = 13; i <= 92; ++i) {
        data_block_bitmap[i - 13] = buf[i];
    }

    cur_path.push_back("/");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r15
movl $0x400, (%rdi)          # imm = 0x400
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
callq 0x255c
leaq 0x38(%r15), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%r15)
andq $0x0, 0x48(%r15)
movq 0x8394(%rip), %rdi      # 0xafd0
leaq 0x4487(%rip), %rsi      # 0x70ca
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
movq 0x8379(%rip), %rdi      # 0xafd0
leaq 0x4487(%rip), %rsi      # 0x70e5
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
movq 0x835e(%rip), %rdi      # 0xafd0
leaq 0x44a1(%rip), %rsi      # 0x711a
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
movq 0x8343(%rip), %rdi      # 0xafd0
leaq 0x44a7(%rip), %rsi      # 0x713b
callq 0x21d0
movq %rax, %rdi
callq 0x20f0
movl (%r15), %eax
movq %rsp, %r12
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2648
movsbl 0x2(%r12), %eax
movl %eax, 0x34(%r15)
movl %eax, 0x30(%r15)
xorl %eax, %eax
cmpq $0xa, %rax
je 0x2ce7
movb 0x3(%r12,%rax), %cl
movb %cl, 0x50(%r15,%rax)
incq %rax
jmp 0x2cd2
xorl %eax, %eax
cmpq $0x50, %rax
je 0x2cfe
movb 0xd(%r12,%rax), %cl
movb %cl, 0x5a(%r15,%rax)
incq %rax
jmp 0x2ce9
leaq 0x43a9(%rip), %rsi      # 0x70ae
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
callq 0x27fc
leaq -0x48(%rbp), %rsi
movq %r14, %rdi
callq 0x5624
leaq -0x48(%rbp), %rdi
callq 0x20e0
leaq -0x20(%rbp), %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq -0x48(%rbp), %rdi
callq 0x20e0
jmp 0x2d47
jmp 0x2d44
movq %rax, %r15
movq %r14, %rdi
callq 0x5480
movq %rbx, %rdi
callq 0x2642
movq %r15, %rdi
callq 0x2340
nop