// // cocos2d::CCMenuItemToggle::initWithTarget from 0x18005b2a0 to 0x18005b326 (134 bytes) // // 4 xrefs: // > @ 0x180138fc8 // > @ 0x180138fd8 // > @ 0x1801438a8 // > @ 0x1801b2db4 // // 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 // char __fastcall cocos2d::CCMenuItemToggle::initWithTarget( __int64 a1, __int64 a2, __int64 a3, struct cocos2d::CCObject *a4, __int64 a5) { struct cocos2d::CCArray *v7; // rax __int64 v8; // rbx __int64 v9; // rax cocos2d::CCMenuItem::initWithTarget((__int64 *)a1, a2, a3); v7 = cocos2d::CCArray::create(); *(_QWORD *)(a1 + 384) = v7; cocos2d::CCObject::retain(v7); if ( a4 ) { v8 = a5 - 8; do { cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 384), a4); a4 = *(struct cocos2d::CCObject **)(v8 + 8); v8 += 8; } while ( a4 ); } v9 = *(_QWORD *)a1; *(_DWORD *)(a1 + 376) = -1; (*(void (__fastcall **)(__int64, _QWORD))(v9 + 944))(a1, 0); return 1; }