// // EditorUI::flipObjectsX from 0x1003f20bc to 0x1003f2244 (392 bytes) // // 2 xrefs: // > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1c70 // > EditorUI::transformObjectCall_1 @ 0x1003f6404 // // 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 // void __fastcall EditorUI::flipObjectsX(EditorUI *a1, cocos2d::CCArray *a2) { unsigned int v4; // w21 float v5; // s10 float v6; // s9 GameObject *v7; // x22 float v8; // s8 float v9; // s0 unsigned int v11; // w21 GameObject *v12; // x22 float v13; // s8 __n128 v14; // q1 __n128 v15; // q0 float32x2_t *v16; // x0 float32x2_t v17; // [xsp+8h] [xbp-58h] BYREF float32x2_t v18[2]; // [xsp+10h] [xbp-50h] BYREF cocos2d::CCPoint v19; // 0:s0.4,4:s1.4 if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v4 = 0; v5 = -9999.0; v6 = -9999.0; do { v7 = (GameObject *)sub_10024A388((__int64)a2, v4); GameObject::updateStartPos(v7); ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, float, float))v7->getObjectRect_0)( v18, v7, 1.0, 1.0); v8 = sub_100022C30((float *)v18); v9 = sub_100022C40((__int64)v18); if ( v8 > v5 ) v5 = v8; if ( v9 < v6 || v6 == -9999.0 ) v6 = v9; EditorUI::transformObject(a1, v7, FlipX, 1); ++v4; } while ( v4 < (unsigned int)sub_10024A36C((__int64)a2) ); } else { v6 = -9999.0; v5 = -9999.0; } if ( (unsigned int)sub_10024A36C((__int64)a2) ) { v11 = 0; do { v12 = (GameObject *)sub_10024A388((__int64)a2, v11); v13 = v5 - (float)(*(float *)((__int64 (__fastcall *)(GameObject *))v12->getPosition)(v12) - v6); v14.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(GameObject *))v12->getPosition)(v12) + 4); v15.n128_f32[0] = v13; sub_100022980(v15, v14, &v17); v16 = (float32x2_t *)((__int64 (__fastcall *)(GameObject *))v12->getPosition)(v12); v19.x = sub_1000229F0(&v17, v16, v18).f32[0]; EditorUI::moveObject(a1, v12, v19); ++v11; } while ( v11 < (unsigned int)sub_10024A36C((__int64)a2) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source