// // ShareLevelLayer::setupStars from 0x7f38b0 to 0x7f3c28 (888 bytes) // // 2 xrefs: // > ShareLevelLayer::init @ 0x7f43ec // > @ 0xc5068 // // 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:36 +0000 // __int64 __fastcall ShareLevelLayer::setupStars(ShareLevelLayer *this) { int v2; // w19 cocos2d::CCDirector *v3; // x0 cocos2d::CCArray *WinSize; // x0 cocos2d::CCObject *v5; // x0 cocos2d::CCArray *v6; // x0 cocos2d::CCArray *v7; // x23 cocos2d::CCArray *v8; // x22 float *StarsButton; // x20 cocos2d::CCNode *v10; // x27 GJGameLevel *v11; // x0 char *v12; // x1 const char *v13; // x2 cocos2d::CCLabelBMFont *v14; // x0 __int64 v15; // x22 void (__fastcall *v16)(__int64, __int64 *); // x23 const char *v17; // x1 __int64 v18; // x0 __int64 v19; // x3 __int64 v20; // x22 void (__fastcall *v21)(__int64, __int64 *); // x23 __int64 v23; // [xsp+68h] [xbp+68h] BYREF _BYTE v24[4]; // [xsp+70h] [xbp+70h] BYREF float v25; // [xsp+74h] [xbp+74h] __int64 v26; // [xsp+78h] [xbp+78h] BYREF _BYTE v27[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v28; // [xsp+88h] [xbp+88h] BYREF __int64 v29[2]; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCLabelBMFont *v30; // [xsp+A0h] [xbp+A0h] v2 = 1; v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v23, v3); v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *((_QWORD *)this + 85) = v5; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v5); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); do { while ( 1 ) { StarsButton = ShareLevelLayer::getStarsButton( (__int64)this, (const char *)(unsigned int)v2, (__int64)ShareLevelLayer::selectRating, 0, *((_QWORD *)this + 69), 0.8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), (cocos2d::CCObject *)StarsButton); (*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)StarsButton + 72LL))(StarsButton, (unsigned int)v2); if ( v2 > 5 ) break; ++v2; cocos2d::CCArray::addObject(v7, (cocos2d::CCObject *)StarsButton); if ( v2 == 11 ) goto LABEL_5; } ++v2; cocos2d::CCArray::addObject(v8, (cocos2d::CCObject *)StarsButton); } while ( v2 != 11 ); LABEL_5: cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v24, *(float *)&v23 * 0.5, (float)((float)((float)(*((float *)&v23 + 1) * 0.5) + -50.0) + 35.0) + 2.0); v10 = *((cocos2d::CCNode **)this + 69); cocos2d::CCNode::convertToWorldSpace(&v28, *((cocos2d::CCNode **)this + 73), (const cocos2d::CCPoint *)v24); cocos2d::CCNode::convertToNodeSpace(&v26, v10, (const cocos2d::CCPoint *)&v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, (const cocos2d::CCPoint *)&v26); GameToolbox::alignItemsHorisontally((__int64)v7, (__int64)&v28, 0, 17.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, -35.0); cocos2d::CCPoint::operator+(&v28, &v26); GameToolbox::alignItemsHorisontally((__int64)v8, (__int64)&v28, 0, 17.0); v11 = *((GJGameLevel **)this + 83); *((_DWORD *)this + 168) = *((_DWORD *)v11 + 261); if ( (unsigned __int8)GJGameLevel::isPlatformer(v11) ) v12 = "Request Moons"; else v12 = "Request Stars"; v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, v12, 0xDu); v14 = (cocos2d::CCLabelBMFont *)((char *)v29 + 1); if ( (v29[0] & 1) != 0 ) v14 = v30; v15 = cocos2d::CCLabelBMFont::create(v14, "bigFont.fnt", v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.5); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v15, 2); v16 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 30.0); cocos2d::CCPoint::operator+(&v28, v24); v16(v15, &v28); v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"difficulty_00_btn_001.png", v17); v19 = *((_QWORD *)this + 73); *((_QWORD *)this + 86) = v18; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v19 + 464LL))(v19, v18, 3); v20 = *((_QWORD *)this + 86); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 155.0, -18.0); cocos2d::CCPoint::operator+(&v28, v24); v21(v20, &v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, -170.0, -8.0); cocos2d::CCPoint::operator+(&v28, v24); ShareLevelLayer::setupNotifyToggles(this, (const cocos2d::CCPoint *)&v28, 40.0, v25 + 30.0); ShareLevelLayer::selectRating(this, nullptr); if ( (v29[0] & 1) != 0 ) operator delete(v30); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source