// // cocos2d::CCMenuItemToggle::setSelectedIndex from 0xd65f18 to 0xd66060 (328 bytes) // // 2 xrefs: // > @ 0x100db0 // > @ 0x1526818 // // This function is hookable on this platform (idp: arm, 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 13:07:53 +0000 // __int64 __fastcall cocos2d::CCMenuItemToggle::setSelectedIndex(cocos2d::CCMenuItemToggle *this, int a2) { __int64 v3; // x3 __int64 v4; // x0 __int64 v5; // x21 const cocos2d::CCSize *v6; // x0 void (__fastcall *v7)(__int64, float *); // x19 float v10[2]; // [xsp+58h] [xbp+58h] BYREF float v11; // [xsp+60h] [xbp+60h] BYREF if ( *((_DWORD *)this + 94) != a2 && (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 48)) ) { v3 = *(_QWORD *)this; *((_DWORD *)this + 94) = a2; v4 = (*(__int64 (__fastcall **)(cocos2d::CCMenuItemToggle *, __int64))(v3 + 480))(this, 3233828865LL); if ( v4 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 528LL))(v4, 0); v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 48), *((_DWORD *)this + 94)); (*(void (__fastcall **)(cocos2d::CCMenuItemToggle *, __int64, _QWORD, __int64))(*(_QWORD *)this + 472LL))( this, v5, 0, 3233828865LL); v6 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5); cocos2d::CCSize::CCSize(v10, v6); (*(void (__fastcall **)(cocos2d::CCMenuItemToggle *, float *))(*(_QWORD *)this + 320LL))(this, v10); v7 = *(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint(&v11, v10[0] * 0.5, v10[1] * 0.5); v7(v5, &v11); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source