// File: Falldog[P]dcinja/src/include/nlohmann/json.hpp
// Function: 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>>>::basic_json(std::initializer_list<nlohmann::detail::json_ref<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>>>>>, bool, nlohmann::detail::value_t)
basic_json(initializer_list_t init,
               bool type_deduction = true,
               value_t manual_type = value_t::array)
    {
        // check if each element is an array with two elements whose first
        // element is a string
        bool is_an_object = std::all_of(init.begin(), init.end(),
                                        [](const detail::json_ref<basic_json>& element_ref)
        {
            return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string();
        });

        // adjust type if type deduction is not wanted
        if (!type_deduction)
        {
            // if array is wanted, do not create an object though possible
            if (manual_type == value_t::array)
            {
                is_an_object = false;
            }

            // if object is wanted but impossible, throw an exception
            if (JSON_HEDLEY_UNLIKELY(manual_type == value_t::object && !is_an_object))
            {
                JSON_THROW(type_error::create(301, "cannot create object from initializer list"));
            }
        }

        if (is_an_object)
        {
            // the initializer list is a list of pairs -> create object
            m_type = value_t::object;
            m_value = value_t::object;

            std::for_each(init.begin(), init.end(), [this](const detail::json_ref<basic_json>& element_ref)
            {
                auto element = element_ref.moved_or_copied();
                m_value.object->emplace(
                    std::move(*((*element.m_value.array)[0].m_value.string)),
                    std::move((*element.m_value.array)[1]));
            });
        }
        else
        {
            // the initializer list describes an array -> create array
            m_type = value_t::array;
            m_value.array = create<array_t>(init.begin(), init.end());
        }

        assert_invariant();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movb %r8b, %al
movq %rsi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
andb $0x1, %cl
movb %cl, -0x19(%rbp)
movb %al, -0x1a(%rbp)
movq -0x18(%rbp), %rdi
movq %rdi, -0x90(%rbp)
movb $0x0, (%rdi)
addq $0x8, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0xb310
leaq -0x10(%rbp), %rdi
callq 0xb2940
movq %rax, -0x88(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xb2960
movq -0x88(%rbp), %rdi
movq %rax, %rsi
callq 0xb2900
andb $0x1, %al
movb %al, -0x1b(%rbp)
testb $0x1, -0x19(%rbp)
jne 0xb282d
cmpb $0x2, -0x1a(%rbp)
jne 0xb2742
movb $0x0, -0x1b(%rbp)
xorl %eax, %eax
cmpb $0x1, -0x1a(%rbp)
movb %al, -0x91(%rbp)
jne 0xb275b
movb -0x1b(%rbp), %al
xorb $-0x1, %al
movb %al, -0x91(%rbp)
movb -0x91(%rbp), %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xb276e
jmp 0xb282b
movb $0x1, -0x55(%rbp)
movl $0x20, %edi
callq 0xb2c0
movq %rax, -0xa8(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0xba70
movq -0xa0(%rbp), %rdx
leaq 0x1653a(%rip), %rsi     # 0xc8cdb
leaq -0x40(%rbp), %rdi
callq 0x10b90
jmp 0xb27ac
movq -0xa8(%rbp), %rdi
movl $0x12d, %esi            # imm = 0x12D
leaq -0x40(%rbp), %rdx
callq 0x50990
jmp 0xb27c3
movq -0xa8(%rbp), %rdi
movb $0x0, -0x55(%rbp)
leaq 0x69663(%rip), %rsi     # 0x11be38
leaq -0x61c5c(%rip), %rdx    # 0x50b80
callq 0xb9f0
jmp 0xb28f4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xb2809
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0xbb98
leaq -0x41(%rbp), %rdi
callq 0xb600
testb $0x1, -0x55(%rbp)
jne 0xb281a
jmp 0xb2826
movq -0xa8(%rbp), %rdi
callq 0xb460
jmp 0xb28eb
jmp 0xb282d
testb $0x1, -0x1b(%rbp)
je 0xb2897
movq -0x90(%rbp), %rax
movb $0x1, (%rax)
leaq -0x60(%rbp), %rdi
movl $0x1, %esi
callq 0x547e0
movq -0x90(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rax)
leaq -0x10(%rbp), %rdi
callq 0xb2940
movq %rax, -0xb0(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xb2960
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
movq -0x90(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdx
callq 0xb29a0
movq %rax, -0x70(%rbp)
jmp 0xb28d6
movq -0x90(%rbp), %rax
movb $0x2, (%rax)
leaq -0x10(%rbp), %rdi
callq 0xb2940
movq %rax, -0x78(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xb2960
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xb29f0
movq %rax, %rcx
movq -0x90(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x90(%rbp), %rdi
callq 0x44cc0
addq $0xb0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0xba60
nopw %cs:(%rax,%rax)
nop