// // EditLevelLayer::setupLevelInfo from 0x7ef8b8 to 0x7f009c (2020 bytes) // // 2 xrefs: // > EditLevelLayer::init @ 0x7f0b88 // > @ 0x56830 // // 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:54:34 +0000 // __int64 __fastcall EditLevelLayer::setupLevelInfo(EditLevelLayer *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCArray *WinSize; // x0 cocos2d::CCNode *v4; // x19 cocos2d::CCObject *v5; // x22 cocos2d::CCNode *v6; // x0 cocos2d::CCObject *v7; // x23 cocos2d::CCNode *v8; // x0 cocos2d::CCObject *v9; // x24 const char *v10; // x1 const char *v11; // x1 const char *v12; // x1 cocos2d::CCObject *v13; // x28 int v14; // w1 const char *v15; // x2 cocos2d::CCLabelBMFont *v16; // x0 cocos2d::CCObject *v17; // x26 void (__fastcall *v18)(cocos2d::CCObject *); // x27 const char *v19; // x2 cocos2d::CCLabelBMFont *v20; // x0 cocos2d::CCObject *v21; // x27 __int64 v22; // x0 const char *v23; // x2 unsigned int *v24; // x0 int v25; // w1 cocos2d::CCLabelBMFont *v26; // x0 cocos2d::CCLabelBMFont *v27; // x21 cocos2d::CCDirector *v28; // x0 float v29; // s8 cocos2d::CCDirector *v30; // x0 float v31; // s0 cocos2d::CCString *v32; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v34; // x2 __int64 v35; // x22 _DWORD *v36; // x3 int v37; // w1 int v38; // w0 cocos2d::CCString *v39; // x0 char *v40; // x0 int v41; // w4 const char *v42; // x2 cocos2d::CCString *v43; // x0 __int64 v44; // x19 cocos2d::CCDirector *v45; // x0 float v46; // s8 cocos2d::CCDirector *v47; // x0 float v48; // s0 void (__fastcall *v49)(__int64, __int64 *); // x23 void (__fastcall *v50)(__int64, __int64 *); // x23 long double v51; // q0 void (__fastcall *v52)(__int64, float); // x20 float *v53; // x0 void (__fastcall *v54)(__int64); // x20 __int64 v56; // [xsp+78h] [xbp+78h] void (__fastcall *v57)(cocos2d::CCObject *, __int64 *); // [xsp+80h] [xbp+80h] cocos2d::CCObject *v58; // [xsp+88h] [xbp+88h] cocos2d::CCObject *v59; // [xsp+90h] [xbp+90h] cocos2d::CCObject *v60; // [xsp+98h] [xbp+98h] __int64 v61; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v62[8]; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v63[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v64; // [xsp+B8h] [xbp+B8h] BYREF __int64 v65[2]; // [xsp+C0h] [xbp+C0h] BYREF cocos2d::CCLabelBMFont *v66; // [xsp+D0h] [xbp+D0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v61, v2); v4 = (cocos2d::CCNode *)cocos2d::CCArray::create(WinSize); v5 = (cocos2d::CCObject *)cocos2d::CCNode::create(v4); v6 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(EditLevelLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))( this, v5); v7 = (cocos2d::CCObject *)cocos2d::CCNode::create(v6); v8 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(EditLevelLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))( this, v7); v9 = (cocos2d::CCObject *)cocos2d::CCNode::create(v8); (*(void (__fastcall **)(EditLevelLayer *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v9); v60 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_timeIcon_001.png", v10); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v5 + 456LL))(v5, v60); v59 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_noteIcon_001.png", v11); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v7 + 456LL))(v7, v59); v13 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_infoIcon_001.png", v12); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v9 + 456LL))(v9, v13); GJGameLevel::lengthKeyToString(v65, (GJGameLevel *)*(unsigned int *)(*((_QWORD *)this + 59) + 900LL), v14); v16 = (cocos2d::CCLabelBMFont *)((char *)v65 + 1); if ( (v65[0] & 1) != 0 ) v16 = v66; v17 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v16, "bigFont.fnt", v15); if ( (v65[0] & 1) != 0 ) operator delete(v66); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v5 + 456LL))(v5, v17); v18 = *(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v17 + 160LL); if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v17 + 328LL))(v17)) <= 0.5 ) (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v17 + 328LL))(v17); v18(v17); GJGameLevel::getSongName(v65, *((GJGameLevel **)this + 59)); v20 = (cocos2d::CCLabelBMFont *)((char *)v65 + 1); if ( (v65[0] & 1) != 0 ) v20 = v66; v21 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v20, "bigFont.fnt", v19); if ( (v65[0] & 1) != 0 ) operator delete(v66); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCObject *))(*(_QWORD *)v7 + 456LL))(v7, v21); v58 = *(cocos2d::CCObject **)(*(_QWORD *)v21 + 160LL); if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v21 + 328LL))(v21)) <= 0.5 ) (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v21 + 328LL))(v21); ((void (__fastcall *)(cocos2d::CCObject *))v58)(v21); v65[0] = 0; v65[1] = 0; v66 = nullptr; std::string::__init(v65, &byte_11B8890, 0); v22 = *((_QWORD *)this + 59); if ( *(_BYTE *)(v22 + 785) ) { std::string::assign(v65, "Uploaded"); } else if ( *(_DWORD *)(v22 + 776) - *(_DWORD *)(v22 + 780) == 1 ) { std::string::assign(v65, "Verified"); } else { std::string::assign(v65, "Unverified"); if ( *(int *)(*((_QWORD *)this + 59) + 964LL) > 0 ) { std::string::assign(v65, "Unverified\nReq. Coins: "); v24 = *((unsigned int **)this + 59); v25 = v24[252] - v24[253]; if ( v25 != 1 ) { std::string::append((__int64)v65, "1", 1u); v24 = *((unsigned int **)this + 59); v25 = 0; } v23 = (const char *)v24[241]; if ( (int)v23 > 1 ) { if ( v24[255] - v24[256] != 1 ) { if ( !v25 ) std::string::append((__int64)v65, ", ", 2u); std::string::append((__int64)v65, &byte_120A098, 1u); v24 = *((unsigned int **)this + 59); v25 = 0; v23 = (const char *)v24[241]; } if ( (int)v23 > 2 ) { v23 = (const char *)v24[258]; if ( (_DWORD)v23 - v24[259] != 1 ) { if ( !v25 ) std::string::append((__int64)v65, ", ", 2u); std::string::append((__int64)v65, "3", 1u); } } } } } if ( (v65[0] & 1) != 0 ) v26 = v66; else v26 = (cocos2d::CCLabelBMFont *)((char *)v65 + 1); v27 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v26, "bigFont.fnt", v23); (*(void (__fastcall **)(cocos2d::CCObject *, cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 456LL))(v9, v27); cocos2d::CCLabelBMFont::limitLabelWidth(v27, 100.0, 0.5, 0.0); v57 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v13 + 184LL); v56 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v13 + 192LL))(v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, 0.0, 2.0); cocos2d::CCPoint::operator+(&v64, v56); v57(v13, &v64); cocos2d::CCArray::removeAllObjects(v4); cocos2d::CCArray::addObject(v4, v60); cocos2d::CCArray::addObject(v4, v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, (const cocos2d::CCPoint *)&unk_155C8E0); GameToolbox::alignItemsHorisontally((__int64)v4, (__int64)&v64, 0, 4.0); cocos2d::CCArray::removeAllObjects(v4); cocos2d::CCArray::addObject(v4, v59); cocos2d::CCArray::addObject(v4, v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, (const cocos2d::CCPoint *)&unk_155C8E0); GameToolbox::alignItemsHorisontally((__int64)v4, (__int64)&v64, 0, 4.0); cocos2d::CCArray::removeAllObjects(v4); cocos2d::CCArray::addObject(v4, v13); cocos2d::CCArray::addObject(v4, v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, (const cocos2d::CCPoint *)&unk_155C8E0); GameToolbox::alignItemsHorisontally((__int64)v4, (__int64)&v64, 0, 4.0); cocos2d::CCArray::removeAllObjects(v4); cocos2d::CCArray::addObject(v4, v5); cocos2d::CCArray::addObject(v4, v7); v28 = (cocos2d::CCDirector *)cocos2d::CCArray::addObject(v4, v9); v29 = *(float *)&v61 * 0.5; v30 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v28); cocos2d::CCDirector::getScreenBottom(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, v29, v31 + 55.0); GameToolbox::alignItemsHorisontally((__int64)v4, (__int64)&v64, 0, 140.0); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)*(unsigned int *)(*((_QWORD *)this + 59) + 788LL)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v32); v35 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v34); (*(void (__fastcall **)(EditLevelLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v35); v36 = *((_DWORD **)this + 59); v37 = v36[82]; v38 = v36[83]; if ( v37 == v38 ) { v40 = "ID: na"; } else { v39 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ID: %i", (const char *)(unsigned int)(v37 - v38)); v40 = (char *)cocos2d::CCString::getCString(v39); v36 = *((_DWORD **)this + 59); } v41 = v36[247]; v42 = (const char *)(unsigned int)v36[248]; if ( v41 != (_DWORD)v42 ) { v43 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s (%i)", v40, (unsigned int)(v41 - (_DWORD)v42)); v40 = (char *)cocos2d::CCString::getCString(v43); } v44 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v40, "goldFont.fnt", v42); v45 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(EditLevelLayer *, __int64))(*(_QWORD *)this + 456LL))( this, v44); v46 = *(float *)&v61 * 0.5; v47 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v45); cocos2d::CCDirector::getScreenBottom(v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, v46, v48 + 14.0); v49 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, -75.0, 0.0); cocos2d::CCPoint::operator+(&v64, v62); v49(v35, &v64); v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v63, 75.0, 0.0); cocos2d::CCPoint::operator+(&v64, v62); v50(v44, &v64); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); LODWORD(v51) = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 328LL))(v44); if ( *(float *)&v51 > 150.0 ) { v52 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 160LL); v53 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v44 + 328LL))(v44, *(float *)&v51); v52(v44, 150.0 / *v53); } v54 = *(void (__fastcall **)(__int64))(*(_QWORD *)v44 + 160LL); if ( (*(float (__fastcall **)(__int64, long double))(*(_QWORD *)v44 + 168LL))(v44, v51) < 0.6 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v44 + 168LL))(v44); v54(v44); if ( (v65[0] & 1) != 0 ) operator delete(v66); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source