//
// cocos2d::CCImage::_initWithRawData from 0x5e1e24 to 0x5e1e62 (62 bytes)
//
// 1 xrefs:
// > cocos2d::CCImage::initWithImageData @ 0x5e1ec2
//
// 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::_initWithRawData(cocos2d::CCImage *a1, void *a2, int a3, int a4, int a5, int a6, bool a7)
{
bool result; // r0
unsigned int v10; // r4
unsigned __int8 *v11; // r0
result = a5;
if ( !a4 )
return 0;
if ( a5 )
{
a1->m_nWidth = a4;
a1->m_nHeight = a5;
a1->m_bHasAlpha = 1;
a1->m_nBitsPerComponent = a6;
v10 = 4 * a4 * a5;
a1->m_bPreMulti = a7;
v11 = (unsigned __int8 *)operator new[](v10);
a1->m_pData = v11;
memcpy(v11, a2, v10);
return 1;
}
return result;
}