LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: void nlohmann::detail::dtoa_impl::grisu2<double>(char*, int&, int&, double)
JSON_HEDLEY_NON_NULL(1)
void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value)
{
    static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3,
                  "internal error: not enough precision");

    assert(std::isfinite(value));
    assert(value > 0);

    // If the neighbors (and boundaries) of 'value' are always computed for double-precision
    // numbers, all float's can be recovered using strtod (and strtof). However, the resulting
    // decimal representations are not exactly "short".
    //
    // The documentation for 'std::to_chars' (https://en.cppreference.com/w/cpp/utility/to_chars)
    // says "value is converted to a string as if by std::sprintf in the default ("C") locale"
    // and since sprintf promotes float's to double's, I think this is exactly what 'std::to_chars'
    // does.
    // On the other hand, the documentation for 'std::to_chars' requires that "parsing the
    // representation using the corresponding std::from_chars function recovers value exactly". That
    // indicates that single precision floating-point numbers should be recovered using
    // 'std::strtof'.
    //
    // NB: If the neighbors are computed for single-precision numbers, there is a single float
    //     (7.0385307e-26f) which can't be recovered using strtod. The resulting double precision
    //     value is off by 1 ulp.
#if 0
    const boundaries w = compute_boundaries(static_cast<double>(value));
#else
    const boundaries w = compute_boundaries(value);
