// File: Konano[P]UselessDatabase/./json.hpp
// Function: nlohmann::detail::json_sax_dom_callback_parser<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>>::end_object()
bool end_object()
    {
        if (ref_stack.back() and not callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back()))
        {
            // discard object
            *ref_stack.back() = discarded;
        }

        assert(not ref_stack.empty());
        assert(not keep_stack.empty());
        ref_stack.pop_back();
        keep_stack.pop_back();

        if (not ref_stack.empty() and ref_stack.back() and ref_stack.back()->is_object())
        {
            // remove discarded value
            for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it)
            {
                if (it->is_discarded())
                {
                    ref_stack.back()->erase(it);
                    break;
                }
            }
        }

        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
addq $0x8, %rdi
callq 0x2acd0
cmpq $0x0, (%rax)
je 0x29c00
movq -0xa0(%rbp), %rdi
movq %rdi, %rax
addq $0x80, %rax
movq %rax, -0xb0(%rbp)
addq $0x8, %rdi
callq 0x2a720
movq -0xa0(%rbp), %rdi
subl $0x1, %eax
movl %eax, -0xa4(%rbp)
addq $0x8, %rdi
callq 0x2acd0
movq -0xb0(%rbp), %rdi
movl -0xa4(%rbp), %esi
movq (%rax), %rcx
movl $0x1, %edx
callq 0x2a6d0
testb $0x1, %al
jne 0x29c00
movq -0xa0(%rbp), %rsi
addq $0xa8, %rsi
leaq -0x18(%rbp), %rdi
callq 0xb700
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
movq (%rax), %rdi
leaq -0x18(%rbp), %rsi
callq 0xb0a0
leaq -0x18(%rbp), %rdi
callq 0xb110
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2adb0
xorb $-0x1, %al
testb $0x1, %al
jne 0x29c18
jmp 0x29c1a
jmp 0x29c39
leaq 0x57bb0(%rip), %rdi     # 0x817d1
leaq 0x54f19(%rip), %rsi     # 0x7eb41
movl $0x1284, %edx           # imm = 0x1284
leaq 0x57bb3(%rip), %rcx     # 0x817e7
callq 0x6350
movq -0xa0(%rbp), %rdi
addq $0x20, %rdi
callq 0x2a5c0
xorb $-0x1, %al
testb $0x1, %al
jne 0x29c51
jmp 0x29c53
jmp 0x29c72
leaq 0x57a20(%rip), %rdi     # 0x8167a
leaq 0x54ee0(%rip), %rsi     # 0x7eb41
movl $0x1285, %edx           # imm = 0x1285
leaq 0x57b7a(%rip), %rcx     # 0x817e7
callq 0x6350
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2b730
movq -0xa0(%rbp), %rdi
addq $0x20, %rdi
callq 0x2a6b0
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2adb0
testb $0x1, %al
jne 0x29d99
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
cmpq $0x0, (%rax)
je 0x29d99
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
movq (%rax), %rdi
callq 0x18460
testb $0x1, %al
jne 0x29ce5
jmp 0x29d99
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
movq (%rax), %rsi
leaq -0x38(%rbp), %rdi
callq 0x2b760
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
movq (%rax), %rsi
leaq -0x58(%rbp), %rdi
callq 0x2b7d0
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x2b7a0
testb $0x1, %al
jne 0x29d30
jmp 0x29d97
leaq -0x38(%rbp), %rdi
callq 0x2b810
movq %rax, %rdi
callq 0x25cc0
testb $0x1, %al
jne 0x29d47
jmp 0x29d87
movq -0xa0(%rbp), %rdi
addq $0x8, %rdi
callq 0x2acd0
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2bef0
movq -0xb8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x2ba40
jmp 0x29d97
jmp 0x29d89
leaq -0x38(%rbp), %rdi
callq 0x2bf30
jmp 0x29d01
jmp 0x29d99
movb $0x1, %al
andb $0x1, %al
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)