// // EditorUI::transformObjectCall_1 from 0x1401ff300 to 0x1401ff8c0 (1472 bytes) // // 8 xrefs: // > EditorUI::handleEditorAction @ 0x1401c25b7 // > EditorUI::handleEditorAction @ 0x1401c25d3 // > EditorUI::handleEditorAction @ 0x1401c25ef // > EditorUI::handleEditorAction @ 0x1401c260b // > EditorUI::transformObjectCall @ 0x1401ff2ec // > @ 0x1408a3adc // > @ 0x1408a3b24 // > @ 0x14091accc // // 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:12 +0000 // void __fastcall EditorUI::transformObjectCall_1(__int64 a1, unsigned int a2) { cocos2d::CCArray **v2; // r14 __int64 v5; // rax _DWORD *v6; // rdx unsigned int v7; // esi int v8; // ecx int v9; // eax int v10; // ecx __int64 v11; // rax int v12; // edx cocos2d::CCArray *v13; // rbx __int64 v14; // rbp struct cocos2d::CCObject *v15; // rax double v16; // xmm0_8 float v17; // xmm6_4 double v18; // xmm0_8 float v19; // xmm1_4 cocos2d::CCArray **v20; // r15 cocos2d::CCArray *v21; // rbp __int64 v22; // rbx struct cocos2d::CCObject *v23; // rax double v24; // xmm0_8 float v25; // xmm6_4 __int64 v26; // rbx int v27; // eax int v28; // r8d double v29; // xmm0_8 struct cocos2d::CCObject *v30; // rcx __int64 v31; // rbx int v32; // eax int v33; // r8d struct cocos2d::CCObject *v34; // rax int v35; // r8d __int64 v36; // r10 char v37; // [rsp+70h] [rbp+8h] BYREF v2 = (cocos2d::CCArray **)(a1 + 944); if ( !*(_QWORD *)(a1 + 1568) && !cocos2d::CCArray::count(*v2) ) return; v5 = cocos2d::CCDirector::sharedDirector(a1); v7 = 0; if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 176LL))(v5) + 157) ) { v6 = *(_DWORD **)(a1 + 1512); ++v6[3855]; v8 = v6[3876]; if ( v8 >= 0 ) { v9 = v6[3860] - v8; v10 = 0; if ( v9 > 1 ) { do { if ( v10 >= 7 ) break; v9 = (unsigned int)v9 >> 1; ++v10; } while ( (unsigned int)v9 > 1 ); } v2 = (cocos2d::CCArray **)(a1 + 944); ++v6[v10 + 3868]; } v6[3876] = v6[3860]; } switch ( a2 ) { case '%': case '&': v11 = EditorSFXManager::sharedState(); v12 = 132; goto LABEL_14; case '\'': case '(': case ')': case '*': v11 = EditorSFXManager::sharedState(); v12 = 130; goto LABEL_14; case ',': v11 = EditorSFXManager::sharedState(); v12 = 131; LABEL_14: EditorSFXManager::playAction(v11, v12); break; default: break; } EditorUI::createUndoObject(a1, (__int64)v6, 0); if ( !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 840) + 344LL))(*(_QWORD *)(a1 + 840)) ) { if ( cocos2d::CCArray::count(*v2) ) { if ( a2 == 37 ) { EditorUI::flipObjectsX(a1, *v2); return; } if ( a2 == 38 ) { EditorUI::flipObjectsY(a1, *(_QWORD *)(a1 + 944)); return; } v2 = (cocos2d::CCArray **)(a1 + 944); } v20 = v2; if ( cocos2d::CCArray::count(*v2) ) { if ( a2 == 39 || a2 == 40 || a2 == 41 || a2 == 42 ) { v26 = *(_QWORD *)(a1 + 944); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (const struct cocos2d::CCPoint *)&unk_14090A7A8); EditorUI::rotateObjects(a1, v26, v28, v27, 0); return; } v20 = (cocos2d::CCArray **)(a1 + 944); } v21 = *v2; if ( a2 != 44 ) { if ( cocos2d::CCArray::count(*v2) ) { if ( cocos2d::CCArray::count(*v20) ) { do { v34 = cocos2d::CCArray::objectAtIndex(*v20, v7); EditorUI::transformObject(a1, v34, a2, 0); ++v7; } while ( v7 < cocos2d::CCArray::count(*v20) ); } } else { if ( isSpecialSnapObject(*(_DWORD *)(*(_QWORD *)(a1 + 1568) + 1036LL)) && a2 - 39 <= 3 || v35 == 2900 ) *(_BYTE *)(a1 + 740) = 1; EditorUI::transformObject(a1, v36, a2, 0); *(_BYTE *)(a1 + 740) = 0; } return; } v22 = *(_QWORD *)(a1 + 1568); if ( v21 && cocos2d::CCArray::count(*v2) ) { if ( !cocos2d::CCArray::count(v21) ) return; while ( 1 ) { v23 = cocos2d::CCArray::objectAtIndex(v21, v7); v24 = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1512), v23); v25 = *(float *)&v24; if ( *(float *)&v24 != -1.0 ) break; if ( ++v7 >= cocos2d::CCArray::count(v21) ) goto LABEL_64; } } else { if ( !v22 ) return; v29 = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1512), v22); v25 = *(float *)&v29; LABEL_64: if ( v25 == -1.0 ) return; } v30 = *(struct cocos2d::CCObject **)(a1 + 1568); if ( v30 ) LODWORD(v31) = (unsigned int)cocos2d::CCArray::createWithObject(v30); else v31 = *(_QWORD *)(a1 + 944); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (const struct cocos2d::CCPoint *)&unk_14090A7A8); EditorUI::rotateObjects(a1, v31, v33, v32, 0); return; } if ( a2 == 39 ) { v19 = 90.0; goto LABEL_40; } if ( a2 == 40 ) { v19 = -90.0; goto LABEL_40; } if ( a2 == 41 ) { v19 = 45.0; goto LABEL_40; } if ( a2 == 42 ) { v19 = -45.0; LABEL_40: GJTransformControl::applyRotation(*(_QWORD *)(a1 + 840), v19 + *(float *)(*(_QWORD *)(a1 + 840) + 608LL)); return; } if ( a2 == 44 ) { v13 = *(cocos2d::CCArray **)(a1 + 944); v14 = *(_QWORD *)(a1 + 1568); if ( v13 && cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) ) { if ( !cocos2d::CCArray::count(v13) ) return; while ( 1 ) { v15 = cocos2d::CCArray::objectAtIndex(v13, v7); v16 = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1512), v15); v17 = *(float *)&v16; if ( *(float *)&v16 != -1.0 ) goto LABEL_30; if ( ++v7 >= cocos2d::CCArray::count(v13) ) goto LABEL_29; } } if ( v14 ) { v18 = LevelEditorLayer::rotationForSlopeNearObject(*(_QWORD *)(a1 + 1512), v14); v17 = *(float *)&v18; LABEL_29: if ( v17 != -1.0 ) LABEL_30: GJTransformControl::applyRotation(*(_QWORD *)(a1 + 840), v17); } } else { if ( a2 == 37 ) { *(float *)(*(_QWORD *)(a1 + 840) + 592LL) = -*(float *)(*(_QWORD *)(a1 + 840) + 592LL); (**(void (__fastcall ***)(__int64))(a1 + 440))(a1 + 440); } else { if ( a2 != 38 ) return; *(float *)(*(_QWORD *)(a1 + 840) + 596LL) = -*(float *)(*(_QWORD *)(a1 + 840) + 596LL); (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 440) + 8LL))(a1 + 440); } GJTransformControl::updateButtons(*(_QWORD *)(a1 + 840), 0, 0); } }