// // SetupTeleportPopup::init from 0xb27da8 to 0xb28c54 (3756 bytes) // // 2 xrefs: // > SetupTeleportPopup::create @ 0xb28ed8 // > @ 0xc7060 // // 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:01:40 +0000 // __int64 __fastcall SetupTeleportPopup::init( cocos2d::CCArray **this, TeleportPortalObject *a2, cocos2d::CCArray *a3, int a4, unsigned __int8 a5) { int v5; // w25 __int64 v8; // x2 __int64 v9; // x3 __int64 v10; // x4 __int64 v11; // x5 const char *v12; // x6 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 int v15; // w28 unsigned int v16; // w24 __int64 v17; // x25 cocos2d::CCArray *v18; // x0 cocos2d::CCObject *v19; // x0 CCMenuItemToggler *ToggleButton; // x25 __int64 v21; // x2 const char *v22; // x2 __int64 v23; // x23 void (__fastcall *v24)(cocos2d::CCArray **, __int64, bool); // x19 float v25; // s0 void (__fastcall *v26)(cocos2d::CCArray **, __int64, bool); // x19 float v27; // s0 unsigned __int8 v29; // [xsp+B7h] [xbp+87h] __int64 v30; // [xsp+C0h] [xbp+90h] cocos2d::CCNode *v31; // [xsp+C8h] [xbp+98h] __int64 v32; // [xsp+D0h] [xbp+A0h] BYREF _BYTE v33[8]; // [xsp+D8h] [xbp+A8h] BYREF __int64 v34; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v35[8]; // [xsp+E8h] [xbp+B8h] BYREF __int64 v36; // [xsp+F0h] [xbp+C0h] BYREF __int64 v37; // [xsp+F8h] [xbp+C8h] BYREF __int64 v38; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCDirector *v39; // [xsp+108h] [xbp+D8h] BYREF size_t v40; // [xsp+110h] [xbp+E0h] void *v41; // [xsp+118h] [xbp+E8h] cocos2d::CCDirector *v42; // [xsp+120h] [xbp+F0h] BYREF size_t v43; // [xsp+128h] [xbp+F8h] void *v44; // [xsp+130h] [xbp+100h] v5 = a5; v29 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, 1u, 0.0); if ( v29 ) { (*((void (__fastcall **)(cocos2d::CCArray **))*this + 170))(this); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Setup Teleport", 0xEu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v42); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v42, v8, v9, v10, v11, v12); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v39 = nullptr; v40 = 0; v41 = nullptr; std::string::__init((__int64 *)&v39, "Help", 4u); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init( (__int64 *)&v42, "Teleports to an object using Target GroupID.\n" "Smooth Ease makes the camera move slower.\n" "Static Force lets you specify an exit force.\n" "Redirect Force exits based on input force.\n" "Save Offset keeps the offset from entering when exiting.\n" "Redirect Dash will rotate the dash to the exit rotation in platformer mode.", 0x16Bu); SetupTriggerPopup::addHelpButton((__int64)this, (char *)&v39, (char *)&v42, 1.0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v13 = (cocos2d::CCDirector *)(unsigned __int8)v39; if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v32, v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, *(float *)&v32 * 0.5, (float)(*((float *)&v32 + 1) * 0.5) + 75.0); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Target GroupID:", 0xFu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); IDNameInput::create(this, this + 68, 1, 51, &v42, &v38, 6, 0, 0.7, 0, 0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 130.0, 42.0); cocos2d::CCPoint::operator+(&v34, v33); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Smooth\nEase", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, 0.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x37u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Save\nOffset", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -24.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x15Fu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Ignore X", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -48.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x160u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Ignore Y", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -72.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x161u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Instant\nCamera", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -96.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1D0u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Snap\nGround", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -120.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1FEu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Redirect\nDash", 0xDu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, -144.0); cocos2d::CCPoint::operator+(&v38, &v34); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x24Fu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 0.78); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); if ( a4 != 3022 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v37, (float)(*(float *)&v32 * 0.5) + 120.0, 24.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v32 + 1) * 0.5))); v42 = nullptr; v43 = 0; v44 = nullptr; if ( v5 ) { std::string::__init((__int64 *)&v42, "NO Multi\nActivate", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, (const cocos2d::CCPoint *)&v37); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1BCu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); } else { std::string::__init((__int64 *)&v42, "Multi\nActivate", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, (const cocos2d::CCPoint *)&v37); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x63u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); } if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); } v15 = -25; v16 = 1; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, (float)(*(float *)&v32 * 0.5) + -140.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v32 + 1) * 0.5)) - 20.0); v17 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Gravity", "goldFont.fnt", "Path of Light Rank 1"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v17); v18 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v17 + 184LL))(v17, v35); v19 = (cocos2d::CCObject *)cocos2d::CCArray::create(v18); *(this + 127) = v19; cocos2d::CCObject::retain(v19); do { v39 = nullptr; v40 = 0; v41 = nullptr; if ( v16 == 1 ) { std::string::assign((__int64 *)&v39, "Normal"); } else if ( v16 == 2 ) { std::string::assign((__int64 *)&v39, "Flipped"); } else { std::string::assign((__int64 *)&v39, "Toggle"); } v42 = nullptr; v43 = 0; v44 = nullptr; if ( ((unsigned __int8)v39 & 1) != 0 ) { std::string::__init((__int64 *)&v42, v41, v40); } else { v44 = v41; v42 = v39; v43 = v40; } v31 = *(this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, -25.0, (float)v15); cocos2d::CCPoint::operator+(&v37, v35); v30 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, 6.0, 0.0); ToggleButton = GameToolbox::createToggleButton( (__int64)&v42, (const char *)SetupTeleportPopup::onTeleportGravity, 0, 0, v31, (const cocos2d::CCPoint *)&v37, (__int64)this, v30, 0.6, 0.35, 60.0, (float *)&v38, "bigFont.fnt", 0, 0, nullptr); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v21 = *(_QWORD *)ToggleButton; *((_BYTE *)ToggleButton + 393) = 1; (*(void (__fastcall **)(CCMenuItemToggler *, _QWORD))(v21 + 72))(ToggleButton, v16); cocos2d::CCArray::addObject(*(this + 127), ToggleButton); if ( ((unsigned __int8)v39 & 1) != 0 ) operator delete(v41); ++v16; v15 -= 25; } while ( v16 != 4 ); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, -25.0, -60.0); cocos2d::CCPoint::operator+(&v36, v33); v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Rotate Force", "goldFont.fnt", v22); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, 0.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v23); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL))(v23, &v36); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Static\nForce", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, -80.0, -30.0); cocos2d::CCPoint::operator+(&v38, &v36); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x159u, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Redirect\nForce", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 20.0, -30.0); cocos2d::CCPoint::operator+(&v38, &v36); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x15Bu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 0, 1.0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v38, *(float *)&v32 * 0.5, (float)(*((float *)&v32 + 1) * 0.5) + -60.0); cocos2d::CCPoint::operator=(v33, &v38); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Force:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, -50.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); SetupTriggerPopup::createValueControlAdvanced( this, 346, (char *)&v42, (__int64)&v38, 0, 1, 6, 0, 0.6, 0.0, 30.0, 0, 1, 0, 2, 0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Additive", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 50.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x1BBu, &v42, (const cocos2d::CCPoint *)&v38, 0, 0, 1, 1.0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Min:", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, -120.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); SetupTriggerPopup::createValueControlAdvanced( this, 348, (char *)&v42, (__int64)&v38, 0, 1, 6, 0, 0.6, 0.0, 10.0, 0, 2, 0, 2, 0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Max:", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); SetupTriggerPopup::createValueControlAdvanced( this, 349, (char *)&v42, (__int64)&v38, 0, 1, 6, 0, 0.6, 0.0, 30.0, 0, 2, 0, 2, 0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); v42 = nullptr; v43 = 0; v44 = nullptr; std::string::__init((__int64 *)&v42, "Mod:", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 120.0, 0.0); cocos2d::CCPoint::operator+(&v38, v33); SetupTriggerPopup::createValueControlAdvanced( this, 350, (char *)&v42, (__int64)&v38, 0, 1, 6, 0, 0.6, 0.0, 2.0, 0, 2, 0, 2, 0); if ( ((unsigned __int8)v42 & 1) != 0 ) operator delete(v44); if ( a4 == 3022 ) SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); (*((void (__fastcall **)(cocos2d::CCArray **))*this + 179))(this); v24 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169); v25 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 345); v24(this, 1, v25 != 0.0); v26 = *((void (__fastcall **)(cocos2d::CCArray **, __int64, bool))*this + 169); v27 = (*((float (__fastcall **)(cocos2d::CCArray **, __int64))*this + 183))(this, 347); v26(this, 2, v27 != 0.0); *((_BYTE *)this + 744) = 0; } return v29; }
GD Web Decomp Icon

GD Web Decomp

Raw Source