// File: /workspace/github_cpp_makefile_star2_O3/swxlion[P]swxJson/tests/../src/swxJson.Enhancement.inc.h
// Function: std::array<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 3ul> swxJson::Json::wantArray<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 3ul>(bool)
std::array<T, N> wantArray(bool compatibleMode = false)
	{
		if (_type != JSON_Array)
			throw JSON_ERROR_MSG(JsonNodeTypeMissMatchError, "Node type miss match.");

		std::list<JsonPtr>* data = (std::list<JsonPtr>*)_data;

		if (!compatibleMode && data->size() != N)
			throw JSON_ERROR_MSG(JsonNodeTypeMissMatchError, "Node type miss match.");

		std::array<T, N> res;

		size_t idx = 0;
		for (auto& node: *data)
		{
			if (idx == N)
				return res;

			res[idx] = (T)(*node);
			idx += 1;
		}

		return res;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, (%rsi)
jne 0x1b67e
movq %rdi, %rbx
movq 0x8(%rsi), %r15
testb %dl, %dl
jne 0x1b5ed
cmpq $0x3, 0x10(%r15)
jne 0x1b6f7
movl $0x10, %eax
leaq (%rbx,%rax), %rcx
movq %rcx, -0x10(%rbx,%rax)
movq $0x0, -0x8(%rbx,%rax)
movb $0x0, (%rbx,%rax)
addq $0x20, %rax
cmpq $0x70, %rax
jne 0x1b5f2
movq (%r15), %r12
cmpq %r15, %r12
je 0x1b66c
leaq 0x18(%rsp), %r13
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
movq 0x10(%r12), %rsi
movq %r14, %rdi
callq 0x24906
leaq (%rbx,%rbp), %rdi
movq %r14, %rsi
callq 0x13310
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b656
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x132a0
movq (%r12), %r12
cmpq %r15, %r12
je 0x1b66c
leaq 0x20(%rbp), %rax
cmpq $0x40, %rbp
movq %rax, %rbp
jne 0x1b626
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x60, %edi
callq 0x13110
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x11f7a(%rip), %rsi     # 0x2d615
leaq 0x11f88(%rip), %rdx     # 0x2d62a
leaq 0x8(%rsp), %rdi
callq 0x19f80
movb $0x1, %bpl
leaq 0x11f19(%rip), %rsi     # 0x2d5cf
leaq 0x11f78(%rip), %rdx     # 0x2d635
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
movl $0x335, %ecx            # imm = 0x335
callq 0x2bf1c
leaq 0x1d552(%rip), %rax     # 0x38c28
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x1d512(%rip), %rsi     # 0x38bf8
leaq -0x154f(%rip), %rdx     # 0x1a19e
movq %rbx, %rdi
callq 0x13410
jmp 0x1b76e
movl $0x60, %edi
callq 0x13110
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x11f01(%rip), %rsi     # 0x2d615
leaq 0x11f0f(%rip), %rdx     # 0x2d62a
leaq 0x8(%rsp), %rdi
callq 0x19f80
movb $0x1, %bpl
leaq 0x11ea0(%rip), %rsi     # 0x2d5cf
leaq 0x11eff(%rip), %rdx     # 0x2d635
leaq 0x8(%rsp), %r8
movq %rbx, %rdi
movl $0x33a, %ecx            # imm = 0x33A
callq 0x2bf1c
leaq 0x1d4d9(%rip), %rax     # 0x38c28
addq $0x10, %rax
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0x1d499(%rip), %rsi     # 0x38bf8
leaq -0x15c8(%rip), %rdx     # 0x1a19e
movq %rbx, %rdi
callq 0x13410
jmp 0x1b772
jmp 0x1b793
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b78c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x132a0
testb %bpl, %bpl
jne 0x1b796
jmp 0x1b7af
movq %rax, %r14
movq %rbx, %rdi
callq 0x131e0
jmp 0x1b7af
movq %rax, %r14
leaq 0x60(%rbx), %rdi
movq %rbx, %rsi
callq 0x1351e
movq %r14, %rdi
callq 0x13430
nop