//
// cocos2d::CCMenuItemImage::create from 0xd66fdc to 0xd670b4 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0x9ed40
//
// This function is hookable on this platform (idp: arm, 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 13:07:54 +0000
//
__int64 __fastcall cocos2d::CCMenuItemImage::create(
cocos2d::CCMenuItemImage *this,
cocos2d::CCSprite *a2,
cocos2d::CCSprite *a3,
const char *a4)
{
__int64 v6; // x19
v6 = operator new(0x190u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v6);
*(_BYTE *)(v6 + 338) = 0;
*(_BYTE *)(v6 + 339) = 0;
*(_QWORD *)(v6 + 344) = 0;
*(_QWORD *)(v6 + 352) = 0;
*(_QWORD *)(v6 + 360) = 0;
*(_DWORD *)(v6 + 368) = 0;
*(_QWORD *)(v6 + 376) = 0;
*(_QWORD *)(v6 + 384) = 0;
*(_QWORD *)(v6 + 392) = 0;
*(_DWORD *)(v6 + 372) = 0;
*(_QWORD *)v6 = &off_1525EE0;
*(_QWORD *)(v6 + 320) = &off_1526358;
if ( (unsigned __int8)cocos2d::CCMenuItemImage::initWithNormalImage((_QWORD *)v6, this, a2, a3, 0, 0, 0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return 0;
}
}