// File: halsafar[P]libtmx-parser/main.cpp
// Function: printObjects(int, std::vector<tmxparser::TmxObject, std::allocator<tmxparser::TmxObject>> const&)
void printObjects(int depth, const tmxparser::TmxObjectCollection_t& collection)
{
	int nextdepth = depth + 1;

	for (auto it = collection.begin(); it != collection.end(); ++it)
	{
		printf_depth(depth, "%s", "<object>");

		printf_depth(nextdepth, "Name: %s", it->name.c_str());
		printf_depth(nextdepth, "Type: %s", it->type.c_str());
		printf_depth(nextdepth, "x: %f", it->x);
		printf_depth(nextdepth, "y: %f", it->y);
		printf_depth(nextdepth, "width: %f", it->width);
		printf_depth(nextdepth, "height: %f", it->height);
		printf_depth(nextdepth, "rotation: %f", it->rotation);
		printf_depth(nextdepth, "refGid: %u", it->referenceGid);
		printf_depth(nextdepth, "visible: %u", it->visible);

		printProperties(nextdepth, it->propertyMap);

		printf_depth(nextdepth, "ShapeType: %u", it->shapeType);

		printf_depth(nextdepth, "%s", "<shape>");
		for (auto pointIt = it->shapePoints.begin(); pointIt != it->shapePoints.end(); ++pointIt)
		{
			printf_depth(nextdepth+1, "(x, y)=%f,%f", pointIt->first, pointIt->second);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc9f0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xca20
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xcd50
testb $0x1, %al
jne 0x1792b
jmp 0x17c2b
imull $0x5, -0x4(%rbp), %esi
leaq 0xacb6(%rip), %rdi      # 0x225ec
leaq 0xaff4(%rip), %rdx      # 0x22931
leaq 0xacc8(%rip), %rcx      # 0x2260c
movb $0x0, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x64(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movq %rax, %rdi
callq 0x4100
movl -0x64(%rbp), %esi
movq %rax, %rcx
leaq 0xaca5(%rip), %rdi      # 0x22615
leaq 0xafba(%rip), %rdx      # 0x22931
movb $0x0, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x60(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movq %rax, %rdi
addq $0x20, %rdi
callq 0x4100
movl -0x60(%rbp), %esi
movq %rax, %rcx
leaq 0xac7c(%rip), %rdi      # 0x22623
leaq 0xaf83(%rip), %rdx      # 0x22931
movb $0x0, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x5c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x5c(%rbp), %esi
movss 0x40(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xac59(%rip), %rdi      # 0x22631
leaq 0xaf52(%rip), %rdx      # 0x22931
movb $0x1, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x58(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x58(%rbp), %esi
movss 0x44(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xac33(%rip), %rdi      # 0x2263c
leaq 0xaf21(%rip), %rdx      # 0x22931
movb $0x1, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x54(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x54(%rbp), %esi
movss 0x48(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xac0d(%rip), %rdi      # 0x22647
leaq 0xaef0(%rip), %rdx      # 0x22931
movb $0x1, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x50(%rbp), %esi
movss 0x4c(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xabeb(%rip), %rdi      # 0x22656
leaq 0xaebf(%rip), %rdx      # 0x22931
movb $0x1, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x4c(%rbp), %esi
movss 0x50(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0xabca(%rip), %rdi      # 0x22666
leaq 0xae8e(%rip), %rdx      # 0x22931
movb $0x1, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x48(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x48(%rbp), %esi
movl 0x54(%rax), %ecx
leaq 0xabb1(%rip), %rdi      # 0x22678
leaq 0xae63(%rip), %rdx      # 0x22931
movb $0x0, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x44(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x44(%rbp), %esi
movb 0x58(%rax), %al
andb $0x1, %al
movzbl %al, %ecx
leaq 0xab91(%rip), %rdi      # 0x22688
leaq 0xae33(%rip), %rdx      # 0x22931
movb $0x0, %al
callq 0x4060
movl -0x14(%rbp), %eax
movl %eax, -0x40(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x40(%rbp), %edi
movq %rax, %rsi
addq $0x60, %rsi
callq 0x17800
imull $0x5, -0x14(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movl -0x3c(%rbp), %esi
movl 0x98(%rax), %ecx
leaq 0xab56(%rip), %rdi      # 0x22699
leaq 0xade7(%rip), %rdx      # 0x22931
movb $0x0, %al
callq 0x4060
imull $0x5, -0x14(%rbp), %esi
leaq 0xaa90(%rip), %rdi      # 0x225ec
leaq 0xadce(%rip), %rdx      # 0x22931
leaq 0xab42(%rip), %rcx      # 0x226ac
movb $0x0, %al
callq 0x4060
leaq -0x20(%rbp), %rdi
callq 0x18b20
movq %rax, %rdi
addq $0xa0, %rdi
callq 0xd120
movq %rax, -0x30(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x18b20
movq %rax, %rdi
addq $0xa0, %rdi
callq 0xd150
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xd530
testb $0x1, %al
jne 0x17bbc
jmp 0x17c1b
movl -0x14(%rbp), %eax
addl $0x1, %eax
imull $0x5, %eax, %eax
movl %eax, -0x74(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x18b40
movss (%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x70(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x18b40
movl -0x74(%rbp), %esi
movsd -0x70(%rbp), %xmm0
movss 0x4(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0xaab5(%rip), %rdi      # 0x226b4
leaq 0xad2b(%rip), %rdx      # 0x22931
movb $0x2, %al
callq 0x4060
leaq -0x30(%rbp), %rdi
callq 0xd5b0
jmp 0x17b8d
jmp 0x17c1d
leaq -0x20(%rbp), %rdi
callq 0xcde0
jmp 0x17908
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)