//
// sub_18006C750 from 0x18006c750 to 0x18006c805 (181 bytes)
//
// 8 xrefs:
// > sub_18006CA70 @ 0x18006ca98
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006ebc3
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1800917c0
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800affd0
// > ??> @ 0x18013ae5c
// > ??> @ 0x18013ae6c
// > ??> @ 0x18013ae88
// > ??> @ 0x1801b3f90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_18006C750(__int64 *a1, __int64 a2, const void **a3)
{
__int64 v3; // rax
__int64 *v6; // rbx
size_t v7; // rbp
unsigned __int64 v8; // r15
const void *v9; // rdx
const void *v10; // rcx
size_t v11; // rsi
size_t v12; // r8
int v13; // eax
int v14; // eax
v3 = *a1;
*(_DWORD *)(a2 + 8) = 0;
*(_QWORD *)(a2 + 16) = v3;
v6 = *(__int64 **)(v3 + 8);
*(_QWORD *)a2 = v6;
if ( !*((_BYTE *)v6 + 25) )
{
v7 = (size_t)a3[2];
v8 = (unsigned __int64)a3[3];
do
{
*(_QWORD *)a2 = v6;
v9 = a3;
if ( v8 > 0xF )
v9 = *a3;
v10 = v6 + 4;
if ( (unsigned __int64)v6[7] > 0xF )
v10 = (const void *)v6[4];
v11 = v6[6];
v12 = v11;
if ( v7 < v11 )
v12 = v7;
v13 = memcmp(v10, v9, v12);
if ( v13 )
{
if ( v13 < 0 )
goto LABEL_15;
}
else if ( v11 < v7 )
{
LABEL_15:
v6 = (__int64 *)v6[2];
v14 = 0;
goto LABEL_12;
}
*(_QWORD *)(a2 + 16) = v6;
v14 = 1;
v6 = (__int64 *)*v6;
LABEL_12:
*(_DWORD *)(a2 + 8) = v14;
}
while ( !*((_BYTE *)v6 + 25) );
}
return a2;
}