//
// sub_100240CB0 from 0x100240cb0 to 0x100240d50 (160 bytes)
//
// 1 xrefs:
// > sub_10094C500 @ 0x10094c6c7
//
// 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:27:18 +0000
//
_QWORD *__fastcall sub_100240CB0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_QWORD *v6; // rbx
v6 = operator new(0x200u);
__bzero(v6, 512);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v6);
*v6 = off_100AEFB88;
v6[40] = off_100AF0000;
v6[63] = 0;
if ( (unsigned __int8)CCMenuItemSpriteExtra::init(v6, a1, 0, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}