// File: SYZYGYfpga[P]syzygy-tools/include/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>::operator[](unsigned long)
reference operator[](size_type idx)
    {
        // implicitly convert null value to an empty array
        if (is_null())
        {
            m_type = value_t::array;
            m_value.array = create<array_t>();
            assert_invariant();
        }

        // operator[] only works for arrays
        if (JSON_LIKELY(is_array()))
        {
            // fill up array with null values if given idx is outside range
            if (idx >= m_value.array->size())
            {
                m_value.array->insert(m_value.array->end(),
                                      idx - m_value.array->size() + 1,
                                      basic_json());
            }

            return m_value.array->operator[](idx);
        }

        JSON_THROW(type_error::create(305, "cannot use operator[] with " + std::string(type_name())));
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0xfe60
testb $0x1, %al
jne 0x4a99
jmp 0x4ab8
movq -0x98(%rbp), %rax
movb $0x2, (%rax)
callq 0x6390
movq -0x98(%rbp), %rdi
movq %rax, 0x8(%rdi)
callq 0x4e20
movq -0x98(%rbp), %rdi
callq 0x11300
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4ad1
jmp 0x4be1
movq -0x98(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movq 0x8(%rax), %rdi
callq 0xe390
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
jb 0x4bc4
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rdi
movq %rdi, -0xc0(%rbp)
callq 0xe110
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x113c0
movq -0x98(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, -0xc8(%rbp)
movq 0x8(%rax), %rdi
callq 0xe390
movq %rax, %rcx
movq -0xc8(%rbp), %rax
subq %rcx, %rax
incq %rax
movq %rax, -0xb8(%rbp)
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x4630
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rdx
movq -0xb0(%rbp), %rcx
movq -0x18(%rbp), %rsi
callq 0x11320
movq %rax, -0xa8(%rbp)
jmp 0x4b94
movq -0xa8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x4d80
jmp 0x4bc4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x4d80
jmp 0x4cf0
movq -0x98(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x11400
addq $0xe0, %rsp
popq %rbp
retq
movb $0x1, -0x8a(%rbp)
movl $0x20, %edi
callq 0x3190
movq -0x98(%rbp), %rdi
movq %rax, -0xe0(%rbp)
callq 0x100d0
movq %rax, -0xd8(%rbp)
leaq -0x89(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x34f0
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0x88(%rbp), %rdi
callq 0x33b0
jmp 0x4c3b
leaq 0x1206d(%rip), %rsi     # 0x16caf
leaq -0x68(%rbp), %rdi
leaq -0x88(%rbp), %rdx
callq 0xcb80
jmp 0x4c54
movq -0xe0(%rbp), %rdi
movl $0x131, %esi            # imm = 0x131
leaq -0x68(%rbp), %rdx
callq 0xff80
jmp 0x4c6b
movq -0xe0(%rbp), %rdi
movb $0x0, -0x8a(%rbp)
leaq 0x1d0e8(%rip), %rsi     # 0x21d68
leaq 0xb4d9(%rip), %rdx      # 0x10160
callq 0x34b0
jmp 0x4cf9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4ccb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4cbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x3200
leaq -0x88(%rbp), %rdi
callq 0x3200
leaq -0x89(%rbp), %rdi
callq 0x3330
testb $0x1, -0x8a(%rbp)
jne 0x4ce2
jmp 0x4cee
movq -0xe0(%rbp), %rdi
callq 0x3260
jmp 0x4cf0
movq -0x38(%rbp), %rdi
callq 0x34e0
nopl (%rax)