// File: /workspace/github_cpp_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0xb300
movq %rdx, %r15
movq %rdi, %rbx
movq %r14, %rsi
callq 0xb06a
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0xb2a9
cmpq $0x0, 0x18(%r15)
jne 0xb362
cmpl $0x8, %eax
je 0xb2ca
cmpl $0x3, %eax
jne 0xb288
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rax
movq (%rax), %rdi
addq $0x10, %rax
cmpq %rax, %rdi
je 0xb279
callq 0x32f0
movq (%r15), %rdi
callq 0x32f0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x52be
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, %eax
je 0xb2dc
cmpl $0x2, %eax
jne 0xb3c1
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0xbfec
movq %rax, 0x10(%rbx)
jmp 0xb299
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rax
movq (%rax), %rdi
testq %rdi, %rdi
jne 0xb274
jmp 0xb279
movq 0x8(%r14), %r14
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x3230
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0xbfb2
movq %r12, 0x8(%rbx)
jmp 0xb299
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x8236(%rip), %rsi      # 0x13553
leaq 0x8252(%rip), %rdx      # 0x13576
leaq -0x40(%rbp), %rdi
callq 0x5224
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0xbb40
xorl %r15d, %r15d
leaq 0xe932(%rip), %rsi      # 0x19c80
leaq -0x2973(%rip), %rdx     # 0x89e2
movq %rbx, %rdi
callq 0x3510
jmp 0xb41d
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x81f8(%rip), %rsi      # 0x13577
leaq 0x8206(%rip), %rdx      # 0x1358c
leaq -0x40(%rbp), %rdi
callq 0x5224
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0xbb40
xorl %r15d, %r15d
leaq 0xe8d0(%rip), %rsi      # 0x19c80
leaq -0x29d5(%rip), %rdx     # 0x89e2
movq %rbx, %rdi
callq 0x3510
jmp 0xb41d
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
movq %r14, %rdi
callq 0xbf8c
leaq -0x48(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x81a9(%rip), %rsi      # 0x1358d
leaq -0x40(%rbp), %rdi
callq 0xbf01
movb $0x1, %r15b
leaq -0x40(%rbp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
movq %r14, %rcx
callq 0xbd68
xorl %r15d, %r15d
leaq 0xe8b2(%rip), %rsi      # 0x19cc0
leaq -0x2a33(%rip), %rdx     # 0x89e2
movq %rbx, %rdi
callq 0x3510
movq %rax, %r14
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xb441
jmp 0xb44e
jmp 0xb448
jmp 0xb435
jmp 0xb448
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xb44e
callq 0x32f0
jmp 0xb44e
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
je 0xb45b
movq %rbx, %rdi
callq 0x3250
movq %r14, %rdi
callq 0x3530
nop