//
// cocos2d::CCFileUtils::getNewFilename from 0x1001cfa04 to 0x1001cfa90 (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008ef8e8
// > ??> @ 0x1009203b0
//
// This function is hookable on this platform (idp: arm, 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:00:22 +0000
//
_QWORD *__usercall cocos2d::CCFileUtils::getNewFilename@(char *__s@, __int64 a2@, _QWORD *a3@)
{
char *CString; // x20
__int64 v5; // x21
__int64 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::CCDictionary::objectForKey(v5, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v6 && (unsigned int)cocos2d::CCString::length(v6) )
CString = (char *)cocos2d::CCString::getCString(v6);
}
return sub_100009900(a3, CString);
}