{"type": "func", "start": 4298928232, "end": 4298928392, "name": "EditorUI::deactivateScaleControl", "pseudocode": "// \n// EditorUI::deactivateScaleControl from 0x1003c7068 to 0x1003c7108 (160 bytes)\n// \n// 7 xrefs:\n// > EditorUI::init @ 0x1003c5090\n// > EditorUI::deleteObject @ 0x1003e9c30\n// > EditorUI::deselectAll @ 0x1003e9d40\n// > EditorUI::selectAll @ 0x1003ee158\n// > EditorUI::selectAllWithDirection @ 0x1003ee36c\n// > EditorUI::activateScaleControl @ 0x1003ef16c\n// > EditorUI::activateTransformControl @ 0x1003efda8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::deactivateScaleControl(EditorUI *a1)\n{\n  int v2; // w8\n  GJScaleControl *m_scaleControl; // x0\n  GJScaleControlDelegate *m_delegate; // x8\n\n  v2 = ((__int64 (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl);\n  m_scaleControl = a1->m_scaleControl;\n  if ( v2 )\n  {\n    ((void (__fastcall *)(GJScaleControl *, _QWORD))m_scaleControl->setVisible)(m_scaleControl, 0);\n    m_scaleControl = a1->m_scaleControl;\n    if ( m_scaleControl->m_touchID != -1 )\n    {\n      m_scaleControl->m_touchID = -1;\n      m_delegate = m_scaleControl->m_delegate;\n      if ( m_delegate )\n      {\n        ((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeEnded)(m_scaleControl->m_delegate);\n        m_scaleControl = a1->m_scaleControl;\n      }\n    }\n    *(_QWORD *)&m_scaleControl->m_upperBound = 0x3F00000040000000LL;\n  }\n  EditorUI::updateEditButtonColor(a1, m_scaleControl->m_senderTag, (cocos2d::ccColor3B)-1);\n  a1->m_scaleControl->m_senderTag = 0;\n}", "assembly": "; \n; EditorUI::deactivateScaleControl from 0x1003c7068 to 0x1003c7108 (160 bytes)\n; \n; 7 xrefs:\n; > EditorUI::init @ 0x1003c5090\n; > EditorUI::deleteObject @ 0x1003e9c30\n; > EditorUI::deselectAll @ 0x1003e9d40\n; > EditorUI::selectAll @ 0x1003ee158\n; > EditorUI::selectAllWithDirection @ 0x1003ee36c\n; > EditorUI::activateScaleControl @ 0x1003ef16c\n; > EditorUI::activateTransformControl @ 0x1003efda8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003c7068\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003c706c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003c7070\nMOV             X19, X0                                                ; +0xc, 0x1003c7074\nLDR             X0, [X0,#0x2B8]                                        ; +0x10, 0x1003c7078\nLDR             X8, [X0]                                               ; +0x14, 0x1003c707c\nLDR             X8, [X8,#0x150]                                        ; +0x18, 0x1003c7080\nBLR             X8                                                     ; +0x1c, 0x1003c7084\nMOV             X8, X0                                                 ; +0x20, 0x1003c7088\nLDR             X0, [X19,#0x2B8]                                       ; +0x24, 0x1003c708c\nCBZ             W8, loc_1003C70E4                                      ; +0x28, 0x1003c7090\nLDR             X8, [X0]                                               ; +0x2c, 0x1003c7094\nLDR             X8, [X8,#0x148]                                        ; +0x30, 0x1003c7098\nMOV             W1, #0                                                 ; +0x34, 0x1003c709c\nBLR             X8                                                     ; +0x38, 0x1003c70a0\nLDR             X0, [X19,#0x2B8]                                       ; +0x3c, 0x1003c70a4\nLDR             W8, [X0,#0x1B0]                                        ; +0x40, 0x1003c70a8\nCMN             W8, #1                                                 ; +0x44, 0x1003c70ac\nB.EQ            loc_1003C70D8                                          ; +0x48, 0x1003c70b0\nMOV             W8, #0xFFFFFFFF                                        ; +0x4c, 0x1003c70b4\nSTR             W8, [X0,#0x1B0]                                        ; +0x50, 0x1003c70b8\nLDR             X8, [X0,#0x1E8]                                        ; +0x54, 0x1003c70bc\nCBZ             X8, loc_1003C70D8                                      ; +0x58, 0x1003c70c0\nLDR             X9, [X8]                                               ; +0x5c, 0x1003c70c4\nLDR             X9, [X9,#0x20]                                         ; +0x60, 0x1003c70c8\nMOV             X0, X8                                                 ; +0x64, 0x1003c70cc\nBLR             X9                                                     ; +0x68, 0x1003c70d0\nLDR             X0, [X19,#0x2B8]                                       ; +0x6c, 0x1003c70d4\nADRP            X8, #qword_1006462B0@PAGE                              ; +0x70, 0x1003c70d8\nLDR             D0, [X8,#qword_1006462B0@PAGEOFF]                      ; +0x74, 0x1003c70dc\nSTR             D0, [X0,#0x1F0]                                        ; +0x78, 0x1003c70e0\nLDR             W1, [X0,#0x1F8]                                        ; +0x7c, 0x1003c70e4\nMOV             X0, X19                                                ; +0x80, 0x1003c70e8\nMOV             W2, #0xFFFFFF                                          ; +0x84, 0x1003c70ec\nBL              EditorUI__updateEditButtonColor                        ; +0x88, 0x1003c70f0\nLDR             X8, [X19,#0x2B8]                                       ; +0x8c, 0x1003c70f4\nSTR             WZR, [X8,#0x1F8]                                       ; +0x90, 0x1003c70f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x94, 0x1003c70fc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x98, 0x1003c7100\nRET                                                                    ; +0x9c, 0x1003c7104", "xrefs": ["EditorUI::init @ 0x1003c5090", "EditorUI::deleteObject @ 0x1003e9c30", "EditorUI::deselectAll @ 0x1003e9d40", "EditorUI::selectAll @ 0x1003ee158", "EditorUI::selectAllWithDirection @ 0x1003ee36c", "EditorUI::activateScaleControl @ 0x1003ef16c", "EditorUI::activateTransformControl @ 0x1003efda8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}