LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/WojciechMula[P]utf16utf8/benchmarks/linux-perf-events.h
// Function: LinuxEvents<0>::end(std::vector<unsigned long long, std::allocator<unsigned long long>>&)
inline void end(std::vector<unsigned long long> &results) {
    if (fd != -1) {
      if (ioctl(fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) == -1) {
        report_error("ioctl(PERF_EVENT_IOC_DISABLE)");
      }

      if (read(fd, temp_result_vec.data(), temp_result_vec.size() * 8) == -1) {
        report_error("read");
      }
    }
    // our actual results are in slots 1,3,5, ... of this structure
    // we really should be checking our ids obtained earlier to be safe
    for (uint32_t i = 1; i < temp_result_vec.size(); i += 2) {
      results[i / 2] = temp_result_vec[i];
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %r14
movl (%rdi), %edi
movq %rsi, %rbx
cmpl $-0x1, %edi
je 0x688b
movl $0x2401, %esi           # imm = 0x2401
movl $0x1, %edx
xorl %eax, %eax
callq 0x2240
cmpl $-0x1, %eax
jne 0x682c
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x6d5d(%rip), %rsi      # 0xd559
leaq 0x6d73(%rip), %rdx      # 0xd576
movq %rsp, %rdi
callq 0x4ef2
movq %rsp, %rsi
movq %r14, %rdi
callq 0x62b6
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x682c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x90(%r14), %rsi
movq 0x98(%r14), %rdx
movl (%r14), %edi
subq %rsi, %rdx
callq 0x2250
cmpq $-0x1, %rax
jne 0x688b
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x6d1c(%rip), %rsi      # 0xd577
leaq 0x6d19(%rip), %rdx      # 0xd57b
movq %rsp, %rdi
callq 0x4ef2
movq %rsp, %rsi
movq %r14, %rdi
callq 0x62b6
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x688b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x90(%r14), %rax
movq 0x98(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq $0x2, %rcx
jb 0x68cc
movq (%rbx), %rdx
movl $0x1, %edi
movl $0x3, %esi
movq (%rax,%rdi,8), %rdi
leal -0x2(%rsi), %r8d
shrl %r8d
movq %rdi, (%rdx,%r8,8)
movl %esi, %edi
addl $0x2, %esi
cmpq %rdi, %rcx
ja 0x68b3
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x68d8
movq (%rsp), %rdi
movq %rax, %rbx
cmpq %r15, %rdi
je 0x68f8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x68f8
jmp 0x68f5
movq %rax, %rbx
movq %rbx, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O3/WojciechMula[P]utf16utf8/benchmarks/event_counter.h
// Function: event_count::operator+(event_count const&) const
event_count operator+(const event_count& other) const {
    return event_count(elapsed+other.elapsed, {
      event_counts[0]+other.event_counts[0],
      event_counts[1]+other.event_counts[1],
      event_counts[2]+other.event_counts[2],
      event_counts[3]+other.event_counts[3],
      event_counts[4]+other.event_counts[4],
    });
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
vmovsd (%rsi), %xmm0
movq 0x8(%rdx), %rcx
movq 0x8(%rsi), %rax
leaq 0x30(%rsp), %rsi
leaq 0x18(%rsp), %r14
movq %rdi, %rbx
vaddsd (%rdx), %xmm0, %xmm0
movl $0x5, %edx
movq %r14, %rdi
vmovsd %xmm0, 0x10(%rsp)
vmovdqu (%rcx), %ymm0
vpaddq (%rax), %ymm0, %ymm0
vmovdqu %ymm0, (%rsi)
movq 0x20(%rcx), %rcx
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rsi)
leaq 0xf(%rsp), %rcx
vzeroupper
callq 0x6108
vmovsd 0x10(%rsp), %xmm0
leaq 0x8(%rbx), %rdi
vmovsd %xmm0, (%rbx)
movq %r14, %rsi
callq 0x6900
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x6b60
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movq 0x18(%rsp), %rdi
movq %rax, %rbx
testq %rdi, %rdi
je 0x6b85
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WojciechMula[P]utf16utf8/dependencies/utf8_v2_3_4/source/utf8/checked.h
// Function: std::back_insert_iterator<std::vector<unsigned short, std::allocator<unsigned short>>> utf8::utf8to16<std::back_insert_iterator<std::vector<unsigned short, std::allocator<unsigned short>>>, __gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>>(__gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>, __gnu_cxx::__normal_iterator<unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>>, std::back_insert_iterator<std::vector<unsigned short, std::allocator<unsigned short>>>)
u16bit_iterator utf8to16 (octet_iterator start, octet_iterator end, u16bit_iterator result)
    {
        while (start != end) {
            uint32_t cp = utf8::next(start, end);
            if (cp > 0xffff) { //make a surrogate pair
                *result++ = static_cast<uint16_t>((cp >> 10)   + internal::LEAD_OFFSET);
                *result++ = static_cast<uint16_t>((cp & 0x3ff) + internal::TRAIL_SURROGATE_MIN);
            }
            else
                *result++ = static_cast<uint16_t>(cp);
        }
        return result;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, 0x10(%rsp)
cmpq %rsi, %rdi
je 0x6cba
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r13
leaq 0xa(%rsp), %rbp
movq %rsi, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x6ccc
movl %eax, %r12d
cmpl $0x10000, %eax          # imm = 0x10000
jb 0x6c50
movl %r12d, %ecx
shrl $0xa, %ecx
addl $0xffffd7c0, %ecx       # imm = 0xFFFFD7C0
movw %cx, 0xe(%rsp)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
cmpq %rax, %rsi
je 0x6c68
movw %cx, (%rsi)
addq $0x2, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x6c7d
movw %r12w, 0xa(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
jne 0x6c96
movq %rbx, %rdi
movq %rbp, %rdx
jmp 0x6caa
leaq 0xe(%rsp), %rdx
movq %rbx, %rdi
callq 0x3cfa
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
andl $0x3ff, %r12d           # imm = 0x3FF
orl $0xdc00, %r12d          # imm = 0xDC00
movw %r12w, 0xc(%rsp)
cmpq %rax, %rsi
je 0x6ca4
movw %r12w, (%rsi)
addq $0x2, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x6caf
movq %rbx, %rdi
movq %r13, %rdx
callq 0x3cfa
cmpq %r14, 0x10(%rsp)
jne 0x6c10
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::parseFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, tmxparser::TmxMap*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
TmxReturn parseFromFile(const std::string& fileName, TmxMap* outMap, const std::string& tilesetPath)
{
	tinyxml2::XMLDocument doc;
	if (doc.LoadFile(fileName.c_str()) != tinyxml2::XML_SUCCESS)
	{
		LOGE("Cannot read xml file");
		return TmxReturn::kErrorParsing;
	}

	// parse the map node
	return _parseStart(doc.FirstChildElement("map"), outMap, tilesetPath);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x280, %rsp            # imm = 0x280
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq -0x2a0(%rbp), %r12
movq %r12, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0xf3bc
movq (%r15), %rsi
movq %r12, %rdi
callq 0xf57c
testl %eax, %eax
jne 0x4d5d
leaq 0xd30c(%rip), %rsi      # 0x1202f
leaq -0x2a0(%rbp), %rdi
callq 0xd5f8
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4d80
movl %eax, %ebx
leaq -0x2a0(%rbp), %rdi
callq 0xf4c8
movl %ebx, %eax
addq $0x280, %rsp            # imm = 0x280
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x4480
movl $0x1, %ebx
jmp 0x4d3f
movq %rax, %rbx
leaq -0x2a0(%rbp), %rdi
callq 0xf4c8
movq %rbx, %rdi
callq 0x43d0
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::parseFromMemory(void*, unsigned long, tmxparser::TmxMap*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
TmxReturn parseFromMemory(void* data, size_t length, TmxMap* outMap, const std::string& tilesetPath)
{
	tinyxml2::XMLDocument doc;
	if (doc.Parse((char*)data, length))
	{
		LOGE("Cannot parse xml memory file...");
		return TmxReturn::kErrorParsing;
	}

	return _parseStart(doc.FirstChildElement("map"), outMap, tilesetPath);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq -0x2a8(%rbp), %r13
movq %r13, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0xf3bc
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xf85a
testl %eax, %eax
jne 0x4e9d
leaq 0xd1ce(%rip), %rsi      # 0x1202f
leaq -0x2a8(%rbp), %rdi
callq 0xd5f8
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4d80
movl %eax, %ebx
leaq -0x2a8(%rbp), %rdi
callq 0xf4c8
movl %ebx, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x44b4
movl $0x1, %ebx
jmp 0x4e7d
movq %rax, %rbx
leaq -0x2a8(%rbp), %rdi
callq 0xf4c8
movq %rbx, %rdi
callq 0x43d0
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseEnd(tmxparser::TmxMap*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
TmxReturn _parseEnd(TmxMap* outMap, const std::string& tilesetPath)
{
	for (auto tileIt = outMap->tilesetCollection.begin(); tileIt != outMap->tilesetCollection.end(); ++tileIt)
		_parseEndHelper(tileIt->image, tilesetPath);

	for (auto tileIt = outMap->imageLayerCollection.begin(); tileIt != outMap->imageLayerCollection.end(); ++tileIt)
		_parseEndHelper(tileIt->image, tilesetPath);

	return TmxReturn::kSuccess;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xb0(%rdi), %r15
cmpq 0xb8(%rdi), %r15
je 0x5823
leaq 0x68(%r15), %rdi
movq %rbx, %rsi
callq 0x5855
addq $0x108, %r15            # imm = 0x108
cmpq 0xb8(%r14), %r15
jne 0x5807
movq 0xf8(%r14), %r15
cmpq 0x100(%r14), %r15
je 0x5848
leaq 0x70(%r15), %rdi
movq %rbx, %rsi
callq 0x5855
addq $0xd8, %r15
jmp 0x582a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parsePropertyNode(tinyxml2::XMLElement*, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>*)
TmxReturn _parsePropertyNode(tinyxml2::XMLElement* element, TmxPropertyMap_t* outPropertyMap)
{
	if (element == NULL)
	{
		// ignore this, not everything requires properties
		return TmxReturn::kSuccess;
	}

	for (tinyxml2::XMLElement* child = element->FirstChildElement("property"); child != NULL; child = child->NextSiblingElement("property"))
	{
		if (strcmp(child->Name(), "property") == 0)
		{
			if (child->Attribute("name") != NULL && child->Attribute("value") != NULL)
			{
				(*outPropertyMap)[child->Attribute("name")] = child->Attribute("value");
			}
			else
			{
				return TmxReturn::kMalformedPropertyNode;
			}
		}
	}

	return TmxReturn::kSuccess;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, -0x38(%rbp)
xorl %r12d, %r12d
testq %rdi, %rdi
je 0x5bf9
leaq 0xc770(%rip), %rsi      # 0x12258
callq 0xd5f8
testq %rax, %rax
je 0x5bf9
movq %rax, %r14
leaq 0xc758(%rip), %rbx      # 0x12258
leaq 0xc75a(%rip), %r13      # 0x12261
leaq 0xc758(%rip), %r15      # 0x12266
movq %r14, %rdi
callq 0xd3dc
movq %rax, %rdi
movq %rbx, %rsi
callq 0x42c0
testl %eax, %eax
jne 0x5bdf
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xe806
movl $0x6, %r12d
testq %rax, %rax
je 0x5bf9
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x5bf9
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0xe806
movq %rax, %r12
movq %r14, %rdi
movq %r13, %rbx
movq %r13, %rsi
xorl %edx, %edx
callq 0xe806
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
leaq -0x29(%rbp), %rdx
callq 0x40e0
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0xa8fa
movq %rax, %r13
movq 0x8(%rax), %r15
movq %r12, %rdi
callq 0x4100
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x4330
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
movq %rbx, %r13
leaq 0xc695(%rip), %r15      # 0x12266
je 0x5bd8
callq 0x41c0
leaq 0xc679(%rip), %rbx      # 0x12258
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd720
movq %rax, %r14
testq %rax, %rax
jne 0x5b0e
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x5c20
callq 0x41c0
movq %rbx, %rdi
callq 0x43d0
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseLayerNode(tinyxml2::XMLElement*, std::vector<tmxparser::TmxTileset, std::allocator<tmxparser::TmxTileset>> const&, tmxparser::TmxLayer*)
TmxReturn _parseLayerNode(tinyxml2::XMLElement* element, const TmxTilesetCollection_t& tilesets, TmxLayer* outLayer)
{
	TmxReturn error = TmxReturn::kSuccess;

	outLayer->name = element->Attribute("name");
	if (element->Attribute("opacity"))
		outLayer->opacity = element->FloatAttribute("opacity");
	else
		outLayer->opacity = 1.f;
	if (element->Attribute("visible"))
		outLayer->visible = (element->IntAttribute("visible") == 1 ? true : false);
	else
		outLayer->visible = true;
	outLayer->width = element->UnsignedAttribute("width");
	outLayer->height = element->UnsignedAttribute("height");

	error = _parsePropertyNode(element->FirstChildElement("properties"), &outLayer->propertyMap);
	if (error)
	{
		LOGE("Error parsing layer property node...");
		return error;
	}

	// check data node and type
	tinyxml2::XMLElement* dataElement = element->FirstChildElement("data");
	if (dataElement != NULL)
	{
		error = _parseLayerDataNode(dataElement, tilesets, &outLayer->tiles);
	}
	else
	{
		LOGE("Layer missing data node...");
		return TmxReturn::kMissingDataNode;
	}

	return error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0xc3cd(%rip), %rsi      # 0x12261
xorl %edx, %edx
callq 0xe806
movq %rax, %r12
movq 0x8(%rbx), %r13
movq %rax, %rdi
callq 0x4100
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x4330
leaq 0xc4f9(%rip), %rsi      # 0x123bd
movq %r15, %rdi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x5ee4
leaq 0xc4e3(%rip), %rsi      # 0x123bd
movq %r15, %rdi
callq 0x7930
jmp 0x5eec
movss 0xc118(%rip), %xmm0     # 0x12004
movss %xmm0, 0x28(%rbx)
leaq 0xc4cd(%rip), %rsi      # 0x123c5
movq %r15, %rdi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x5f1e
leaq 0xc4b7(%rip), %rsi      # 0x123c5
movq %r15, %rdi
callq 0x7966
cmpl $0x1, %eax
sete %al
jmp 0x5f20
movb $0x1, %al
movb %al, 0x2c(%rbx)
leaq 0xc1d4(%rip), %rsi      # 0x120fe
movq %r15, %rdi
callq 0x7882
movl %eax, 0x20(%rbx)
leaq 0xc1cc(%rip), %rsi      # 0x12108
movq %r15, %rdi
callq 0x7882
movl %eax, 0x24(%rbx)
leaq 0xc1dd(%rip), %rsi      # 0x1212b
movq %r15, %rdi
callq 0xd5f8
leaq 0x30(%rbx), %rsi
movq %rax, %rdi
callq 0x5ac0
testl %eax, %eax
jne 0x5f9a
leaq 0xc497(%rip), %rsi      # 0x12404
movq %r15, %rdi
callq 0xd5f8
testq %rax, %rax
je 0x5fa4
addq $0x68, %rbx
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6bb7
movl %eax, %r12d
callq 0x4714
jmp 0x5faf
callq 0x4747
movl $0x4, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseImageNode(tinyxml2::XMLElement*, tmxparser::TmxImage*)
TmxReturn _parseImageNode(tinyxml2::XMLElement* element, TmxImage* outImage)
{
	CHECK_AND_RETRIEVE_REQ_ATTRIBUTE_STRING(element, "source", outImage->source);
	CHECK_AND_RETRIEVE_OPT_ATTRIBUTE_STRING(element, "format", outImage->format);
	CHECK_AND_RETRIEVE_OPT_ATTRIBUTE_STRING(element, "trans", outImage->transparentColor);

	outImage->width = element->UnsignedAttribute("width");
	outImage->height = element->UnsignedAttribute("height");

	return TmxReturn::kSuccess;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xbe53(%rip), %rsi      # 0x1226c
xorl %edx, %edx
callq 0xe806
movq %rax, %r15
leaq 0x20(%rbx), %r12
movq 0x28(%rbx), %r13
movq %rax, %rdi
callq 0x4100
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x4330
cmpq $0x0, 0x28(%rbx)
je 0x654d
leaq 0xbe1b(%rip), %rsi      # 0x12273
movq %r14, %rdi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x649c
leaq 0xbe05(%rip), %rsi      # 0x12273
movq %r14, %rdi
xorl %edx, %edx
callq 0xe806
movq %rax, %r15
movq 0x8(%rbx), %r12
movq %rax, %rdi
callq 0x4100
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x4330
jmp 0x64b2
movq 0x8(%rbx), %rdx
movl $0x1, %ecx
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x4410
leaq 0xbdc1(%rip), %rsi      # 0x1227a
movq %r14, %rdi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x6501
leaq 0xbdab(%rip), %rsi      # 0x1227a
movq %r14, %rdi
xorl %edx, %edx
callq 0xe806
movq %rax, %r15
leaq 0x40(%rbx), %r12
movq 0x48(%rbx), %r13
movq %rax, %rdi
callq 0x4100
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x4330
jmp 0x6518
leaq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rdx
movl $0x1, %ecx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x4410
leaq 0xbbdf(%rip), %rsi      # 0x120fe
movq %r14, %rdi
callq 0x7882
movl %eax, 0x60(%rbx)
leaq 0xbbd7(%rip), %rsi      # 0x12108
movq %r14, %rdi
callq 0x7882
movl %eax, 0x64(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4817
movl $0x2, %eax
jmp 0x653e
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseOffsetNode(tinyxml2::XMLElement*, tmxparser::TmxOffset*)
tmxparser::TmxReturn _parseOffsetNode(tinyxml2::XMLElement* element, TmxOffset* offset)
{
	TmxReturn error = TmxReturn::kSuccess;

	offset->x = 0;
	offset->y = 0;

	if (element->Attribute("x"))
	{
		offset->x = element->IntAttribute("x");
	}

	if (element->Attribute("y"))
	{
		offset->y = element->IntAttribute("y");
	}

	return error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, (%rsi)
leaq 0xbfeb(%rip), %rsi      # 0x128f5
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x6927
leaq 0xbfd8(%rip), %rsi      # 0x128f5
movq %r14, %rdi
callq 0x7966
movl %eax, (%rbx)
leaq 0xba95(%rip), %rsi      # 0x123c3
movq %r14, %rdi
xorl %edx, %edx
callq 0xe806
testq %rax, %rax
je 0x694f
leaq 0xba7f(%rip), %rsi      # 0x123c3
movq %r14, %rdi
callq 0x7966
movl %eax, 0x4(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseTileDefinitionNode(tinyxml2::XMLElement*, tmxparser::TmxTileDefinition*)
TmxReturn _parseTileDefinitionNode(tinyxml2::XMLElement* element, TmxTileDefinition* outTileDefinition)
{
	TmxReturn error = TmxReturn::kSuccess;

	outTileDefinition->id = element->UnsignedAttribute("id");
	error = _parsePropertyNode(element->FirstChildElement("properties"), &outTileDefinition->propertyMap);
	if (error)
	{
		return error;
	}

	if (element->FirstChildElement("animation") != NULL)
	{
		error = _parseTileAnimationNode(element->FirstChildElement("animation"), &outTileDefinition->animations);
	}

	for (tinyxml2::XMLElement* child = element->FirstChildElement("objectgroup"); child != NULL; child = child->NextSiblingElement("objectgroup"))
	{
		TmxObjectGroup group;
		error = _parseObjectGroupNode(child, &group);
		if (error)
		{
			LOGE("Error processing objectgroup node...");
			return error;
		}

		outTileDefinition->objectgroups.push_back(group);
	}

	return error;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xba43(%rip), %rsi      # 0x123ba
callq 0x7882
movl %eax, (%rbx)
leaq 0xb7a6(%rip), %rsi      # 0x1212b
movq %r14, %rdi
callq 0xd5f8
leaq 0x8(%rbx), %rsi
movq %rax, %rdi
callq 0x5ac0
testl %eax, %eax
jne 0x6aee
leaq 0xb9f5(%rip), %rsi      # 0x1239d
movq %r14, %rdi
callq 0xd5f8
testq %rax, %rax
je 0x69d0
leaq 0xb9e1(%rip), %rsi      # 0x1239d
movq %r14, %rdi
callq 0xd5f8
leaq 0x40(%rbx), %rsi
movq %rax, %rdi
callq 0x6b17
leaq 0xb800(%rip), %rsi      # 0x121d7
movq %r14, %rdi
callq 0xd5f8
testq %rax, %rax
je 0x6ae7
movq %rax, %r14
leaq -0xb8(%rbp), %r13
addq $0x58, %rbx
xorl %r12d, %r12d
movq %r13, -0xc8(%rbp)
movq %r12, -0xc0(%rbp)
movb %r12b, -0xb8(%rbp)
leaq -0x98(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movb %r12b, -0x98(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x80(%rbp)
movq $0x1, -0x78(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r13)
movl $0x3f800000, -0x60(%rbp) # imm = 0x3F800000
movq %r12, 0x80(%r13)
movups %xmm0, 0x70(%r13)
movups %xmm0, 0x60(%r13)
movq %r14, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x5fc1
movl %eax, %r15d
testl %eax, %eax
jne 0x6adc
movq %rbx, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x774a
leaq -0x48(%rbp), %rdi
callq 0x7c1c
leaq -0x80(%rbp), %rdi
callq 0x7b40
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x6aa9
callq 0x41c0
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x6aba
callq 0x41c0
testl %r15d, %r15d
jne 0x6aeb
movq %r14, %rdi
leaq 0xb70e(%rip), %rsi      # 0x121d7
callq 0xd720
movq %rax, %r14
testq %rax, %rax
jne 0x69f9
jmp 0x6ae7
callq 0x4954
movl %r15d, -0x2c(%rbp)
jmp 0x6a7f
xorl %eax, %eax
jmp 0x6aee
movl -0x2c(%rbp), %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0xc8(%rbp), %rdi
callq 0x7788
movq %rbx, %rdi
callq 0x43d0
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseTileAnimationNode(tinyxml2::XMLElement*, std::vector<tmxparser::TmxAnimationFrame, std::allocator<tmxparser::TmxAnimationFrame>>*)
TmxReturn _parseTileAnimationNode(tinyxml2::XMLElement* element, TmxAnimationFrameCollection_t* outAnimationCollection)
{
	for (tinyxml2::XMLElement* child = element->FirstChildElement("frame"); child != NULL; child = child->NextSiblingElement("frame"))
	{
		TmxAnimationFrame frame;
		frame.duration = child->FloatAttribute("duration");
		frame.tileId = child->UnsignedAttribute("tileid");

		outAnimationCollection->push_back(frame);
	}

	return kSuccess;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0xb878(%rip), %rsi      # 0x123a7
callq 0xd5f8
testq %rax, %rax
je 0x6ba6
movq %rax, %r14
leaq 0xb86a(%rip), %r15      # 0x123ad
leaq 0xb86c(%rip), %r12      # 0x123b6
leaq 0xb856(%rip), %r13      # 0x123a7
movq %r14, %rdi
movq %r15, %rsi
callq 0x7930
movss %xmm0, -0x2c(%rbp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7882
movl %eax, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x6b87
movq -0x30(%rbp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x6b93
movq %rbx, %rdi
leaq -0x30(%rbp), %rdx
callq 0xb04e
movq %r14, %rdi
movq %r13, %rsi
callq 0xd720
movq %rax, %r14
testq %rax, %rax
jne 0x6b51
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_parseLayerXmlTileNode(tinyxml2::XMLElement*, std::vector<tmxparser::TmxTileset, std::allocator<tmxparser::TmxTileset>> const&, tmxparser::TmxLayerTile*)
TmxReturn _parseLayerXmlTileNode(tinyxml2::XMLElement* element, const TmxTilesetCollection_t& tilesets, TmxLayerTile* outTile)
{
	TmxReturn error = TmxReturn::kSuccess;

	unsigned int gid = element->UnsignedAttribute("gid");

	unsigned int flipXFlag = 0x80000000;
	unsigned int flipYFlag = 0x40000000;
	unsigned int flipDiagonalFlag = 0x20000000;

	outTile->flipX = (gid & flipXFlag ? true : false);
	outTile->flipY = (gid & flipYFlag ? true : false);
	outTile->flipDiagonal = (gid & flipDiagonalFlag ? true : false);
	outTile->gid = (gid & ~(flipXFlag | flipYFlag | flipDiagonalFlag));

	return _calculateTileIndices(tilesets, outTile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
leaq 0xb36b(%rip), %rsi      # 0x1236a
callq 0x7882
movl %eax, %ecx
shrl $0x1f, %ecx
movb %cl, 0xc(%rbx)
movl %eax, %ecx
shrl $0x1e, %ecx
andb $0x1, %cl
movb %cl, 0xd(%rbx)
movl %eax, %ecx
shrl $0x1d, %ecx
andb $0x1, %cl
movb %cl, 0xe(%rbx)
andl $0x1fffffff, %eax       # imm = 0x1FFFFFFF
movl %eax, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x7038
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::_calculateTileIndices(std::vector<tmxparser::TmxTileset, std::allocator<tmxparser::TmxTileset>> const&, tmxparser::TmxLayerTile*)
TmxReturn _calculateTileIndices(const TmxTilesetCollection_t& tilesets, TmxLayerTile* outTile)
{
	outTile->tilesetIndex = 0;
	outTile->tileFlatIndex = 0;

	// exit quickly
	if (outTile->gid == 0)
	{
		return TmxReturn::kSuccess;
	}

	// search for tilesetindex
	// O(n) where n = number of tilesets
	// Generally n will never be high but this method is called from an O(m) method.
	unsigned int index = 0;
	unsigned int lastEndIndex = 1;
	for (auto it = tilesets.begin(); it != tilesets.end(); ++it)
	{
		unsigned int colCount = it->colCount;
		unsigned int rowCount = it->rowCount;
		unsigned int startIndex = it->firstgid;
		unsigned int endIndex = it->firstgid + ( colCount * rowCount );

		if (outTile->gid >= startIndex && outTile->gid < endIndex)
		{
			outTile->tilesetIndex = index;
			outTile->tileFlatIndex = (outTile->gid) - lastEndIndex;

			// done
			return TmxReturn::kSuccess;
		}

		lastEndIndex = endIndex;

		index++;
	}

	// if we made it here, tile indices could not be found
	return TmxReturn::kUnknownTileIndices;
}

// Assembly:
movq $0x0, 0x4(%rsi)
movl (%rsi), %ecx
testl %ecx, %ecx
je 0x70da
movq (%rdi), %rdx
movq 0x8(%rdi), %rdi
cmpq %rdi, %rdx
je 0x70dd
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movl 0x20(%rdx), %eax
movl 0x60(%rdx), %r8d
imull 0x64(%rdx), %r8d
addl %eax, %r8d
cmpl %eax, %ecx
setae %r11b
cmpl %r8d, %ecx
setb %bl
movl $0x1, %r10d
xorl %eax, %eax
movl $0x0, %r9d
testb %bl, %r11b
jne 0x70ce
addq $0x108, %rdx            # imm = 0x108
xorl %r9d, %r9d
cmpq %rdi, %rdx
je 0x70e3
incl %r9d
movl 0x20(%rdx), %r11d
movl %r8d, %r10d
movl 0x60(%rdx), %r8d
imull 0x64(%rdx), %r8d
addl %r11d, %r8d
cmpl %r11d, %ecx
setae %r11b
cmpl %r8d, %ecx
setb %bl
andb %r11b, %bl
addq $0x108, %rdx            # imm = 0x108
cmpb $0x1, %bl
jne 0x7097
movl %r9d, 0x4(%rsi)
subl %r10d, %ecx
movl %ecx, 0x8(%rsi)
jmp 0x70e8
xorl %eax, %eax
retq
movl $0x8, %eax
retq
movl $0x8, %eax
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./src/tmxparser.cpp
// Function: tmxparser::calculateTileCoordinatesUV(tmxparser::TmxTileset const&, unsigned int, float, bool, tmxparser::TmxRect&)
TmxReturn calculateTileCoordinatesUV(const TmxTileset& tileset,  unsigned int tileFlatIndex, float pixelCorrection, bool flipY, TmxRect& outRect)
{
	if (tileFlatIndex >= tileset.colCount * tileset.rowCount)
	{
		return TmxReturn::kInvalidTileIndex;
	}

	TileId_t xIndex = tileFlatIndex % tileset.colCount;
	TileId_t yIndex = tileFlatIndex / tileset.colCount;

	unsigned int widthDelta = tileset.tileSpacingInImage + tileset.tileMarginInImage*xIndex;
	unsigned int heightDelta = tileset.tileSpacingInImage + tileset.tileMarginInImage*yIndex;

	float u = (float)((xIndex * tileset.tileWidth) + widthDelta + pixelCorrection) / (float)tileset.image.width;
	float v = (float)((yIndex * tileset.tileHeight) + heightDelta + pixelCorrection) / (float)tileset.image.height;

	float u2 = (float)((( (xIndex+1) * tileset.tileWidth) + widthDelta) - pixelCorrection) / (float)tileset.image.width;
	float v2 = (float)((( (yIndex+1) * tileset.tileHeight) + heightDelta) - pixelCorrection) / (float)tileset.image.height;

	if (flipY)
	{
		float tmpV = v;
		v = 1.f - v2;
		v2 = 1.f - tmpV;
	}

	outRect.u = u;
	outRect.v = v;
	outRect.u2 = u2;
	outRect.v2 = v2;

	return kSuccess;
}

// Assembly:
movl %edx, %r8d
movl 0x64(%rdi), %r9d
movl 0x60(%rdi), %edx
imull %r9d, %edx
movl $0x7, %eax
cmpl %esi, %edx
jbe 0x7614
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %eax
xorl %edx, %edx
divl %r9d
movl %eax, %esi
xorl %eax, %eax
movl 0x50(%rdi), %r11d
movl 0x54(%rdi), %r9d
movl %r9d, %r10d
imull %edx, %r10d
addl %r11d, %r10d
imull %esi, %r9d
addl %r11d, %r9d
movl 0x48(%rdi), %r11d
movl %r11d, %ebx
imull %edx, %ebx
addl %r10d, %ebx
cvtsi2ss %rbx, %xmm1
movl 0xc8(%rdi), %ebx
cvtsi2ss %rbx, %xmm4
movl 0x4c(%rdi), %ebx
addss %xmm0, %xmm1
movl %ebx, %r14d
imull %esi, %r14d
addl %r9d, %r14d
cvtsi2ss %r14, %xmm2
movl 0xcc(%rdi), %edi
cvtsi2ss %rdi, %xmm5
divss %xmm4, %xmm1
addss %xmm0, %xmm2
incl %edx
imull %r11d, %edx
addl %r10d, %edx
cvtsi2ss %rdx, %xmm3
subss %xmm0, %xmm3
divss %xmm4, %xmm3
incl %esi
imull %ebx, %esi
addl %r9d, %esi
xorps %xmm4, %xmm4
cvtsi2ss %rsi, %xmm4
divss %xmm5, %xmm2
subss %xmm0, %xmm4
divss %xmm5, %xmm4
testb %r8b, %r8b
je 0x75fd
movss 0xaa18(%rip), %xmm0     # 0x12004
movaps %xmm0, %xmm5
subss %xmm4, %xmm5
subss %xmm2, %xmm0
movaps %xmm5, %xmm2
movaps %xmm0, %xmm4
movss %xmm1, (%rcx)
movss %xmm2, 0x4(%rcx)
movss %xmm3, 0x8(%rcx)
movss %xmm4, 0xc(%rcx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printObjectGroups(int, std::vector<tmxparser::TmxObjectGroup, std::allocator<tmxparser::TmxObjectGroup>> const&)
void printObjectGroups(int depth, const tmxparser::TmxObjectGroupCollection_t& collection)
{
	int nextdepth = depth +1;

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

		printf_depth(nextdepth, "Name: %s", it->name.c_str());
		printf_depth(nextdepth, "Color: %s", it->color.c_str());
		printf_depth(nextdepth, "Opacity: %f", it->opacity);
		printf_depth(nextdepth, "Visible: %u", it->visible);
		printProperties(nextdepth, it->propertyMap);
		printObjects(nextdepth, it->objects);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0xbb12
movq %rsi, %rbx
movl %edi, %r14d
movl %edi, %eax
incl %r14d
leal (%rax,%rax,4), %eax
movl %eax, -0x2c(%rbp)
leal (%r14,%r14,4), %r12d
leaq 0x6ed0(%rip), %r13      # 0x12936
leaq 0x6b97(%rip), %rdi      # 0x12604
movl -0x2c(%rbp), %esi
movq %r13, %rdx
leaq 0x6c64(%rip), %rcx      # 0x126de
xorl %eax, %eax
callq 0x4050
movq (%r15), %rcx
leaq 0x6ba2(%rip), %rdi      # 0x1262d
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
movq 0x20(%r15), %rcx
leaq 0x6c49(%rip), %rdi      # 0x126ec
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
xorps %xmm0, %xmm0
cvtss2sd 0x40(%r15), %xmm0
leaq 0x6c3b(%rip), %rdi      # 0x126fb
movl %r12d, %esi
movq %r13, %rdx
movb $0x1, %al
callq 0x4050
movzbl 0x44(%r15), %ecx
leaq 0x6c33(%rip), %rdi      # 0x1270c
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
leaq 0x48(%r15), %rsi
movl %r14d, %edi
callq 0xb7b8
leaq 0x80(%r15), %rsi
movl %r14d, %edi
callq 0xb833
addq $0x98, %r15
cmpq 0x8(%rbx), %r15
jne 0xba66
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printImageData(int, tmxparser::TmxImage const&)
void printImageData(int depth, const tmxparser::TmxImage& tmximage)
{
	printf_depth(depth, "%s", "<image>");

	depth = depth +1;
	printf_depth(depth, "Source: %s", tmximage.source.c_str());
	printf_depth(depth, "Format: %s", tmximage.format.c_str());
	printf_depth(depth, "Width: %u", tmximage.width);
	printf_depth(depth, "Height: %u", tmximage.height);
	printf_depth(depth, "TransparentColor: %s", tmximage.transparentColor.c_str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r15d
leal (%r15,%r15,4), %esi
leaq 0x6ac8(%rip), %rdi      # 0x12604
leaq 0x6df3(%rip), %r14      # 0x12936
leaq 0x6bd3(%rip), %rcx      # 0x1271d
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
leal (%r15,%r15,4), %r15d
addl $0x5, %r15d
movq 0x20(%rbx), %rcx
leaq 0x6bbe(%rip), %rdi      # 0x12725
movl %r15d, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movq (%rbx), %rcx
leaq 0x6bb7(%rip), %rdi      # 0x12735
movl %r15d, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x60(%rbx), %ecx
leaq 0x6bb0(%rip), %rdi      # 0x12745
movl %r15d, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x64(%rbx), %ecx
leaq 0x6ba8(%rip), %rdi      # 0x12754
movl %r15d, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movq 0x40(%rbx), %rcx
leaq 0x6ba0(%rip), %rdi      # 0x12764
movl %r15d, %esi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4050
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printTileDefinition(int, std::unordered_map<unsigned int, tmxparser::TmxTileDefinition, std::hash<unsigned int>, std::equal_to<unsigned int>, std::allocator<std::pair<unsigned int const, tmxparser::TmxTileDefinition>>> const&)
void printTileDefinition(int depth, const tmxparser::TmxTileDefinitionMap_t& map)
{
	for (auto it = map.begin(); it != map.end(); ++it)
	{
		printf_depth(depth, "%s", "<tile>");
		printf_depth(depth+1, "Id: %u", it->second.id);

		printProperties(depth+1, it->second.propertyMap);

		// animations
		printf_depth(depth+1, "%s", "<animation>");
		depth+=2;
		for (auto animIt = it->second.animations.begin(); animIt != it->second.animations.end(); ++animIt)
		{
			printf_depth(depth, "<frame tileId=%u duration=%f>", animIt->tileId, animIt->duration);
		}
		depth-=2;

		printObjectGroups(depth+1, it->second.objectgroups);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x10(%rsi), %rbx
testq %rbx, %rbx
je 0xbccb
movl %edi, %r15d
movl %edi, %eax
leal (%rax,%rax,4), %ecx
movl %ecx, -0x30(%rbp)
incl %r15d
leal (%rax,%rax,4), %ecx
addl $0x5, %ecx
movl %ecx, -0x2c(%rbp)
leal (%rax,%rax,4), %r12d
addl $0xa, %r12d
leaq 0x6d17(%rip), %r14      # 0x12936
leaq 0x6b77(%rip), %r13      # 0x1279d
movl %r15d, -0x34(%rbp)
leaq 0x69d3(%rip), %rdi      # 0x12604
movl -0x30(%rbp), %esi
movq %r14, %rdx
leaq 0x6b40(%rip), %rcx      # 0x1277e
xorl %eax, %eax
callq 0x4050
movl 0x10(%rbx), %ecx
leaq 0x6b36(%rip), %rdi      # 0x12785
movl -0x2c(%rbp), %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
leaq 0x18(%rbx), %rsi
movl %r15d, %edi
callq 0xb7b8
leaq 0x6995(%rip), %rdi      # 0x12604
movl -0x2c(%rbp), %esi
movq %r14, %rdx
leaq 0x6b15(%rip), %rcx      # 0x12791
xorl %eax, %eax
callq 0x4050
movq 0x50(%rbx), %r15
cmpq 0x58(%rbx), %r15
je 0xbcaf
movl (%r15), %ecx
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r15), %xmm0
movq %r13, %rdi
movl %r12d, %esi
movq %r14, %rdx
movb $0x1, %al
callq 0x4050
addq $0x8, %r15
jmp 0xbc87
leaq 0x68(%rbx), %rsi
movl -0x34(%rbp), %r15d
movl %r15d, %edi
callq 0xba2f
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0xbc2a
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printTilesets(int, std::vector<tmxparser::TmxTileset, std::allocator<tmxparser::TmxTileset>> const&)
void printTilesets(int depth, const tmxparser::TmxTilesetCollection_t& collection)
{
	for (auto it = collection.begin(); it != collection.end(); ++it)
	{
		printf_depth(depth, "%s", "<tileset>");

		int nextdepth = depth + 1;

		printf_depth(nextdepth, "Name: %s", (*it).name.c_str());
		printf_depth(nextdepth, "FirstGid: %u", (*it).firstgid);
		printf_depth(nextdepth, "Width: %u", (*it).tileWidth);
		printf_depth(nextdepth, "Height: %u", (*it).tileHeight);
		printf_depth(nextdepth, "MarginImage: %u", (*it).tileMarginInImage);
		printf_depth(nextdepth, "SpaceImage: %u", (*it).tileSpacingInImage);
		printf_depth(nextdepth, "rowCount: %u", (*it).colCount);
		printf_depth(nextdepth, "colCount: %u", (*it).rowCount);
		printImageData(nextdepth, (*it).image);
		printTileDefinition(nextdepth, (*it).tileDefinitions);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0xbe26
movq %rsi, %rbx
movl %edi, %r14d
movl %edi, %eax
leal (%rax,%rax,4), %ecx
movl %ecx, -0x2c(%rbp)
incl %r14d
leal (%rax,%rax,4), %r13d
addl $0x5, %r13d
addq $0x68, %r15
leaq 0x6c1d(%rip), %r12      # 0x12936
leaq 0x68e4(%rip), %rdi      # 0x12604
movl -0x2c(%rbp), %esi
movq %r12, %rdx
leaq 0x6a93(%rip), %rcx      # 0x127c0
xorl %eax, %eax
callq 0x4050
movq -0x40(%r15), %rcx
leaq 0x68ee(%rip), %rdi      # 0x1262d
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x48(%r15), %ecx
leaq 0x6a73(%rip), %rdi      # 0x127ca
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x20(%r15), %ecx
leaq 0x69d6(%rip), %rdi      # 0x12745
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x1c(%r15), %ecx
leaq 0x69cd(%rip), %rdi      # 0x12754
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x14(%r15), %ecx
leaq 0x6a3d(%rip), %rdi      # 0x127dc
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x18(%r15), %ecx
leaq 0x6a3a(%rip), %rdi      # 0x127f1
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x4(%r15), %ecx
leaq 0x6a36(%rip), %rdi      # 0x12805
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl -0x8(%r15), %ecx
leaq 0x6a30(%rip), %rdi      # 0x12817
movl %r13d, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x4050
movl %r14d, %edi
movq %r15, %rsi
callq 0xbb21
leaq 0x68(%r15), %rsi
movl %r14d, %edi
callq 0xbbdb
leaq 0x108(%r15), %rax
addq $0xa0, %r15
cmpq 0x8(%rbx), %r15
movq %rax, %r15
jne 0xbd19
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printLayerTiles(int, std::vector<tmxparser::TmxLayerTile, std::allocator<tmxparser::TmxLayerTile>> const&)
void printLayerTiles(int depth, const tmxparser::TmxLayerTileCollection_t& collection)
{
	for (auto it = collection.begin(); it != collection.end(); ++it)
	{
		printf_depth(depth, "%s", "<tile>");

		int nextdepth = depth + 1;

		printf_depth(nextdepth, "Gid: %u", it->gid);
		printf_depth(nextdepth, "tilesetIndex: %u", it->tilesetIndex);
		printf_depth(nextdepth, "tileFlatIndex: %u", it->tileFlatIndex);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r12
cmpq 0x8(%rsi), %r12
je 0xbed5
movq %rsi, %rbx
leal (%rdi,%rdi,4), %r14d
leal (%rdi,%rdi,4), %r15d
addl $0x5, %r15d
leaq 0x6ad0(%rip), %r13      # 0x12936
leaq 0x6797(%rip), %rdi      # 0x12604
movl %r14d, %esi
movq %r13, %rdx
leaq 0x6904(%rip), %rcx      # 0x1277e
xorl %eax, %eax
callq 0x4050
movl (%r12), %ecx
leaq 0x699d(%rip), %rdi      # 0x12829
movl %r15d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x4(%r12), %ecx
leaq 0x6991(%rip), %rdi      # 0x12836
movl %r15d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x8(%r12), %ecx
leaq 0x698e(%rip), %rdi      # 0x1284c
movl %r15d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
addq $0x10, %r12
cmpq 0x8(%rbx), %r12
jne 0xbe66
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printLayers(int, std::vector<tmxparser::TmxLayer, std::allocator<tmxparser::TmxLayer>> const&)
void printLayers(int depth, const tmxparser::TmxLayerCollection_t& collection)
{
	for (auto it = collection.begin(); it != collection.end(); ++it)
	{
		printf_depth(depth, "%s", "<layer>");

		int nextdepth = depth + 1;

		printf_depth(nextdepth, "Name: %s", it->name.c_str());
		printf_depth(nextdepth, "Width: %u", (*it).width);
		printf_depth(nextdepth, "Height: %u", (*it).height);
		printf_depth(nextdepth, "Opacity: %f", (*it).opacity);
		printf_depth(nextdepth, "Visible: %u", (*it).visible);
		printProperties(nextdepth+1, it->propertyMap);
		printLayerTiles(nextdepth+1, it->tiles);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %r15
cmpq 0x8(%rsi), %r15
je 0xbfdd
movq %rsi, %rbx
movl %edi, %r14d
leal (%r14,%r14,4), %eax
movl %eax, -0x2c(%rbp)
leal (%r14,%r14,4), %r12d
addl $0x5, %r12d
addl $0x2, %r14d
leaq 0x6a17(%rip), %r13      # 0x12936
leaq 0x66de(%rip), %rdi      # 0x12604
movl -0x2c(%rbp), %esi
movq %r13, %rdx
leaq 0x6930(%rip), %rcx      # 0x12863
xorl %eax, %eax
callq 0x4050
movq (%r15), %rcx
leaq 0x66e9(%rip), %rdi      # 0x1262d
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x20(%r15), %ecx
leaq 0x67e9(%rip), %rdi      # 0x12745
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x24(%r15), %ecx
leaq 0x67e0(%rip), %rdi      # 0x12754
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
xorps %xmm0, %xmm0
cvtss2sd 0x28(%r15), %xmm0
leaq 0x676a(%rip), %rdi      # 0x126fb
movl %r12d, %esi
movq %r13, %rdx
movb $0x1, %al
callq 0x4050
movzbl 0x2c(%r15), %ecx
leaq 0x6762(%rip), %rdi      # 0x1270c
movl %r12d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4050
leaq 0x30(%r15), %rsi
movl %r14d, %edi
callq 0xb7b8
leaq 0x68(%r15), %rsi
movl %r14d, %edi
callq 0xbe35
subq $-0x80, %r15
cmpq 0x8(%rbx), %r15
jne 0xbf1f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/main.cpp
// Function: printTmxMapData(tmxparser::TmxMap const*)
void printTmxMapData(const tmxparser::TmxMap* map)
{
	int depth = 0;

	printf_depth(0, "%s", "<map>");
	depth = 1;
	printf_depth(depth, "Version: %s", map->version.c_str());
	printf_depth(depth, "Orientation: %d", map->orientation);
	printf_depth(depth, "Width: %u", map->width);
	printf_depth(depth, "Height: %u", map->height);
	printf_depth(depth, "TileWidth: %u", map->tileWidth);
	printf_depth(depth, "TileHeight: %u", map->tileHeight);
	printf_depth(depth, "BackgroundColor: %s", map->backgroundColor.c_str());
	printProperties(depth+1, map->propertyMap);
	printTilesets(depth+1, map->tilesetCollection);
	printLayers(depth+1, map->layerCollection);
	printObjectGroups(depth+1, map->objectGroupCollection);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x6607(%rip), %rdi      # 0x12604
leaq 0x6932(%rip), %r14      # 0x12936
leaq 0x6860(%rip), %rcx      # 0x1286b
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movq (%rbx), %rcx
leaq 0x6850(%rip), %rdi      # 0x12871
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x20(%rbx), %ecx
leaq 0x6848(%rip), %rdi      # 0x12882
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x24(%rbx), %ecx
leaq 0x66f2(%rip), %rdi      # 0x12745
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x28(%rbx), %ecx
leaq 0x66e8(%rip), %rdi      # 0x12754
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x2c(%rbx), %ecx
leaq 0x6812(%rip), %rdi      # 0x12897
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movl 0x30(%rbx), %ecx
leaq 0x680c(%rip), %rdi      # 0x128aa
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
movq 0x38(%rbx), %rcx
leaq 0x6806(%rip), %rdi      # 0x128be
movl $0x5, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4050
leaq 0x78(%rbx), %rsi
movl $0x2, %edi
callq 0xb7b8
leaq 0xb0(%rbx), %rsi
movl $0x2, %edi
callq 0xbcda
leaq 0xc8(%rbx), %rsi
movl $0x2, %edi
callq 0xbee4
addq $0xe0, %rbx
movl $0x2, %edi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0xba2f
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./libs/tinyxml2/tinyxml2.cpp
// Function: tinyxml2::StrPair::Reset()
void StrPair::Reset()
{
    if ( _flags & NEEDS_DELETE ) {
        delete [] _start;
    }
    _flags = 0;
    _start = 0;
    _end = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x2, 0x1(%rdi)
je 0xc677
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc677
callq 0x4280
movl $0x0, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./libs/tinyxml2/tinyxml2.cpp
// Function: tinyxml2::StrPair::TransferTo(tinyxml2::StrPair*)
void StrPair::TransferTo( StrPair* other )
{
    if ( this == other ) {
        return;
    }
    // This in effect implements the assignment operator by "moving"
    // ownership (as in auto_ptr).

    TIXMLASSERT( other->_flags == 0 );
    TIXMLASSERT( other->_start == 0 );
    TIXMLASSERT( other->_end == 0 );

    other->Reset();

    other->_flags = _flags;
    other->_start = _start;
    other->_end = _end;

    _flags = 0;
    _start = 0;
    _end = 0;
}

// Assembly:
cmpq %rsi, %rdi
je 0xc6de
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testb $0x2, 0x1(%rsi)
je 0xc6b2
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xc6b2
callq 0x4280
xorl %eax, %eax
movl %eax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movl (%rbx), %ecx
movl %ecx, (%r14)
movq 0x8(%rbx), %rcx
movq %rcx, 0x8(%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%r14)
movl %eax, (%rbx)
movups %xmm0, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/halsafar[P]libtmx-parser/./libs/tinyxml2/tinyxml2.cpp
// Function: tinyxml2::StrPair::SetStr(char const*, int)
void StrPair::SetStr( const char* str, int flags )
{
    Reset();
    size_t len = strlen( str );
    _start = new char[ len+1 ];
    memcpy( _start, str, len+1 );
    _end = _start + len;
    _flags = flags | NEEDS_DELETE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
testb $0x2, 0x1(%rdi)
je 0xc70a
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xc70a
callq 0x4280
movl $0x0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
movq %r15, %rdi
callq 0x4100
movq %rax, %r12
leaq 0x1(%rax), %r13
movq %r13, %rdi
callq 0x4040
movq %r15, %rsi
movq %rax, %r15
movq %rax, 0x8(%r14)
movq %rax, %rdi
movq %r13, %rdx
callq 0x4190
addq %r12, %r15
movq %r15, 0x10(%r14)
orl $0x200, %ebx            # imm = 0x200
movl %ebx, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq