//
// cocos2d::CCFileUtils::getNewFilename from 0x5de6e4 to 0x5de74a (102 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCFileUtils *__fastcall cocos2d::CCFileUtils::getNewFilename(
cocos2d::CCFileUtils *this,
const char *a2,
char *a3,
const char *a4)
{
char *CString; // r6
int v6; // r7
cocos2d::CCString *v7; // r7
const char *v9[2]; // [sp+8h] [bp-8h] BYREF
v9[0] = a3;
v9[1] = a4;
CString = a3;
v6 = *((_DWORD *)a2 + 1);
if ( v6 )
{
sub_776584((int)v9, a3);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v6, v9);
sub_774008(v9);
if ( v7 )
{
if ( cocos2d::CCString::length(v7) )
CString = (char *)cocos2d::CCString::getCString(v7);
}
}
sub_776584((int)this, CString);
return this;
}