// // cocos2d::CCMenuItemToggle::createWithTarget from 0xd6715c to 0xd67258 (252 bytes) // // 1 xrefs: // > @ 0x8c8d8 // // 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:54 +0000 // __int64 __fastcall cocos2d::CCMenuItemToggle::createWithTarget( __int64 a1, __int64 a2, __int64 a3, cocos2d::CCArray *a4) { __int64 v8; // x20 __int64 v9; // x1 unsigned int v10; // w19 cocos2d::CCArray *v11; // x0 cocos2d::CCArray *v12; // x0 cocos2d::CCObject *v13; // x0 bool v14; // cf unsigned int v15; // w1 __int64 v16; // x2 v8 = operator new(0x188u); cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v8); *(_BYTE *)(v8 + 338) = 0; v9 = a1; *(_BYTE *)(v8 + 339) = 0; *(_QWORD *)(v8 + 344) = 0; *(_QWORD *)(v8 + 352) = 0; *(_QWORD *)(v8 + 360) = 0; v10 = 0; *(_DWORD *)(v8 + 368) = 0; *(_DWORD *)(v8 + 372) = 0; *(_DWORD *)(v8 + 376) = 0; *(_QWORD *)(v8 + 384) = 0; *(_QWORD *)v8 = &off_15263E0; *(_QWORD *)(v8 + 320) = &off_1526840; v11 = (cocos2d::CCArray *)cocos2d::CCMenuItem::initWithTarget(v8, v9, a2, a3); v12 = cocos2d::CCArray::create(v11); *(_QWORD *)(v8 + 384) = v12; cocos2d::CCObject::retain((__int64)v12); while ( 1 ) { v14 = v10 >= (unsigned int)cocos2d::CCArray::count(a4); v15 = v10++; if ( v14 ) break; v13 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a4, v15); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v8 + 384), v13); } v16 = *(_QWORD *)v8; *(_DWORD *)(v8 + 376) = -1; (*(void (__fastcall **)(__int64, _QWORD))(v16 + 1080))(v8, 0); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source