#endif

    grisu2(buf, len, decimal_exponent, w.minus, w.w, w.plus);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jge 0xc508
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc527
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0xc7cb
movq 0x10(%r12), %rcx
movl 0x18(%r12), %r8d
movups (%r12), %xmm0
movups 0x20(%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xc925
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x30680(%rip), %rdi     # 0x3cb8f
leaq 0x302e4(%rip), %rsi     # 0x3c7fa
leaq 0x307e2(%rip), %rcx     # 0x3ccff
movl $0x34e1, %edx           # imm = 0x34E1
callq 0x5280
leaq 0x30830(%rip), %rdi     # 0x3cd5e
leaq 0x302c5(%rip), %rsi     # 0x3c7fa
leaq 0x307c3(%rip), %rcx     # 0x3ccff
movl $0x34e2, %edx           # imm = 0x34E2
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::dtoa_impl::diyfp::normalize(nlohmann::detail::dtoa_impl::diyfp)
static diyfp normalize(diyfp x) noexcept
    {
        assert(x.f != 0);

        while ((x.f >> 63u) == 0)
        {
            x.f <<= 1u;
            x.e--;
        }

        return x;
    }

// Assembly:
testq %rdi, %rdi
je 0xca6b
js 0xca65
addq %rdi, %rdi
decl %esi
testq %rdi, %rdi
jns 0xca5b
movq %rdi, %rax
movl %esi, %edx
retq
pushq %rax
leaq 0x30350(%rip), %rdi     # 0x3cdc3
leaq 0x2fd80(%rip), %rsi     # 0x3c7fa
leaq 0x3034b(%rip), %rcx     # 0x3cdcc
movl $0x31f7, %edx           # imm = 0x31F7
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::dtoa_impl::diyfp::normalize_to(nlohmann::detail::dtoa_impl::diyfp const&, int)
static diyfp normalize_to(const diyfp& x, const int target_exponent) noexcept
    {
        const int delta = x.e - target_exponent;

        assert(delta >= 0);
        assert(((x.f << delta) >> delta) == x.f);

        return {x.f << delta, target_exponent};
    }

// Assembly:
pushq %rax
movl 0x8(%rdi), %ecx
subl %esi, %ecx
js 0xcaac
movq (%rdi), %rdx
movq %rdx, %rax
shlq %cl, %rax
movq %rax, %rdi
shrq %cl, %rdi
cmpq %rdx, %rdi
jne 0xcacb
movl %esi, %edx
popq %rcx
retq
leaq 0x3035b(%rip), %rdi     # 0x3ce0e
leaq 0x2fd40(%rip), %rsi     # 0x3c7fa
leaq 0x30358(%rip), %rcx     # 0x3ce19
movl $0x320a, %edx           # imm = 0x320A
callq 0x5280
leaq 0x3039f(%rip), %rdi     # 0x3ce71
leaq 0x2fd21(%rip), %rsi     # 0x3c7fa
leaq 0x30339(%rip), %rcx     # 0x3ce19
movl $0x320b, %edx           # imm = 0x320B
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::dtoa_impl::grisu2_round(char*, int, unsigned long, unsigned long, unsigned long, unsigned long)
inline void grisu2_round(char* buf, int len, std::uint64_t dist, std::uint64_t delta,
                         std::uint64_t rest, std::uint64_t ten_k)
{
    assert(len >= 1);
    assert(dist <= delta);
    assert(rest <= delta);
    assert(ten_k > 0);

    //               <--------------------------- delta ---->
    //                                  <---- dist --------->
    // --------------[------------------+-------------------]--------------
    //               M-                 w                   M+
    //
    //                                  ten_k
    //                                <------>
    //                                       <---- rest ---->
    // --------------[------------------+----+--------------]--------------
    //                                  w    V
    //                                       = buf * 10^k
    //
    // ten_k represents a unit-in-the-last-place in the decimal representation
    // stored in buf.
    // Decrement buf by ten_k while this takes buf closer to w.

    // The tests are written in this order to avoid overflow in unsigned
    // integer arithmetic.

    while (rest < dist
            and delta - rest >= ten_k
            and (rest + ten_k < dist or dist - rest > rest + ten_k - dist))
    {
        assert(buf[len - 1] != '0');
        buf[len - 1]--;
        rest += ten_k;
    }
}

// Assembly:
pushq %rax
testl %esi, %esi
jle 0xd09b
cmpq %rcx, %rdx
ja 0xd0ba
movq %rcx, %r10
subq %r8, %r10
jb 0xd0d9
testq %r9, %r9
je 0xd0f8
movq %rdx, %rax
subq %r8, %rax
setbe %r11b
cmpq %r9, %r10
setb %r10b
orb %r11b, %r10b
jne 0xd07a
movl %esi, %esi
addq %r9, %r8
subq %r8, %rcx
movq %rdx, %r10
negq %r10
cmpq %rdx, %r8
jb 0xd050
leaq (%r10,%r8), %r11
cmpq %r11, %rax
jbe 0xd07a
movb -0x1(%rdi,%rsi), %r11b
cmpb $0x30, %r11b
je 0xd07c
decb %r11b
movb %r11b, -0x1(%rdi,%rsi)
subq %r9, %rcx
setb %r11b
cmpq %rdx, %r8
jae 0xd07a
subq %r9, %rax
addq %r9, %r8
testb %r11b, %r11b
je 0xd042
popq %rax
retq
leaq 0x30150(%rip), %rdi     # 0x3d1d3
leaq 0x2f770(%rip), %rsi     # 0x3c7fa
leaq 0x300a4(%rip), %rcx     # 0x3d135
movl $0x33a5, %edx           # imm = 0x33A5
callq 0x5280
leaq 0x3008a(%rip), %rdi     # 0x3d12c
leaq 0x2f751(%rip), %rsi     # 0x3c7fa
leaq 0x30085(%rip), %rcx     # 0x3d135
movl $0x3389, %edx           # imm = 0x3389
callq 0x5280
leaq 0x300ec(%rip), %rdi     # 0x3d1ad
leaq 0x2f732(%rip), %rsi     # 0x3c7fa
leaq 0x30066(%rip), %rcx     # 0x3d135
movl $0x338a, %edx           # imm = 0x338A
callq 0x5280
leaq 0x300db(%rip), %rdi     # 0x3d1bb
leaq 0x2f713(%rip), %rsi     # 0x3c7fa
leaq 0x30047(%rip), %rcx     # 0x3d135
movl $0x338b, %edx           # imm = 0x338B
callq 0x5280
leaq 0x300ca(%rip), %rdi     # 0x3d1c9
leaq 0x2f6f4(%rip), %rsi     # 0x3c7fa
leaq 0x30028(%rip), %rcx     # 0x3d135
movl $0x338c, %edx           # imm = 0x338C
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: void nlohmann::detail::get_arithmetic_value<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>, unsigned long, 0>(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer> const&, unsigned long&)
void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
    switch (static_cast<value_t>(j))
    {
        case value_t::number_unsigned:
        {
            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
            break;
        }
        case value_t::number_integer:
        {
            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
            break;
        }
        case value_t::number_float:
        {
            val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
            break;
        }

        default:
            JSON_THROW(type_error::create(302, "type must be number, but is " + std::string(j.type_name())));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0xe99f
cmpl $0x7, %eax
je 0xe9a5
cmpl $0x6, %eax
jne 0xe9d8
movq 0x8(%r14), %rax
jmp 0xe9ca
movsd 0x8(%r14), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x2d801(%rip), %xmm0    # 0x3c1c0
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
movq %rax, (%rsi)
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x5210
movq %rax, %rbx
movzbl (%r14), %eax
cmpq $0x8, %rax
ja 0xe9fc
leaq 0x440c2(%rip), %rcx     # 0x52ab8
movq (%rcx,%rax,8), %r14
jmp 0xea03
leaq 0x2eaf2(%rip), %r14     # 0x3d4f5
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x51f0
leaq (%rax,%r14), %rdx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0xa960
leaq 0x2eaed(%rip), %rsi     # 0x3d519
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbd1e
movb $0x1, %bpl
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi            # imm = 0x12E
callq 0xbb5e
xorl %ebp, %ebp
leaq 0x43ddf(%rip), %rsi     # 0x52838
leaq 0x2e32(%rip), %rdx      # 0x11892
movq %rbx, %rdi
callq 0x56b0
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xea86
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xea9d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
testb %bpl, %bpl
jne 0xeac3
jmp 0xeacb
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xeac3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
jmp 0xeac3
movq %rax, %r14
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::skip_bom()
bool skip_bom()
    {
        if (get() == 0xEF)
        {
            // check if we completely parse the BOM
            return get() == 0xBB and get() == 0xBF;
        }

        // the first character is not the beginning of the BOM; unget it to
        // process is later
        unget();
        return true;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x57f0
cmpl $0xef, %eax
je 0xf400
movq %rbx, %rdi
callq 0xfc58
movb $0x1, %al
popq %rbx
retq
movq %rbx, %rdi
callq 0x57f0
cmpl $0xbb, %eax
je 0xf413
xorl %eax, %eax
jmp 0xf3fe
movq %rbx, %rdi
callq 0x57f0
cmpl $0xbf, %eax
sete %al
jmp 0xf3fe
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::scan_literal(char const*, unsigned long, nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::token_type)
JSON_HEDLEY_NON_NULL(2)
    token_type scan_literal(const char* literal_text, const std::size_t length,
                            token_type return_type)
    {
        assert(current == literal_text[0]);
        for (std::size_t i = 1; i < length; ++i)
        {
            if (JSON_HEDLEY_UNLIKELY(get() != literal_text[i]))
            {
                error_message = "invalid literal";
                return token_type::parse_error;
            }
        }
        return return_type;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movsbl (%rsi), %eax
cmpl %eax, 0x10(%rdi)
jne 0xf485
movl %ecx, %ebx
movq %rdx, %r15
cmpq $0x2, %rdx
jb 0xf467
movq %rsi, %r12
movq %rdi, %r14
movl $0x1, %r13d
movq %r14, %rdi
callq 0x57f0
movsbl (%r12,%r13), %ecx
cmpl %ecx, %eax
jne 0xf473
incq %r13
cmpq %r13, %r15
jne 0xf44e
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2e1da(%rip), %rax     # 0x3d654
movq %rax, 0x68(%r14)
movl $0xe, %ebx
jmp 0xf467
leaq 0x2e258(%rip), %rdi     # 0x3d6e4
leaq 0x2d367(%rip), %rsi     # 0x3c7fa
leaq 0x2e265(%rip), %rcx     # 0x3d6ff
movl $0x2097, %edx           # imm = 0x2097
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::unget()
void unget()
    {
        next_unget = true;

        --position.chars_read_total;

        // in case we "unget" a newline, we have to also decrement the lines_read
        if (position.chars_read_current_line == 0)
        {
            if (position.lines_read > 0)
            {
                --position.lines_read;
            }
        }
        else
        {
            --position.chars_read_current_line;
        }

        if (JSON_HEDLEY_LIKELY(current != std::char_traits<char>::eof()))
        {
            assert(not token_string.empty());
            token_string.pop_back();
        }
    }

// Assembly:
movb $0x1, 0x14(%rdi)
decq 0x18(%rdi)
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0xfc6f
leaq 0x20(%rdi), %rcx
jmp 0xfc7c
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0xfc82
leaq 0x28(%rdi), %rcx
decq %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x10(%rdi)
je 0xfc99
movq 0x38(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0xfc9a
decq %rax
movq %rax, 0x38(%rdi)
retq
pushq %rax
leaq 0x2d9c2(%rip), %rdi     # 0x3d664
leaq 0x2cb51(%rip), %rsi     # 0x3c7fa
leaq 0x2d9cd(%rip), %rcx     # 0x3d67d
movl $0x20f3, %edx           # imm = 0x20F3
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::parse_error(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, nlohmann::detail::exception const&)
bool parse_error(std::size_t /*unused*/, const std::string& /*unused*/,
                     const detail::exception& ex)
    {
        errored = true;
        if (allow_exceptions)
        {
            // determine the proper exception type from the id
            switch ((ex.id / 100) % 100)
            {
                case 1:
                    JSON_THROW(*static_cast<const detail::parse_error*>(&ex));
                case 4:
                    JSON_THROW(*static_cast<const detail::out_of_range*>(&ex));
                // LCOV_EXCL_START
                case 2:
                    JSON_THROW(*static_cast<const detail::invalid_iterator*>(&ex));
                case 3:
                    JSON_THROW(*static_cast<const detail::type_error*>(&ex));
                case 5:
                    JSON_THROW(*static_cast<const detail::other_error*>(&ex));
                default:
                    assert(false);
                    // LCOV_EXCL_STOP
            }
        }
        return false;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movb $0x1, 0x78(%rdi)
cmpb $0x1, 0xa0(%rdi)
je 0x10c63
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rcx, %rbx
movslq 0x8(%rcx), %rax
imulq $0x51eb851f, %rax, %rax # imm = 0x51EB851F
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x25, %rax
addl %ecx, %eax
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
notl %ecx
addl %ecx, %eax
cmpl $0x4, %eax
ja 0x10d69
leaq 0x2b9b9(%rip), %rcx     # 0x3c664
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x28, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15ac8
leaq 0x41c8d(%rip), %rsi     # 0x52960
jmp 0x10d5a
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15b94
leaq 0x41ba9(%rip), %rsi     # 0x528a0
jmp 0x10d5a
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15b66
leaq 0x41b20(%rip), %rsi     # 0x52838
jmp 0x10d5a
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15b0a
leaq 0x41ba7(%rip), %rsi     # 0x528e0
jmp 0x10d5a
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x15b38
leaq 0x41b9e(%rip), %rsi     # 0x528f8
leaq 0xb31(%rip), %rdx       # 0x11892
movq %r14, %rdi
callq 0x56b0
leaq 0x2bbad(%rip), %rdi     # 0x3c91d
leaq 0x2ba83(%rip), %rsi     # 0x3c7fa
leaq 0x2e45a(%rip), %rcx     # 0x3f1d8
movl $0x12db, %edx           # imm = 0x12DB
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::lexer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::get_token_string() const
std::string get_token_string() const
    {
        // escape control characters
        std::string result;
        for (const auto c : token_string)
        {
            if ('\x00' <= c and c <= '\x1F')
            {
                // escape control characters
                std::array<char, 9> cs{{}};
                (std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c));
                result += cs.data();
            }
            else
            {
                // add character as is
                result.push_back(c);
            }
        }

        return result;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x30(%rsi), %r13
movq 0x38(%rsi), %rbp
cmpq %rbp, %r13
je 0x10e0f
leaq 0x2e4d7(%rip), %r14     # 0x3f297
leaq 0x8(%rsp), %r15
movzbl (%r13), %ecx
cmpl $0x1f, %ecx
ja 0x10dfc
movb $0x0, 0x10(%rsp)
movq $0x0, 0x8(%rsp)
movl $0x9, %esi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5610
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5780
jmp 0x10e07
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x5330
incq %r13
cmpq %rbp, %r13
jne 0x10dc5
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10e23
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x10e3a
movq (%r12), %rsi
incq %rsi
callq 0x53a0
movq %r14, %rdi
callq 0x56e0
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::key(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool key(string_t& val)
    {
        BasicJsonType k = BasicJsonType(val);

        // check callback for key
        const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
        key_keep_stack.push_back(keep);

        // add discarded value at given key and store the reference for later
        if (keep and ref_stack.back())
        {
            object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
        }

        return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
callq 0x14306
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x4, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x13044
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq *0x98(%rbx)
movl %eax, %ebp
leaq 0x48(%rbx), %rdi
movzbl %al, %esi
callq 0x126f6
testb %bpl, %bpl
je 0x1301d
movq 0x10(%rbx), %rax
cmpq $0x0, -0x8(%rax)
je 0x1301d
leaq 0xa8(%rbx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x942c
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x14332
movq %rax, %r14
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0xd118
movb (%r14), %al
movb (%r15), %cl
movb %cl, (%r14)
movb %al, (%r15)
leaq 0x28(%rsp), %r12
movq 0x8(%r14), %rax
movq (%r12), %rcx
movq %rcx, 0x8(%r14)
movq %rax, (%r12)
movq %r14, %rdi
callq 0xd118
movq %r14, 0x70(%rbx)
movq %r15, %rdi
callq 0xd118
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd1ba
leaq 0x10(%rsp), %rdi
callq 0xd118
leaq 0x18(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xd1ba
movb $0x1, %al
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x51a0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x907c
jmp 0x1305b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x907c
movq %rbx, %rdi
callq 0x56e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::json_sax_dom_callback_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::end_array()
bool end_array()
    {
        bool keep = true;

        if (ref_stack.back())
        {
            keep = callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::array_end, *ref_stack.back());
            if (not keep)
            {
                // discard array
                *ref_stack.back() = discarded;
            }
        }

        assert(not ref_stack.empty());
        assert(not keep_stack.empty());
        ref_stack.pop_back();
        keep_stack.pop_back();

        // remove discarded value
        if (not keep and not ref_stack.empty() and ref_stack.back()->is_array())
        {
            ref_stack.back()->m_value.array->pop_back();
        }

        return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movq -0x8(%rax), %rcx
movb $0x1, %bpl
testq %rcx, %rcx
je 0x132ee
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0xc(%rsp)
movb $0x3, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x133c6
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
callq *0x98(%rbx)
testb %al, %al
jne 0x132ee
leaq 0xa8(%rbx), %rsi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x942c
movq 0x10(%rbx), %rax
movq -0x8(%rax), %r15
movq %r14, %rdi
callq 0xd118
movb (%r15), %al
movb (%r14), %cl
movb %cl, (%r15)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq 0x8(%r15), %rax
movq (%r12), %rcx
movq %rcx, 0x8(%r15)
movq %rax, (%r12)
movq %r15, %rdi
callq 0xd118
movq %r14, %rdi
callq 0xd118
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd1ba
xorl %ebp, %ebp
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
je 0x13388
movq 0x30(%rbx), %rdx
movl 0x38(%rbx), %esi
cmpq %rdx, 0x20(%rbx)
sete %dil
testl %esi, %esi
sete %r8b
andb %dil, %r8b
cmpb $0x1, %r8b
je 0x133a7
leaq -0x8(%rax), %rdi
movq %rdi, 0x10(%rbx)
subl $0x1, %esi
movl %esi, 0x38(%rbx)
jae 0x13340
movl $0x3f, 0x38(%rbx)
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
cmpq %rdi, %rcx
sete %cl
orb %cl, %bpl
jne 0x13379
movq -0x10(%rax), %rax
cmpb $0x2, (%rax)
jne 0x13379
movq 0x8(%rax), %rax
movq 0x8(%rax), %rbx
leaq -0x10(%rbx), %rdi
movq %rdi, 0x8(%rax)
callq 0xd118
movzbl -0x10(%rbx), %esi
addq $-0x8, %rbx
movq %rbx, %rdi
callq 0xd1ba
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2b4ae(%rip), %rdi     # 0x3e83d
leaq 0x29464(%rip), %rsi     # 0x3c7fa
leaq 0x2b8e8(%rip), %rcx     # 0x3ec85
movl $0x12b8, %edx           # imm = 0x12B8
callq 0x5280
leaq 0x2b338(%rip), %rdi     # 0x3e6e6
leaq 0x29445(%rip), %rsi     # 0x3c7fa
leaq 0x2b8c9(%rip), %rcx     # 0x3ec85
movl $0x12b9, %edx           # imm = 0x12B9
callq 0x5280
callq 0x51a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::operator->() const
pointer operator->() const
    {
        assert(m_object != nullptr);

        switch (m_object->m_type)
        {
            case value_t::object:
            {
                assert(m_it.object_iterator != m_object->m_value.object->end());
                return &(m_it.object_iterator->second);
            }

            case value_t::array:
            {
                assert(m_it.array_iterator != m_object->m_value.array->end());
                return &*m_it.array_iterator;
            }

            default:
            {
                if (JSON_HEDLEY_LIKELY(m_it.primitive_iterator.is_begin()))
                {
                    return m_object;
                }

                JSON_THROW(invalid_iterator::create(214, "cannot get value"));
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %rax
testq %rax, %rax
je 0x13afa
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x13a60
cmpl $0x1, %ecx
jne 0x13a8d
movq 0x8(%rax), %rcx
addq $0x8, %rcx
movq 0x8(%rdi), %rax
cmpq %rcx, %rax
je 0x13b19
addq $0x40, %rax
jmp 0x13a94
movq 0x8(%rax), %rcx
movq 0x10(%rdi), %rax
cmpq 0x8(%rcx), %rax
jne 0x13a94
leaq 0x2b0da(%rip), %rdi     # 0x3eb4f
leaq 0x28d7e(%rip), %rsi     # 0x3c7fa
leaq 0x2b01b(%rip), %rcx     # 0x3ea9e
movl $0x257d, %edx           # imm = 0x257D
callq 0x5280
cmpq $0x0, 0x18(%rdi)
jne 0x13a9f
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x5210
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2b0c9(%rip), %rsi     # 0x3eb85
leaq 0x2b0d2(%rip), %rdx     # 0x3eb95
leaq 0x8(%rsp), %rdi
callq 0xa960
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd6, %esi
callq 0x13fd4
xorl %ebp, %ebp
leaq 0x3ee0d(%rip), %rsi     # 0x528f8
leaq -0x2260(%rip), %rdx     # 0x11892
movq %rbx, %rdi
callq 0x56b0
leaq 0x2add5(%rip), %rdi     # 0x3e8d6
leaq 0x28cf2(%rip), %rsi     # 0x3c7fa
leaq 0x2af8f(%rip), %rcx     # 0x3ea9e
movl $0x2571, %edx           # imm = 0x2571
callq 0x5280
leaq 0x2aff7(%rip), %rdi     # 0x3eb17
leaq 0x28cd3(%rip), %rsi     # 0x3c7fa
leaq 0x2af70(%rip), %rcx     # 0x3ea9e
movl $0x2577, %edx           # imm = 0x2577
callq 0x5280
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x13b52
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
testb %bpl, %bpl
jne 0x13b5c
jmp 0x13b64
movq %rax, %r14
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::operator++()
iter_impl& operator++()
    {
        assert(m_object != nullptr);

        switch (m_object->m_type)
        {
            case value_t::object:
            {
                std::advance(m_it.object_iterator, 1);
                break;
            }

            case value_t::array:
            {
                std::advance(m_it.array_iterator, 1);
                break;
            }

            default:
            {
                ++m_it.primitive_iterator;
                break;
            }
        }

        return *this;
    }

// Assembly:
pushq %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x13e50
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x13e40
cmpl $0x1, %eax
jne 0x13e47
movq 0x8(%rbx), %rdi
callq 0x52b0
movq %rax, 0x8(%rbx)
jmp 0x13e4b
addq $0x10, 0x10(%rbx)
jmp 0x13e4b
incq 0x18(%rbx)
movq %rbx, %rax
popq %rbx
retq
leaq 0x2aa7f(%rip), %rdi     # 0x3e8d6
leaq 0x2899c(%rip), %rsi     # 0x3c7fa
leaq 0x2ad84(%rip), %rcx     # 0x3ebe9
movl $0x259e, %edx           # imm = 0x259E
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::operator==(nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>> const&) const
bool operator==(const iter_impl& other) const
    {
        // if objects are not the same, the comparison is undefined
        if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
        {
            JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers"));
        }

        assert(m_object != nullptr);

        switch (m_object->m_type)
        {
            case value_t::object:
                return (m_it.object_iterator == other.m_it.object_iterator);

            case value_t::array:
                return (m_it.array_iterator == other.m_it.array_iterator);

            default:
                return (m_it.primitive_iterator == other.m_it.primitive_iterator);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x13f26
testq %rax, %rax
je 0x13f81
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x13f06
cmpl $0x1, %eax
jne 0x13f10
movq 0x8(%rdi), %rax
cmpq 0x8(%rsi), %rax
jmp 0x13f18
movq 0x10(%rdi), %rax
cmpq 0x10(%rsi), %rax
jmp 0x13f18
movq 0x18(%rdi), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x5210
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2aa16(%rip), %rsi     # 0x3e959
leaq 0x2aa3f(%rip), %rdx     # 0x3e989
leaq 0x8(%rsp), %rdi
callq 0xa960
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x13fd4
xorl %ebp, %ebp
leaq 0x3e986(%rip), %rsi     # 0x528f8
leaq -0x26e7(%rip), %rdx     # 0x11892
movq %rbx, %rdi
callq 0x56b0
leaq 0x2a94e(%rip), %rdi     # 0x3e8d6
leaq 0x2886b(%rip), %rsi     # 0x3c7fa
leaq 0x2a9f4(%rip), %rcx     # 0x3e98a
movl $0x25ef, %edx           # imm = 0x25EF
callq 0x5280
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x13fba
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
testb %bpl, %bpl
jne 0x13fc4
jmp 0x13fcc
movq %rax, %r14
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::iter_impl<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::set_end()
void set_end() noexcept
    {
        assert(m_object != nullptr);

        switch (m_object->m_type)
        {
            case value_t::object:
            {
                m_it.object_iterator = m_object->m_value.object->end();
                break;
            }

            case value_t::array:
            {
                m_it.array_iterator = m_object->m_value.array->end();
                break;
            }

            default:
            {
                m_it.primitive_iterator.set_end();
                break;
            }
        }
    }

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x141a0
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x1418a
cmpl $0x1, %ecx
jne 0x14197
movq 0x8(%rax), %rax
addq $0x8, %rax
movq %rax, 0x8(%rdi)
retq
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rdi)
retq
movq $0x1, 0x18(%rdi)
retq
pushq %rax
leaq 0x2a72e(%rip), %rdi     # 0x3e8d6
leaq 0x2864b(%rip), %rsi     # 0x3c7fa
leaq 0x2a87b(%rip), %rcx     # 0x3ea31
movl $0x252d, %edx           # imm = 0x252D
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>* nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::handle_value<double&>(double&)
JSON_HEDLEY_RETURNS_NON_NULL
    BasicJsonType* handle_value(Value&& v)
    {
        if (ref_stack.empty())
        {
            root = BasicJsonType(std::forward<Value>(v));
            return &root;
        }

        assert(ref_stack.back()->is_array() or ref_stack.back()->is_object());

        if (ref_stack.back()->is_array())
        {
            ref_stack.back()->m_value.array->emplace_back(std::forward<Value>(v));
            return &(ref_stack.back()->m_value.array->back());
        }

        assert(ref_stack.back()->is_object());
        assert(object_element);
        *object_element = BasicJsonType(std::forward<Value>(v));
        return object_element;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x163c3
movq -0x8(%rax), %rax
movzbl (%rax), %ecx
cmpl $0x1, %ecx
je 0x16437
cmpl $0x2, %ecx
jne 0x164c2
movq 0x8(%rax), %rdi
callq 0x16500
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
addq $-0x10, %rax
jmp 0x164b6
leaq 0x20(%rsp), %r14
movsd (%rsi), %xmm0
movb $0x7, -0x8(%r14)
movsd %xmm0, (%r14)
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0xd118
movq %r15, %rdi
callq 0xd118
movq (%rbx), %r12
movq %r15, %rdi
callq 0xd118
movb (%r12), %al
movb (%r15), %cl
movb %cl, (%r12)
movb %al, (%r15)
movq 0x8(%r12), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r15)
movq %r12, %rdi
callq 0xd118
movq %r15, %rdi
callq 0xd118
movzbl (%r15), %esi
movq %r14, %rdi
callq 0xd1ba
movq (%rbx), %rax
jmp 0x164b6
cmpq $0x0, 0x20(%rbx)
je 0x164e1
leaq 0x10(%rsp), %r14
movsd (%rsi), %xmm0
movb $0x7, -0x8(%r14)
movsd %xmm0, (%r14)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xd118
movq %r15, %rdi
callq 0xd118
movq 0x20(%rbx), %r12
movq %r15, %rdi
callq 0xd118
movb (%r12), %al
movb (%r15), %cl
movb %cl, (%r12)
movb %al, (%r15)
movq 0x8(%r12), %rax
movq 0x8(%r15), %rcx
movq %rcx, 0x8(%r12)
movq %rax, 0x8(%r15)
movq %r12, %rdi
callq 0xd118
movq %r15, %rdi
callq 0xd118
movzbl (%r15), %esi
movq %r14, %rdi
callq 0xd1ba
movq 0x20(%rbx), %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2830c(%rip), %rdi     # 0x3e7d5
leaq 0x2632a(%rip), %rsi     # 0x3c7fa
leaq 0x2905a(%rip), %rcx     # 0x3f531
movl $0x1201, %edx           # imm = 0x1201
callq 0x5280
leaq 0x28346(%rip), %rdi     # 0x3e82e
leaq 0x2630b(%rip), %rsi     # 0x3c7fa
leaq 0x2903b(%rip), %rcx     # 0x3f531
movl $0x120a, %edx           # imm = 0x120A
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::input_buffer_adapter::get_character()
std::char_traits<char>::int_type get_character() noexcept override
    {
        if (JSON_HEDLEY_LIKELY(cursor < limit))
        {
            assert(cursor != nullptr and limit != nullptr);
            return std::char_traits<char>::to_int_type(*(cursor++));
        }

        return std::char_traits<char>::eof();
    }

// Assembly:
movq 0x8(%rdi), %rax
cmpq 0x10(%rdi), %rax
jae 0x174e9
testq %rax, %rax
je 0x174ef
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
pushq %rax
leaq 0x284ca(%rip), %rdi     # 0x3f9c1
leaq 0x252fc(%rip), %rsi     # 0x3c7fa
leaq 0x284e3(%rip), %rcx     # 0x3f9e8
movl $0xfac, %edx            # imm = 0xFAC
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: FileManager::createFile(char const*)
bool FileManager::createFile(const char* name) {
    FILE* f = fopen(name, "a+");
    if (f == NULL) return false;
    fclose(f);
    return true;
}

// Assembly:
pushq %rbx
movq %rsi, %rdi
leaq 0x28b06(%rip), %rsi     # 0x40775
callq 0x5470
movq %rax, %rbx
testq %rax, %rax
je 0x17c84
movq %rbx, %rdi
callq 0x5380
testq %rbx, %rbx
setne %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: FileManager::writePage(int, int, unsigned char*)
int FileManager::writePage(int fileID, int pageID, BufType buf) {
    int f = fd[fileID];
    off_t offset = pageID << PAGE_SIZE_INDEX;
    off_t error = lseek(f, offset, SEEK_SET);
    if (error != offset) return -1;
    write(f, buf, PAGE_SIZE);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rcx, %rbx
movslq %esi, %rax
movl (%rdi,%rax,4), %ebp
shll $0xd, %edx
movslq %edx, %r14
movl %ebp, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5750
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %r14, %rcx
jne 0x17e07
movl $0x2000, %edx           # imm = 0x2000
movl %ebp, %edi
movq %rbx, %rsi
callq 0x5180
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: readFile(char const*)
char* readFile(const char* path) {
    int length;
    FILE* file = fopen(path, "rb");
    if (file == nullptr) {
        return nullptr;
    }
    fseek(file, 0, SEEK_END);
    length = ftell(file);
    char* data = new char[length + 1];
    rewind(file);
    length = fread(data, 1, length, file);
    data[length] = '\0';
    fclose(file);
    return data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x28958(%rip), %rsi     # 0x40778
callq 0x5470
testq %rax, %rax
je 0x17e80
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x5400
movq %rbx, %rdi
callq 0x5030
movq %rax, %r15
incl %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r14
movq %rbx, %rdi
callq 0x50a0
movslq %r15d, %rdx
movl $0x1, %esi
movq %r14, %rdi
movq %rbx, %rcx
callq 0x5590
cltq
movb $0x0, (%r14,%rax)
movq %rbx, %rdi
callq 0x5380
jmp 0x17e83
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: dirPath(char const*, char const*)
char* dirPath(const char* dir, const char* path) { // get str "db/dir/path"
    int length = 3 + strlen(dir) + 1 + strlen(path);
    char* data = new char[length + 1];
    strcpy(data, "db/");
    strcpy(data + 3, dir);
    strcpy(data + 3 + strlen(dir), "/");
    strcpy(data + 3 + strlen(dir) + 1, path);
    return data;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x51f0
movq %rax, %r15
movq %rbx, %rdi
callq 0x51f0
addl %r15d, %eax
addl $0x5, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r12
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %r14, %rsi
callq 0x5360
leaq (%r12,%r15), %rdi
addq $0x4, %rdi
movw $0x2f, -0x1(%rdi)
movq %rbx, %rsi
callq 0x5360
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: dirPath(char const*, char const*, char const*)
char* dirPath(const char* dir, const char* filename, const char* filetype) { // get str "db/dir/filename.filetype"
    int length = 3 + strlen(dir) + 1 + strlen(filename) + 1 + strlen(filetype);
    char* data = new char[length + 1];
    strcpy(data, "db/");
    strcpy(data + 3, dir);
    strcpy(data + 3 + strlen(dir), "/");
    strcpy(data + 3 + strlen(dir) + 1, filename);
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename), ".");
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename) + 1, filetype);
    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
callq 0x51f0
movq %rax, %r13
movq %r14, %rdi
callq 0x51f0
movq %rax, %r15
movq %rbx, %rdi
callq 0x51f0
leal (%r15,%r13), %ecx
addl %ecx, %eax
addl $0x6, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %rbp
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %r12, %rsi
callq 0x5360
leaq 0x3(,%r13), %r12
addq %rbp, %r12
leaq 0x4(,%r13), %rdi
addq %rbp, %rdi
movw $0x2f, -0x1(%rdi)
movq %r14, %rsi
callq 0x5360
leaq (%r15,%r12), %rdi
addq $0x2, %rdi
movw $0x2e, -0x1(%rdi)
movq %rbx, %rsi
callq 0x5360
movq %rbp, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: dirPath(char const*, char const*, char const*, char const*)
char* dirPath(const char* dir, const char* filename, const char* subname, const char* filetype) { // get str "db/dir/filename_subname.filetype"
    int length = 3 + strlen(dir) + 1 + strlen(filename) + 1 + strlen(subname) + 1 + strlen(filetype);
    char* data = new char[length + 1];
    strcpy(data, "db/");
    strcpy(data + 3, dir);
    strcpy(data + 3 + strlen(dir), "/");
    strcpy(data + 3 + strlen(dir) + 1, filename);
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename), "_");
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename) + 1, subname);
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename) + 1 + strlen(subname), ".");
    strcpy(data + 3 + strlen(dir) + 1 + strlen(filename) + 1 + strlen(subname) + 1, filetype);
    return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rcx, 0x10(%rsp)
movq %rdx, %r12
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %rbp
callq 0x51f0
movq %rax, %rbx
movq %r15, %rdi
callq 0x51f0
movq %rax, %r13
movq %r12, %rdi
callq 0x51f0
movq %rax, %r12
movq %r14, %rdi
callq 0x51f0
leal (%rbx,%r13), %ecx
addl %r12d, %ecx
addl %ecx, %eax
addl $0x7, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r14
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %rbp, %rsi
callq 0x5360
leaq (%r14,%rbx), %rbp
addq $0x3, %rbp
leaq (%r14,%rbx), %rdi
addq $0x4, %rdi
movw $0x2f, -0x1(%rdi)
movq %r15, %rsi
callq 0x5360
leaq 0x1(,%rbp), %rbx
addq %r13, %rbx
leaq 0x2(,%rbp), %rdi
addq %r13, %rdi
movw $0x5f, -0x1(%rdi)
movq 0x8(%rsp), %rsi
callq 0x5360
leaq (%r12,%rbx), %rdi
addq $0x2, %rdi
movw $0x2e, -0x1(%rdi)
movq 0x10(%rsp), %rsi
callq 0x5360
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: cleanFiles(char const*)
int cleanFiles(const char *dir) { // clean file(s)
    char dir_name[512];
    DIR *dirp;
    struct dirent *dp;
    struct stat dir_stat;
    int tmp;

    // if can't access, nothing to do
    if ( 0 != access(dir, F_OK) ) {
        return 0;
    }

    // if can't get direcrtory stat, fail
    if ( 0 > stat(dir, &dir_stat) ) {
        perror("get directory stat error");
        return -1;
    }

    if ( S_ISREG(dir_stat.st_mode) ) { // files
        remove(dir);
    } else if ( S_ISDIR(dir_stat.st_mode) ) { // folder
        dirp = opendir(dir);
        while ( (dp=readdir(dirp)) != NULL ) {
            if ( (0 == strcmp(".", dp->d_name)) || (0 == strcmp("..", dp->d_name)) ) { // Ignore . & ..
                continue;
            }
            sprintf(dir_name, "%s/%s", dir, dp->d_name);
            if ((tmp = cleanFiles(dir_name)) != 0) {
                return tmp;
            }
        }
        closedir(dirp);
        rmdir(dir); // remove empty folder
    } else {
        perror("unknow file type!");
        return -1;    
    }
    
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x290, %rsp            # imm = 0x290
movq %rdi, %r14
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x5670
testl %eax, %eax
jne 0x181f1
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5350
testl %eax, %eax
js 0x181d7
movl $0xf000, %eax           # imm = 0xF000
andl 0x18(%rsp), %eax
cmpl $0x4000, %eax           # imm = 0x4000
je 0x18143
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x181e0
movq %r14, %rdi
callq 0x5700
jmp 0x181f1
movq %r14, %rdi
callq 0x55a0
movq %rax, %r15
movq %rax, %rdi
callq 0x55b0
testq %rax, %rax
je 0x181c5
leaq 0x28635(%rip), %r12     # 0x40797
leaq 0x90(%rsp), %r13
movzbl 0x13(%rax), %edx
cmpl $0x2e, %edx
jne 0x1818a
cmpb $0x0, 0x14(%rax)
je 0x181b8
movzbl 0x14(%rax), %ecx
subl $0x2e, %ecx
jne 0x18186
movzbl 0x15(%rax), %ecx
negl %ecx
jmp 0x18191
movl $0x2e, %ecx
subl %edx, %ecx
testl %ecx, %ecx
je 0x181b8
addq $0x13, %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x50f0
movq %r13, %rdi
callq 0x180e4
testl %eax, %eax
jne 0x181ec
movq %r15, %rdi
callq 0x55b0
testq %rax, %rax
jne 0x1816a
movq %r15, %rdi
callq 0x5620
movq %r14, %rdi
callq 0x51d0
jmp 0x181f1
leaq 0x285a0(%rip), %rdi     # 0x4077e
jmp 0x181e7
leaq 0x285b6(%rip), %rdi     # 0x4079d
callq 0x5320
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x290, %rsp            # imm = 0x290
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/FileManager.cpp
// Function: checkFile(char const*)
int checkFile(const char *filename) { // file exists? 1: exist, 0: null, -1: error
    struct stat dir_stat;
    if ( 0 != access(filename, F_OK) ) return 0;
    if ( 0 > stat(filename, &dir_stat) ) return -1;
    if ( S_ISREG(dir_stat.st_mode) ) return 1;
    return -1;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r14
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x5670
testl %eax, %eax
jne 0x18274
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x5350
testl %eax, %eax
js 0x1826f
movl $0xf000, %eax           # imm = 0xF000
andl 0x20(%rsp), %eax
xorl %ecx, %ecx
cmpl $0x8000, %eax           # imm = 0x8000
sete %cl
leal -0x1(,%rcx,2), %ebx
jmp 0x18274
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/Konano[P]UselessDatabase/Hash.cpp
// Function: Hash::find(int, int)
int Hash::find(int fileID, int pageID) {
    int id = hash(fileID, pageID);
    while (flag[id] && bpm->check(fileID, pageID, table[id]) == false) {
        id++;
    }
    if (flag[id] == false) return -1;
    return table[id];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movl $0x3ffff, %eax          # imm = 0x3FFFF
leal (%r14,%rax), %ecx
testl %edx, %edx
cmovnsl %edx, %ecx
movq %rdi, %rbx
movl $0xfffc0000, %edx       # imm = 0xFFFC0000
andl %edx, %ecx
movl %r14d, %esi
subl %ecx, %esi
imull $0x83, %esi, %ecx
addl %ebp, %ecx
addl %ecx, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
andl %edx, %eax
subl %eax, %ecx
movslq %ecx, %r15
movb 0x80000(%rdi,%r15), %al
cmpb $0x1, %al
jne 0x182fe
movq 0xc0000(%rbx), %rdi
movzwl (%rbx,%r15,2), %ecx
movl %ebp, %esi
movl %r14d, %edx
callq 0x68b6
testb %al, %al
jne 0x182f6
movb 0x80001(%rbx,%r15), %al
incq %r15
jmp 0x182cb
movb 0x80000(%rbx,%r15), %al
testb %al, %al
je 0x18309
movzwl (%rbx,%r15,2), %eax
jmp 0x1830e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop