// File: swxlion[P]swxJson/tests/swxJsonAdvancedTest_fetch_v2.cpp
// Function: test_deque()
void test_deque()
{
	cout<<endl<<"[Test deque] ..."<<endl;

	try {

		JsonPtr json = Json::parse(arrayDemo.c_str());
		cout<<"get json:"<<endl;
		cout<<json<<endl<<endl;

		test_deque<std::string>(json, "strArray", "--- string deque:");
		test_deque<int>(json, "intArray", "--- int deque:");
	}
	catch (const JsonError &e)
	{
		cout<<"[Error]: "<<e.message()<<" line: "<<e.lineNumber()<<", fun: "<<e.function()<<endl;
	}
}

// Assembly:
subq $0xc8, %rsp
movq 0x4b9da(%rip), %rdi     # 0x97fd8
movq 0x4b9ab(%rip), %rsi     # 0x97fb0
movq %rsi, 0x68(%rsp)
callq 0x4a360
movq %rax, %rdi
leaq 0x35dfe(%rip), %rsi     # 0x82417
callq 0x4a300
movq 0x68(%rsp), %rsi
movq %rax, %rdi
callq 0x4a360
leaq 0x4bd06(%rip), %rdi     # 0x98338
callq 0x4a100
movq %rax, %rsi
leaq 0xb8(%rsp), %rdi
callq 0x7d040
jmp 0x4c649
movq 0x4b988(%rip), %rdi     # 0x97fd8
leaq 0x35baf(%rip), %rsi     # 0x82206
callq 0x4a300
movq %rax, 0x60(%rsp)
jmp 0x4c663
movq 0x60(%rsp), %rdi
movq 0x4b941(%rip), %rsi     # 0x97fb0
callq 0x4a360
jmp 0x4c676
leaq 0x98(%rsp), %rdi
movq %rdi, 0x50(%rsp)
leaq 0xb8(%rsp), %rsi
callq 0x4e240
movq 0x50(%rsp), %rsi
movq 0x4b93c(%rip), %rdi     # 0x97fd8
callq 0x69de0
movq %rax, 0x58(%rsp)
jmp 0x4c6a8
movq 0x58(%rsp), %rdi
movq 0x4b8fc(%rip), %rsi     # 0x97fb0
callq 0x4a360
movq %rax, 0x48(%rsp)
jmp 0x4c6c0
movq 0x48(%rsp), %rdi
movq 0x4b8e4(%rip), %rsi     # 0x97fb0
callq 0x4a360
jmp 0x4c6d3
leaq 0x98(%rsp), %rdi
callq 0x4e270
leaq 0x88(%rsp), %rdi
movq %rdi, 0x40(%rsp)
leaq 0xb8(%rsp), %rsi
callq 0x4e240
movq 0x40(%rsp), %rdi
leaq 0x35b5d(%rip), %rsi     # 0x82263
leaq 0x35d1b(%rip), %rdx     # 0x82428
callq 0x4f830
jmp 0x4c714
leaq 0x88(%rsp), %rdi
callq 0x4e270
leaq 0x78(%rsp), %rdi
movq %rdi, 0x38(%rsp)
leaq 0xb8(%rsp), %rsi
callq 0x4e240
movq 0x38(%rsp), %rdi
leaq 0x35b52(%rip), %rsi     # 0x82296
leaq 0x35cef(%rip), %rdx     # 0x8243a
callq 0x4fa50
jmp 0x4c752
leaq 0x78(%rsp), %rdi
callq 0x4e270
leaq 0xb8(%rsp), %rdi
callq 0x4e270
jmp 0x4c8ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x4c80e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x4c801
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x4e270
jmp 0x4c801
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x4e270
jmp 0x4c801
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x4e270
leaq 0xb8(%rsp), %rdi
callq 0x4e270
movl 0xac(%rsp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4c914
movq 0xb0(%rsp), %rdi
callq 0x4a0f0
movq %rax, 0x70(%rsp)
movq 0x4b79d(%rip), %rdi     # 0x97fd8
leaq 0x359ce(%rip), %rsi     # 0x82210
callq 0x4a300
movq %rax, 0x30(%rsp)
jmp 0x4c84e
movq 0x70(%rsp), %rdi
callq 0x4e480
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x4a2c0
movq %rax, 0x28(%rsp)
jmp 0x4c86c
movq 0x28(%rsp), %rdi
leaq 0x359a2(%rip), %rsi     # 0x8221a
callq 0x4a300
movq %rax, 0x20(%rsp)
jmp 0x4c884
movq 0x70(%rsp), %rdi
callq 0x4e490
movq 0x20(%rsp), %rdi
movl %eax, %esi
callq 0x4a510
movq %rax, 0x18(%rsp)
jmp 0x4c8a1
movq 0x18(%rsp), %rdi
leaq 0x35975(%rip), %rsi     # 0x82222
callq 0x4a300
movq %rax, 0x10(%rsp)
jmp 0x4c8b9
movq 0x70(%rsp), %rdi
callq 0x4e4a0
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x4a300
movq %rax, 0x8(%rsp)
jmp 0x4c8d7
movq 0x8(%rsp), %rdi
movq 0x4b6cd(%rip), %rsi     # 0x97fb0
callq 0x4a360
jmp 0x4c8ea
callq 0x4a4e0
addq $0xc8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
callq 0x4a4e0
jmp 0x4c912
jmp 0x4c914
movq 0xb0(%rsp), %rdi
callq 0x4a520
movq %rax, %rdi
callq 0x4e020
nopl (%rax)