// // SetupRotatePopup::init from 0xaa0790 to 0xaa0c54 (1220 bytes) // // 2 xrefs: // > SetupRotatePopup::create @ 0xaa0e90 // > @ 0xc9c10 // // 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:48 +0000 // __int64 __fastcall SetupRotatePopup::init(SetupRotatePopup *this, EnhancedGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 _BOOL4 v9; // w28 float v10; // s0 float v11; // s8 _BOOL4 v12; // w27 __int64 v13; // [xsp+A8h] [xbp+78h] BYREF _BYTE v14[8]; // [xsp+B0h] [xbp+80h] BYREF _BYTE v15[8]; // [xsp+B8h] [xbp+88h] BYREF __int64 v16; // [xsp+C0h] [xbp+90h] BYREF cocos2d::CCDirector *v17[2]; // [xsp+C8h] [xbp+98h] BYREF void *v18; // [xsp+D8h] [xbp+A8h] __int64 v19; // [xsp+E0h] [xbp+B0h] BYREF __int64 v20; // [xsp+E8h] [xbp+B8h] void *v21; // [xsp+F0h] [xbp+C0h] v4 = SetupTriggerPopup::init(this, a2, a3, 300.0, 240.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Edit Rotate Action", 0x12u); SetupTriggerPopup::addTitle(this, &v19); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v19); if ( (v19 & 1) != 0 ) operator delete(v21); v17[0] = nullptr; v17[1] = nullptr; v18 = nullptr; std::string::__init((__int64 *)v17, "Help", 4u); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init( &v19, "Default uses the default rotation values.\n" "Custom lets you specify degrees per second.\n" "Disable stops rotation completely.", 0x90u); SetupTriggerPopup::addHelpButton(this, v17, &v19, 1.0); if ( (v19 & 1) != 0 ) operator delete(v21); v7 = (cocos2d::CCDirector *)LOBYTE(v17[0]); if ( ((__int64)v17[0] & 1) != 0 ) operator delete(v18); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v13, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, *(float *)&v13 * 0.5, (float)(*((float *)&v13 + 1) * 0.5) + 50.0); v9 = (*(float (__fastcall **)(SetupRotatePopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 98) != 0.0; v10 = (*(float (__fastcall **)(SetupRotatePopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 97); v19 = 0; v11 = v10; v20 = 0; v12 = v10 == 0.0; v21 = nullptr; std::string::__init(&v19, "Default", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -70.0, 0.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createCustomToggleValueControl((int)this, 0, !v9 && v12, 1, (int)&v19, (int)&v16, 1, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Custom", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, 0.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createCustomToggleValueControl((int)this, 2, !v9 && v11 != 0.0, 1, (int)&v19, (int)&v16, 1, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Disable", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 70.0, 0.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createCustomToggleValueControl((int)this, 1, v9, 1, (int)&v19, (int)&v16, 1, 0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Degrees/s:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, -60.0); cocos2d::CCPoint::operator+(&v16, v14); SetupTriggerPopup::createValueControlAdvanced(this, 97, &v19, &v16, 0, 2, 4, 0, 0.8, -360.0, 360.0, 0, 2, 0, 3, 0); if ( (v19 & 1) != 0 ) operator delete(v21); (*(void (__fastcall **)(SetupRotatePopup *, __int64, _QWORD))(*(_QWORD *)this + 1352LL))( this, 2, !v9 & (unsigned __int8)(v11 != 0.0)); SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source