//
// cocos2d::CCMenuItem::dCCMenuItem from 0x1003be830 to 0x1003be886 (86 bytes)
//
// 7 xrefs:
// > ??> @ 0x100054b6d
// > ??> @ 0x100054b9b
// > sub_100059F20 @ 0x100059f25
// > sub_100059F30 @ 0x100059f39
// > sub_1002772B0 @ 0x100277304
// > sub_100277310 @ 0x100277364
// > sub_100277370 @ 0x1002773be
//
// 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
//
__int64 __fastcall cocos2d::CCMenuItem::dCCMenuItem(__int64 a1)
{
cocos2d::CCScriptEngineManager *v1; // rax
*(_QWORD *)a1 = off_10092B018;
*(_QWORD *)(a1 + 320) = off_10092B448;
if ( *(_DWORD *)(a1 + 368) )
{
v1 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v1 + 32LL))(*(_QWORD *)v1, *(unsigned int *)(a1 + 368));
*(_DWORD *)(a1 + 368) = 0;
}
return cocos2d::CCNodeRGBA::dCCNodeRGBA(a1);
}