// // EditorUI::transformObjectCall from 0xc01790 to 0xc01b7c (1004 bytes) // // 9 xrefs: // > EditorUI::handleEditorAction @ 0xbd7de4 // > EditorUI::handleEditorAction @ 0xbd7dfc // > EditorUI::handleEditorAction @ 0xbd7e14 // > EditorUI::handleEditorAction @ 0xbd8024 // > EditorUI::handleEditorAction @ 0xbd803c // > EditorUI::handleEditorAction @ 0xbd8054 // > EditorUI::handleEditorAction @ 0xbd806c // > EditorUI::transformObjectCall @ 0xc01bac // > @ 0xa7b90 // // This function is hookable on this platform (idp: arm, 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 13:03:49 +0000 // __int64 __fastcall EditorUI::transformObjectCall(__int64 a1, int a2) { cocos2d::CCDirector *v4; // x0 __int64 v5; // x0 __int64 v6; // x0 long double v7; // q0 EditorSFXManager *v9; // x0 float v10; // s0 EditorSFXManager *v11; // x0 EditorSFXManager *v12; // x0 unsigned int v13; // w22 unsigned int v14; // w1 __int64 v15; // x0 __int64 v16; // x0 float v17; // s8 float v18; // s0 cocos2d::CCArray *v19; // x22 cocos2d::CCObject *v20; // x1 float v21; // s0 cocos2d::CCArray *v22; // x0 __int64 v23; // x0 cocos2d::CCArray *v24; // x21 bool v25; // w0 __int64 v26; // x1 float v27; // [xsp+40h] [xbp+40h] float v28; // [xsp+40h] [xbp+40h] float v29; // [xsp+50h] [xbp+50h] _BYTE v30[8]; // [xsp+60h] [xbp+60h] BYREF v4 = *(cocos2d::CCDirector **)(a1 + 1496); if ( v4 || (v4 = (cocos2d::CCDirector *)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)), (_DWORD)v4) ) { v5 = cocos2d::CCDirector::sharedDirector(v4); v6 = *(unsigned __int8 *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 133); if ( !(_DWORD)v6 ) { v16 = *(_QWORD *)(a1 + 1440) + 14704LL; *(_DWORD *)(v16 + 12) = *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 14716LL) + 1; v6 = EditorBuildStats::noteAction(v16); } switch ( a2 ) { case '%': case '&': v12 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v6); EditorSFXManager::playAction(v12, 132); goto LABEL_5; case '\'': case '(': case ')': case '*': v11 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v6); EditorSFXManager::playAction(v11, 130); goto LABEL_5; case ',': v9 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v6); EditorSFXManager::playAction(v9, 131); EditorUI::createUndoObject(a1, 5, 0); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) ) goto LABEL_13; cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)); goto LABEL_19; default: LABEL_5: EditorUI::createUndoObject(a1, 5, 0); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) ) { if ( (unsigned int)(a2 - 39) <= 3 ) { v17 = *(float *)(*(_QWORD *)(a1 + 792) + 608LL); v18 = EditorUI::rotationforCommand(a1, a2); GJTransformControl::applyRotation(*(GJTransformControl **)(a1 + 792), v17 + v18); } else if ( a2 == 44 ) { LABEL_13: EditorUI::getSnapAngle( (cocos2d::CCArray *)a1, *(GameObject **)(a1 + 1496), *(cocos2d::CCArray **)(a1 + 896)); if ( v10 != -1.0 ) GJTransformControl::applyRotation(*(GJTransformControl **)(a1 + 792), v10); } else { if ( a2 == 37 ) { *(float *)(*(_QWORD *)(a1 + 792) + 592LL) = -*(float *)(*(_QWORD *)(a1 + 792) + 592LL); LODWORD(v7) = *(_DWORD *)(*(_QWORD *)(a1 + 792) + 592LL); (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 1208LL))(a1, v7); } else { if ( a2 != 38 ) return _stack_chk_guard; *(float *)(*(_QWORD *)(a1 + 792) + 596LL) = -*(float *)(*(_QWORD *)(a1 + 792) + 596LL); LODWORD(v7) = *(_DWORD *)(*(_QWORD *)(a1 + 792) + 596LL); (*(void (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 1216LL))(a1, v7); } GJTransformControl::updateButtons(*(GJTransformControl **)(a1 + 792), 0, 0); } } else if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) && (unsigned int)(a2 - 37) <= 1 ) { if ( a2 == 37 ) EditorUI::flipObjectsX((EditorUI *)a1, *(cocos2d::CCArray **)(a1 + 896)); else EditorUI::flipObjectsY((EditorUI *)a1, *(cocos2d::CCArray **)(a1 + 896)); } else { LABEL_19: if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) && (unsigned int)(a2 - 39) <= 3 ) { v19 = *(cocos2d::CCArray **)(a1 + 896); v27 = EditorUI::rotationforCommand(a1, a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const cocos2d::CCPoint *)&unk_155EAE0); EditorUI::rotateObjects(a1, v19, (cocos2d::CCPoint *)v30, 0, v27); } else if ( a2 == 44 ) { EditorUI::getSnapAngle( (cocos2d::CCArray *)a1, *(GameObject **)(a1 + 1496), *(cocos2d::CCArray **)(a1 + 896)); if ( v21 != -1.0 ) { v22 = *(cocos2d::CCArray **)(a1 + 1496); if ( v22 ) { v29 = v21; v23 = cocos2d::CCArray::createWithObject(v22, v20); v21 = v29; v24 = (cocos2d::CCArray *)v23; } else { v24 = *(cocos2d::CCArray **)(a1 + 896); } v28 = v21; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const cocos2d::CCPoint *)&unk_155EAE0); EditorUI::rotateObjects(a1, v24, (cocos2d::CCPoint *)v30, 0, v28); } } else { v13 = 0; if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) ) { while ( v13 < (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 896)) ) { v14 = v13++; v15 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 896), v14); EditorUI::transformObject(a1, v15, a2, 0); } } else { v25 = isSpecialSnapObject(*(_DWORD *)(*(_QWORD *)(a1 + 1496) + 1028LL)); v26 = *(_QWORD *)(a1 + 1496); if ( v25 && (unsigned int)(a2 - 39) <= 3 || *(_DWORD *)(v26 + 1028) == 2900 ) *(_BYTE *)(a1 + 692) = 1; EditorUI::transformObject(a1, v26, a2, 0); *(_BYTE *)(a1 + 692) = 0; } } } break; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source