// // SetupPortalPopup::init from 0xab0c18 to 0xab1480 (2152 bytes) // // 2 xrefs: // > SetupPortalPopup::create @ 0xab1614 // > @ 0x5dfa0 // // 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:56 +0000 // __int64 __fastcall SetupPortalPopup::init(SetupPortalPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v5; // w0 unsigned int v6; // w25 cocos2d::CCObject *v7; // x0 cocos2d::CCArray *v8; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCDirector *v10; // x0 cocos2d::CCDirector *v11; // x0 __int64 v12; // x21 void (__fastcall *v13)(__int64, __int64 *); // x27 void (__fastcall *v14)(__int64, __int64 *); // x27 const char *v15; // x2 __int64 v16; // x21 void (__fastcall *v17)(__int64, __int64 *); // x27 cocos2d::CCMenu *v18; // x0 __int64 v19; // x0 __int64 v20; // x2 __int64 v21; // x3 bool v22; // w4 __int64 v23; // x5 const char *v24; // x6 __int64 v25; // x0 __int64 v26; // x0 __int64 v27; // x21 void (__fastcall *v28)(__int64, __int64 *); // x27 __int64 v29; // x26 cocos2d::CCNode *v30; // x28 void (__fastcall *v31)(__int64, __int64 *); // x27 cocos2d::CCNode *v32; // x28 __int64 v33; // x27 cocos2d::CCNode *v34; // x28 __int64 v35; // x27 const char *v36; // x2 __int64 v37; // x0 __int64 v38; // x27 void (__fastcall *v39)(__int64, __int64 *); // x28 __int64 v40; // x0 __int64 v41; // x27 void (__fastcall *v42)(__int64, __int64 *); // x28 __int64 Thumb; // x0 const char *v44; // x2 __int64 v45; // x0 __int64 v46; // x24 void (__fastcall *v47)(__int64, __int64 *); // x26 __int64 v48; // x27 __int64 v49; // x0 __int64 v50; // x23 void (__fastcall *v51)(__int64, __int64 *); // x24 __int64 v52; // x26 __int64 v53; // x0 unsigned __int8 v56; // [xsp+B8h] [xbp+88h] unsigned __int8 v57; // [xsp+B8h] [xbp+88h] cocos2d::CCObject *v58; // [xsp+B8h] [xbp+88h] __int64 v59; // [xsp+C8h] [xbp+98h] BYREF _BYTE v60[8]; // [xsp+D0h] [xbp+A0h] BYREF __int64 v61[2]; // [xsp+D8h] [xbp+A8h] BYREF __int64 v62[2]; // [xsp+E8h] [xbp+B8h] BYREF void *v63; // [xsp+F8h] [xbp+C8h] __int64 v64; // [xsp+100h] [xbp+D0h] BYREF __int64 v65; // [xsp+108h] [xbp+D8h] void *v66; // [xsp+110h] [xbp+E0h] v5 = FLAlertLayer::init(this, 200); v6 = v5; if ( !v5 ) return v6; if ( a2 ) { *((_QWORD *)this + 84) = a2; cocos2d::CCObject::retain(a2); } else { *((_QWORD *)this + 83) = a3; cocos2d::CCObject::retain(a3); } *((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1; *((_BYTE *)this + 742) = (unsigned __int8)&dword_0 + 1; v7 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)((char *)&dword_0 + 1)); *((_QWORD *)this + 85) = v7; v8 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7); v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8); *((_QWORD *)this + 86) = v9; v10 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v9); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(&v59, v11); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v61, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v61); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v61, 430.0, 310.0); v13(v12, v61); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v12, 0xFFFFFFFFLL); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, *((float *)&v59 + 1) * 0.5); v14(v12, v61); v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup Portal", "bigFont.fnt", v15); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, (float)((float)(*((float *)&v59 + 1) * 0.5) + 155.0) - 15.0); v17(v16, v61); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v16); v18 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.6); v19 = cocos2d::CCMenu::create(v18); *((_QWORD *)this + 69) = v19; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v19, 10); *((_DWORD *)this + 160) = -1; v25 = ButtonSprite::create((ButtonSprite *)"OK", (const char *)0xFFFFFFFFLL, v20, v21, v22, v23, v24); v26 = CCMenuItemSpriteExtra::create(v25, 0, (__int64)this, (__int64)SetupPortalPopup::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v26); v27 = *((_QWORD *)this + 69); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, (float)((float)(*((float *)&v59 + 1) * 0.5) + -155.0) + 25.0); v28(v27, v61); v62[0] = 0; v62[1] = 0; v63 = nullptr; std::string::__init(v62, "Portal Help", 0xBu); v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "No time for help.", 0x11u); v29 = InfoAlertButton::create((char *)v62, (char *)&v64, 1.0); if ( (v64 & 1) != 0 ) { operator delete(v66); if ( (v62[0] & 1) == 0 ) goto LABEL_6; LABEL_13: operator delete(v63); goto LABEL_6; } if ( (v62[0] & 1) != 0 ) goto LABEL_13; LABEL_6: (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v29); v30 = *((cocos2d::CCNode **)this + 69); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + 215.0) - 18.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 155.0) - 18.0); cocos2d::CCNode::convertToNodeSpace(v61, v30, (const cocos2d::CCPoint *)v60); v31(v29, v61); SetupPortalPopup::determineStartValues(this); v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "Free Mode", 9u); v56 = *((_BYTE *)this + 740); v32 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + -215.0) + 20.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 155.0) - 20.0); v33 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 8.0, 0.0); GameToolbox::createToggleButton( (__int64)&v64, (const char *)SetupPortalPopup::onUnboundMode, 0, v56, v32, (const cocos2d::CCPoint *)v60, (__int64)this, v33, 0.8, 0.45, 0.0, (float *)v61, "bigFont.fnt", 0, 0, nullptr); if ( (v64 & 1) != 0 ) operator delete(v66); v64 = 0; v65 = 0; v66 = nullptr; std::string::__init(&v64, "Edit Camera\nSettings", 0x14u); v57 = *((_BYTE *)this + 741); v34 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v60, (float)((float)(*(float *)&v59 * 0.5) + -215.0) + 20.0, (float)((float)(*((float *)&v59 + 1) * 0.5) + 155.0) - 60.0); v35 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, 8.0, 0.0); GameToolbox::createToggleButton( (__int64)&v64, (const char *)SetupPortalPopup::onEditCameraSettings, 0, v57, v34, (const cocos2d::CCPoint *)v60, (__int64)this, v35, 0.8, 0.45, 0.0, (float *)v61, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 85)); if ( (v64 & 1) != 0 ) operator delete(v66); v37 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v36); *((_QWORD *)this + 88) = v37; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v37); v38 = *((_QWORD *)this + 88); v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v61, *(float *)&v59 * 0.5, *((float *)&v59 + 1) * 0.5); v39(v38, v61); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 88) + 160LL))(*((_QWORD *)this + 88), 0.8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), *((cocos2d::CCObject **)this + 88)); v40 = Slider::create((int)this, (int)SetupPortalPopup::sliderChanged, 0); *((_QWORD *)this + 87) = v40; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v40); v41 = *((_QWORD *)this + 87); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); v58 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 88) + 192LL))(*((_QWORD *)this + 88)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 0.0, -30.0); cocos2d::CCPoint::operator+(v61, v58); v42(v41, v61); Thumb = Slider::getThumb(*((Slider **)this + 87)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)Thumb + 72LL))(Thumb, 0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), *((cocos2d::CCObject **)this + 87)); SetupPortalPopup::updateCameraEasingLabel(this); Slider::setValue(*((Slider **)this + 87), (float)((float)*((int *)this + 178) - 1.0) / 39.0); v45 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v44); *((_QWORD *)this + 91) = v45; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v45); v46 = *((_QWORD *)this + 91); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); v48 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 88) + 192LL))(*((_QWORD *)this + 88)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 0.0, -50.0); cocos2d::CCPoint::operator+(v61, v48); v47(v46, v61); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 91) + 160LL))(*((_QWORD *)this + 91), 0.8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), *((cocos2d::CCObject **)this + 91)); v49 = Slider::create((int)this, (int)SetupPortalPopup::sliderChanged, 0); *((_QWORD *)this + 90) = v49; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v49); v50 = *((_QWORD *)this + 90); v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); v52 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 192LL))(*((_QWORD *)this + 91)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v60, 0.0, -30.0); cocos2d::CCPoint::operator+(v61, v52); v51(v50, v61); v53 = Slider::getThumb(*((Slider **)this + 90)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v53 + 72LL))(v53, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 86), *((cocos2d::CCObject **)this + 90)); SetupPortalPopup::updateCameraPaddingLabel(this); Slider::setValue(*((Slider **)this + 90), *((float *)this + 184)); SetupPortalPopup::updateItemVisibility((cocos2d::CCArray **)this); *((_BYTE *)this + 742) = 0; return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source