// // MyStuffPopup::init from 0x5f731c to 0x5f770e (1010 bytes) // // 1 xrefs: // > MyStuffPopup::create @ 0x5f777c // // 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:32 +0000 // GameManager *__fastcall MyStuffPopup::init(const cocos2d::CCPoint **this, GJUserScore *a2) { GameManager *v4; // r9 cocos2d::CCDirector *v5; // r0 float v6; // s16 float v7; // s17 int v8; // r4 void (__fastcall *v9)(int, _BYTE *); // r7 int (__fastcall *v10)(int, _BYTE *); // r7 cocos2d::CCMenu *v11; // r0 const cocos2d::CCPoint *v12; // r0 const char *v13; // r2 int v14; // r4 void (__fastcall *v15)(int, _BYTE *); // r7 const char *v16; // r1 int v17; // r4 int v18; // r4 const cocos2d::CCPoint *v19; // r10 void (__fastcall *v20)(int, _BYTE *); // r8 int v21; // r4 int v22; // r10 int *v23; // r3 int v24; // r10 int *v25; // r3 int v26; // r10 int *v27; // r3 int v28; // r10 cocos2d::CCArray *v29; // r0 int *v30; // r3 int v31; // r8 const char *v32; // r1 cocos2d::CCArray *v33; // r10 char *v34; // r0 int v35; // r0 cocos2d::CCObject *v36; // r11 const cocos2d::CCPoint *v37; // r4 int v39; // [sp+24h] [bp-60h] float v40[6]; // [sp+2Ch] [bp-58h] BYREF _BYTE v41[8]; // [sp+44h] [bp-40h] BYREF int v42; // [sp+4Ch] [bp-38h] BYREF int v43; // [sp+50h] [bp-34h] _BYTE v44[16]; // [sp+58h] [bp-2Ch] BYREF int v45[7]; // [sp+68h] [bp-1Ch] BYREF v4 = FLAlertLayer::init((FLAlertLayer *)this, 75); if ( v4 ) { if ( a2 ) { *(this + 130) = a2; v5 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(a2); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v40); v6 = v40[0] * 0.5; v7 = v40[1] * 0.5; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v44, 0.0, 0.0, 80.0, 80.0); v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v44); v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v44, 240.0, 100.0); v9(v8, v44); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v8, -1); v10 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v6, v7); v11 = (cocos2d::CCMenu *)v10(v8, v44); v12 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v11); *(this + 111) = v12; (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), v12, 10); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"My Socials", "goldFont.fnt", v13); (*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1060320051); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v6, (float)(v7 + 50.0) - 22.0); v15(v14, v44); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v14, 5); v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v16); (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, 1061997773); LODWORD(v40[2]) = MyStuffPopup::onClose; v40[3] = 0.0; v18 = CCMenuItemSpriteExtra::create(v17, 0, (int)this, (int)MyStuffPopup::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v18, 1.6); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v18); v19 = *(this + 111); v20 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, (float)(v6 - 120.0) + 4.0, (float)(v7 + 50.0) - 4.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v41, v19); v20(v18, v41); std::string::basic_string(v45, (int)*(this + 130) + 380); if ( (v45[0] & 1) != 0 ) v21 = v45[1]; else v21 = (int)LOBYTE(v45[0]) >> 1; std::string::~string((int)v45); if ( v21 ) { v21 = 1; v45[0] = 0; } std::string::basic_string(&v42, (int)*(this + 130) + 392); if ( (v42 & 1) != 0 ) v22 = v43; else v22 = (int)(unsigned __int8)v42 >> 1; std::string::~string((int)&v42); if ( v22 ) { v23 = &v45[v21++ + 6]; *(v23 - 6) = 1; } std::string::basic_string(&v42, (int)*(this + 130) + 404); if ( (v42 & 1) != 0 ) v24 = v43; else v24 = (int)(unsigned __int8)v42 >> 1; std::string::~string((int)&v42); if ( v24 ) { v25 = &v45[v21++ + 6]; *(v25 - 6) = 2; } std::string::basic_string(&v42, (int)*(this + 130) + 440); if ( (v42 & 1) != 0 ) v26 = v43; else v26 = (int)(unsigned __int8)v42 >> 1; std::string::~string((int)&v42); if ( v26 ) { v27 = &v45[v21++ + 6]; *(v27 - 6) = 4; } std::string::basic_string(&v42, (int)*(this + 130) + 428); if ( (v42 & 1) != 0 ) v28 = v43; else v28 = (int)(unsigned __int8)v42 >> 1; v29 = (cocos2d::CCArray *)std::string::~string((int)&v42); if ( v28 ) { v30 = &v45[v21++ + 6]; *(v30 - 6) = 3; } v31 = 0; v33 = (cocos2d::CCArray *)cocos2d::CCArray::create(v29); while ( v31 != v21 ) { switch ( v45[v31] ) { case 1: v34 = "gj_twIcon_001.png"; break; case 2: v34 = "gj_twitchIcon_001.png"; break; case 3: v34 = "gj_instaIcon_001.png"; break; case 4: v34 = "gj_tiktokIcon_001.png"; break; default: v34 = "gj_ytIcon_001.png"; break; } v39 = v45[v31]; v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v34, v32); v40[5] = 0.0; LODWORD(v40[4]) = MyStuffPopup::onSocialPage; ++v31; v36 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v35, 0, (int)this, (int)MyStuffPopup::onSocialPage, 0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v36 + 36))(v36, v39); CCMenuItemSpriteExtra::setSizeMult((int)v36, 1.2); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v36); cocos2d::CCArray::addObject(v33, v36); } v37 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v6, v7 - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v41, v37); GameToolbox::alignItemsHorisontally(*(float *)&v33, 9.0, (int)v41, 0); } else { return nullptr; } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source