{"type": "func", "start": 4301525600, "end": 4301525734, "name": "GJRotationControl::finishTouch", "pseudocode": "// \n// GJRotationControl::finishTouch from 0x100641260 to 0x1006412e6 (134 bytes)\n// \n// 2 xrefs:\n// > EditorUI::activateTransformControl @ 0x1006118d9\n// > EditorUI::deactivateRotationControl @ 0x100611be0\n// \n// This function is hookable on this platform (idp: pc, 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 12:34:43 +0000\n// \n\nvoid __fastcall GJRotationControl::finishTouch(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // r14\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rdi\n\n  v2 = *(_QWORD *)(a1 + 504);\n  if ( v2 )\n    (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v2 + 920LL))(v2, 0, 0);\n  *(_QWORD *)(a1 + 504) = 0;\n  if ( *(_DWORD *)(a1 + 440) != -1 )\n  {\n    *(_DWORD *)(a1 + 440) = -1;\n    v3 = *(_QWORD *)(a1 + 424);\n    v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, \"GJ_rotationControlBtn01_001.png\");\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v5);\n    v6 = *(_QWORD *)(a1 + 512);\n    if ( v6 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);\n  }\n}", "assembly": "; \n; GJRotationControl::finishTouch from 0x100641260 to 0x1006412e6 (134 bytes)\n; \n; 2 xrefs:\n; > EditorUI::activateTransformControl @ 0x1006118d9\n; > EditorUI::deactivateRotationControl @ 0x100611be0\n; \n; This function is hookable on this platform (idp: pc, 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 12:34:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100641260\nmov     rbp, rsp                                                       ; +0x1, 0x100641261\npush    r14                                                            ; +0x4, 0x100641264\npush    rbx                                                            ; +0x6, 0x100641266\nmov     rbx, rdi                                                       ; +0x7, 0x100641267\nmov     rdi, [rdi+1F8h]                                                ; +0xa, 0x10064126a\ntest    rdi, rdi                                                       ; +0x11, 0x100641271\njz      short loc_100641283                                            ; +0x14, 0x100641274\nmov     rax, [rdi]                                                     ; +0x16, 0x100641276\nxor     esi, esi                                                       ; +0x19, 0x100641279\nxor     edx, edx                                                       ; +0x1b, 0x10064127b\ncall    qword ptr [rax+398h]                                           ; +0x1d, 0x10064127d\nmov     qword ptr [rbx+1F8h], 0                                        ; +0x23, 0x100641283\ncmp     dword ptr [rbx+1B8h], 0FFFFFFFFh                               ; +0x2e, 0x10064128e\njz      short loc_1006412E1                                            ; +0x35, 0x100641295\nmov     dword ptr [rbx+1B8h], 0FFFFFFFFh                               ; +0x37, 0x100641297\nmov     r14, [rbx+1A8h]                                                ; +0x41, 0x1006412a1\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x48, 0x1006412a8\nlea     rsi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x4d, 0x1006412ad\nmov     rdi, rax                                                       ; +0x54, 0x1006412b4\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x57, 0x1006412b7\nmov     rcx, [r14]                                                     ; +0x5c, 0x1006412bc\nmov     rdi, r14                                                       ; +0x5f, 0x1006412bf\nmov     rsi, rax                                                       ; +0x62, 0x1006412c2\ncall    qword ptr [rcx+488h]                                           ; +0x65, 0x1006412c5\nmov     rdi, [rbx+200h]                                                ; +0x6b, 0x1006412cb\ntest    rdi, rdi                                                       ; +0x72, 0x1006412d2\njz      short loc_1006412E1                                            ; +0x75, 0x1006412d5\nmov     rax, [rdi]                                                     ; +0x77, 0x1006412d7\npop     rbx                                                            ; +0x7a, 0x1006412da\npop     r14                                                            ; +0x7b, 0x1006412db\npop     rbp                                                            ; +0x7d, 0x1006412dd\njmp     qword ptr [rax+10h]                                            ; +0x7e, 0x1006412de\npop     rbx                                                            ; +0x81, 0x1006412e1\npop     r14                                                            ; +0x82, 0x1006412e2\npop     rbp                                                            ; +0x84, 0x1006412e4\nretn                                                                   ; +0x85, 0x1006412e5", "xrefs": ["EditorUI::activateTransformControl @ 0x1006118d9", "EditorUI::deactivateRotationControl @ 0x100611be0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}