//
// cocos2d::CCFileUtils::sharedFileUtils from 0xd7bfbc to 0xd7c0e8 (300 bytes)
//
// 83 xrefs:
// > PlatformToolbox::doesFileExist @ 0x6408ec
// > GameToolbox::getSaveDirectory @ 0x69e318
// > GameToolbox::showFolderDialog @ 0x69e744
// > GameToolbox::showFolderDialog @ 0x69e7b4
// > GameToolbox::saveStringToFile @ 0x6a2820
// > GameToolbox::showSaveFileDialog @ 0x6a2a24
// > GameToolbox::showOpenFileDialog @ 0x6a2b5c
// > FMODAudioEngine::createStream @ 0x6cd9bc
// > FMODAudioEngine::preloadEffect @ 0x6d1fdc
// > FMODAudioEngine::preloadEffectAsync @ 0x6d555c
// > AppDelegate::applicationDidFinishLaunching @ 0x6e6930
// > GameManager::unloadBackground @ 0x7167e8
// > GameManager::reloadAllStep2 @ 0x71bbe4
// > GameManager::recountUserStats @ 0x7267c8
// > sub_82F874 @ 0x82f89c
// > sub_82FA7C @ 0x82faa8
// > LocalLevelManager::tryRecoverAutoSaves @ 0x91314c
// > LocalLevelManager::exportLevelsToFile @ 0x91373c
// > LocalLevelManager::tryLoadMainLevelString @ 0x914614
// > MusicDownloadManager::pathForNewsFolder @ 0x964e80
// > MusicDownloadManager::isNewsImageDownloaded @ 0x964f9c
// > MusicDownloadManager::pathForSFXFolder @ 0x96b498
// > MusicDownloadManager::pathForSFXFolder @ 0x96b4f4
// > MusicDownloadManager::parseSFXLibrary @ 0x96b8cc
// > MusicDownloadManager::isSFXDownloaded @ 0x96cb6c
// > MusicDownloadManager::pathForSongFolder @ 0x96ccf4
// > MusicDownloadManager::pathForSongFolder @ 0x96cd50
// > MusicDownloadManager::isSongDownloaded @ 0x96cfd0
// > MusicDownloadManager::parseMusicLibrary @ 0x976ad8
// > MusicDownloadManager::parseNewsFeed @ 0x97b02c
// > ReadArchive::process @ 0xc2d050
// > ReadArchive::process @ 0xc2d284
// > EditorSFXManager::downloadAllMissing @ 0xcc07d4
// > SelectFontLayer2::loadPreviewSheet @ 0xd03064
// > cocos2d::extension::AssetsManager::setSearchPath @ 0xd0aaf4
// > cocos2d::extension::AssetsManager::setSearchPath @ 0xd0ab44
// > cocos2d::CCDictionary::createWithContentsOfFileThreadSafe @ 0xd43ce0
// > cocos2d::CCDictionary::writeToFile @ 0xd43e10
// > cocos2d::CCString::createWithContentsOfFile @ 0xd4679c
// > cocos2d::CCArray::createWithContentsOfFileThreadSafe @ 0xd46bb4
// > cocos2d::CCLabelAtlas::initWithString @ 0xd547cc
// > cocos2d::CCBMFontConfiguration::parseImageFileName @ 0xd57d40
// > cocos2d::CCBMFontConfiguration::parseConfigFile @ 0xd59114
// > cocos2d::CCRenderTexture::saveToFile @ 0xd6b570
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xd71ea0
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xd71eb4
// > cocos2d::CCParticleSystem::initWithDictionary @ 0xd71ee8
// > cocos2d::CCParticleSystem::initWithFile @ 0xd720b8
// > cocos2d::CCSAXParser::parse @ 0xd7466c
// > cocos2d::CCImage::initWithImageFileThreadSafe @ 0xd7d67c
// > cocos2d::CCImage::initWithImageFile @ 0xd7d748
// > cocos2d::CCImage::initWithImageFile @ 0xd7d764
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xd7e5f0
// > cocos2d::CCImage::initWithString @ 0xd7e9fc
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0xd825b8
// > cocos2d::CCGLProgram::initWithVertexShaderFilename @ 0xd825f8
// > cocos2d::CCAnimationCache::addAnimationsWithDictionary @ 0xd85b5c
// > cocos2d::CCAnimationCache::addAnimationsWithFile @ 0xd85c38
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0xd8c2e4
// > sub_D904E4 @ 0xd90540
// > cocos2d::tgaLoad @ 0xd92ac4
// > cocos2d::ZipUtils::ccInflateCCZFile @ 0xd9a354
// > cocos2d::CCTextureCache::removeTextureForKey @ 0xda5644
// > cocos2d::CCTextureCache::textureForKey @ 0xda57c8
// > cocos2d::CCTextureCache::addETCImage @ 0xda621c
// > cocos2d::CCTextureCache::addPVRImage @ 0xda67ec
// > cocos2d::VolatileTexture::reloadAllTextures @ 0xda6c7c
// > cocos2d::CCTextureCache::addImage @ 0xda7d60
// > cocos2d::CCTextureCache::reloadTexture @ 0xda8494
// > cocos2d::CCTextureCache::addUIImage @ 0xda85ec
// > cocos2d::CCTextureCache::addImageAsync @ 0xda919c
// > cocos2d::CCTextureETC::initWithFile @ 0xda98bc
// > cocos2d::CCTexturePVR::initWithContentsOfFile @ 0xdaa55c
// > cocos2d::CCTMXMapInfo::parseXMLFile @ 0xdaddd8
// > cocos2d::CCTMXMapInfo::internalInit @ 0xdae6c0
// > cocos2d::CCTMXMapInfo::startElement @ 0xdaf4ec
// > cocos2d::CCTileMapAtlas::loadTGAfile @ 0xdb0988
// > FileOperation::getFilePath @ 0xdb4c90
// > DS_Dictionary::loadRootSubDictFromFile @ 0xdba760
// > DS_Dictionary::loadRootSubDictFromFile @ 0xdba784
// > DS_Dictionary::loadRootSubDictFromFile @ 0xdba8a0
// > DS_Dictionary::loadRootSubDictFromCompressedFile @ 0xdbaa34
// > ??> @ 0x9da98
//
// 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 13:08:07 +0000
//
__int64 __fastcall cocos2d::CCFileUtils::sharedFileUtils(cocos2d::CCFileUtils *this)
{
__int64 result; // x0
cocos2d::CCFileUtilsAndroid *v2; // x24
const char *ApkPath; // x0
size_t v4; // x0
__int64 v5; // x22
char *v6; // [xsp+48h] [xbp+48h]
__int64 v7[2]; // [xsp+58h] [xbp+58h] BYREF
void *v8; // [xsp+68h] [xbp+68h]
__int64 v9[2]; // [xsp+70h] [xbp+70h] BYREF
void *v10; // [xsp+80h] [xbp+80h]
result = cocos2d::CCFileUtils::s_sharedFileUtils;
if ( !cocos2d::CCFileUtils::s_sharedFileUtils )
{
v2 = (cocos2d::CCFileUtilsAndroid *)operator new(0x88u);
cocos2d::CCFileUtilsAndroid::CCFileUtilsAndroid(v2);
cocos2d::CCFileUtils::s_sharedFileUtils = (__int64)v2;
(*(void (__fastcall **)(cocos2d::CCFileUtilsAndroid *))(*(_QWORD *)v2 + 192LL))(v2);
ApkPath = (const char *)getApkPath();
v7[0] = 0;
v6 = (char *)ApkPath;
v7[1] = 0;
v8 = nullptr;
v4 = strlen(ApkPath);
std::string::__init(v7, v6, v4);
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "assets/", 7u);
v5 = operator new(0x18u);
cocos2d::ZipFile::ZipFile(v5, v7, v9);
qword_15607F0 = v5;
if ( (v9[0] & 1) != 0 )
operator delete(v10);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
return cocos2d::CCFileUtils::s_sharedFileUtils;
}
return result;
}