//
// sub_18000D170 from 0x18000d170 to 0x18000d1d3 (99 bytes)
//
// 8 xrefs:
// > sub_18000CFB0 @ 0x18000d0a5
// > sub_18000CFB0 @ 0x18000d0b7
// > sub_18006E750 @ 0x18006e84a
// > sub_18006E750 @ 0x18006e861
// > sub_18006E8C0 @ 0x18006e9f7
// > sub_18006E8C0 @ 0x18006ea0f
// > cocos2d::CCApplication::setResourceRootPath @ 0x180076764
// > cocos2d::CCApplication::setResourceRootPath @ 0x180076777
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:20 +0000
//
_OWORD *__fastcall sub_18000D170(__int64 a1, __int64 a2, _OWORD *a3)
{
_OWORD *result; // rax
__int64 v4; // r8
char *v5; // r9
result = a3;
if ( a1 != a2 )
{
v4 = a1 + 24;
v5 = (char *)result - a1;
do
{
v4 += 32;
*result = 0;
*(_QWORD *)&v5[v4 - 40] = 0;
*(_QWORD *)&v5[v4 - 32] = 0;
*result = *(_OWORD *)(v4 - 56);
result[1] = *(_OWORD *)(v4 - 40);
*(_QWORD *)(v4 - 40) = 0;
result += 2;
*(_QWORD *)(v4 - 32) = 15;
*(_BYTE *)(v4 - 56) = 0;
}
while ( v4 - 24 != a2 );
}
return result;
}