// // cocos2d::CCMenuItem::initWithTarget from 0x18005d220 to 0x18005d292 (114 bytes) // // 8 xrefs: // > cocos2d::CCMenuItem::create @ 0x18005c33a // > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005cbca // > cocos2d::CCMenuItemToggle::createWithTarget @ 0x18005cca0 // > cocos2d::CCMenuItemLabel::initWithLabel @ 0x18005ced9 // > cocos2d::CCMenuItemSprite::initWithNormalSprite @ 0x18005d02b // > cocos2d::CCMenuItemToggle::initWithTarget @ 0x18005d2b0 // > @ 0x18014cf68 // > @ 0x1801bd060 // // 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 11:21:49 +0000 // char __fastcall cocos2d::CCMenuItem::initWithTarget(__int64 *a1, __int64 a2, __int64 a3) { __int64 v4; // rbx float *v7; // rax float v9; // [rsp+30h] [rbp+8h] BYREF v4 = *a1; v7 = kmVec2Fill(&v9, 0.5, 0.5); (*(void (__fastcall **)(__int64 *, float *))(v4 + 288))(a1, v7); a1[44] = a2; a1[45] = a3; *((_WORD *)a1 + 172) = 256; return 1; }