// // SetupRotatePopup::init from 0x9586d0 to 0x958ddc (1804 bytes) // // 2 xrefs: // > SetupRotatePopup::create @ 0x958f90 // > @ 0x98d18 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool SetupRotatePopup::init(SetupRotatePopup *a1, EnhancedGameObject *a2, cocos2d::CCArray *a3) { bool v4; // w25 void *v6; // x0 void *v7; // x0 void *v8; // x0 void *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s0 float (__fastcall *getValue)(SetupTriggerPopup *__hidden, int); // x2 int v13; // w28 float v14; // s8 void *v15; // x0 int v16; // w28 void *v17; // x0 void *v18; // x0 float v19; // s3 float v20; // s4 void *v21; // x0 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 unsigned int *v30; // x1 int v31; // w2 unsigned int *v32; // x1 int v33; // w2 unsigned int *v34; // x1 int v35; // w2 unsigned int *v36; // x20 int v37; // w1 _QWORD v38[2]; // [xsp+30h] [xbp+0h] BYREF int v39; // [xsp+A8h] [xbp+78h] int v40; // [xsp+ACh] [xbp+7Ch] float v41; // [xsp+C0h] [xbp+90h] float v42; // [xsp+C4h] [xbp+94h] cocos2d::CCPoint v43; // [xsp+C8h] [xbp+98h] BYREF cocos2d::CCPoint v44; // [xsp+D0h] [xbp+A0h] BYREF __int64 v45; // [xsp+D8h] [xbp+A8h] BYREF __int64 v46; // [xsp+E0h] [xbp+B0h] BYREF cocos2d::CCPoint v47; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, (EffectGameObject *)a2, a3, 300.0, 240.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_D153B8((unsigned int)v38 + 176, "Edit Rotate Action"); SetupTriggerPopup::addTitle(a1, (std::string)&v46); v6 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v46 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v38 + 176, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)&v46); v7 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v46 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v7); } sub_D153B8((int)&v45, "Help"); sub_D153B8( (int)&v46, "Default uses the default rotation values.\n" "Custom lets you specify degrees per second.\n" "Disable stops rotation completely."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v45, (std::string)&v46, 1.0); v8 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v46 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v29 - 1; } if ( v29 <= 0 ) operator delete(v8); } v9 = (void *)(v45 - 24); if ( (__int64 *)(v45 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v45 - 8); do v33 = __ldaxr(v32); while ( __stlxr(v33 - 1, v32) ); } else { v33 = *(_DWORD *)(v45 - 8); *(_DWORD *)(v45 - 8) = v33 - 1; } if ( v33 <= 0 ) operator delete(v9); } v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10); cocos2d::CCPoint::CCPoint(&v43, v41 * 0.5, (float)(v42 * 0.5) + 50.0); v11 = a1->getValue(a1, 98); getValue = a1->getValue; v40 = v11 != 0.0; v13 = v40; v14 = getValue(a1, 97); v39 = v13 ^ 1; sub_D153B8((int)&v46, "Default"); cocos2d::CCPoint::CCPoint(&v44, -70.0, 0.0); cocos2d::CCPoint::operator+(&v45, &v43, &v44); SetupTriggerPopup::createCustomToggleValueControl( (int)a1, 0, (v13 ^ 1) & (v14 == 0.0), 1, (int)&v46, (int)&v45, 1, 0, 0); v15 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v46 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v27 - 1; } if ( v27 <= 0 ) operator delete(v15); } v16 = (unsigned __int8)v39 & (v14 != 0.0); sub_D153B8((int)&v46, "Custom"); cocos2d::CCPoint::CCPoint(&v44, 0.0, 0.0); cocos2d::CCPoint::operator+(&v45, &v43, &v44); SetupTriggerPopup::createCustomToggleValueControl((int)a1, 2, v16, 1, (int)&v46, (int)&v45, 1, 0, 0); v17 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v46 - 8); do v35 = __ldaxr(v34); while ( __stlxr(v35 - 1, v34) ); } else { v35 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v35 - 1; } if ( v35 <= 0 ) operator delete(v17); } sub_D153B8((int)&v46, "Disable"); cocos2d::CCPoint::CCPoint(&v44, 70.0, 0.0); cocos2d::CCPoint::operator+(&v45, &v43, &v44); SetupTriggerPopup::createCustomToggleValueControl( (int)a1, 1, (unsigned __int8)v40, 1, (int)&v46, (int)&v45, 1, 0, 0); v18 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v46 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v31 - 1; } if ( v31 <= 0 ) operator delete(v18); } sub_D153B8((int)&v46, "Degrees/s:"); cocos2d::CCPoint::CCPoint(&v44, 0.0, -60.0); cocos2d::CCPoint::operator+(&v45, &v43, &v44); v47.x = 0.8; v47.y = -360.0; SetupTriggerPopup::createValueControlAdvanced( a1, 97, (std::string)&v46, v47, 360.0, (bool)&v45, (InputValueType)0, 2, 4, v19, v20, 0, 0, (GJInputStyle)2, 0, 3, 0); v21 = (void *)(v46 - 24); if ( (__int64 *)(v46 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v36 = (unsigned int *)(v46 - 8); do v37 = __ldaxr(v36); while ( __stlxr(v37 - 1, v36) ); } else { v37 = *(_DWORD *)(v46 - 8); *(_DWORD *)(v46 - 8) = v37 - 1; } if ( v37 <= 0 ) operator delete(v21); } a1->toggleGroup(a1, 2, v16); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source