// File: /workspace/github_cpp_makefile_star2_O3/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 0x6a4b6
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%rdi)
callq 0x6af68
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0x6a469
cmpq $0x0, 0x18(%r15)
jne 0x6a517
cmpl $0x8, %eax
je 0x6a48a
cmpl $0x3, %eax
jne 0x6a448
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0x6a43c
movq %rax, %rdi
callq 0x1b4d0
movq (%r15), %rdi
callq 0x1b4d0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x65866
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, %eax
je 0x6a49c
cmpl $0x2, %eax
jne 0x6a575
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0x6b256
movq %rax, 0x10(%rbx)
jmp 0x6a459
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
testq %rax, %rax
jne 0x6a431
jmp 0x6a43c
movq %rbx, %r12
addq $0x8, %r12
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
callq 0x6b212
movq %rax, (%r12)
jmp 0x6a459
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1796f(%rip), %rsi     # 0x81e41
leaq 0x1798b(%rip), %rdx     # 0x81e64
leaq -0x40(%rbp), %rdi
callq 0x431c8
movb $0x1, %r12b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x6ad94
xorl %r12d, %r12d
leaq 0x3f515(%rip), %rsi     # 0xa9a18
leaq -0x2818(%rip), %rdx     # 0x67cf2
movq %rbx, %rdi
callq 0x1b8b0
jmp 0x6a5d1
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x17932(%rip), %rsi     # 0x81e65
leaq 0x17940(%rip), %rdx     # 0x81e7a
leaq -0x40(%rbp), %rdi
callq 0x431c8
movb $0x1, %r12b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0x6ad94
xorl %r12d, %r12d
leaq 0x3f4b4(%rip), %rsi     # 0xa9a18
leaq -0x2879(%rip), %rdx     # 0x67cf2
movq %rbx, %rdi
callq 0x1b8b0
jmp 0x6a5d1
movl $0x20, %edi
callq 0x1b250
movq %rax, %rbx
movq %r14, %rdi
callq 0x6b1ec
leaq -0x48(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x178e3(%rip), %rsi     # 0x81e7b
leaq -0x40(%rbp), %rdi
callq 0x6b161
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
movq %r14, %rcx
callq 0x6afc4
xorl %r15d, %r15d
leaq 0x3f496(%rip), %rsi     # 0xa9a58
leaq -0x28d7(%rip), %rdx     # 0x67cf2
movq %rbx, %rdi
callq 0x1b8b0
movq %rax, %r14
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a5e6
callq 0x1b4d0
testb %r15b, %r15b
jne 0x6a60e
jmp 0x6a616
jmp 0x6a60b
jmp 0x6a5f3
jmp 0x6a60b
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x6a604
callq 0x1b4d0
testb %r12b, %r12b
jne 0x6a60e
jmp 0x6a616
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b3c0
movq %r14, %rdi
callq 0x1b910