// // GJRateLevelLayer::init from 0x9524ec to 0x952b8c (1696 bytes) // // 2 xrefs: // > GJRateLevelLayer::create @ 0x952e2c // > @ 0xfa768 // // 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:23 +0000 // __int64 __fastcall GJRateLevelLayer::init(GJRateLevelLayer *this, GJGameLevel *a2) { unsigned __int8 v4; // w0 unsigned int v5; // w27 int v6; // w20 cocos2d::CCDirector *v7; // x0 cocos2d::CCArray *WinSize; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCArray *v10; // x0 cocos2d::CCArray *v11; // x25 cocos2d::CCMenu *v12; // x28 __int64 v13; // x0 const char *v14; // x1 __int64 v15; // x0 __int64 v16; // x21 __int64 v17; // x0 void (__fastcall *v18)(__int64, __int64 *); // x3 float *StarsButton; // x21 cocos2d::CCNode *v20; // x24 cocos2d::CCNode *v21; // x24 __int64 v22; // x0 __int64 v23; // x24 void (__fastcall *v24)(__int64, __int64 *); // x20 __int64 v25; // x20 void (__fastcall *v26)(__int64, __int64 *); // x2 void (__fastcall *v27)(__int64, __int64 *); // x24 long double v28; // q0 LoadingCircle *v29; // x0 __int64 v30; // x0 __int64 v31; // x0 __int64 v32; // x1 __int64 v33; // x20 void (__fastcall *v34)(__int64, __int64); // x21 __int64 v35; // x0 const char *v36; // x1 __int64 v37; // x2 __int64 v38; // x3 bool v39; // w4 __int64 v40; // x5 const char *v41; // x6 __int64 v42; // x0 cocos2d::CCObject *v43; // x20 const char *v44; // x1 __int64 v45; // x2 __int64 v46; // x3 bool v47; // w4 __int64 v48; // x5 const char *v49; // x6 __int64 v50; // x0 __int64 v51; // x0 cocos2d::CCNode *v52; // x20 GameLevelManager *v53; // x0 GameLevelManager *v54; // x0 GameLevelManager *v55; // x0 cocos2d::CCNode *v57; // [xsp+80h] [xbp+80h] void (__fastcall *v58)(__int64, __int64 *); // [xsp+88h] [xbp+88h] __int64 v59; // [xsp+98h] [xbp+98h] BYREF _BYTE v60[8]; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v61[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v62[2]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v63[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v64; // [xsp+D0h] [xbp+D0h] if ( a2 && (v4 = SetupTriggerPopup::init(this, nullptr, nullptr, 420.0, 290.0, 1, 0.0), (v5 = v4) != 0) ) { SetupTriggerPopup::preSetup(this); v63[0] = 0; v63[1] = 0; v64 = nullptr; std::string::__init(v63, "Suggest Rating", 0xEu); SetupTriggerPopup::addTitle(this, v63); if ( (v63[0] & 1) != 0 ) operator delete(v64); *((_QWORD *)this + 131) = a2; cocos2d::CCObject::retain(a2); v6 = 1; *((_DWORD *)this + 270) = -1; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)0xFFFFFFFFLL); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize(&v59, v7); v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *((_QWORD *)this + 134) = v9; v10 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v9); v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10); v12 = (cocos2d::CCMenu *)cocos2d::CCArray::create(v11); v13 = cocos2d::CCMenu::create(v12); *((_QWORD *)this + 69) = v13; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v13, 10); v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_coinsIcon2_001.png", v14); *((_QWORD *)this + 136) = v15; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 1.4); v16 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 136), 0, (__int64)this, (__int64)GJRateLevelLayer::onToggleCoins, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); v57 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, -(float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v59 * 0.5)), (float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v59 + 1) * 0.5)); cocos2d::CCNode::convertToNodeSpace(v62, v57, (const cocos2d::CCPoint *)v61); v58(v16, v62); *((_BYTE *)this + 1084) = 0; v17 = *((_QWORD *)this + 136); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 960LL); memset(v62, 50, 3); v18(v17, v62); GJRateLevelLayer::onToggleCoins(this, nullptr); do { while ( 1 ) { StarsButton = GJRateLevelLayer::getStarsButton( (__int64)this, (const char *)(unsigned int)v6, (__int64)GJRateLevelLayer::selectRating, 0, *((_QWORD *)this + 69), 0.75); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 134), (cocos2d::CCObject *)StarsButton); (*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)StarsButton + 72LL))(StarsButton, (unsigned int)v6); if ( v6 > 5 ) break; ++v6; cocos2d::CCArray::addObject(v11, (cocos2d::CCObject *)StarsButton); if ( v6 == 11 ) goto LABEL_9; } ++v6; cocos2d::CCArray::addObject(v12, (cocos2d::CCObject *)StarsButton); } while ( v6 != 11 ); LABEL_9: v20 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, (float)(*(float *)&v59 * 0.5) + -90.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 19.55) + 75.0); cocos2d::CCNode::convertToNodeSpace(v62, v20, (const cocos2d::CCPoint *)v61); GameToolbox::alignItemsHorisontally((__int64)v11, (__int64)v62, 0, 13.6); v21 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, (float)(*(float *)&v59 * 0.5) + -90.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + -19.55) + 75.0); cocos2d::CCNode::convertToNodeSpace(v62, v21, (const cocos2d::CCPoint *)v61); GameToolbox::alignItemsHorisontally((__int64)v12, (__int64)v62, 0, 13.6); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + -90.0) + 140.0, (float)(*((float *)&v59 + 1) * 0.5) + 75.0); v22 = GJDifficultySprite::create(0, 1); *((_QWORD *)this + 138) = v22; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 160LL))(v22, 1.2); v23 = CCMenuItemSpriteExtra::create( *((_QWORD *)this + 138), 0, (__int64)this, (__int64)GJRateLevelLayer::onFeature, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v23); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCNode::convertToNodeSpace(v62, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)v60); v24(v23, v62); cocos2d::CCArray::removeAllObjects(v11); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v62, 0.0, 0.0, 80.0, 80.0); v25 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v62); v26 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 960LL); LOWORD(v62[0]) = 0; BYTE2(v62[0]) = 0; v26(v25, v62); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 912LL))(v25, 75); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v62, 280.0, 110.0); v27(v25, v62); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v25, 1); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)(*(float *)&v59 * 0.5) + 50.0, (float)(*((float *)&v59 + 1) * 0.5) + -32.0); *(__n128 *)&v28 = cocos2d::CCPoint::operator=((char *)this + 1128, v62); v29 = (LoadingCircle *)(*(__int64 (__fastcall **)(__int64, char *, long double))(*(_QWORD *)v25 + 184LL))( v25, (char *)this + 1128, v28); v30 = LoadingCircle::create(v29); *((_QWORD *)this + 140) = v30; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 0.7); *(_QWORD *)(*((_QWORD *)this + 140) + 552LL) = *((_QWORD *)this + 73); *(_BYTE *)(*((_QWORD *)this + 140) + 560LL) = 0; cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 140)); v31 = v25; v32 = *(_QWORD *)v25; v33 = *(_QWORD *)(*((_QWORD *)this + 140) + 544LL); v34 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v33 + 184LL); v35 = (*(__int64 (__fastcall **)(__int64))(v32 + 192))(v31); v34(v33, v35); LoadingCircle::show(*((cocos2d::CCNode ***)this + 140)); v42 = ButtonSprite::create((ButtonSprite *)"Cancel", v36, v37, v38, v39, v40, v41); v43 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v42, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v43); cocos2d::CCArray::addObject(v11, v43); v50 = ButtonSprite::create((ButtonSprite *)"Submit", v44, v45, v46, v47, v48, v49); v51 = CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)GJRateLevelLayer::onRate, 0); *((_QWORD *)this + 133) = v51; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v51); cocos2d::CCArray::addObject(v11, *((cocos2d::CCObject **)this + 133)); v52 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, 25.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v59 + 1) * 0.5))); cocos2d::CCNode::convertToNodeSpace(v62, v52, (const cocos2d::CCPoint *)v61); GameToolbox::alignItemsHorisontally((__int64)v11, (__int64)v62, 0, 15.0); v53 = (GameLevelManager *)GJRateLevelLayer::selectRating(this, nullptr); v54 = (GameLevelManager *)GameLevelManager::sharedState(v53); *((_QWORD *)v54 + 183) = (char *)this + 1032; v55 = (GameLevelManager *)GameLevelManager::sharedState(v54); GameLevelManager::getLevelRateInfo( v55, (const char *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 131) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 131) + 332LL))); SetupTriggerPopup::postSetup(this); } else { return 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source