{"type": "func", "start": 4295014624, "end": 4295014779, "name": "EditorUI::deactivateRotationControl", "pseudocode": "// \n// EditorUI::deactivateRotationControl from 0x10000b8e0 to 0x10000b97b (155 bytes)\n// \n// 0 xrefs:\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::deactivateRotationControl(EditorUI *a1)\n{\n  GJRotationControl *m_rotationControl; // r14\n  cocos2d::CCSprite *m_controlSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v3; // rax\n  cocos2d::CCSpriteFrame *v4; // rax\n  GJRotationControlDelegate *m_delegate; // rdi\n\n  a1->m_rotationTouchID = -1;\n  if ( ((unsigned __int8 (__fastcall *)(GJRotationControl *))a1->m_rotationControl->isVisible)(a1->m_rotationControl) )\n  {\n    ((void (__fastcall *)(GJRotationControl *, _QWORD))a1->m_rotationControl->setVisible)(a1->m_rotationControl, 0);\n    m_rotationControl = a1->m_rotationControl;\n    if ( m_rotationControl->m_touchID != -1 )\n    {\n      m_rotationControl->m_touchID = -1;\n      m_controlSprite = m_rotationControl->m_controlSprite;\n      v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n      v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, \"GJ_rotationControlBtn01_001.png\");\n      ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(\n        m_controlSprite,\n        v4);\n      m_delegate = m_rotationControl->m_delegate;\n      if ( m_delegate )\n        ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);\n    }\n  }\n}", "assembly": "; \n; EditorUI::deactivateRotationControl from 0x10000b8e0 to 0x10000b97b (155 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x10000b8e0\nmov     rbp, rsp                                                       ; +0x1, 0x10000b8e1\npush    r14                                                            ; +0x4, 0x10000b8e4\npush    rbx                                                            ; +0x6, 0x10000b8e6\nmov     rbx, rdi                                                       ; +0x7, 0x10000b8e7\nmov     dword ptr [rdi+288h], 0FFFFFFFFh                               ; +0xa, 0x10000b8ea\nmov     rdi, [rdi+2A0h]                                                ; +0x14, 0x10000b8f4\nmov     rax, [rdi]                                                     ; +0x1b, 0x10000b8fb\ncall    qword ptr [rax+150h]                                           ; +0x1e, 0x10000b8fe\ntest    al, al                                                         ; +0x24, 0x10000b904\njz      short loc_10000B976                                            ; +0x26, 0x10000b906\nmov     rdi, [rbx+2A0h]                                                ; +0x28, 0x10000b908\nmov     rax, [rdi]                                                     ; +0x2f, 0x10000b90f\nxor     esi, esi                                                       ; +0x32, 0x10000b912\ncall    qword ptr [rax+148h]                                           ; +0x34, 0x10000b914\nmov     r14, [rbx+2A0h]                                                ; +0x3a, 0x10000b91a\ncmp     dword ptr [r14+1B8h], 0FFFFFFFFh                               ; +0x41, 0x10000b921\njz      short loc_10000B976                                            ; +0x49, 0x10000b929\nmov     dword ptr [r14+1B8h], 0FFFFFFFFh                               ; +0x4b, 0x10000b92b\nmov     rbx, [r14+1A8h]                                                ; +0x56, 0x10000b936\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x5d, 0x10000b93d\nlea     rsi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x62, 0x10000b942\nmov     rdi, rax                                                       ; +0x69, 0x10000b949\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x6c, 0x10000b94c\nmov     rcx, [rbx]                                                     ; +0x71, 0x10000b951\nmov     rdi, rbx                                                       ; +0x74, 0x10000b954\nmov     rsi, rax                                                       ; +0x77, 0x10000b957\ncall    qword ptr [rcx+478h]                                           ; +0x7a, 0x10000b95a\nmov     rdi, [r14+1C0h]                                                ; +0x80, 0x10000b960\ntest    rdi, rdi                                                       ; +0x87, 0x10000b967\njz      short loc_10000B976                                            ; +0x8a, 0x10000b96a\nmov     rax, [rdi]                                                     ; +0x8c, 0x10000b96c\npop     rbx                                                            ; +0x8f, 0x10000b96f\npop     r14                                                            ; +0x90, 0x10000b970\npop     rbp                                                            ; +0x92, 0x10000b972\njmp     qword ptr [rax+10h]                                            ; +0x93, 0x10000b973\npop     rbx                                                            ; +0x96, 0x10000b976\npop     r14                                                            ; +0x97, 0x10000b977\npop     rbp                                                            ; +0x99, 0x10000b979\nretn                                                                   ; +0x9a, 0x10000b97a", "xrefs": [], "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"}