//
// cocos2d::CCImage::initWithImageFileThreadSafe from 0xb0c66c to 0xb0c740 (212 bytes)
//
// 2 xrefs:
// > std::deque>::_M_push_back_aux @ 0xb3601c
// > ??> @ 0xb1888
//
// 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
//
bool cocos2d::CCImage::initWithImageFileThreadSafe(
cocos2d::CCImage *a1,
const char *a2,
cocos2d::CCImage::EImageFormat a3)
{
cocos2d::CCFileUtilsAndroid *v5; // x0
unsigned __int8 *FileDataForAsync; // x20
bool v7; // w21
int v10[2]; // [xsp+60h] [xbp+60h] BYREF
*(_QWORD *)v10 = 0;
v5 = (cocos2d::CCFileUtilsAndroid *)cocos2d::CCFileUtils::sharedFileUtils();
FileDataForAsync = cocos2d::CCFileUtilsAndroid::getFileDataForAsync(v5, a2, "rb", (unsigned __int64 *)v10);
if ( !FileDataForAsync )
return 0;
v7 = 0;
if ( *(_QWORD *)v10 )
v7 = cocos2d::CCImage::initWithImageData(a1, FileDataForAsync, v10[0], a3, 0, 0, 8, 0);
operator delete[](FileDataForAsync);
return v7;
}