// // SetupPortalPopup::init from 0x6341b8 to 0x634846 (1678 bytes) // // 1 xrefs: // > SetupPortalPopup::create @ 0x63499a // // 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:55:19 +0000 // GameManager *__fastcall SetupPortalPopup::init(SetupPortalPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCObject *v6; // r0 cocos2d::CCArray *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCArray *v9; // r0 cocos2d::CCObject *v10; // r0 cocos2d::CCDirector *v11; // r0 int v12; // r6 void (__fastcall *v13)(int, _DWORD *); // r8 void (__fastcall *v14)(int, _DWORD *); // r8 const char *v15; // r2 int v16; // r6 void (__fastcall *v17)(int, _DWORD *); // r8 cocos2d::CCMenu *v18; // r0 int v19; // r0 const char *v20; // r1 ButtonSprite *v21; // r0 int v22; // r0 int v23; // r8 void (__fastcall *v24)(int, _DWORD *); // r9 int v25; // r9 const cocos2d::CCPoint *v26; // r11 void (__fastcall *v27)(int, _DWORD *); // r10 const cocos2d::CCPoint *v28; // r11 int v29; // r9 int v30; // r10 int v31; // r9 const cocos2d::CCPoint *v32; // r11 int v33; // r10 const char *v34; // r2 int v35; // r0 int v36; // r6 void (__fastcall *v37)(int, _DWORD *); // r10 int v38; // r0 int v39; // r11 int v40; // r10 int Thumb; // r0 const char *v42; // r2 int v43; // r0 int v44; // r8 void (__fastcall *v45)(int, _DWORD *); // r9 int v46; // r11 int v47; // r0 int v48; // r5 void (__fastcall *v49)(int, _BYTE *); // r9 int v50; // r10 int v51; // r0 const char *v52; // r1 GameManager *v54; // [sp+30h] [bp-7Ch] void (__fastcall *v55)(int, _DWORD *); // [sp+3Ch] [bp-70h] float v56; // [sp+44h] [bp-68h] BYREF float v57; // [sp+48h] [bp-64h] _BYTE v58[8]; // [sp+4Ch] [bp-60h] BYREF _BYTE v59[8]; // [sp+54h] [bp-58h] BYREF int (__fastcall *v60)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+5Ch] [bp-50h] int v61; // [sp+60h] [bp-4Ch] unsigned int (__fastcall *v62)(SetupPortalPopup *, cocos2d::CCObject *); // [sp+64h] [bp-48h] int v63; // [sp+68h] [bp-44h] unsigned int (__fastcall *v64)(SetupPortalPopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-40h] int v65; // [sp+70h] [bp-3Ch] _DWORD v66[2]; // [sp+74h] [bp-38h] BYREF int v67[3]; // [sp+7Ch] [bp-30h] BYREF int v68; // [sp+88h] [bp-24h] BYREF int v69; // [sp+8Ch] [bp-20h] int v70; // [sp+90h] [bp-1Ch] _DWORD v71[4]; // [sp+94h] [bp-18h] BYREF v54 = FLAlertLayer::init(this, 200); if ( v54 ) { if ( a2 ) { *((_DWORD *)this + 131) = a2; v6 = a2; } else { v6 = a3; *((_DWORD *)this + 130) = a3; } v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6); *((_BYTE *)this + 468) = 1; *((_BYTE *)this + 562) = 1; v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_DWORD *)this + 132) = v8; v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *((_DWORD *)this + 133) = v10; v11 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v10); cocos2d::CCDirector::sharedDirector(v11); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v56); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v71, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v71); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v71, 430.0, 310.0); v13(v12, v71); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v12, -1); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v56 * 0.5, v57 * 0.5); v14(v12, v71); v16 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup Portal", "bigFont.fnt", v15); v17 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v56 * 0.5, (float)((float)(v57 * 0.5) + 155.0) - 15.0); v17(v16, v71); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v16); v18 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1058642330); v19 = cocos2d::CCMenu::create(v18); *((_DWORD *)this + 111) = v19; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v19, 10); *((_DWORD *)this + 125) = -1; v21 = ButtonSprite::create((ButtonSprite *)"OK", v20); v61 = 0; v60 = SetupPortalPopup::onClose; v22 = CCMenuItemSpriteExtra::create((int)v21, 0, (int)this, (int)SetupPortalPopup::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v22); v23 = *((_DWORD *)this + 111); v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v56 * 0.5, (float)((float)(v57 * 0.5) - 155.0) + 25.0); v24(v23, v71); memset(v67, 0, sizeof(v67)); std::string::__init(v67, "Portal Help", 0xBu); v68 = 0; v69 = 0; v70 = 0; std::string::__init(&v68, "No time for help.", 0x11u); v25 = InfoAlertButton::create((char *)v67, (int)&v68, 1065353216); std::string::~string((int)&v68); std::string::~string((int)v67); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v25); v26 = *((const cocos2d::CCPoint **)this + 111); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v66, (float)((float)(v56 * 0.5) + 215.0) - 18.0, (float)((float)(v57 * 0.5) + 155.0) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v71, v26); v27(v25, v71); SetupPortalPopup::determineStartValues((unsigned int)this); v68 = 0; v69 = 0; v70 = 0; std::string::__init(&v68, "Free Mode", 9u); v28 = *((const cocos2d::CCPoint **)this + 111); v63 = 0; v29 = *((unsigned __int8 *)this + 560); v62 = SetupPortalPopup::onUnboundMode; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v66, (float)((float)(v56 * 0.5) - 215.0) + 20.0, (float)((float)(v57 * 0.5) + 155.0) - 20.0); v30 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 8.0, 0.0); GameToolbox::createToggleButton( (int)&v68, (int)v62, v63, v29, v28, (int)v66, (int)this, v30, 0.8, 0.45, 0.0, (int)v71, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v68); v68 = 0; v69 = 0; v70 = 0; std::string::__init(&v68, "Edit Camera\nSettings", 0x14u); v31 = *((unsigned __int8 *)this + 561); v32 = *((const cocos2d::CCPoint **)this + 111); v65 = 0; v64 = SetupPortalPopup::onEditCameraSettings; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v66, (float)((float)(v56 * 0.5) - 215.0) + 20.0, (float)((float)(v57 * 0.5) + 155.0) - 60.0); v33 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 8.0, 0.0); GameToolbox::createToggleButton( (int)&v68, (int)v64, v65, v31, v32, (int)v66, (int)this, v33, 0.8, 0.45, 0.0, (int)v71, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 132)); std::string::~string((int)&v68); v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v34); *((_DWORD *)this + 135) = v35; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v35); v36 = *((_DWORD *)this + 135); v37 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v56 * 0.5, v57 * 0.5); v37(v36, v71); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 135) + 80))(*((_DWORD *)this + 135), 1061997773); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 133), *((cocos2d::CCObject **)this + 135)); v66[1] = 0; v66[0] = SetupPortalPopup::sliderChanged; v38 = Slider::create((int)this); *((_DWORD *)this + 134) = v38; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v38); v39 = *((_DWORD *)this + 134); v55 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v39 + 92); v40 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 135) + 96))(*((_DWORD *)this + 135)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 0.0, -30.0); cocos2d::CCPoint::operator+(v71, v40, v59); v55(v39, v71); Thumb = Slider::getThumb(*((Slider **)this + 134)); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)Thumb + 36))(Thumb, 0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 133), *((cocos2d::CCObject **)this + 134)); SetupPortalPopup::updateCameraEasingLabel(this); Slider::setValue(*((Slider **)this + 134), (float)((float)*((int *)this + 136) - 1.0) / 39.0); v43 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v42); *((_DWORD *)this + 138) = v43; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v43); v44 = *((_DWORD *)this + 138); v45 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v44 + 92); v46 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 135) + 96))(*((_DWORD *)this + 135)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 0.0, -50.0); cocos2d::CCPoint::operator+(v71, v46, v59); v45(v44, v71); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 138) + 80))(*((_DWORD *)this + 138), 1061997773); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 133), *((cocos2d::CCObject **)this + 138)); v71[1] = 0; v71[0] = SetupPortalPopup::sliderChanged; v47 = Slider::create((int)this); *((_DWORD *)this + 137) = v47; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v47); v48 = *((_DWORD *)this + 137); v49 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v48 + 92); v50 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 138) + 96))(*((_DWORD *)this + 138)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, -30.0); cocos2d::CCPoint::operator+(v59, v50, v58); v49(v48, v59); v51 = Slider::getThumb(*((Slider **)this + 137)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 36))(v51, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 133), *((cocos2d::CCObject **)this + 137)); SetupPortalPopup::updateCameraPaddingLabel(this, v52); Slider::setValue(*((Slider **)this + 137), *((float *)this + 139)); SetupPortalPopup::updateItemVisibility((cocos2d::CCArray **)this); *((_BYTE *)this + 562) = 0; } return v54; }
GD Web Decomp Icon

GD Web Decomp

Raw Source