// File: Konano[P]UselessDatabase/./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>> 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>::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>>, 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>>)
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:
            {
                if (JSON_HEDLEY_UNLIKELY(not 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;
                }

                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 $0x150, %rsp            # imm = 0x150
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 0x2ba8d
jmp 0x2bb4a
movb $0x1, -0x4d(%rbp)
movl $0x20, %edi
callq 0x62a0
movq %rax, -0x110(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x68a0
movq -0x108(%rbp), %rdx
leaq 0x560db(%rip), %rsi     # 0x81b9b
leaq -0x38(%rbp), %rdi
callq 0xc020
jmp 0x2bacb
movq -0x110(%rbp), %rdi
movl $0xca, %esi
leaq -0x38(%rbp), %rdx
callq 0x2c460
jmp 0x2bae2
movq -0x110(%rbp), %rdi
movb $0x0, -0x4d(%rbp)
leaq 0x84f04(%rip), %rsi     # 0xb09f8
leaq 0xab5(%rip), %rdx       # 0x2c5b0
callq 0x6850
jmp 0x2beed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x2bb28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x6340
leaq -0x39(%rbp), %rdi
callq 0x6530
testb $0x1, -0x4d(%rbp)
jne 0x2bb39
jmp 0x2bb45
movq -0x110(%rbp), %rdi
callq 0x63a0
jmp 0x2bee4
movq -0xe8(%rbp), %rsi
movq -0xf8(%rbp), %rdi
callq 0x2b7d0
movq -0xe8(%rbp), %rax
movb (%rax), %al
movb %al, -0x111(%rbp)
subb $0x1, %al
je 0x2bd17
jmp 0x2bb76
movb -0x111(%rbp), %al
subb $0x2, %al
je 0x2bd5b
jmp 0x2bb86
movb -0x111(%rbp), %al
addb $-0x3, %al
subb $0x4, %al
ja 0x2bdbc
jmp 0x2bb98
movq -0x100(%rbp), %rdi
addq $0x8, %rdi
addq $0x10, %rdi
callq 0x2c7c0
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2bbbb
jmp 0x2bc78
movb $0x1, -0x72(%rbp)
movl $0x20, %edi
callq 0x62a0
movq %rax, -0x128(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x68a0
movq -0x120(%rbp), %rdx
leaq 0x55fd1(%rip), %rsi     # 0x81bbf
leaq -0x70(%rbp), %rdi
callq 0xc020
jmp 0x2bbf9
movq -0x128(%rbp), %rdi
movl $0xcd, %esi
leaq -0x70(%rbp), %rdx
callq 0x2c460
jmp 0x2bc10
movq -0x128(%rbp), %rdi
movb $0x0, -0x72(%rbp)
leaq 0x84dd6(%rip), %rsi     # 0xb09f8
leaq 0x987(%rip), %rdx       # 0x2c5b0
callq 0x6850
jmp 0x2beed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x2bc56
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x6340
leaq -0x71(%rbp), %rdi
callq 0x6530
testb $0x1, -0x72(%rbp)
jne 0x2bc67
jmp 0x2bc73
movq -0x128(%rbp), %rdi
callq 0x63a0
jmp 0x2bee4
movq -0xe8(%rbp), %rdi
callq 0x1cd20
testb $0x1, %al
jne 0x2bc8a
jmp 0x2bd03
leaq -0x73(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x185c0
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rdi
movq 0x8(%rax), %rsi
callq 0x185e0
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rdi
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x18610
jmp 0x2bccf
movq -0xe8(%rbp), %rax
movq $0x0, 0x8(%rax)
leaq -0x73(%rbp), %rdi
callq 0x18640
jmp 0x2bd03
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x73(%rbp), %rdi
callq 0x18640
jmp 0x2bee4
movq -0xe8(%rbp), %rdi
movb $0x0, (%rdi)
callq 0x17ae0
jmp 0x2bed4
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 0x2c7e0
movq %rax, %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq -0x80(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x2bed4
movq -0x100(%rbp), %rsi
movq -0xe8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x138(%rbp)
addq $0x8, %rsi
addq $0x8, %rsi
leaq -0x98(%rbp), %rdi
callq 0x1d2b0
movq -0x138(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x2c820
movq %rax, %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq -0x90(%rbp), %rcx
movq %rcx, 0x10(%rax)
jmp 0x2bed4
movb $0x1, -0xda(%rbp)
movl $0x20, %edi
callq 0x62a0
movq -0xe8(%rbp), %rdi
movq %rax, -0x150(%rbp)
callq 0x1b400
movq %rax, -0x148(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x68a0
movq -0x148(%rbp), %rsi
movq -0x140(%rbp), %rdx
leaq -0xd8(%rbp), %rdi
callq 0xc020
jmp 0x2be16
leaq 0x55db8(%rip), %rsi     # 0x81bd5
leaq -0xb8(%rbp), %rdi
leaq -0xd8(%rbp), %rdx
callq 0x150c0
jmp 0x2be32
movq -0x150(%rbp), %rdi
movl $0x133, %esi            # imm = 0x133
leaq -0xb8(%rbp), %rdx
callq 0x14ed0
jmp 0x2be4c
movq -0x150(%rbp), %rdi
movb $0x0, -0xda(%rbp)
leaq 0x84ad7(%rip), %rsi     # 0xb0938
leaq -0x16c78(%rip), %rdx    # 0x151f0
callq 0x6850
jmp 0x2beed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x2beaf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x2bea3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x6340
leaq -0xd8(%rbp), %rdi
callq 0x6340
leaq -0xd9(%rbp), %rdi
callq 0x6530
testb $0x1, -0xda(%rbp)
jne 0x2bec6
jmp 0x2bed2
movq -0x150(%rbp), %rdi
callq 0x63a0
jmp 0x2bee4
movq -0xf0(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x6890
nopl (%rax)