//
// cocos2d::CCFileUtils::getNewFilename from 0x100150d90 to 0x100150e1c (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x10079a4a0
// > ??> @ 0x1007c7d70
//
// 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
//
_QWORD *__usercall cocos2d::CCFileUtils::getNewFilename@(char *__s@, __int64 a2@, _QWORD *a3@)
{
char *CString; // x20
__int64 v5; // x21
cocos2d::CCString *v6; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
CString = __s;
v5 = *(_QWORD *)(a2 + 8);
if ( v5 )
{
sub_100009900(__p, __s);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(v5, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v6 && cocos2d::CCString::length(v6) )
CString = (char *)cocos2d::CCString::getCString(v6);
}
return sub_100009900(a3, CString);
}