// File: /workspace/github_cpp_makefile_star2_O2/Juve45[P]batstat/./include/nlohmann/json.hpp
// Function: nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::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_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> nlohmann::json_abi_v3_11_3::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_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::erase<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::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_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, 0>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::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_3::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_data.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_data.m_value.string);
                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.string, 1);
                    m_data.m_value.string = nullptr;
                }
                else if (is_binary())
                {
                    AllocatorType<binary_t> alloc;
                    std::allocator_traits<decltype(alloc)>::destroy(alloc, m_data.m_value.binary);
                    std::allocator_traits<decltype(alloc)>::deallocate(alloc, m_data.m_value.binary, 1);
                    m_data.m_value.binary = nullptr;
                }

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

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

            case value_t::array:
            {
                result.m_it.array_iterator = m_data.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 %rbx
subq $0x28, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0xa2e3
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, %rsi
callq 0xa0bc
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0xa279
cmpq $0x0, 0x18(%r15)
jne 0xa337
cmpl $0x8, %eax
je 0xa29a
cmpl $0x3, %eax
jne 0xa2b3
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
callq 0x3598
jmp 0xa2a7
cmpl $0x1, %eax
je 0xa2d0
cmpl $0x2, %eax
jne 0xa388
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0xae26
movq %rax, 0x10(%rbx)
jmp 0xa2c2
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
callq 0x51be
movq (%r15), %rdi
callq 0x32e0
andq $0x0, (%r15)
movb $0x0, (%r14)
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x4a28
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
callq 0xafbc
movq %rax, 0x8(%rbx)
jmp 0xa2c2
pushq $0x20
popq %rdi
callq 0x31c0
movq %rax, %rbx
leaq 0x73f0(%rip), %rsi      # 0x116e5
leaq -0x40(%rbp), %rdi
leaq -0x20(%rbp), %rdx
callq 0x3130
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0xac90
xorl %r15d, %r15d
leaq 0xf95d(%rip), %rsi      # 0x19c80
leaq -0x2486(%rip), %rdx     # 0x7ea4
movq %rbx, %rdi
callq 0x3500
jmp 0xa3e2
pushq $0x20
popq %rdi
callq 0x31c0
movq %rax, %rbx
leaq 0x73c0(%rip), %rsi      # 0x11709
leaq -0x40(%rbp), %rdi
leaq -0x20(%rbp), %rdx
callq 0x3130
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0xac90
xorl %r15d, %r15d
leaq 0xf909(%rip), %rsi      # 0x19c80
leaq -0x24da(%rip), %rdx     # 0x7ea4
movq %rbx, %rdi
callq 0x3500
jmp 0xa3e2
pushq $0x20
popq %rdi
callq 0x31c0
movq %rax, %rbx
movq %r14, %rdi
callq 0xaf96
leaq -0x20(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x7376(%rip), %rsi      # 0x1171f
leaq -0x40(%rbp), %rdi
callq 0xaf2e
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
movq %r14, %rcx
callq 0xae30
xorl %r15d, %r15d
leaq 0xf8ed(%rip), %rsi      # 0x19cc0
leaq -0x2536(%rip), %rdx     # 0x7ea4
movq %rbx, %rdi
callq 0x3500
jmp 0xa3ea
jmp 0xa3fd
jmp 0xa3ea
jmp 0xa3fd
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0x3598
testb %r15b, %r15b
jne 0xa400
jmp 0xa408
movq %rax, %r14
movq %rbx, %rdi
callq 0x3230
movq %r14, %rdi
callq 0x3520