// // cocos2d::CCMenuItemSprite::initWithNormalSprite from 0x18005b000 to 0x18005b0bf (191 bytes) // // 8 xrefs: // > cocos2d::CCMenuItemImage::create @ 0x18005a5ea // > cocos2d::CCMenuItemImage::create @ 0x18005a703 // > cocos2d::CCMenuItemImage::create @ 0x18005a7fb // > cocos2d::CCMenuItemSprite::create @ 0x18005aa84 // > cocos2d::CCMenuItemImage::init @ 0x18005add8 // > cocos2d::CCMenuItemImage::initWithNormalImage @ 0x18005afec // > @ 0x1801438a8 // > @ 0x1801b2d84 // // 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::CCMenuItemSprite::initWithNormalSprite( _QWORD *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { __int64 v10; // rdx __int64 v11; // rcx __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rdx cocos2d::CCMenuItem::initWithTarget(a1, a5, a6); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 944LL))(a1, a2); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 960LL))(a1, a3); (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 976LL))(a1, a4); v11 = a1[47]; if ( v11 ) { v12 = *a1; v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 304LL))(v11); (*(void (__fastcall **)(_QWORD *, __int64))(v12 + 296))(a1, v13); } LOBYTE(v10) = 1; (*(void (__fastcall **)(_QWORD *, __int64))(a1[40] + 72LL))(a1 + 40, v10); LOBYTE(v14) = 1; (*(void (__fastcall **)(_QWORD *, __int64))(a1[40] + 96LL))(a1 + 40, v14); return 1; }