{"type": "func", "start": 5370423728, "end": 5370423891, "name": "GJRotationControl::finishTouch", "pseudocode": "// \n// GJRotationControl::finishTouch from 0x1401a29b0 to 0x1401a2a53 (163 bytes)\n// \n// 8 xrefs:\n// > GJRotationControl::ccTouchEnded @ 0x1401a2e11\n// > EditorUI::toggleSpecialEditButtons @ 0x1401bb38f\n// > EditorUI::selectAll @ 0x1401c7fb6\n// > EditorUI::selectAllWithDirection @ 0x1401c8186\n// > EditorUI::deactivateRotationControl @ 0x140202760\n// > <???> @ 0x1408a082c\n// > <???> @ 0x1408a083c\n// > <???> @ 0x140919934\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 11:27:48 +0000\n// \n\nvoid __fastcall GJRotationControl::finishTouch(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 *v3; // rdi\n  __int64 v4; // rbx\n  cocos2d::CCSpriteFrameCache *v5; // rax\n  struct cocos2d::CCSpriteFrame *v6; // rax\n  __int64 v7; // rcx\n\n  v2 = *(_QWORD *)(a1 + 504);\n  if ( v2 )\n    (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)(v2 + 320) + 32LL))(v2 + 320, 0, 0);\n  *(_QWORD *)(a1 + 504) = 0;\n  if ( *(_DWORD *)(a1 + 440) != -1 )\n  {\n    *(_DWORD *)(a1 + 440) = -1;\n    v3 = *(__int64 **)(a1 + 424);\n    v4 = *v3;\n    v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, \"GJ_rotationControlBtn01_001.png\");\n    (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v4 + 1008))(v3, v6);\n    v7 = *(_QWORD *)(a1 + 512);\n    if ( v7 )\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 16LL))(v7);\n  }\n}", "assembly": "; \n; GJRotationControl::finishTouch from 0x1401a29b0 to 0x1401a2a53 (163 bytes)\n; \n; 8 xrefs:\n; > GJRotationControl::ccTouchEnded @ 0x1401a2e11\n; > EditorUI::toggleSpecialEditButtons @ 0x1401bb38f\n; > EditorUI::selectAll @ 0x1401c7fb6\n; > EditorUI::selectAllWithDirection @ 0x1401c8186\n; > EditorUI::deactivateRotationControl @ 0x140202760\n; > <???> @ 0x1408a082c\n; > <???> @ 0x1408a083c\n; > <???> @ 0x140919934\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 11:27:48 +0000\n; \npush    rsi                                                            ; +0x0, 0x1401a29b0\nsub     rsp, 20h                                                       ; +0x2, 0x1401a29b2\nmov     rsi, rcx                                                       ; +0x6, 0x1401a29b6\nmov     rcx, [rcx+1F8h]                                                ; +0x9, 0x1401a29b9\ntest    rcx, rcx                                                       ; +0x10, 0x1401a29c0\njz      short loc_1401A29D7                                            ; +0x13, 0x1401a29c3\nadd     rcx, 140h                                                      ; +0x15, 0x1401a29c5\nxor     r8d, r8d                                                       ; +0x1c, 0x1401a29cc\nxor     edx, edx                                                       ; +0x1f, 0x1401a29cf\nmov     rax, [rcx]                                                     ; +0x21, 0x1401a29d1\ncall    qword ptr [rax+20h]                                            ; +0x24, 0x1401a29d4\nmov     qword ptr [rsi+1F8h], 0                                        ; +0x27, 0x1401a29d7\ncmp     dword ptr [rsi+1B8h], 0FFFFFFFFh                               ; +0x32, 0x1401a29e2\njz      short loc_1401A2A4D                                            ; +0x39, 0x1401a29e9\nmov     [rsp+28h+arg_0], rbx                                           ; +0x3b, 0x1401a29eb\nmov     dword ptr [rsi+1B8h], 0FFFFFFFFh                               ; +0x40, 0x1401a29f0\nmov     [rsp+28h+arg_8], rdi                                           ; +0x4a, 0x1401a29fa\nmov     rdi, [rsi+1A8h]                                                ; +0x4f, 0x1401a29ff\nmov     rbx, [rdi]                                                     ; +0x56, 0x1401a2a06\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x59, 0x1401a2a09\nmov     rcx, rax                                                       ; +0x5f, 0x1401a2a0f\nlea     rdx, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x62, 0x1401a2a12\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x69, 0x1401a2a19\nmov     rdx, rax                                                       ; +0x6f, 0x1401a2a1f\nmov     rcx, rdi                                                       ; +0x72, 0x1401a2a22\ncall    qword ptr [rbx+3F0h]                                           ; +0x75, 0x1401a2a25\nmov     rcx, [rsi+200h]                                                ; +0x7b, 0x1401a2a2b\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x82, 0x1401a2a32\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x87, 0x1401a2a37\ntest    rcx, rcx                                                       ; +0x8c, 0x1401a2a3c\njz      short loc_1401A2A4D                                            ; +0x8f, 0x1401a2a3f\nmov     rax, [rcx]                                                     ; +0x91, 0x1401a2a41\nadd     rsp, 20h                                                       ; +0x94, 0x1401a2a44\npop     rsi                                                            ; +0x98, 0x1401a2a48\njmp     qword ptr [rax+10h]                                            ; +0x99, 0x1401a2a49\nadd     rsp, 20h                                                       ; +0x9d, 0x1401a2a4d\npop     rsi                                                            ; +0xa1, 0x1401a2a51\nretn                                                                   ; +0xa2, 0x1401a2a52", "xrefs": ["GJRotationControl::ccTouchEnded @ 0x1401a2e11", "EditorUI::toggleSpecialEditButtons @ 0x1401bb38f", "EditorUI::selectAll @ 0x1401c7fb6", "EditorUI::selectAllWithDirection @ 0x1401c8186", "EditorUI::deactivateRotationControl @ 0x140202760", "<???> @ 0x1408a082c", "<???> @ 0x1408a083c", "<???> @ 0x140919934"], "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"}