//
// cocos2d::CCImage::initWithImageFileThreadSafe from 0x7ebd48 to 0x7ebdb6 (110 bytes)
//
// 1 xrefs:
// > sub_801A04 @ 0x801e22
//
// 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:01:00 +0000
//
int __fastcall cocos2d::CCImage::initWithImageFileThreadSafe(cocos2d::CCFileUtils *a1, char *a2, int a3)
{
cocos2d::CCFileUtilsAndroid *v6; // r0
int *FileDataForAsync; // r5
int v8; // r4
int v10; // [sp+10h] [bp-Ch] BYREF
v10 = 0;
v6 = (cocos2d::CCFileUtilsAndroid *)cocos2d::CCFileUtils::sharedFileUtils(a1);
FileDataForAsync = (int *)cocos2d::CCFileUtilsAndroid::getFileDataForAsync(v6, a2, "rb", (unsigned int *)&v10);
if ( !FileDataForAsync )
return 0;
if ( v10 )
v8 = cocos2d::CCImage::initWithImageData(a1, FileDataForAsync, v10, a3, 0, 0, 8);
else
v8 = 0;
operator delete[](FileDataForAsync);
return v8;
}