//
// cocos2d::CCString::createWithContentsOfFile from 0x10088e970 to 0x10088e9c7 (87 bytes)
//
// 11 xrefs:
// > FontObject::parseConfigFile @ 0x100203b9f
// > GameManager::recountUserStats @ 0x10036ed3b
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x10041772e
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0x100417775
// > sub_1006196A0 @ 0x10061978a
// > MusicDownloadManager::importCustomSFXFromFile @ 0x100656840
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0x1006a6965
// > LocalLevelManager::tryLoadMainLevelString @ 0x1006c9b55
// > sub_1006CC260 @ 0x1006cc9c1
// > LocalLevelManager::importLevelsFromPaths @ 0x1006cef28
// > LocalLevelManager::importLevelsFromPaths @ 0x1006cef44
//
// This function is hookable on this platform (idp: pc, 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 12:37:03 +0000
//
_QWORD *__fastcall cocos2d::CCString::createWithContentsOfFile(__int64 a1)
{
__int64 v1; // rax
void *v2; // rbx
_QWORD *result; // rax
void *v4; // rdi
_QWORD *v5; // rbx
size_t __n[2]; // [rsp+0h] [rbp-10h] BYREF
__n[0] = 0;
v1 = cocos2d::CCFileUtils::sharedFileUtils();
v2 = (void *)(*(__int64 (__fastcall **)(__int64, __int64, const char *, size_t *))(*(_QWORD *)v1 + 32LL))(
v1,
a1,
"rb",
__n);
result = cocos2d::CCString::createWithData(v2, __n[0]);
if ( v2 )
{
v4 = v2;
v5 = result;
operator delete[](v4);
return v5;
}
return result;
}