// // EditorUI::transformObject from 0x70dd4c to 0x70e166 (1050 bytes) // // 4 xrefs: // > EditorUI::flipObjectsX @ 0x70e204 // > EditorUI::flipObjectsY @ 0x70e32c // > EditorUI::transformObjectCall @ 0x70e5f4 // > EditorUI::transformObjectCall @ 0x70e62a // // 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 // float __fastcall EditorUI::transformObject(int a1, int *a2, int a3, int a4) { int v7; // r8 float v8; // s16 float v9; // s15 _BOOL4 v10; // r10 _BOOL4 v11; // r9 void (__fastcall *v12)(int *, int); // r6 unsigned __int8 v13; // r0 float v14; // s17 float v15; // r0 int v16; // r3 void (__fastcall *v17)(int *, unsigned int); // r6 int v18; // r0 void (__fastcall *v19)(int *, unsigned int); // r6 int v20; // r0 int v21; // r0 void (__fastcall *v22)(int *, _DWORD); // r6 float v23; // s17 float v24; // r0 void (__fastcall *v25)(int *, _DWORD); // r6 float v26; // r0 float v27; // s17 cocos2d::CCArray *v28; // r9 float v29; // s17 float v30; // r0 int v31; // r3 float v32; // r0 int v33; // r3 float result; // r0 int (__fastcall *v35)(int *, float); // r6 float v36; // r0 float v37; // r0 int v38; // r3 void (__fastcall *v39)(int *, float); // r6 int v40; // r1 float v41; // r0 int v42; // r3 _BYTE v43[8]; // [sp+Ch] [bp-Ch] BYREF if ( a4 || isSpecialSnapObject((char *)a2[223]) && (unsigned int)(a3 - 37) <= 1 || (v7 = (int)fabsf((*(float (__fastcall **)(int *))(*a2 + 184))(a2)) % 90) != 0 || a3 == 44 ) { v7 = 1; } else { EditorUI::removeOffset((GJBaseGameLayer **)a1, (GameObject *)a2); } v8 = COERCE_FLOAT((*(int (__fastcall **)(int *))(*a2 + 192))(a2)); if ( v8 != (*(float (__fastcall **)(int *))(*a2 + 200))(a2) ) { v11 = 1; goto LABEL_15; } v9 = fabsf((*(float (__fastcall **)(int *))(*a2 + 184))(a2)); v10 = v9 == 90.0 || v9 == 270.0; v11 = (int)v9 % 90 != 0; if ( v10 ) { if ( a3 == 37 ) { LABEL_17: v12 = *(void (__fastcall **)(int *, int))(*a2 + 624); v13 = (*(int (__fastcall **)(int *))(*a2 + 716))(a2); } else { if ( a3 != 38 ) goto LABEL_15; LABEL_16: v12 = *(void (__fastcall **)(int *, int))(*a2 + 620); v13 = (*(int (__fastcall **)(int *))(*a2 + 712))(a2); } v12(a2, v13 ^ 1); if ( v11 ) { v14 = COERCE_FLOAT((*(int (__fastcall **)(int *))(*a2 + 192))(a2)); v15 = (*(float (__fastcall **)(int *))(*a2 + 200))(a2); v16 = *a2; if ( v14 == v15 ) { v19 = *(void (__fastcall **)(int *, unsigned int))(v16 + 180); v20 = (*(int (__fastcall **)(int *))(v16 + 184))(a2); } else { v17 = *(void (__fastcall **)(int *, unsigned int))(v16 + 188); v18 = (*(int (__fastcall **)(int *))(v16 + 192))(a2); v17(a2, v18 ^ 0x80000000); v19 = *(void (__fastcall **)(int *, unsigned int))(*a2 + 196); v20 = (*(int (__fastcall **)(int *))(*a2 + 200))(a2); } v19(a2, v20 ^ 0x80000000); } if ( *((_BYTE *)a2 + 1048) ) (*(void (__fastcall **)(int *, int))(*a2 + 888))(a2, 1); goto LABEL_31; } LABEL_15: switch ( a3 ) { case '%': goto LABEL_16; case '&': goto LABEL_17; case '\'': case '(': case ')': case '*': v21 = EditorUI::rotationforCommand(a1, a3); v22 = *(void (__fastcall **)(int *, _DWORD))(*a2 + 188); v23 = *(float *)&v21; v24 = COERCE_FLOAT((*(int (__fastcall **)(int *))(*a2 + 192))(a2)); v22(a2, v24 + v23); v25 = *(void (__fastcall **)(int *, _DWORD))(*a2 + 196); v26 = COERCE_FLOAT((*(int (__fastcall **)(int *))(*a2 + 200))(a2)); v25(a2, v26 + v23); if ( fabsf((*(float (__fastcall **)(int *))(*a2 + 192))(a2)) == 360.0 ) (*(void (__fastcall **)(int *, _DWORD))(*a2 + 188))(a2, 0); if ( fabsf((*(float (__fastcall **)(int *))(*a2 + 200))(a2)) == 360.0 ) (*(void (__fastcall **)(int *, _DWORD))(*a2 + 196))(a2, 0); break; case ',': v27 = COERCE_FLOAT(EditorUI::getSnapAngle((LevelEditorLayer **)a1, (GameObject *)a2, nullptr)); if ( v27 != -1.0 ) { v28 = *(cocos2d::CCArray **)(a1 + 668); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (const cocos2d::CCPoint *)&unk_D2DBE0); EditorUI::rotateObjects((cocos2d::CCArray *)a1, v28, v27, (cocos2d::CCPoint *)v43, 0); } break; default: break; } LABEL_31: v29 = COERCE_FLOAT((*(int (__fastcall **)(int *))(*a2 + 192))(a2)); v30 = (*(float (__fastcall **)(int *))(*a2 + 200))(a2); v31 = *a2; if ( v29 == v30 ) { v32 = (*(float (__fastcall **)(int *))(v31 + 184))(a2); v33 = *a2; if ( v32 < 360.0 ) { result = (*(float (__fastcall **)(int *))(v33 + 184))(a2); if ( result > -360.0 ) goto LABEL_45; v33 = *a2; } v35 = *(int (__fastcall **)(int *, float))(v33 + 180); v36 = (*(float (__fastcall **)(int *))(v33 + 184))(a2); goto LABEL_44; } v37 = (*(float (__fastcall **)(int *))(v31 + 192))(a2); v38 = *a2; if ( v37 >= 360.0 ) goto LABEL_39; if ( (*(float (__fastcall **)(int *))(v38 + 192))(a2) <= -360.0 ) { v38 = *a2; LABEL_39: v39 = *(void (__fastcall **)(int *, float))(v38 + 188); v40 = (int)(*(float (__fastcall **)(int *))(v38 + 192))(a2) % 360; ((void (__fastcall *)(_DWORD, _DWORD))v39)(a2, (float)v40); } v41 = (*(float (__fastcall **)(int *))(*a2 + 200))(a2); v42 = *a2; if ( v41 < 360.0 ) { result = (*(float (__fastcall **)(int *))(v42 + 200))(a2); if ( result > -360.0 ) goto LABEL_45; v42 = *a2; } v35 = *(int (__fastcall **)(int *, float))(v42 + 196); v36 = (*(float (__fastcall **)(int *))(v42 + 200))(a2); LABEL_44: result = COERCE_FLOAT(((int (__fastcall *)(_DWORD, _DWORD))v35)(a2, (float)((int)v36 % 360))); LABEL_45: if ( !v7 ) result = COERCE_FLOAT(EditorUI::applyOffset((GJBaseGameLayer **)a1, (GameObject *)a2)); if ( *(_BYTE *)(a1 + 512) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (const cocos2d::CCPoint *)&unk_D2DBE0); return COERCE_FLOAT(EditorUI::moveObject(a1, (GameObject *)a2, (int)v43)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source