// // RateDemonLayer::init from 0x616168 to 0x61646c (772 bytes) // // 1 xrefs: // > RateDemonLayer::create @ 0x616602 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:55 +0000 // GameManager *__fastcall RateDemonLayer::init(cocos2d::CCObject **this, cocos2d::CCObject *a2) { GameManager *v4; // r0 GameManager *v5; // r10 int v6; // r0 char v7; // r3 int v8; // r5 void (__fastcall *v9)(int, _BYTE *); // r9 void (__fastcall *v10)(int, _BYTE *); // r7 const char *v11; // r2 char *v12; // r0 int v13; // r9 int v14; // r5 void (__fastcall *v15)(int, _BYTE *); // r7 cocos2d::CCArray *v16; // r0 cocos2d::CCObject *v17; // r0 cocos2d::CCArray *v18; // r0 cocos2d::CCMenu *v19; // r8 cocos2d::CCObject *v20; // r0 cocos2d::CCString *v21; // r12 cocos2d::CCString *v22; // r0 cocos2d::CCSprite *CString; // r0 const char *v24; // r1 int v25; // r7 cocos2d::CCObject *v26; // r7 int v27; // r1 const cocos2d::CCPoint *v28; // r11 const char *v29; // r1 ButtonSprite *v30; // r0 cocos2d::CCObject *v31; // r11 const char *v32; // r1 ButtonSprite *v33; // r0 int v34; // r0 const cocos2d::CCPoint *v35; // r11 cocos2d::CCString *v37; // [sp+Ch] [bp-48h] float v38; // [sp+14h] [bp-40h] BYREF float v39; // [sp+18h] [bp-3Ch] int (__fastcall *v40)(RateDemonLayer *, cocos2d::CCObject *); // [sp+1Ch] [bp-38h] int v41; // [sp+20h] [bp-34h] int (__fastcall ***(__fastcall *v42)(RateDemonLayer *, cocos2d::CCObject *))(_DWORD); // [sp+24h] [bp-30h] int v43; // [sp+28h] [bp-2Ch] _DWORD (*v44)(RateDemonLayer *__hidden, cocos2d::CCObject *); // [sp+2Ch] [bp-28h] int v45; // [sp+30h] [bp-24h] _BYTE v46[8]; // [sp+34h] [bp-20h] BYREF _BYTE v47[16]; // [sp+3Ch] [bp-18h] BYREF v4 = FLAlertLayer::init((FLAlertLayer *)this, 75); v5 = v4; if ( v4 ) { v6 = GameManager::sharedState(v4); if ( (unsigned int)(*(_DWORD *)(v6 + 820) - *(_DWORD *)(v6 + 824) - 1) > 1 ) { v6 = GameManager::sharedState((GameManager *)v6); v7 = *(_BYTE *)(v6 + 832); } else { v7 = (char)v5; } *((_BYTE *)this + 552) = v7; *(this + 136) = a2; *(this + 137) = (cocos2d::CCObject *)-1; cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v6); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v38); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v47, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v47); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v47, 380.0, 180.0); v9(v8, v47); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v8, -1); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v38 * 0.5, v39 * 0.5); v10(v8, v47); if ( *((_BYTE *)this + 552) ) v12 = "Advisor: Rate Demon"; else v12 = "Rate Demon"; v13 = 1; v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v12, "bigFont.fnt", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1063675494); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v38 * 0.5, (float)((float)(v39 * 0.5) + 90.0) - 20.0); v15(v14, v47); v16 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v14); v17 = (cocos2d::CCObject *)cocos2d::CCArray::create(v16); *(this + 134) = v17; v18 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v17); v19 = (cocos2d::CCMenu *)cocos2d::CCArray::create(v18); v20 = (cocos2d::CCObject *)cocos2d::CCMenu::create(v19); *(this + 111) = v20; (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v20, 10); v21 = (cocos2d::CCString *)"difficulty_%02d_btn2_001.png"; do { v37 = v21; v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(v21, (const char *)byte_BEEB64[v13 - 1]); CString = (cocos2d::CCSprite *)cocos2d::CCString::getCString(v22); v25 = cocos2d::CCSprite::createWithSpriteFrameName(CString, v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1066192077); v40 = RateDemonLayer::selectRating; v41 = 0; v26 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v25, 0, (int)this, (int)RateDemonLayer::selectRating, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v26); cocos2d::CCArray::addObject(*(this + 134), v26); v27 = v13++; (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v26 + 36))(v26, v27); cocos2d::CCArray::addObject(v19, v26); v21 = v37; } while ( v13 != 6 ); v28 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v38 * 0.5, (float)(v39 * 0.5) + 3.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v46, v28); GameToolbox::alignItemsHorisontally(*(float *)&v19, 18.0, (int)v46, 0); cocos2d::CCArray::removeAllObjects(v19); v30 = ButtonSprite::create((ButtonSprite *)"Cancel", v29); v42 = RateDemonLayer::onClose; v43 = 0; v31 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v30, 0, (int)this, (int)RateDemonLayer::onClose, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v31); cocos2d::CCArray::addObject(v19, v31); v33 = ButtonSprite::create((ButtonSprite *)"Submit", v32); v44 = RateDemonLayer::onRate; v45 = 0; v34 = CCMenuItemSpriteExtra::create((int)v33, 0, (int)this, (int)RateDemonLayer::onRate, 0); *(this + 133) = (cocos2d::CCObject *)v34; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v34); cocos2d::CCArray::addObject(v19, *(this + 133)); v35 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v38 * 0.5, (float)((float)(v39 * 0.5) - 90.0) + 25.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v46, v35); GameToolbox::alignItemsHorisontally(*(float *)&v19, 15.0, (int)v46, 0); RateDemonLayer::selectRating((RateDemonLayer *)this, nullptr); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source