// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
cmpq %rsi, (%rdx)
jne 0xb05b
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 0xba68
movzbl (%r14), %eax
leal -0x3(%rax), %ecx
cmpl $0x6, %ecx
jae 0xaffd
cmpq $0x0, 0x18(%r15)
jne 0xb0bc
cmpl $0x8, %eax
je 0xb01e
cmpl $0x3, %eax
jne 0xafda
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
leaq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0xafce
movq %rax, %rdi
callq 0x32f0
movq (%r15), %rdi
callq 0x32f0
movq $0x0, (%r15)
movb $0x0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5332
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x1, %eax
je 0xb030
cmpl $0x2, %eax
jne 0xb11a
movq 0x8(%r14), %rdi
movq 0x10(%r15), %rsi
callq 0xbd48
movq %rax, 0x10(%rbx)
jmp 0xafeb
leaq 0x8(%r14), %r15
movq 0x8(%r14), %rdi
movq (%rdi), %rax
testq %rax, %rax
jne 0xafc3
jmp 0xafce
movq %rbx, %r13
addq $0x8, %r13
movq 0x8(%r14), %r14
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x3230
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0xbd0e
movq %r12, (%r13)
jmp 0xafeb
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x74dc(%rip), %rsi      # 0x12553
leaq 0x74f8(%rip), %rdx      # 0x12576
leaq -0x48(%rbp), %rdi
callq 0x5294
movb $0x1, %r12b
leaq -0x48(%rbp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0xb89c
xorl %r12d, %r12d
leaq 0xdbd8(%rip), %rsi      # 0x18c80
leaq -0x283f(%rip), %rdx     # 0x8870
movq %rbx, %rdi
callq 0x3510
jmp 0xb176
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x749f(%rip), %rsi      # 0x12577
leaq 0x74ad(%rip), %rdx      # 0x1258c
leaq -0x48(%rbp), %rdi
callq 0x5294
movb $0x1, %r12b
leaq -0x48(%rbp), %rdx
movq %rbx, %rdi
movl $0xcd, %esi
movq %r14, %rcx
callq 0xb89c
xorl %r12d, %r12d
leaq 0xdb77(%rip), %rsi      # 0x18c80
leaq -0x28a0(%rip), %rdx     # 0x8870
movq %rbx, %rdi
callq 0x3510
jmp 0xb176
movl $0x20, %edi
callq 0x31d0
movq %rax, %rbx
movq %r14, %rdi
callq 0xbce8
leaq -0x50(%rbp), %rdx
movq %rax, (%rdx)
leaq 0x7450(%rip), %rsi      # 0x1258d
leaq -0x48(%rbp), %rdi
callq 0xbc5d
movb $0x1, %r15b
leaq -0x48(%rbp), %rdx
movq %rbx, %rdi
movl $0x133, %esi            # imm = 0x133
movq %r14, %rcx
callq 0xbac4
xorl %r15d, %r15d
leaq 0xdb59(%rip), %rsi      # 0x18cc0
leaq -0x28fe(%rip), %rdx     # 0x8870
movq %rbx, %rdi
callq 0x3510
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb18b
callq 0x32f0
testb %r15b, %r15b
jne 0xb1b3
jmp 0xb1bb
jmp 0xb1b0
jmp 0xb198
jmp 0xb1b0
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0xb1a9
callq 0x32f0
testb %r12b, %r12b
jne 0xb1b3
jmp 0xb1bb
movq %rax, %r14
movq %rbx, %rdi
callq 0x3250
movq %r14, %rdi
callq 0x3530
nop