// // EditorUI::rotateObjects from 0x70da14 to 0x70dcc6 (690 bytes) // // 5 xrefs: // > EditorUI::onCreateObject @ 0x4877b2 // > EditorUI::createSmartObjectsFromTemplate @ 0x4881b4 // > EditorUI::transformObject @ 0x70dfd0 // > EditorUI::transformObjectCall @ 0x70e5bc // > EditorUI::angleChanged @ 0x70e7a8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:42 +0000 // unsigned int __fastcall EditorUI::rotateObjects( cocos2d::CCArray *a1, cocos2d::CCArray *a2, float a3, cocos2d::CCPoint *a4, unsigned __int8 a5) { unsigned int i; // r7 unsigned int result; // r0 GameObject *v11; // r0 GameObject *v12; // r4 int v13; // r0 float v14; // s19 float v15; // r11 float v16; // r0 int v17; // r0 float v18; // s19 float v19; // r0 int v20; // r3 void (__fastcall *v21)(GameObject *, _DWORD); // r11 float v22; // r0 void (__fastcall *v23)(GameObject *, _DWORD); // r11 float v24; // r0 float v25; // r0 int v26; // r3 void (__fastcall *v27)(GameObject *, float); // r11 int v28; // r1 float v29; // r0 int v30; // r3 void (__fastcall *v31)(GameObject *, float); // r11 float v32; // r0 void (__fastcall *v33)(GameObject *, _DWORD); // r11 float v34; // r0 float v35; // r0 int v36; // r3 float v37; // [sp+4h] [bp-30h] float x; // [sp+Ch] [bp-28h] BYREF float y; // [sp+10h] [bp-24h] _BYTE v40[8]; // [sp+14h] [bp-20h] BYREF _BYTE v41[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v42[8]; // [sp+24h] [bp-10h] BYREF if ( !a5 && cocos2d::CCPoint::equals(a4, (const cocos2d::CCPoint *)&unk_D2DBE0) ) { EditorUI::getGroupCenter((EditorUI *)v42, a1, a2, a5); cocos2d::CCPoint::operator=(a4, v42); } for ( i = 0; ; ++i ) { result = cocos2d::CCArray::count(a2); if ( i >= result ) break; v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, i); v12 = v11; if ( !a5 ) { v13 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v11 + 96))(v11); cocos2d::CCPoint::operator-(&x, v13, a4); v37 = sqrtf((float)(y * y) + (float)(x * x)); v14 = atan2f(y, x) - (float)(a3 * 0.017453); v15 = cosf(v14); v16 = sinf(v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v15, v16); cocos2d::CCPoint::operator*(v42, v41, LODWORD(v37)); cocos2d::CCPoint::operator+(v40, a4, v42); v17 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 96))(v12); cocos2d::CCPoint::operator-(v42, v40, v17); EditorUI::moveObject((int)a1, v12, (int)v42); } v18 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 192))(v12)); v19 = (*(float (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 200))(v12); v20 = *(_DWORD *)v12; if ( v18 != v19 ) { v21 = *(void (__fastcall **)(GameObject *, _DWORD))(v20 + 188); v22 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(v20 + 192))(v12)); v21(v12, v22 + a3); v23 = *(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)v12 + 196); v24 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 200))(v12)); v23(v12, v24 + a3); *((_BYTE *)v12 + 708) = 1; v25 = (*(float (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 192))(v12); v26 = *(_DWORD *)v12; if ( v25 >= 360.0 ) goto LABEL_12; if ( (*(float (__fastcall **)(GameObject *))(v26 + 192))(v12) <= -360.0 ) { v26 = *(_DWORD *)v12; LABEL_12: v27 = *(void (__fastcall **)(GameObject *, float))(v26 + 188); v28 = (int)(*(float (__fastcall **)(GameObject *))(v26 + 192))(v12) % 360; ((void (__fastcall *)(_DWORD, _DWORD))v27)(v12, (float)v28); } v29 = (*(float (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 200))(v12); v30 = *(_DWORD *)v12; if ( v29 < 360.0 ) { if ( (*(float (__fastcall **)(GameObject *))(v30 + 200))(v12) > -360.0 ) continue; v30 = *(_DWORD *)v12; } v31 = *(void (__fastcall **)(GameObject *, float))(v30 + 196); v32 = (*(float (__fastcall **)(GameObject *))(v30 + 200))(v12); goto LABEL_21; } v33 = *(void (__fastcall **)(GameObject *, _DWORD))(v20 + 180); v34 = COERCE_FLOAT((*(int (__fastcall **)(GameObject *))(v20 + 184))(v12)); v33(v12, v34 + a3); v35 = (*(float (__fastcall **)(GameObject *))(*(_DWORD *)v12 + 184))(v12); v36 = *(_DWORD *)v12; if ( v35 < 360.0 ) { if ( (*(float (__fastcall **)(GameObject *))(v36 + 184))(v12) > -360.0 ) continue; v36 = *(_DWORD *)v12; } v31 = *(void (__fastcall **)(GameObject *, float))(v36 + 180); v32 = (*(float (__fastcall **)(GameObject *))(v36 + 184))(v12); LABEL_21: ((void (__fastcall *)(_DWORD, _DWORD))v31)(v12, (float)((int)v32 % 360)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source