// // StarInfoPopup::init from 0xa578b8 to 0xa58110 (2136 bytes) // // 2 xrefs: // > StarInfoPopup::create @ 0xa582d8 // > @ 0xefd40 // // 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 13:00:08 +0000 // __int64 __fastcall StarInfoPopup::init( cocos2d::CCNode **this, unsigned int a2, unsigned int a3, unsigned int a4, unsigned int a5, unsigned int a6, unsigned int a7, int a8, GameToolbox *a9, GameToolbox *a10, bool a11) { cocos2d::CCDirector *v13; // x0 __int64 v14; // x20 void (__fastcall *v15)(__int64, __int64 *); // x21 __int64 (__fastcall *v16)(__int64, __int64 *); // x21 cocos2d::CCMenu *v17; // x0 __int64 v18; // x0 const char *v19; // x1 const char *v20; // x20 size_t v21; // x0 char *v22; // x2 cocos2d::CCString *v23; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v25; // x2 __int64 v26; // x20 void (__fastcall *v27)(__int64, __int64 *); // x21 float v28; // s0 int v29; // w21 unsigned int v30; // w20 unsigned int v31; // w0 __int64 v32; // x24 const char *v33; // x2 cocos2d::CCLabelBMFont *v34; // x0 __int64 v35; // x20 void (__fastcall *v36)(__int64, __int64 *); // x25 const char *v37; // x1 __int64 v38; // x2 __int64 v39; // x3 bool v40; // w4 __int64 v41; // x5 const char *v42; // x6 char *v43; // x1 cocos2d::CCString *v44; // x0 cocos2d::CCLabelBMFont *v45; // x0 const char *v46; // x2 __int64 v47; // x20 void (__fastcall *v48)(__int64, __int64 *); // x21 char *v49; // x1 cocos2d::CCString *v50; // x0 cocos2d::CCLabelBMFont *v51; // x0 const char *v52; // x2 __int64 v53; // x20 void (__fastcall *v54)(__int64, __int64 *); // x21 char *v55; // x1 cocos2d::CCString *v56; // x0 cocos2d::CCLabelBMFont *v57; // x0 const char *v58; // x2 __int64 v59; // x20 void (__fastcall *v60)(__int64, __int64 *); // x21 __int64 v61; // x0 __int64 v62; // x20 cocos2d::CCNode *v63; // x22 void (__fastcall *v64)(__int64, __int64 *); // x21 char *v67; // [xsp+90h] [xbp+90h] unsigned __int8 v73; // [xsp+AFh] [xbp+AFh] __int64 v74; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v75[8]; // [xsp+C0h] [xbp+C0h] BYREF __int64 v76; // [xsp+C8h] [xbp+C8h] BYREF _BYTE v77[8]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v78[2]; // [xsp+D8h] [xbp+D8h] BYREF __int64 v79[2]; // [xsp+E8h] [xbp+E8h] BYREF void *v80; // [xsp+F8h] [xbp+F8h] unsigned __int64 v81[2]; // [xsp+100h] [xbp+100h] BYREF void *v82; // [xsp+110h] [xbp+110h] unsigned __int64 v83[2]; // [xsp+118h] [xbp+118h] BYREF void *v84; // [xsp+128h] [xbp+128h] unsigned __int64 v85[2]; // [xsp+130h] [xbp+130h] BYREF char *v86; // [xsp+140h] [xbp+140h] unsigned __int64 v87[2]; // [xsp+148h] [xbp+148h] BYREF char *v88; // [xsp+158h] [xbp+158h] unsigned __int64 v89[2]; // [xsp+160h] [xbp+160h] BYREF char *v90; // [xsp+170h] [xbp+170h] v73 = FLAlertLayer::init((FLAlertLayer *)this, 75); if ( v73 ) { v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v73); cocos2d::CCDirector::getWinSize(&v74, v13); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v78, 0.0, 0.0, 80.0, 80.0); v14 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v78); v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v78, 380.0, 210.0); v15(v14, v78); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))( *(this + 73), v14, 0xFFFFFFFFLL); v16 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, *(float *)&v74 * 0.5, *((float *)&v74 + 1) * 0.5); v17 = (cocos2d::CCMenu *)v16(v14, v78); v18 = cocos2d::CCMenu::create(v17); *(this + 69) = (cocos2d::CCNode *)v18; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v18, 10); if ( a11 ) v19 = "Platformer"; else v19 = "Classic"; v67 = (char *)v19; v79[0] = 0; v79[1] = 0; v20 = (char *)v79 + 1; v80 = nullptr; v21 = strlen(v19); std::string::__init(v79, v67, v21); if ( (v79[0] & 1) != 0 ) v20 = (const char *)v80; GameToolbox::pointsToString((GameToolbox *)(a3 + a4 + a5 + a6 + a7), v81); v22 = (char *)v81 + 1; if ( (v81[0] & 1) != 0 ) v22 = (char *)v82; v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s: %s", v20, v22); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v23); v26 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v25); if ( (v81[0] & 1) != 0 ) operator delete(v82); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.7); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v78, *(float *)&v74 * 0.5, (float)((float)(*((float *)&v74 + 1) * 0.5) + 105.0) - 20.0); v27(v26, v78); v28 = (float)(*(float *)&v74 * 0.5) - 147.5; v29 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v75, v28, (float)(*((float *)&v74 + 1) * 0.5) + 25.0); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, (float)v29 * 59.0, 0.0); cocos2d::CCPoint::operator+(&v76, v75); switch ( v29 ) { case 1: v30 = a3; v31 = v29; break; case 2: v30 = a4; v31 = v29; break; case 3: v30 = a5; v31 = v29; break; case 4: v30 = a6; v31 = v29; break; case 5: v30 = a7; v31 = v29; break; default: v30 = a2; v31 = -1; break; } v32 = GJDifficultySprite::create(v31, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.9); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL))(v32, &v76); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v32); GameToolbox::pointsToString((GameToolbox *)v30, v83); v34 = (cocos2d::CCLabelBMFont *)((char *)v83 + 1); if ( (v83[0] & 1) != 0 ) v34 = (cocos2d::CCLabelBMFont *)v84; v35 = cocos2d::CCLabelBMFont::create(v34, "goldFont.fnt", v33); if ( (v83[0] & 1) != 0 ) operator delete(v84); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v35); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v77, 0.0, -40.0); cocos2d::CCPoint::operator+(v78, &v76); v36(v35, v78); ++v29; } while ( v29 != 6 ); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v76, (float)((float)(*(float *)&v74 * 0.5) + 190.0) - 12.0, (float)((float)(*((float *)&v74 + 1) * 0.5) + -105.0) + 14.0); if ( (int)a9 > 0 ) { GameToolbox::pointsToString((GameToolbox *)(unsigned int)a9, v85); v43 = (char *)v85 + 1; if ( (v85[0] & 1) != 0 ) v43 = v86; v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Gauntlet: %s", v43); v45 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v44); v47 = cocos2d::CCLabelBMFont::create(v45, "goldFont.fnt", v46); if ( (v85[0] & 1) != 0 ) operator delete(v86); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v47); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.4); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, 1.0, 0.0); v48(v47, v78); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL))(v47, &v76); *((float *)&v76 + 1) = *((float *)&v76 + 1) + 16.0; } if ( a8 > 0 ) { GameToolbox::pointsToString((GameToolbox *)(unsigned int)a8, v87); v49 = (char *)v87 + 1; if ( (v87[0] & 1) != 0 ) v49 = v88; v50 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Daily: %s", v49); v51 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v50); v53 = cocos2d::CCLabelBMFont::create(v51, "goldFont.fnt", v52); if ( (v87[0] & 1) != 0 ) operator delete(v88); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v53); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v53 + 160LL))(v53, 0.4); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, 1.0, 0.0); v54(v53, v78); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL))(v53, &v76); *((float *)&v76 + 1) = *((float *)&v76 + 1) + 16.0; } if ( (int)a10 > 0 ) { GameToolbox::pointsToString((GameToolbox *)(unsigned int)a10, v89); v55 = (char *)v89 + 1; if ( (v89[0] & 1) != 0 ) v55 = v90; v56 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Map: %s", v55); v57 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v56); v59 = cocos2d::CCLabelBMFont::create(v57, "goldFont.fnt", v58); if ( (v89[0] & 1) != 0 ) operator delete(v90); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v59); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v59 + 160LL))(v59, 0.4); v60 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v78, 1.0, 0.0); v60(v59, v78); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 184LL))(v59, &v76); *((float *)&v76 + 1) = *((float *)&v76 + 1) + 16.0; } v61 = ButtonSprite::create((ButtonSprite *)"OK", v37, v38, v39, v40, v41, v42); v62 = CCMenuItemSpriteExtra::create(v61, 0, (__int64)this, (__int64)StarInfoPopup::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v62); v63 = *(this + 69); v64 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v62 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v77, *(float *)&v74 * 0.5, (float)((float)(*((float *)&v74 + 1) * 0.5) + -105.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(v78, v63, (const cocos2d::CCPoint *)v77); v64(v62, v78); if ( (v79[0] & 1) != 0 ) operator delete(v80); } return v73; }
GD Web Decomp Icon

GD Web Decomp

Raw Source