LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc8da
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xc8f9
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0xcb85
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 0xcccc
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x312b1(%rip), %rdi     # 0x3db92
leaq 0x30f15(%rip), %rsi     # 0x3d7fd
leaq 0x31413(%rip), %rcx     # 0x3dd02
movl $0x34e1, %edx           # imm = 0x34E1
callq 0x5280
leaq 0x31461(%rip), %rdi     # 0x3dd61
leaq 0x30ef6(%rip), %rsi     # 0x3d7fd
leaq 0x313f4(%rip), %rcx     # 0x3dd02
movl $0x34e2, %edx           # imm = 0x34E2
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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 0xce15
js 0xce0f
addq %rdi, %rdi
decl %esi
testq %rdi, %rdi
jns 0xce05
movq %rdi, %rax
movl %esi, %edx
retq
pushq %rax
leaq 0x30fa9(%rip), %rdi     # 0x3ddc6
leaq 0x309d9(%rip), %rsi     # 0x3d7fd
leaq 0x30fa4(%rip), %rcx     # 0x3ddcf
movl $0x31f7, %edx           # imm = 0x31F7
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xce56
movq (%rdi), %rdx
movq %rdx, %rax
shlq %cl, %rax
movq %rax, %rdi
shrq %cl, %rdi
cmpq %rdx, %rdi
jne 0xce75
movl %esi, %edx
popq %rcx
retq
leaq 0x30fb4(%rip), %rdi     # 0x3de11
leaq 0x30999(%rip), %rsi     # 0x3d7fd
leaq 0x30fb1(%rip), %rcx     # 0x3de1c
movl $0x320a, %edx           # imm = 0x320A
callq 0x5280
leaq 0x30ff8(%rip), %rdi     # 0x3de74
leaq 0x3097a(%rip), %rsi     # 0x3d7fd
leaq 0x30f92(%rip), %rcx     # 0x3de1c
movl $0x320b, %edx           # imm = 0x320B
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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 0xd4ad
cmpq %rcx, %rdx
ja 0xd4cc
movq %rcx, %r10
subq %r8, %r10
jb 0xd4eb
testq %r9, %r9
je 0xd50a
movq %rdx, %rax
subq %r8, %rax
setbe %r11b
cmpq %r9, %r10
setb %r10b
orb %r11b, %r10b
jne 0xd48c
movl %esi, %esi
addq %r9, %r8
subq %r8, %rcx
movq %rdx, %r10
negq %r10
cmpq %rdx, %r8
jb 0xd462
leaq (%r10,%r8), %r11
cmpq %r11, %rax
jbe 0xd48c
movb -0x1(%rdi,%rsi), %r11b
cmpb $0x30, %r11b
je 0xd48e
decb %r11b
movb %r11b, -0x1(%rdi,%rsi)
subq %r9, %rcx
setb %r11b
cmpq %rdx, %r8
jae 0xd48c
subq %r9, %rax
addq %r9, %r8
testb %r11b, %r11b
je 0xd454
popq %rax
retq
leaq 0x30d41(%rip), %rdi     # 0x3e1d6
leaq 0x30361(%rip), %rsi     # 0x3d7fd
leaq 0x30c95(%rip), %rcx     # 0x3e138
movl $0x33a5, %edx           # imm = 0x33A5
callq 0x5280
leaq 0x30c7b(%rip), %rdi     # 0x3e12f
leaq 0x30342(%rip), %rsi     # 0x3d7fd
leaq 0x30c76(%rip), %rcx     # 0x3e138
movl $0x3389, %edx           # imm = 0x3389
callq 0x5280
leaq 0x30cdd(%rip), %rdi     # 0x3e1b0
leaq 0x30323(%rip), %rsi     # 0x3d7fd
leaq 0x30c57(%rip), %rcx     # 0x3e138
movl $0x338a, %edx           # imm = 0x338A
callq 0x5280
leaq 0x30ccc(%rip), %rdi     # 0x3e1be
leaq 0x30304(%rip), %rsi     # 0x3d7fd
leaq 0x30c38(%rip), %rcx     # 0x3e138
movl $0x338b, %edx           # imm = 0x338B
callq 0x5280
leaq 0x30cbb(%rip), %rdi     # 0x3e1cc
leaq 0x302e5(%rip), %rsi     # 0x3d7fd
leaq 0x30c19(%rip), %rcx     # 0x3e138
movl $0x338c, %edx           # imm = 0x338C
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xed75
cmpl $0x7, %eax
je 0xed7b
cmpl $0x6, %eax
jne 0xedae
movq 0x8(%r14), %rax
jmp 0xeda0
movsd 0x8(%r14), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x2e42b(%rip), %xmm0    # 0x3d1c0
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 0xedd2
leaq 0x44cec(%rip), %rcx     # 0x53ab8
movq (%rcx,%rax,8), %r14
jmp 0xedd9
leaq 0x2f71f(%rip), %r14     # 0x3e4f8
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 0xaccc
leaq 0x2f71a(%rip), %rsi     # 0x3e51c
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xc0ee
movb $0x1, %bpl
leaq 0x28(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi            # imm = 0x12E
callq 0xbf2e
xorl %ebp, %ebp
leaq 0x44a09(%rip), %rsi     # 0x53838
leaq 0x2fd6(%rip), %rdx      # 0x11e0c
movq %rbx, %rdi
callq 0x56b0
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xee64
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53a0
jmp 0xee64
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xee83
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
jmp 0xee83
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xee90
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x57f2
cmpl $0xef, %eax
je 0xf7d4
movq %rbx, %rdi
callq 0x1009c
movb $0x1, %al
popq %rbx
retq
movq %rbx, %rdi
callq 0x57f2
cmpl $0xbb, %eax
je 0xf7e7
xorl %eax, %eax
jmp 0xf7d2
movq %rbx, %rdi
callq 0x57f2
cmpl $0xbf, %eax
sete %al
jmp 0xf7d2
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0xf859
movl %ecx, %ebx
movq %rdx, %r15
cmpq $0x2, %rdx
jb 0xf83b
movq %rsi, %r12
movq %rdi, %r14
movl $0x1, %r13d
movq %r14, %rdi
callq 0x57f2
movsbl (%r12,%r13), %ecx
cmpl %ecx, %eax
jne 0xf847
incq %r13
cmpq %r13, %r15
jne 0xf822
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2ee09(%rip), %rax     # 0x3e657
movq %rax, 0x68(%r14)
movl $0xe, %ebx
jmp 0xf83b
leaq 0x2ee87(%rip), %rdi     # 0x3e6e7
leaq 0x2df96(%rip), %rsi     # 0x3d7fd
leaq 0x2ee94(%rip), %rcx     # 0x3e702
movl $0x2097, %edx           # imm = 0x2097
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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 0x100b3
leaq 0x20(%rdi), %rcx
jmp 0x100c0
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x100c6
leaq 0x28(%rdi), %rcx
decq %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x10(%rdi)
je 0x100dd
movq 0x38(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x100de
decq %rax
movq %rax, 0x38(%rdi)
retq
pushq %rax
leaq 0x2e581(%rip), %rdi     # 0x3e667
leaq 0x2d710(%rip), %rsi     # 0x3d7fd
leaq 0x2e58c(%rip), %rcx     # 0x3e680
movl $0x20f3, %edx           # imm = 0x20F3
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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>>::next_byte_in_range(std::initializer_list<int>)
bool next_byte_in_range(std::initializer_list<int> ranges)
    {
        assert(ranges.size() == 2 or ranges.size() == 4 or ranges.size() == 6);
        add(current);

        for (auto range = ranges.begin(); range != ranges.end(); ++range)
        {
            get();
            if (JSON_HEDLEY_LIKELY(*range <= current and current <= *(++range)))
            {
                add(current);
            }
            else
            {
                error_message = "invalid string: ill-formed UTF-8 byte";
                return false;
            }
        }

        return true;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x6, %rdx
ja 0x10338
movq %rdx, %r12
movl $0x54, %eax
btq %rdx, %rax
jae 0x10338
movq %rsi, %r14
movq %rdi, %rbx
movsbl 0x10(%rdi), %esi
leaq 0x48(%rdi), %r15
movq %r15, %rdi
callq 0x5330
testq %r12, %r12
sete %bpl
je 0x10329
leaq (%r14,%r12,4), %r12
movq %rbx, %rdi
callq 0x57f2
movl 0x10(%rbx), %eax
cmpl %eax, (%r14)
jg 0x1031a
cmpl 0x4(%r14), %eax
leaq 0x4(%r14), %r14
setle %cl
testb %cl, %cl
je 0x1031e
movsbl %al, %esi
movq %r15, %rdi
callq 0x5330
addq $0x4, %r14
cmpq %r12, %r14
sete %bpl
jne 0x102e1
jmp 0x10329
xorl %ecx, %ecx
jmp 0x102fc
leaq 0x2ef7c(%rip), %rax     # 0x3f2a1
movq %rax, 0x68(%rbx)
andb $0x1, %bpl
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f031(%rip), %rdi     # 0x3f370
leaq 0x2d4b7(%rip), %rsi     # 0x3d7fd
leaq 0x2f062(%rip), %rcx     # 0x3f3af
movl $0x1ca2, %edx           # imm = 0x1CA2
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x111e1
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 0x112e7
leaq 0x2c43b(%rip), %rcx     # 0x3d664
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 0x1616e
leaq 0x4270f(%rip), %rsi     # 0x53960
jmp 0x112d8
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1623a
leaq 0x4262b(%rip), %rsi     # 0x538a0
jmp 0x112d8
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1620c
leaq 0x425a2(%rip), %rsi     # 0x53838
jmp 0x112d8
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x161b0
leaq 0x42629(%rip), %rsi     # 0x538e0
jmp 0x112d8
movl $0x20, %edi
callq 0x5210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x161de
leaq 0x42620(%rip), %rsi     # 0x538f8
leaq 0xb2d(%rip), %rdx       # 0x11e0c
movq %r14, %rdi
callq 0x56b0
leaq 0x2c632(%rip), %rdi     # 0x3d920
leaq 0x2c508(%rip), %rsi     # 0x3d7fd
leaq 0x2eedf(%rip), %rcx     # 0x401db
movl $0x12db, %edx           # imm = 0x12DB
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1138d
leaq 0x2ef5c(%rip), %r14     # 0x4029a
leaq 0x8(%rsp), %r15
movzbl (%r13), %ecx
cmpl $0x1f, %ecx
ja 0x1137a
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 0x11385
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x5330
incq %r13
cmpq %rbp, %r13
jne 0x11343
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x113a1
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x113b8
movq (%r12), %rsi
incq %rsi
callq 0x53a0
movq %r14, %rdi
callq 0x56e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x14974
movq 0x10(%rbx), %rax
subq 0x8(%rbx), %rax
shrq $0x3, %rax
movl %eax, 0xc(%rsp)
movb $0x4, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x13646
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 0x12d56
testb %bpl, %bpl
je 0x1361f
movq 0x10(%rbx), %rax
cmpq $0x0, -0x8(%rax)
je 0x1361f
leaq 0xa8(%rbx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x94e0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
movq %r14, %rsi
callq 0x149a0
movq %rax, %r14
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0xd52a
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 0xd52a
movq %r14, 0x70(%rbx)
movq %r15, %rdi
callq 0xd52a
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd5cc
leaq 0x10(%rsp), %rdi
callq 0xd52a
leaq 0x18(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0xd5cc
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 0x915e
jmp 0x1365d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x915e
movq %rbx, %rdi
callq 0x56e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
testq %rcx, %rcx
je 0x138d9
subq 0x8(%rbx), %rax
shrq $0x3, %rax
decl %eax
movl %eax, 0xc(%rsp)
movb $0x3, 0xb(%rsp)
cmpq $0x0, 0x90(%rbx)
je 0x139b4
leaq 0x80(%rbx), %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rdx
callq *0x98(%rbx)
movl %eax, %ebp
testb %al, %al
jne 0x138dc
leaq 0xa8(%rbx), %rsi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x94e0
movq 0x10(%rbx), %rax
movq -0x8(%rax), %r15
movq %r14, %rdi
callq 0xd52a
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 0xd52a
movq %r14, %rdi
callq 0xd52a
movzbl -0x8(%r12), %esi
movq %r12, %rdi
callq 0xd5cc
jmp 0x138dc
movb $0x1, %bpl
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq %rax, %rcx
je 0x13976
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 0x13995
leaq -0x8(%rax), %rdi
movq %rdi, 0x10(%rbx)
subl $0x1, %esi
movl %esi, 0x38(%rbx)
jae 0x1392e
movl $0x3f, 0x38(%rbx)
addq $-0x8, %rdx
movq %rdx, 0x30(%rbx)
cmpq %rdi, %rcx
sete %cl
orb %cl, %bpl
jne 0x13967
movq -0x10(%rax), %rax
cmpb $0x2, (%rax)
jne 0x13967
movq 0x8(%rax), %rax
movq 0x8(%rax), %rbx
leaq -0x10(%rbx), %rdi
movq %rdi, 0x8(%rax)
callq 0xd52a
movzbl -0x10(%rbx), %esi
addq $-0x8, %rbx
movq %rbx, %rdi
callq 0xd5cc
movb $0x1, %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2bec3(%rip), %rdi     # 0x3f840
leaq 0x29e79(%rip), %rsi     # 0x3d7fd
leaq 0x2c2fd(%rip), %rcx     # 0x3fc88
movl $0x12b8, %edx           # imm = 0x12B8
callq 0x5280
leaq 0x2bd4d(%rip), %rdi     # 0x3f6e9
leaq 0x29e5a(%rip), %rsi     # 0x3d7fd
leaq 0x2c2de(%rip), %rcx     # 0x3fc88
movl $0x12b9, %edx           # imm = 0x12B9
callq 0x5280
callq 0x51a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1418c
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x140f2
cmpl $0x1, %ecx
jne 0x1411f
movq 0x8(%rax), %rcx
addq $0x8, %rcx
movq 0x8(%rdi), %rax
cmpq %rcx, %rax
je 0x141ab
addq $0x40, %rax
jmp 0x14126
movq 0x8(%rax), %rcx
movq 0x10(%rdi), %rax
cmpq 0x8(%rcx), %rax
jne 0x14126
leaq 0x2ba4b(%rip), %rdi     # 0x3fb52
leaq 0x296ef(%rip), %rsi     # 0x3d7fd
leaq 0x2b98c(%rip), %rcx     # 0x3faa1
movl $0x257d, %edx           # imm = 0x257D
callq 0x5280
cmpq $0x0, 0x18(%rdi)
jne 0x14131
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 0x2ba3a(%rip), %rsi     # 0x3fb88
leaq 0x2ba43(%rip), %rdx     # 0x3fb98
leaq 0x8(%rsp), %rdi
callq 0xaccc
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd6, %esi
callq 0x14644
xorl %ebp, %ebp
leaq 0x3f77b(%rip), %rsi     # 0x538f8
leaq -0x2378(%rip), %rdx     # 0x11e0c
movq %rbx, %rdi
callq 0x56b0
leaq 0x2b746(%rip), %rdi     # 0x3f8d9
leaq 0x29663(%rip), %rsi     # 0x3d7fd
leaq 0x2b900(%rip), %rcx     # 0x3faa1
movl $0x2571, %edx           # imm = 0x2571
callq 0x5280
leaq 0x2b968(%rip), %rdi     # 0x3fb1a
leaq 0x29644(%rip), %rsi     # 0x3d7fd
leaq 0x2b8e1(%rip), %rcx     # 0x3faa1
movl $0x2577, %edx           # imm = 0x2577
callq 0x5280
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x141ec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
jmp 0x141ec
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x141f9
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x144bc
movq %rdi, %rbx
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x144ac
cmpl $0x1, %eax
jne 0x144b3
movq 0x8(%rbx), %rdi
callq 0x52b0
movq %rax, 0x8(%rbx)
jmp 0x144b7
addq $0x10, 0x10(%rbx)
jmp 0x144b7
incq 0x18(%rbx)
movq %rbx, %rax
popq %rbx
retq
leaq 0x2b416(%rip), %rdi     # 0x3f8d9
leaq 0x29333(%rip), %rsi     # 0x3d7fd
leaq 0x2b71b(%rip), %rcx     # 0x3fbec
movl $0x259e, %edx           # imm = 0x259E
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x14592
testq %rax, %rax
je 0x145ed
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x14572
cmpl $0x1, %eax
jne 0x1457c
movq 0x8(%rdi), %rax
cmpq 0x8(%rsi), %rax
jmp 0x14584
movq 0x10(%rdi), %rax
cmpq 0x10(%rsi), %rax
jmp 0x14584
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 0x2b3ad(%rip), %rsi     # 0x3f95c
leaq 0x2b3d6(%rip), %rdx     # 0x3f98c
leaq 0x8(%rsp), %rdi
callq 0xaccc
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x14644
xorl %ebp, %ebp
leaq 0x3f31a(%rip), %rsi     # 0x538f8
leaq -0x27d9(%rip), %rdx     # 0x11e0c
movq %rbx, %rdi
callq 0x56b0
leaq 0x2b2e5(%rip), %rdi     # 0x3f8d9
leaq 0x29202(%rip), %rsi     # 0x3d7fd
leaq 0x2b38b(%rip), %rcx     # 0x3f98d
movl $0x25ef, %edx           # imm = 0x25EF
callq 0x5280
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1462e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53a0
jmp 0x1462e
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x1463b
movq %rbx, %rdi
callq 0x52d0
movq %r14, %rdi
callq 0x56e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x14810
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0x147fa
cmpl $0x1, %ecx
jne 0x14807
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 0x2b0c1(%rip), %rdi     # 0x3f8d9
leaq 0x28fde(%rip), %rsi     # 0x3d7fd
leaq 0x2b20e(%rip), %rcx     # 0x3fa34
movl $0x252d, %edx           # imm = 0x252D
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O1/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 0x17c3f
testq %rax, %rax
je 0x17c45
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
pushq %rax
leaq 0x28d77(%rip), %rdi     # 0x409c4
leaq 0x25ba9(%rip), %rsi     # 0x3d7fd
leaq 0x28d90(%rip), %rcx     # 0x409eb
movl $0xfac, %edx            # imm = 0xFAC
callq 0x5280
nop
// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]UselessDatabase/FileManager.cpp
// Function: FileManager::closeFile(int)
bool FileManager::closeFile(int fileID) {
    setFlag(fileID, 0);
    bpm->closeFile(fileID);
    close(fd[fileID]);
    return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq $-0x1, %rax
movl %ebx, %ecx
shlq %cl, %rax
movq $-0x1, %rcx
xorl %edx, %edx
testb $0x40, %bl
cmovneq %rax, %rcx
cmoveq %rax, %rdx
movq %rdi, %r14
addq %rdx, 0x200(%rdi)
adcq %rcx, 0x208(%rdi)
movq 0x210(%rdi), %rdi
callq 0x6920
movslq %ebx, %rax
movl (%r14,%rax,4), %edi
callq 0x57c0
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x293b6(%rip), %rsi     # 0x41785
callq 0x5470
movq %rax, %rbx
testq %rax, %rax
je 0x183e4
movq %rbx, %rdi
callq 0x5380
testq %rbx, %rbx
setne %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]UselessDatabase/FileManager.cpp
// Function: FileManager::openFile(char const*, int&)
bool FileManager::openFile(const char* name, int& fileID) {
    int f = open(name, O_RDWR);
    if (f == -1) return false;
    fileID = alloc();
    setFlag(fileID, 1);
    fd[fileID] = f;
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
xorl %ebp, %ebp
movq %rsi, %rdi
movl $0x2, %esi
xorl %eax, %eax
callq 0x52e0
cmpl $-0x1, %eax
je 0x184d0
movq 0x200(%rbx), %rdi
movq 0x208(%rbx), %r8
movl $0x6, %edx
movq $-0x1, %r10
movq %rdi, %r9
movq %r8, %r11
movl $0x1, %esi
movl %edx, %ecx
shll %cl, %esi
movq $-0x1, %r12
movl %esi, %ecx
shlq %cl, %r12
xorl %r15d, %r15d
testb $0x40, %sil
movq %r12, %rcx
cmovneq %r15, %rcx
cmoveq %r10, %r12
orq %r11, %r12
orq %r9, %rcx
andq %r12, %rcx
cmpq $-0x1, %rcx
je 0x1846c
xorl %esi, %esi
movl %esi, %ecx
shrdq %cl, %r11, %r9
shrq %cl, %r11
addl %esi, %ebp
testb $0x40, %sil
cmovneq %r11, %r9
cmovneq %r15, %r11
addl $-0x1, %edx
jb 0x18434
movl $0x1, %edx
andq %rdx, %r9
xorl %esi, %esi
negq %r9
movl $0x0, %ecx
sbbl %ecx, %ecx
orl %ebp, %ecx
xorl %r9d, %r9d
shldq %cl, %rdx, %r9
shlq %cl, %rdx
movl %ecx, (%r14)
testb $0x40, %cl
cmovneq %rdx, %r9
cmovneq %rsi, %rdx
orq %r8, %r9
orq %rdi, %rdx
movq %r9, 0x208(%rbx)
movq %rdx, 0x200(%rbx)
movslq %ecx, %rcx
movl %eax, (%rbx,%rcx,4)
cmpl $-0x1, %eax
setne %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]UselessDatabase/FileManager.cpp
// Function: FileManager::readPage(int, int, unsigned char*)
int FileManager::readPage(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;
    read(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 0x18525
movl $0x2000, %edx           # imm = 0x2000
movl %ebp, %edi
movq %rbx, %rsi
callq 0x5560
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x18567
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_O1/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 0x29208(%rip), %rsi     # 0x41788
callq 0x5470
testq %rax, %rax
je 0x185e0
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 0x185e3
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]UselessDatabase/FileManager.cpp
// Function: dirPath(char const*)
char* dirPath(const char* dir) { // get str "db/dir"
    int length = 3 + strlen(dir);
    char* data = new char[length + 1];
    strcpy(data, "db/");
    strcpy(data + 3, dir);
    return data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x51f0
addl $0x4, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r14
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %rbx, %rsi
callq 0x5360
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
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, %r15
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %r14, %rsi
callq 0x5360
movq %r14, %rdi
callq 0x51f0
leaq (%r15,%rax), %rdi
addq $0x4, %rdi
movw $0x2f, -0x1(%rdi)
movq %rbx, %rsi
callq 0x5360
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x51f0
movq %rax, %r12
movq %r14, %rdi
callq 0x51f0
movq %rax, %r13
movq %rbx, %rdi
callq 0x51f0
addl %r12d, %r13d
addl %r13d, %eax
addl $0x6, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r12
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %r15, %rsi
callq 0x5360
movq %r15, %rdi
callq 0x51f0
leaq (%r12,%rax), %rdi
addq $0x4, %rdi
movw $0x2f, -0x1(%rdi)
movq %r14, %rsi
callq 0x5360
movq %r15, %rdi
callq 0x51f0
leaq (%r12,%rax), %r15
addq $0x3, %r15
movq %r14, %rdi
callq 0x51f0
leaq (%rax,%r15), %rdi
addq $0x2, %rdi
movw $0x2e, -0x1(%rdi)
movq %rbx, %rsi
callq 0x5360
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movq %rdx, (%rsp)
movq %rsi, %r15
movq %rdi, %r12
callq 0x51f0
movq %rax, %r13
movq %r15, %rdi
callq 0x51f0
movq %rax, %rbp
movq %rbx, %rdi
callq 0x51f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x51f0
addl %r13d, %ebp
addl %ebp, %ebx
addl %ebx, %eax
addl $0x7, %eax
movslq %eax, %rdi
callq 0x5040
movq %rax, %r13
movl $0x2f6264, (%rax)       # imm = 0x2F6264
leaq 0x3(%rax), %rdi
movq %r12, %rsi
callq 0x5360
movq %r12, %rdi
callq 0x51f0
leaq (%rax,%r13), %rdi
addq $0x4, %rdi
movw $0x2f, -0x1(%rdi)
movq %r15, %rsi
callq 0x5360
movq %r12, %rdi
callq 0x51f0
leaq (%rax,%r13), %rbx
addq $0x3, %rbx
movq %r15, %rdi
callq 0x51f0
leaq (%rax,%rbx), %rdi
addq $0x2, %rdi
movw $0x5f, -0x1(%rdi)
movq (%rsp), %rbp
movq %rbp, %rsi
callq 0x5360
movq %r12, %rdi
callq 0x51f0
leaq (%rax,%r13), %r12
addq $0x3, %r12
movq %r15, %rdi
callq 0x51f0
movq %rax, %rbx
addq %r12, %rbx
movq %rbp, %rdi
callq 0x51f0
leaq (%rax,%rbx), %rdi
addq $0x3, %rdi
movw $0x2e, -0x1(%rdi)
movq %r14, %rsi
callq 0x5360
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq