{"type": "func", "start": 4296407268, "end": 4296407408, "name": "EditorUI::activateTransformControl", "pseudocode": "// \n// EditorUI::activateTransformControl from 0x10015f8e4 to 0x10015f970 (140 bytes)\n// \n// 3 xrefs:\n// > EditorUI::updateControlsAfterAlign @ 0x10015f3f4\n// > EditorUI::handleEditorAction @ 0x100162dd0\n// > EditorUI::createMoveMenu @ 0x100185f5c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:59:45 +0000\n// \n\n__int64 __fastcall EditorUI::activateTransformControl(__int64 a1)\n{\n  __int64 result; // x0\n  __n128 v3; // q0\n  __int64 v4; // x0\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 896));\n  if ( (_DWORD)result || *(_QWORD *)(a1 + 1496) )\n  {\n    v4 = EditorSFXManager::sharedState(v3);\n    EditorSFXManager::playAction_1(v4, 189);\n    EditorUI::deactivateScaleControl(a1);\n    EditorUI::deactivateRotationControl(a1);\n    if ( (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 352LL))(*(_QWORD *)(a1 + 792)) )\n    {\n      EditorUI::deactivateTransformControl(a1);\n      return EditorUI::toggleSpecialEditButtons(a1, 0);\n    }\n    else\n    {\n      return EditorUI::showTransformControl(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::activateTransformControl from 0x10015f8e4 to 0x10015f970 (140 bytes)\n; \n; 3 xrefs:\n; > EditorUI::updateControlsAfterAlign @ 0x10015f3f4\n; > EditorUI::handleEditorAction @ 0x100162dd0\n; > EditorUI::createMoveMenu @ 0x100185f5c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:59:45 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10015f8e4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10015f8e8\nADD             X29, SP, #0x10                                         ; +0x8, 0x10015f8ec\nMOV             X19, X0                                                ; +0xc, 0x10015f8f0\nLDR             X0, [X0,#0x380]                                        ; +0x10, 0x10015f8f4\nBL              sub_1002E757C                                          ; +0x14, 0x10015f8f8\nCBNZ            W0, loc_10015F908                                      ; +0x18, 0x10015f8fc\nLDR             X8, [X19,#0x5D8]                                       ; +0x1c, 0x10015f900\nCBZ             X8, loc_10015F964                                      ; +0x20, 0x10015f904\nBL              EditorSFXManager__sharedState                          ; +0x24, 0x10015f908\nMOV             W1, #0xBD                                              ; +0x28, 0x10015f90c\nBL              EditorSFXManager__playAction_1                         ; +0x2c, 0x10015f910\nMOV             X0, X19                                                ; +0x30, 0x10015f914\nBL              EditorUI__deactivateScaleControl                       ; +0x34, 0x10015f918\nMOV             X0, X19                                                ; +0x38, 0x10015f91c\nBL              EditorUI__deactivateRotationControl                    ; +0x3c, 0x10015f920\nLDR             X0, [X19,#0x318]                                       ; +0x40, 0x10015f924\nLDR             X8, [X0]                                               ; +0x44, 0x10015f928\nLDR             X8, [X8,#0x160]                                        ; +0x48, 0x10015f92c\nBLR             X8                                                     ; +0x4c, 0x10015f930\nCBZ             W0, loc_10015F954                                      ; +0x50, 0x10015f934\nMOV             X0, X19                                                ; +0x54, 0x10015f938\nBL              EditorUI__deactivateTransformControl                   ; +0x58, 0x10015f93c\nMOV             X0, X19                                                ; +0x5c, 0x10015f940\nMOV             W1, #0                                                 ; +0x60, 0x10015f944\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x10015f948\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x10015f94c\nB               EditorUI__toggleSpecialEditButtons                     ; +0x6c, 0x10015f950\nMOV             X0, X19                                                ; +0x70, 0x10015f954\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x10015f958\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x10015f95c\nB               EditorUI__showTransformControl                         ; +0x7c, 0x10015f960\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x10015f964\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x10015f968\nRET                                                                    ; +0x88, 0x10015f96c", "xrefs": ["EditorUI::updateControlsAfterAlign @ 0x10015f3f4", "EditorUI::handleEditorAction @ 0x100162dd0", "EditorUI::createMoveMenu @ 0x100185f5c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}