// // cocos2d::CCMenu::initWithArray from 0x100270568 to 0x1002706fc (404 bytes) // // 2 xrefs: // > cocos2d::CCMenu::createWithArray @ 0x10027051c // > cocos2d::CCMenu::init @ 0x100270720 // // 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 11:01:46 +0000 // bool __fastcall cocos2d::CCMenu::initWithArray(__int64 a1, __int64 a2) { _BOOL8 v4; // x19 __int64 v5; // x0 double WinSize; // d0 unsigned int *v7; // x9 __int64 v8; // x8 __int64 v9; // x21 _QWORD *v10; // x22 unsigned __int64 v11; // x23 float v13; // [xsp+0h] [xbp-50h] BYREF __int64 v14; // [xsp+8h] [xbp-48h] BYREF v4 = cocos2d::CCLayer::init((_WORD *)a1); if ( v4 ) { (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1024LL))(a1, 4294967168LL); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); *(_BYTE *)(a1 + 426) = 1; v5 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v5, &v14); (*(void (__fastcall **)(__int64, __int64, double))(*(_QWORD *)a1 + 440LL))(a1, 1, WinSize); sub_1000262BC(&v13, 0.5, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 296LL))(a1, &v13); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 320LL))(a1, &v14); sub_1000262BC(&v13, *(float *)&v14 * 0.5, *((float *)&v14 + 1) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 184LL))(a1, &v13); if ( a2 ) { v7 = *(unsigned int **)(a2 + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = 0; v10 = *((_QWORD **)v7 + 2); v11 = (unsigned __int64)&v10[v8 - 1]; do { if ( !*v10 ) break; (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *v10, v9); v9 = (unsigned int)(v9 + 1); ++v10; } while ( (unsigned __int64)v10 <= v11 ); } } *(_QWORD *)(a1 + 432) = 0; *(_DWORD *)(a1 + 428) = 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1240LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1192LL))(a1, 1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source