// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rsi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movb $0x0, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rdx, %r14
shlq $0x4, %r14
movl %r8d, (%rsp)
movl %ecx, 0x4(%rsp)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %r13
testq %r14, %r14
je 0x47b76
cmpb $0x2, (%r13)
jne 0x47b72
movq %r13, %rdi
callq 0x30b00
cmpq $0x2, %rax
jne 0x47b72
xorl %ebp, %ebp
movq %r13, %rdi
xorl %esi, %esi
callq 0x30940
addq $0x10, %r13
addq $-0x10, %r14
cmpb $0x3, (%rax)
je 0x47b3d
jmp 0x47b79
xorl %ebp, %ebp
jmp 0x47b79
movb $0x1, %bpl
cmpb $0x0, 0x4(%rsp)
movq %r12, %r14
je 0x47b87
movl %ebp, %eax
jmp 0x47ba4
movl (%rsp), %edx
xorl %ecx, %ecx
movzbl %bpl, %eax
cmpb $0x2, %dl
cmovel %ecx, %eax
cmpb $0x1, %dl
jne 0x47ba4
testb %bpl, %bpl
je 0x47c3c
testb %al, %al
je 0x47bfc
movb $0x1, (%r14)
callq 0x32be0
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x47c1d
shlq $0x4, %rbx
pushq $0x1
popq %r12
testq %rbx, %rbx
je 0x47c0e
movq 0x8(%r14), %r13
movq %r15, %rdi
xorl %esi, %esi
callq 0x30940
movq 0x8(%rax), %rbp
movq %r15, %rdi
movq %r12, %rsi
callq 0x30940
movq %r13, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x311d0
addq $0x10, %r15
addq $-0x10, %rbx
jmp 0x47bc2
leaq 0x8(%rsp), %rdi
movb $0x2, (%r14)
callq 0x33130
movq %rax, 0x8(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2f57(%rip), %rdi      # 0x4ab7b
leaq 0x261e(%rip), %rsi      # 0x4a249
leaq 0x4eb4(%rip), %rcx      # 0x4cae6
movl $0x596, %edx            # imm = 0x596
callq 0x31260
pushq $0x10
popq %rdi
callq 0x30c90
movq %rax, %rbx
leaq 0x4e6d(%rip), %rsi      # 0x4cabb
movq %rax, %rdi
callq 0x31220
movq 0x15073(%rip), %rsi     # 0x5ccd0
movq 0x1514c(%rip), %rdx     # 0x5cdb0
movq %rbx, %rdi
callq 0x333b0
movq %rbx, %rdi
movq %rax, %r14
callq 0x31400
movq %r14, %rdi
callq 0x33510
nop