// // EditorUI::getGroupCenter from 0x1402022c0 to 0x140202547 (647 bytes) // // 17 xrefs: // > EditorUI::onCreateObject @ 0x1401b3038 // > EditorUI::handleEditorAction @ 0x1401c3536 // > EditorUI::copyObjectsDetailed @ 0x1401c5b06 // > EditorUI::repositionObjectsToCenter @ 0x1401c7410 // > EditorUI::findObject @ 0x1401c93f4 // > EditorUI::rotateObjects @ 0x140200337 // > EditorUI::scaleObjects @ 0x1402009a9 // > EditorUI::transformObjects @ 0x140200dbb // > EditorUI::alignObjectsOnAxis @ 0x14020145a // > EditorUI::alignObjects @ 0x1402018f9 // > EditorUI::activateRotationControl @ 0x140202661 // > EditorUI::activateScaleControl @ 0x140202cf2 // > EditorUI::showTransformControl @ 0x1402033c8 // > KeyframeGameObject::updateShadowObjects @ 0x140656a27 // > @ 0x1408a3e68 // > @ 0x1408a3eb0 // > @ 0x14091aea0 // // This function is hookable on this platform (idp: pc, 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 11:28:13 +0000 // cocos2d::CCPoint *__fastcall EditorUI::getGroupCenter(__int64 a1, cocos2d::CCPoint *a2, cocos2d::CCArray *a3, char a4) { struct cocos2d::CCObject *v7; // rbx const struct cocos2d::CCPoint *v8; // rax struct cocos2d::CCObject *v9; // rbx unsigned int v10; // edi float v11; // xmm10_4 float v12; // xmm7_4 float v13; // xmm11_4 float v14; // xmm9_4 struct cocos2d::CCObject *v15; // rsi float MaxX; // xmm6_4 float MinX; // xmm13_4 float MaxY; // xmm8_4 float MinY; // xmm0_4 _BYTE v21[16]; // [rsp+20h] [rbp-B8h] BYREF __int64 v22; // [rsp+E0h] [rbp+8h] BYREF v22 = a1; if ( cocos2d::CCArray::count(a3) == 1 ) { v7 = cocos2d::CCArray::objectAtIndex(a3, 0); GameObject::updateStartPos(v7); v8 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 200LL))(v7); cocos2d::CCPoint::CCPoint(a2, v8); } else { v9 = nullptr; v10 = 0; v11 = 999999.0; v12 = 999999.0; v13 = -999999.0; v14 = -999999.0; if ( !cocos2d::CCArray::count(a3) ) goto LABEL_18; do { v15 = cocos2d::CCArray::objectAtIndex(a3, v10); GameObject::updateStartPos(v15); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v15 + 1176LL))(v15, v21); MaxX = cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v21); MinX = cocos2d::CCRect::getMinX((cocos2d::CCRect *)v21); MaxY = cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v21); MinY = cocos2d::CCRect::getMinY((cocos2d::CCRect *)v21); v13 = fmaxf(MaxX, v13); if ( v11 > MinX || v11 == 0.0 ) v11 = MinX; v14 = fmaxf(MaxY, v14); if ( v12 > MinY || v12 == 0.0 ) v12 = MinY; if ( *((_BYTE *)v15 + 1158) ) { if ( v9 ) a4 = 1; else v9 = v15; } ++v10; } while ( v10 < cocos2d::CCArray::count(a3) ); if ( v9 && !a4 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *, cocos2d::CCPoint *))(*(_QWORD *)v9 + 1208LL))(v9, a2); } else { LABEL_18: cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v22, (float)((float)(v13 - v11) * 0.5) + v11, (float)((float)(v14 - v12) * 0.5) + v12); cocos2d::CCPoint::CCPoint(a2, (const struct cocos2d::CCPoint *)&v22); } } return a2; }