// File: /workspace/github_cpp_makefile_star2_O1/xelia-it[P]mustache/test/src/../../src/../third-party/json/single_include/nlohmann/json.hpp
// Function: nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::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::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_2::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::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::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::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::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::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>)
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", this));
        }

        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", this));
                }

                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;
            }

            case value_t::null:
            case value_t::discarded:
            default:
                JSON_THROW(type_error::create(307, detail::concat("cannot use erase() with ", type_name()), this));
        }

        return result;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0x6b55d
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, %rsi
callq 0x6b2d8
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x6b517
cmpq $0x0, 0x18(%r15)
jne 0x6b5bf
cmpl $0x8, %eax
je 0x6b538
cmpl $0x3, %eax
jne 0x6b4f6
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rax
movq (%rax), %rdi
addq $0x10, %rax
cmpq %rax, %rdi
je 0x6b4e7
callq 0x1b4d0
movq (%r15), %rdi
callq 0x1b4d0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x665a6
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, %eax
je 0x6b54a
cmpl $0x2, %eax
jne 0x6b61e
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x6c2fc
movq %rax, 0x10(%rbx)
jmp 0x6b507
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rax
movq (%rax), %rdi
testq %rdi, %rdi
jne 0x6b4e2
jmp 0x6b4e7
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
callq 0x6c2b8
movq %rax, 0x8(%rbx)
jmp 0x6b507
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x178f7(%rip), %rsi     # 0x82e71
leaq 0x17913(%rip), %rdx     # 0x82e94
leaq -0x40(%rbp), %rdi
callq 0x43438
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x6be3a
xorl %r15d, %r15d
leaq 0x4046d(%rip), %rsi     # 0xaba18
leaq -0x297c(%rip), %rdx     # 0x68c36
movq %rbx, %rdi
callq 0x1b8b0
jmp 0x6b67a
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x178b9(%rip), %rsi     # 0x82e95
leaq 0x178c7(%rip), %rdx     # 0x82eaa
leaq -0x40(%rbp), %rdi
callq 0x43438
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0x6be3a
xorl %r15d, %r15d
leaq 0x4040b(%rip), %rsi     # 0xaba18
leaq -0x29de(%rip), %rdx     # 0x68c36
movq %rbx, %rdi
callq 0x1b8b0
jmp 0x6b67a
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
movq %r14, %rdi
callq 0x6c292
leaq -0x48(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x1786a(%rip), %rsi     # 0x82eab
leaq -0x40(%rbp), %rdi
callq 0x6c207
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
movq %r14, %rcx
callq 0x6c06a
xorl %r15d, %r15d
leaq 0x403ed(%rip), %rsi     # 0xaba58
leaq -0x2a3c(%rip), %rdx     # 0x68c36
movq %rbx, %rdi
callq 0x1b8b0
movq %rax, %r14
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x6b69e
jmp 0x6b6ab
jmp 0x6b6a5
jmp 0x6b692
jmp 0x6b6a5
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x6b6ab
callq 0x1b4d0
jmp 0x6b6ab
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
je 0x6b6b8
movq %rbx, %rdi
callq 0x1b3c0
movq %r14, %rdi
callq 0x1b910