//
// cocos2d::CCString::createWithContentsOfFile from 0x7c8ca8 to 0x7c8cf4 (76 bytes)
//
// 10 xrefs:
// > FontObject::parseConfigFile @ 0x3bfb4a
// > GameManager::recountUserStats @ 0x41b97c
// > LocalLevelManager::importLevelsFromPaths @ 0x542d24
// > LocalLevelManager::tryRecoverAutoSaves @ 0x543830
// > LocalLevelManager::tryLoadMainLevelString @ 0x54467a
// > MusicDownloadManager::importCustomSFXFromFile @ 0x5765cc
// > GJKeybindManager::parseImportFile @ 0x715474
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x7d5368
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x7ee7c4
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x7ee7fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:28 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCString::createWithContentsOfFile(
cocos2d::CCString *this,
const char *a2,
unsigned __int8 *a3)
{
int v4; // r0
cocos2d::CCString *v5; // r5
void *v6; // r2
int v7; // r3
cocos2d::CCObject *v8; // r6
unsigned __int8 *v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[1] = (unsigned __int8 *)a2;
v10[2] = a3;
v10[0] = nullptr;
v4 = cocos2d::CCFileUtils::sharedFileUtils(this);
v5 = (cocos2d::CCString *)(*(int (__fastcall **)(int, cocos2d::CCString *, const char *, unsigned __int8 **))(*(_DWORD *)v4 + 16))(
v4,
this,
"rb",
v10);
v8 = cocos2d::CCString::createWithData(v5, v10[0], v6, v7);
if ( v5 )
operator delete[](v5);
return v8;
}