// // EditorUI::transformObject from 0x1401ff8c0 to 0x1401ffefc (1596 bytes) // // 9 xrefs: // > EditorUI::handleEditorAction @ 0x1401c3cae // > EditorUI::handleEditorAction @ 0x1401c3e8e // > EditorUI::handleEditorAction @ 0x1401c3ee6 // > EditorUI::transformObjectCall_1 @ 0x1401ff817 // > EditorUI::transformObjectCall_1 @ 0x1401ff86b // > EditorUI::flipObjectsX @ 0x1401fffe4 // > EditorUI::flipObjectsY @ 0x1402001d4 // > @ 0x14091ad14 // > @ 0x14091ad20 // // 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 // void __fastcall EditorUI::transformObject(__int64 a1, __int64 a2, int a3, char a4) { int v7; // r8d float v8; // xmm0_4 char v9; // r14 float (__fastcall *v10)(__int64); // rbx double v11; // xmm0_8 float v12; // xmm0_4 bool v13; // bl int v14; // eax __int64 v15; // rdx __int64 v16; // rdx double v17; // xmm0_8 float v18; // xmm6_4 void (__fastcall **v19)(_QWORD); // rbx __int64 v20; // rbx __int64 v21; // rdx double v22; // xmm0_8 float v23; // xmm6_4 __int64 v24; // rbx __int64 v25; // rbx double v26; // xmm0_8 __int64 v27; // rbx int v28; // eax int v29; // r8d double v30; // xmm0_8 float v31; // xmm6_4 __int64 v32; // rdx float v33; // xmm0_4 __int64 v34; // rbx float (__fastcall *v35)(__int64); // rdx float v36; // xmm0_4 __int64 v37; // rbx float (__fastcall *v38)(__int64); // rax float v39; // xmm0_4 __int64 v40; // rbx float (__fastcall *v41)(__int64); // rax __int64 v42; // rax char v43; // [rsp+80h] [rbp+8h] BYREF if ( a4 || isSpecialSnapObject(*(_DWORD *)(a2 + 1036)) && (unsigned int)(v7 - 37) <= 1 || (v8 = fabs(COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 360LL))(a2)))), (int)v8 != 90 * ((int)v8 / 90)) || a3 == 44 ) { v9 = 1; } else { v9 = 0; EditorUI::removeOffset(a1, a2); } v10 = *(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL); v11 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); if ( *(float *)&v11 == v10(a2) ) { v12 = fabs(COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 360LL))(a2)))); if ( v12 == 90.0 || v12 == 270.0 ) { v13 = (int)v12 != 90 * ((int)v12 / 90); if ( a3 == 37 ) { v14 = 1; goto LABEL_18; } if ( a3 == 38 ) a3 = 37; } else { v13 = (int)v12 != 90 * ((int)v12 / 90); } } else { v13 = 1; } v14 = a3 - 37; LABEL_18: switch ( v14 ) { case 0: LOBYTE(v15) = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1272LL))(a2) == 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1088LL))(a2, v15); if ( !v13 ) goto LABEL_23; v17 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); v18 = *(float *)&v17; *(float *)&v17 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); v19 = *(void (__fastcall ***)(_QWORD))a2; if ( *(float *)&v17 != v18 ) goto LABEL_22; goto LABEL_21; case 1: LOBYTE(v21) = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1280LL))(a2) == 0; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1096LL))(a2, v21); if ( v13 ) { v22 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); v23 = *(float *)&v22; *(float *)&v22 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); v19 = *(void (__fastcall ***)(_QWORD))a2; if ( *(float *)&v22 == v23 ) { LABEL_21: v19[45](a2); v19[44](a2); } else { LABEL_22: v19[47](a2); v19[46](a2); v20 = *(_QWORD *)a2; (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); (*(void (__fastcall **)(__int64))(v20 + 384))(a2); } } LABEL_23: if ( *(_BYTE *)(a2 + 1220) ) { LOBYTE(v16) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 1624LL))(a2, v16); } break; case 2: case 3: case 4: case 5: v24 = *(_QWORD *)a2; (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); (*(void (__fastcall **)(__int64))(v24 + 368))(a2); v25 = *(_QWORD *)a2; (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); (*(void (__fastcall **)(__int64))(v25 + 384))(a2); if ( fabs(COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2)))) == 360.0 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 368LL))(a2); if ( fabs(COERCE_FLOAT(COERCE_UNSIGNED_INT64((*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2)))) == 360.0 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 384LL))(a2); break; case 7: v26 = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1512), a2); if ( *(float *)&v26 != -1.0 ) { v27 = *(_QWORD *)(a1 + 944); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, (const struct cocos2d::CCPoint *)&unk_14090A7A8); EditorUI::rotateObjects(a1, v27, v29, v28, 0); } break; default: break; } v30 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); v31 = *(float *)&v30; *(float *)&v30 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); v32 = *(_QWORD *)a2; if ( *(float *)&v30 == v31 ) { v33 = (*(float (__fastcall **)(__int64))(v32 + 360))(a2); v34 = *(_QWORD *)a2; v35 = *(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 360LL); if ( v33 < 360.0 ) { if ( v35(a2) <= -360.0 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 360LL))(a2); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 352LL))(a2); } } else { v35(a2); (*(void (__fastcall **)(__int64))(v34 + 352))(a2); } } else { v36 = (*(float (__fastcall **)(__int64))(v32 + 376))(a2); v37 = *(_QWORD *)a2; v38 = *(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL); if ( v36 < 360.0 ) { if ( v38(a2) <= -360.0 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 376LL))(a2); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 368LL))(a2); } } else { v38(a2); (*(void (__fastcall **)(__int64))(v37 + 368))(a2); } v39 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); v40 = *(_QWORD *)a2; v41 = *(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL); if ( v39 < 360.0 ) { if ( v41(a2) <= -360.0 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 392LL))(a2); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 384LL))(a2); } } else { v41(a2); (*(void (__fastcall **)(__int64))(v40 + 384))(a2); } } if ( !v9 ) EditorUI::applyOffset(a1, a2); if ( *(_BYTE *)(a1 + 740) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, (const struct cocos2d::CCPoint *)&unk_14090A7A8); EditorUI::moveObject(a1, a2, v42); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source