//
// cocos2d::CCImage::_initWithRawData from 0x7ebc44 to 0x7ebc82 (62 bytes)
//
// 1 xrefs:
// > cocos2d::CCImage::initWithImageData @ 0x7ebce2
//
// 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::_initWithRawData(
cocos2d::CCImage *this,
void *a2,
int a3,
int a4,
int a5,
int a6,
bool a7)
{
int result; // r0
unsigned int v10; // r4
void *v11; // r0
result = a5;
if ( !a4 )
return 0;
if ( a5 )
{
*((_WORD *)this + 26) = a4;
*((_WORD *)this + 27) = a5;
*((_BYTE *)this + 64) = 1;
*((_DWORD *)this + 14) = a6;
v10 = 4 * a4 * a5;
*((_BYTE *)this + 65) = a7;
v11 = (void *)operator new[](v10);
*((_DWORD *)this + 15) = v11;
memcpy(v11, a2, v10);
return 1;
}
return result;
}