// // SetupEndPopup::init from 0xab4734 to 0xab4cf4 (1472 bytes) // // 2 xrefs: // > SetupEndPopup::create @ 0xab4f3c // > @ 0xc2848 // // 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:58 +0000 // __int64 __fastcall SetupEndPopup::init(SetupEndPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v5; // w0 unsigned int v6; // w23 cocos2d::CCDirector *v8; // x0 cocos2d::CCDirector *v9; // x0 const char *v10; // x2 __int64 v11; // x24 void (__fastcall *v12)(__int64, __int64 *); // x27 const char *v13; // x6 __int64 v14; // x0 __int64 v15; // x0 __int64 v16; // x28 __int64 v17; // x24 __int64 v18; // x1 int v19; // w25 int v20; // w25 int v21; // w27 cocos2d::CCNode *v22; // [xsp+80h] [xbp+70h] void (__fastcall *v23)(__int64, __int64 *); // [xsp+88h] [xbp+78h] __int64 v24; // [xsp+90h] [xbp+80h] BYREF _BYTE v25[8]; // [xsp+98h] [xbp+88h] BYREF _BYTE v26[8]; // [xsp+A0h] [xbp+90h] BYREF _BYTE v27[8]; // [xsp+A8h] [xbp+98h] BYREF __int64 v28; // [xsp+B0h] [xbp+A0h] BYREF __int64 v29[2]; // [xsp+B8h] [xbp+A8h] BYREF void *v30; // [xsp+C8h] [xbp+B8h] __int64 v31; // [xsp+D0h] [xbp+C0h] BYREF __int64 v32; // [xsp+D8h] [xbp+C8h] void *v33; // [xsp+E0h] [xbp+D0h] v5 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); v6 = v5; if ( v5 ) { v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SetupEndPopup *))(*(_QWORD *)this + 1360LL))(this); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(&v24, v9); v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"End Trigger", "goldFont.fnt", v10); (*(void (__fastcall **)(SetupEndPopup *, __int64))(*(_QWORD *)this + 456LL))(this, v11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.7); v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v28, *(float *)&v24 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v24 + 1) * 0.5)) - 18.0); v12(v11, &v28); v14 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v13, 30.0); v15 = CCMenuItemSpriteExtra::create(v14, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v15); v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "Help", 4u); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init( &v31, "Sets a specific object given by Group ID to be the end of the level when the game type is Classic." " This essentially spawns the endwall at a set location.\n" "Use Reversed if gameplay is reverse at the end.\n" "Lock Y locks the endwall to the ground instead of the group's Y position.", 0x133u); v16 = InfoAlertButton::create((char *)v29, (char *)&v31, 1.0); if ( (v31 & 1) != 0 ) operator delete(v33); if ( (v29[0] & 1) != 0 ) operator delete(v30); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); v22 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v27, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v24 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v24 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v28, v22, (const cocos2d::CCPoint *)v27); v23(v16, &v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, *(float *)&v24 * 0.5, (float)(*((float *)&v24 + 1) * 0.5) + 30.0); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Group ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, (const cocos2d::CCPoint *)v25); v17 = IDNameInput::create(this, (char *)this + 544, 1, 51, &v31, &v28, 6, 0, 1.0, 0, 0); if ( (v31 & 1) != 0 ) operator delete(v33); if ( v17 ) v18 = *(_QWORD *)(v17 + 384); else v18 = 0; *((_QWORD *)this + 127) = v18; SetupEndPopup::updateTextInputLabel(this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v26, 20.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v24 * 0.5)), 60.0 - (float)((float)(*((float *)this + 184) * 0.5) - (float)(*((float *)&v24 + 1) * 0.5))); if ( a2 && (*(unsigned int (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 36 ) { if ( (*(unsigned int (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1800LL))(a2) == 36 ) { v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Multi\nActivate", 0xEu); v21 = *((unsigned __int8 *)this + 1032); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, -35.0); cocos2d::CCPoint::operator+(&v28, v26); SetupTriggerPopup::createToggleButton( (int)this, (int)&v31, (int)SetupEndPopup::onMultiActivate, 0, v21, (cocos2d::CCPoint *)&v28); if ( (v31 & 1) != 0 ) operator delete(v33); } } else { SetupTriggerPopup::createMultiTriggerItemsDefault(this); } v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Reversed", 8u); v19 = *((unsigned __int8 *)this + 1024); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v28, (float)(*(float *)&v24 * 0.5) + -50.0, (float)(*((float *)&v24 + 1) * 0.5) + -20.0); SetupTriggerPopup::createToggleButton( (int)this, (int)&v31, (int)SetupEndPopup::onReversed, 0, v19, (cocos2d::CCPoint *)&v28); if ( (v31 & 1) != 0 ) operator delete(v33); v31 = 0; v32 = 0; v33 = nullptr; std::string::__init(&v31, "Lock Y", 6u); v20 = *((unsigned __int8 *)this + 1025); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v28, (float)(*(float *)&v24 * 0.5) + 50.0, (float)(*((float *)&v24 + 1) * 0.5) + -20.0); SetupTriggerPopup::createToggleButton( (int)this, (int)&v31, (int)SetupEndPopup::onLockY, 0, v20, (cocos2d::CCPoint *)&v28); if ( (v31 & 1) != 0 ) operator delete(v33); *((_BYTE *)this + 744) = 0; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source