// File: /workspace/github_cpp_makefile_star2_O3/alfanick[P]rest-cpp/src/rest/json.hpp
// Function: nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, double, std::allocator>::basic_json(std::initializer_list<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, double, std::allocator>>, bool, nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, double, std::allocator>::value_t)
basic_json(std::initializer_list<basic_json> init,
               bool type_deduction = true,
               value_t manual_type = value_t::array)
    {
        // the initializer list could describe an object
        bool is_an_object = true;

        // check if each element is an array with two elements whose first
        // element is a string
        for (const auto& element : init)
        {
            if (not element.is_array() or element.size() != 2
                    or not element[0].is_string())
            {
                // we found an element that makes it impossible to use the
                // initializer list as object
                is_an_object = false;
                break;
            }
        }

        // adjust type if type deduction is not wanted
        if (not 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 (manual_type == value_t::object and not is_an_object)
            {
                throw std::domain_error("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;

            assert(m_value.object != nullptr);

            for (auto& element : init)
            {
                m_value.object->emplace(std::move(*(element[0].m_value.string)), std::move(element[1]));
            }
        }
        else
        {
            // the initializer list describes an array -> create array
            m_type = value_t::array;
            m_value.array = create<array_t>(std::move(init));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movb $0x1, %r12b
movq %rsi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movb $0x0, (%rdi)
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %rbx
movq $0x0, 0x8(%rdi)
testq %rdx, %rdx
je 0x3addb
movq %rbp, %r14
movl %ecx, (%rsp)
movl %r8d, 0x4(%rsp)
shlq $0x4, %r14
movq %r15, %r13
cmpb $0x2, (%r13)
jne 0x3add0
movq %r13, %rdi
callq 0x216b0
cmpq $0x2, %rax
jne 0x3add0
movq %r13, %rdi
xorl %esi, %esi
callq 0x21590
cmpb $0x3, (%rax)
jne 0x3add0
addq $0x10, %r13
addq $-0x10, %r14
jne 0x3ada0
jmp 0x3add3
xorl %r12d, %r12d
movl 0x4(%rsp), %r8d
movl (%rsp), %ecx
testb %cl, %cl
je 0x3ade4
movl %r12d, %eax
jmp 0x3ae00
xorl %ecx, %ecx
cmpb $0x2, %r8b
movzbl %r12b, %eax
cmovel %ecx, %eax
cmpb $0x1, %r8b
jne 0x3ae00
testb %r12b, %r12b
je 0x3ae95
testb %al, %al
je 0x3ae75
movl $0x30, %edi
movb $0x1, (%rbx)
callq 0x22250
vxorps %xmm0, %xmm0, %xmm0
leaq 0x8(%rax), %rcx
xorl %edx, %edx
movq %rdx, 0x10(%rax)
vmovups %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movq %rax, 0x8(%rbx)
testq %rbp, %rbp
je 0x3ae86
shlq $0x4, %rbp
movq 0x8(%rbx), %r12
movq %r15, %rdi
xorl %esi, %esi
callq 0x21590
movq 0x8(%rax), %r13
movl $0x1, %esi
movq %r15, %rdi
callq 0x21590
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x21ab0
addq $0x10, %r15
addq $-0x10, %rbp
jne 0x3ae3c
jmp 0x3ae86
leaq 0x8(%rsp), %rdi
movb $0x2, (%rbx)
callq 0x22f00
movq %rax, 0x8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x217b0
movq %rax, %rbx
leaq 0x4ce2(%rip), %rsi      # 0x3fb8b
movq %rax, %rdi
callq 0x21b00
movq 0x11e10(%rip), %rsi     # 0x4ccc8
movq 0x11ee9(%rip), %rdx     # 0x4cda8
movq %rbx, %rdi
callq 0x23090
movq %rbx, %rdi
movq %rax, %r14
callq 0x21c50
movq %r14, %rdi
callq 0x23160