// // EditorUI::rotateObjects from 0x1402002e0 to 0x1402007c2 (1250 bytes) // // 12 xrefs: // > EditorUI::onCreateObject @ 0x1401b3241 // > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6ef0 // > EditorUI::handleEditorAction @ 0x1401c3c56 // > EditorUI::handleEditorAction @ 0x1401c3e34 // > EditorUI::handleEditorAction @ 0x1401c4157 // > EditorUI::transformObjectCall_1 @ 0x1401ff763 // > EditorUI::transformObjectCall_1 @ 0x1401ff7d4 // > EditorUI::transformObject @ 0x1401ffc6d // > EditorUI::angleChanged @ 0x1402028a1 // > @ 0x1408a3c48 // > @ 0x1408a3c58 // > @ 0x14091ada4 // // 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 // unsigned int __fastcall EditorUI::rotateObjects( __int64 a1, cocos2d::CCArray *a2, float a3, cocos2d::CCPoint *a4, char a5) { __int64 v8; // rcx __int64 GroupCenter; // rax unsigned int v10; // esi unsigned int result; // eax struct cocos2d::CCObject *v12; // rax struct cocos2d::CCObject *v13; // rdi __int64 v14; // rax float v15; // xmm7_4 float v16; // xmm0_4 float v17; // xmm10_4 float v18; // xmm6_4 float v19; // xmm7_4 float v20; // xmm6_4 float v21; // xmm0_4 __int64 v22; // rax __int64 v23; // rax double v24; // xmm0_8 float v25; // xmm6_4 void (__fastcall **v26)(_QWORD); // rbx float v27; // xmm0_4 __int64 v28; // rbx float (__fastcall *v29)(struct cocos2d::CCObject *); // rax __int64 v30; // rbx __int64 v31; // rax float v32; // xmm0_4 __int64 v33; // rbx float (__fastcall *v34)(struct cocos2d::CCObject *); // rax float v35; // xmm0_4 __int64 v36; // rbx float (__fastcall *v37)(struct cocos2d::CCObject *); // rax float v38; // [rsp+20h] [rbp-D8h] BYREF float X; // [rsp+24h] [rbp-D4h] _BYTE v40[8]; // [rsp+28h] [rbp-D0h] BYREF _BYTE v41[8]; // [rsp+30h] [rbp-C8h] BYREF _BYTE v42[8]; // [rsp+38h] [rbp-C0h] BYREF _BYTE v43[16]; // [rsp+40h] [rbp-B8h] BYREF if ( !a5 && cocos2d::CCPoint::equals(a4, (const struct cocos2d::CCPoint *)&unk_14090A7A8) ) { GroupCenter = EditorUI::getGroupCenter(v8, v42, a2, 0); cocos2d::CCPoint::operator=(a4, GroupCenter); } v10 = 0; result = cocos2d::CCArray::count(a2); if ( result ) { do { v12 = cocos2d::CCArray::objectAtIndex(a2, v10); v13 = v12; if ( !a5 ) { v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12); cocos2d::CCPoint::operator-(v14, &v38, a4); v15 = X; v16 = powf(X, 2.0); v17 = v38; v18 = v16 + powf(v38, 2.0); if ( v18 < 0.0 ) sqrtf(v18); v19 = atan2f(v15, v17) - (float)(a3 * 0.017453292); v20 = sinf(v19); v21 = cosf(v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, v21, v20); cocos2d::CCPoint::operator*(v22, v40); cocos2d::CCPoint::operator+(a4, v41, v40); v23 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 200LL))(v13); cocos2d::CCPoint::operator-(v41, v42, v23); EditorUI::moveObject(a1, (__int64)v13, (__int64)v42); } v24 = (*(double (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 392LL))(v13); v25 = *(float *)&v24; *(float *)&v24 = (*(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 376LL))(v13); v26 = *(void (__fastcall ***)(_QWORD))v13; if ( *(float *)&v24 == v25 ) { ((void (__fastcall **)(struct cocos2d::CCObject *))v26)[45](v13); ((void (__fastcall **)(struct cocos2d::CCObject *))v26)[44](v13); v27 = (*(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 360LL))(v13); v28 = *(_QWORD *)v13; v29 = *(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 360LL); if ( v27 < 360.0 ) { if ( v29(v13) <= -360.0 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 360LL))(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 352LL))(v13); } } else { v29(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(v28 + 352))(v13); } } else { ((void (__fastcall **)(struct cocos2d::CCObject *))v26)[47](v13); ((void (__fastcall **)(struct cocos2d::CCObject *))v26)[46](v13); v30 = *(_QWORD *)v13; (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 392LL))(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(v30 + 384))(v13); v31 = *(_QWORD *)v13; *((_BYTE *)v13 + 848) = 1; v32 = (*(float (__fastcall **)(struct cocos2d::CCObject *))(v31 + 376))(v13); v33 = *(_QWORD *)v13; v34 = *(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 376LL); if ( v32 < 360.0 ) { if ( v34(v13) <= -360.0 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 376LL))(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 368LL))(v13); } } else { v34(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(v33 + 368))(v13); } v35 = (*(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 392LL))(v13); v36 = *(_QWORD *)v13; v37 = *(float (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 392LL); if ( v35 < 360.0 ) { if ( v37(v13) <= -360.0 ) { (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 392LL))(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v13 + 384LL))(v13); } } else { v37(v13); (*(void (__fastcall **)(struct cocos2d::CCObject *))(v36 + 384))(v13); } } ++v10; result = cocos2d::CCArray::count(a2); } while ( v10 < result ); } return result; }