// // cocos2d::CCMenu::initWithArray from 0xd64f88 to 0xd6516c (484 bytes) // // 3 xrefs: // > cocos2d::CCMenu::createWithArray @ 0xd651d8 // > cocos2d::CCMenu::init @ 0xd653e8 // > @ 0xdc600 // // 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::CCMenu::initWithArray(cocos2d::CCMenu *this, cocos2d::CCArray *a2) { unsigned __int8 v4; // w0 unsigned int v5; // w23 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 void (__fastcall *v9)(cocos2d::CCMenu *, float *); // x25 void (__fastcall *v10)(cocos2d::CCMenu *, float *); // x22 unsigned int *v11; // x1 char *v12; // x20 __int64 v13; // x0 char *v14; // x24 __int64 v15; // x1 unsigned int i; // w22 __int64 v17; // x2 __int64 v18; // x2 __int64 v19; // [xsp+58h] [xbp+58h] BYREF float v20; // [xsp+60h] [xbp+60h] BYREF v4 = cocos2d::CCLayer::init(this); v5 = v4; if ( v4 ) { (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 1024LL))(this, 4294967168LL); (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 1008LL))(this, 1); v7 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 1000LL))( this, 1); *((_BYTE *)this + 426) = 1; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v19, v8); (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 440LL))(this, 1); v9 = *(void (__fastcall **)(cocos2d::CCMenu *, float *))(*(_QWORD *)this + 296LL); cocos2d::CCPoint::CCPoint(&v20, 0.5, 0.5); v9(this, &v20); (*(void (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)this + 320LL))(this, &v19); v10 = *(void (__fastcall **)(cocos2d::CCMenu *, float *))(*(_QWORD *)this + 184LL); cocos2d::CCPoint::CCPoint(&v20, *(float *)&v19 * 0.5, *((float *)&v19 + 1) * 0.5); v10(this, &v20); if ( a2 ) { v11 = *((unsigned int **)a2 + 7); if ( *v11 ) { v12 = *((char **)v11 + 2); v13 = 8LL * *v11 - 8; v14 = &v12[v13]; if ( v12 <= &v12[v13] ) { v15 = *(_QWORD *)v12; for ( i = 0; *(_QWORD *)v12; v15 = *(_QWORD *)v12 ) { v17 = i; v12 += 8; ++i; (*(void (__fastcall **)(cocos2d::CCMenu *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v15, v17); if ( v14 < v12 ) break; } } } } v18 = *(_QWORD *)this; *((_QWORD *)this + 54) = 0; *((_DWORD *)this + 107) = 0; (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(v18 + 1240))(this, 1); (*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 1192LL))(this, 1); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source