// // InfoLayer::setupLevelInfo from 0x9075f8 to 0x907834 (572 bytes) // // 2 xrefs: // > InfoLayer::init @ 0x90c44c // > @ 0xfd2d0 // // 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 12:57:09 +0000 // __int64 __fastcall InfoLayer::setupLevelInfo(InfoLayer *this) { cocos2d::CCDirector *v2; // x0 __int64 v3; // x0 unsigned int v4; // w20 cocos2d::CCString *v5; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v7; // x2 __int64 v8; // x23 cocos2d::CCMenu *v9; // x0 __int64 v10; // x21 const char *v11; // x2 cocos2d::CCLabelBMFont *v12; // x0 __int64 v13; // x26 void (__fastcall *v14)(__int64, __int64 *); // x27 __int64 v15; // x0 void (__fastcall *v16)(__int64, __int64 *); // x23 cocos2d::CCString *v18; // x0 __int64 v19; // x0 _DWORD *v20; // x3 __int64 v21; // [xsp+68h] [xbp+68h] BYREF _BYTE v22[8]; // [xsp+70h] [xbp+70h] BYREF _BYTE v23[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v24; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v21, v2); v3 = *((_QWORD *)this + 89); if ( v3 ) { v4 = *(_DWORD *)(v3 + 344); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)*(unsigned int *)(v3 + 348)); } else { v19 = *((_QWORD *)this + 90); if ( v19 ) { v4 = *(_DWORD *)(v19 + 316); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)*(unsigned int *)(v19 + 328)); } else { v20 = *((_DWORD **)this + 87); v4 = v20[82] - v20[83]; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)(unsigned int)v20[197]); } } CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v5); v8 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v7); v9 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v8, 2); v10 = cocos2d::CCMenu::create(v9); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v10, 2); if ( v4 ) { v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"ID: %i", (const char *)v4); v12 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v18); } else { v12 = (cocos2d::CCLabelBMFont *)"ID: na"; } v13 = cocos2d::CCLabelBMFont::create(v12, "goldFont.fnt", v11); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v22, *(float *)&v21 * 0.5, (float)((float)(*((float *)&v21 + 1) * 0.5) + -145.0) + 14.0); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, -50.0, 0.0); cocos2d::CCPoint::operator+(&v24, v22); v14(v8, &v24); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.6); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.6); v15 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, (__int64)InfoLayer::onCopyLevelID, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, v15); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 50.0, 0.0); cocos2d::CCPoint::operator+(&v24, v22); v16(v10, &v24); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source