//
// cocos2d::CCImage::_initWithRawData from 0x10047f6c0 to 0x10047f737 (119 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:30:39 +0000
//
__int64 __fastcall cocos2d::CCImage::_initWithRawData(__int64 a1, const void *a2, __int64 a3, int a4, int a5, int a6)
{
unsigned int v6; // ebx
int v7; // r8d
size_t v8; // r14
size_t v9; // rax
void *v10; // rax
LOBYTE(v6) = a4 != 0 && a5 != 0;
if ( (_BYTE)v6 == 1 )
{
*(_DWORD *)(a1 + 60) = a6;
*(_WORD *)(a1 + 58) = a5;
*(_WORD *)(a1 + 56) = a4;
*(_BYTE *)(a1 + 72) = 1;
v7 = a4 * a5;
v8 = 4 * v7;
v9 = -1;
if ( v7 >= 0 )
v9 = 4 * v7;
v10 = operator new[](v9);
*(_QWORD *)(a1 + 64) = v10;
memcpy(v10, a2, v8);
}
return v6;
}