// File: /workspace/github_cpp_makefile_star2_O3/Falldog[P]dcinja/src/include/nlohmann/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, std::vector<unsigned char, std::allocator<unsigned char>>>> 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, std::vector<unsigned char, std::allocator<unsigned char>>>::erase<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, std::vector<unsigned char, std::allocator<unsigned char>>>>, 0>(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, std::vector<unsigned char, std::allocator<unsigned char>>>>)
IteratorType erase(IteratorType pos)
    {
        // make sure iterator fits the current value
        if (JSON_HEDLEY_UNLIKELY(this != pos.m_object))
        {
            JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value"));
        }

        IteratorType result = end();

        switch (m_type)
        {
            case value_t::boolean:
            case value_t::number_float:
            case value_t::number_integer:
            case value_t::number_unsigned:
            case value_t::string:
            case value_t::binary:
            {
                if (JSON_HEDLEY_UNLIKELY(!pos.m_it.primitive_iterator.is_begin()))
                {
                    JSON_THROW(invalid_iterator::create(205, "iterator out of range"));
                }

                if (is_string())
                {
                    AllocatorType<string_t> alloc;
                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.string);
                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.string, 1);
                    m_value.string = nullptr;
                }
                else if (is_binary())
                {
                    AllocatorType<binary_t> alloc;
                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_value.binary);
                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_value.binary, 1);
                    m_value.binary = nullptr;
                }

                m_type = value_t::null;
                assert_invariant();
                break;
            }

            case value_t::object:
            {
                result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
                break;
            }

            case value_t::array:
            {
                result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
                break;
            }

            default:
                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name())));
        }

        return result;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpq %rsi, (%rdx)
jne 0x2727f
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%rdi)
callq 0x3e5a6
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x271e2
cmpq $0x0, 0x18(%r15)
jne 0x272df
cmpl $0x8, %eax
je 0x27203
cmpl $0x3, %eax
jne 0x27236
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0x27225
movq (%rcx), %rsi
incq %rsi
jmp 0x2721a
cmpl $0x1, %eax
je 0x27254
cmpl $0x2, %eax
jne 0x2733c
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x28122
movq %rax, 0x10(%rbx)
jmp 0x27242
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x27225
movq 0x10(%rdi), %rsi
subq %rax, %rsi
movq %rax, %rdi
callq 0x93c0
movq (%r15), %rdi
movl $0x20, %esi
callq 0x93c0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
callq 0x24080
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %r13
addq $0x8, %r13
movq 0x8(%r14), %r14
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x92c0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x280e4
movq %r12, (%r13)
jmp 0x27242
movl $0x20, %edi
callq 0x91f0
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x30354(%rip), %rsi     # 0x575f0
leaq 0x30370(%rip), %rdx     # 0x57613
leaq 0x8(%rsp), %rdi
callq 0x126d8
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
callq 0x279ec
xorl %ebp, %ebp
leaq 0x4fcb5(%rip), %rsi     # 0x76f80
leaq 0x2e84(%rip), %rdx      # 0x2a156
movq %rbx, %rdi
callq 0x9750
jmp 0x273b9
movl $0x20, %edi
callq 0x91f0
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x30318(%rip), %rsi     # 0x57614
leaq 0x30326(%rip), %rdx     # 0x57629
leaq 0x8(%rsp), %rdi
callq 0x126d8
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
callq 0x279ec
xorl %ebp, %ebp
leaq 0x4fc55(%rip), %rsi     # 0x76f80
leaq 0x2e24(%rip), %rdx      # 0x2a156
movq %rbx, %rdi
callq 0x9750
jmp 0x273b9
movl $0x20, %edi
callq 0x91f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x280c4
movq %rax, %r14
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rax, %rdi
callq 0x91b0
leaq (%rax,%r14), %rdx
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x126d8
leaq 0x302ad(%rip), %rsi     # 0x5762a
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x1dcc6
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
callq 0x27f5e
xorl %ebp, %ebp
leaq 0x4fc3e(%rip), %rsi     # 0x76fe8
leaq 0x2da5(%rip), %rdx      # 0x2a156
movq %rbx, %rdi
callq 0x9750
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x273d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x93c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x27424
movq 0x38(%rsp), %rsi
jmp 0x2741c
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x2742e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x93c0
jmp 0x2742e
jmp 0x2742b
jmp 0x2740a
jmp 0x2742b
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x27424
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x93c0
testb %bpl, %bpl
jne 0x2742e
jmp 0x27436
movq %rax, %r14
movq %rbx, %rdi
callq 0x92e0
movq %r14, %rdi
callq 0x9790