// File: Falldog[P]dcinja/src/include/nlohmann/json.hpp
// Function: nlohmann::detail::iter_impl<nlohmann::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::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>> nlohmann::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::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::erase<nlohmann::detail::iter_impl<nlohmann::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::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>, 0>(nlohmann::detail::iter_impl<nlohmann::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::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>)
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"));
        }

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

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

            default:
                JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name())));
        }

        return result;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdx, -0x100(%rbp)
movq %rdi, -0xf8(%rbp)
movq %rdi, %rax
movq %rax, -0xf0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
cmpq (%rdx), %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4c0dd
jmp 0x4c19a
movb $0x1, -0x4d(%rbp)
movl $0x20, %edi
callq 0xb2c0
movq %rax, -0x110(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0xba70
movq -0x108(%rbp), %rdx
leaq 0x7890a(%rip), %rsi     # 0xc4a1a
leaq -0x38(%rbp), %rdi
callq 0x10b90
jmp 0x4c11b
movq -0x110(%rbp), %rdi
movl $0xca, %esi
leaq -0x38(%rbp), %rdx
callq 0x50110
jmp 0x4c132
movq -0x110(%rbp), %rdi
movb $0x0, -0x4d(%rbp)
leaq 0xcfc8c(%rip), %rsi     # 0x11bdd0
leaq 0x4115(%rip), %rdx      # 0x50260
callq 0xb9f0
jmp 0x4c5cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4c178
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0xbb98
leaq -0x39(%rbp), %rdi
callq 0xb600
testb $0x1, -0x4d(%rbp)
jne 0x4c189
jmp 0x4c195
movq -0x110(%rbp), %rdi
callq 0xb460
jmp 0x4c5c4
movq -0xe8(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0x128e0
movq -0xe8(%rbp), %rax
movb (%rax), %al
movb %al, -0x111(%rbp)
subb $0x1, %al
je 0x4c3f7
jmp 0x4c1c6
movb -0x111(%rbp), %al
subb $0x2, %al
je 0x4c43b
jmp 0x4c1d6
movb -0x111(%rbp), %al
addb $-0x3, %al
subb $0x5, %al
ja 0x4c49c
jmp 0x4c1e8
movq -0x100(%rbp), %rdi
addq $0x8, %rdi
addq $0x10, %rdi
callq 0x500f0
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4c20b
jmp 0x4c2c8
movb $0x1, -0x72(%rbp)
movl $0x20, %edi
callq 0xb2c0
movq %rax, -0x128(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0xba70
movq -0x120(%rbp), %rdx
leaq 0x78800(%rip), %rsi     # 0xc4a3e
leaq -0x70(%rbp), %rdi
callq 0x10b90
jmp 0x4c249
movq -0x128(%rbp), %rdi
movl $0xcd, %esi
leaq -0x70(%rbp), %rdx
callq 0x50110
jmp 0x4c260
movq -0x128(%rbp), %rdi
movb $0x0, -0x72(%rbp)
leaq 0xcfb5e(%rip), %rsi     # 0x11bdd0
leaq 0x3fe7(%rip), %rdx      # 0x50260
callq 0xb9f0
jmp 0x4c5cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4c2a6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xbb98
leaq -0x71(%rbp), %rdi
callq 0xb600
testb $0x1, -0x72(%rbp)
jne 0x4c2b7
jmp 0x4c2c3
movq -0x128(%rbp), %rdi
callq 0xb460
jmp 0x4c5c4
movq -0xe8(%rbp), %rdi
callq 0x50830
testb $0x1, %al
jne 0x4c2da
jmp 0x4c356
leaq -0x73(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x11be0
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rdi
movq 0x8(%rax), %rsi
callq 0x28210
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x225c0
jmp 0x4c31f
movq -0xe8(%rbp), %rax
movq $0x0, 0x8(%rax)
leaq -0x73(%rbp), %rdi
callq 0x11ce0
jmp 0x4c3e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x73(%rbp), %rdi
callq 0x11ce0
jmp 0x4c5c4
movq -0xe8(%rbp), %rdi
callq 0x50850
testb $0x1, %al
jne 0x4c368
jmp 0x4c3e1
leaq -0x74(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x4f080
movq -0xe8(%rbp), %rax
movq -0x138(%rbp), %rdi
movq 0x8(%rax), %rsi
callq 0x50870
movq -0xe8(%rbp), %rax
movq -0x138(%rbp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x4ff80
jmp 0x4c3ad
movq -0xe8(%rbp), %rax
movq $0x0, 0x8(%rax)
leaq -0x74(%rbp), %rdi
callq 0x4f220
jmp 0x4c3e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x74(%rbp), %rdi
callq 0x4f220
jmp 0x4c5c4
jmp 0x4c3e3
movq -0xe8(%rbp), %rdi
movb $0x0, (%rdi)
callq 0x44cc0
jmp 0x4c5b4
movq -0x100(%rbp), %rax
movq -0xe8(%rbp), %rcx
movq 0x8(%rcx), %rdi
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rsi
callq 0x508a0
movq %rax, %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x4c5b4
movq -0x100(%rbp), %rsi
movq -0xe8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x140(%rbp)
addq $0x8, %rsi
addq $0x8, %rsi
leaq -0x98(%rbp), %rdi
callq 0x50950
movq -0x140(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x508e0
movq %rax, %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq -0x90(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x4c5b4
movb $0x1, -0xda(%rbp)
movl $0x20, %edi
callq 0xb2c0
movq -0xe8(%rbp), %rdi
movq %rax, -0x158(%rbp)
callq 0x50ae0
movq %rax, -0x150(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0xba70
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0x10b90
jmp 0x4c4f6
leaq 0x78557(%rip), %rsi     # 0xc4a54
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rdx
callq 0x34d50
jmp 0x4c512
movq -0x158(%rbp), %rdi
movl $0x133, %esi            # imm = 0x133
leaq -0xb8(%rbp), %rdx
callq 0x50990
jmp 0x4c52c
movq -0x158(%rbp), %rdi
movb $0x0, -0xda(%rbp)
leaq 0xcf8f7(%rip), %rsi     # 0x11be38
leaq 0x4638(%rip), %rdx      # 0x50b80
callq 0xb9f0
jmp 0x4c5cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4c58f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x4c583
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xbb98
leaq -0xd8(%rbp), %rdi
callq 0xbb98
leaq -0xd9(%rbp), %rdi
callq 0xb600
testb $0x1, -0xda(%rbp)
jne 0x4c5a6
jmp 0x4c5b2
movq -0x158(%rbp), %rdi
callq 0xb460
jmp 0x4c5c4
movq -0xf0(%rbp), %rax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0xba60
nopl (%rax)