{"type": "func", "start": 4296374304, "end": 4296374452, "name": "GJRotationControl::finishTouch", "pseudocode": "// \n// GJRotationControl::finishTouch from 0x100157820 to 0x1001578b4 (148 bytes)\n// \n// 2 xrefs:\n// > GJRotationControl::ccTouchEnded @ 0x100157af4\n// > EditorUI::deactivateRotationControl @ 0x10015fb94\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:42 +0000\n// \n\n__int64 __fastcall GJRotationControl::finishTouch(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x20\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  result = *(_QWORD *)(a1 + 504);\n  if ( result )\n    result = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)result + 920LL))(result, 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(result);\n    v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, \"GJ_rotationControlBtn01_001.png\");\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v5);\n    result = *(_QWORD *)(a1 + 512);\n    if ( result )\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);\n  }\n  return result;\n}", "assembly": "; \n; GJRotationControl::finishTouch from 0x100157820 to 0x1001578b4 (148 bytes)\n; \n; 2 xrefs:\n; > GJRotationControl::ccTouchEnded @ 0x100157af4\n; > EditorUI::deactivateRotationControl @ 0x10015fb94\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:42 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100157820\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100157824\nADD             X29, SP, #0x10                                         ; +0x8, 0x100157828\nMOV             X19, X0                                                ; +0xc, 0x10015782c\nLDR             X0, [X0,#0x1F8]                                        ; +0x10, 0x100157830\nCBZ             X0, loc_10015784C                                      ; +0x14, 0x100157834\nLDR             X8, [X0]                                               ; +0x18, 0x100157838\nLDR             X8, [X8,#0x398]                                        ; +0x1c, 0x10015783c\nMOV             X1, #0                                                 ; +0x20, 0x100157840\nMOV             X2, #0                                                 ; +0x24, 0x100157844\nBLR             X8                                                     ; +0x28, 0x100157848\nSTR             XZR, [X19,#0x1F8]                                      ; +0x2c, 0x10015784c\nLDR             W8, [X19,#0x1B8]                                       ; +0x30, 0x100157850\nCMN             W8, #1                                                 ; +0x34, 0x100157854\nB.EQ            loc_1001578A8                                          ; +0x38, 0x100157858\nMOV             W8, #0xFFFFFFFF                                        ; +0x3c, 0x10015785c\nSTR             W8, [X19,#0x1B8]                                       ; +0x40, 0x100157860\nLDR             X20, [X19,#0x1A8]                                      ; +0x44, 0x100157864\nBL              cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache    ; +0x48, 0x100157868\nADRL            X1, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\" ; +0x4c, 0x10015786c\nBL              cocos2d__CCSpriteFrameCache__spriteFrameByName         ; +0x54, 0x100157874\nMOV             X1, X0                                                 ; +0x58, 0x100157878\nLDR             X8, [X20]                                              ; +0x5c, 0x10015787c\nLDR             X8, [X8,#0x488]                                        ; +0x60, 0x100157880\nMOV             X0, X20                                                ; +0x64, 0x100157884\nBLR             X8                                                     ; +0x68, 0x100157888\nLDR             X0, [X19,#0x200]                                       ; +0x6c, 0x10015788c\nCBZ             X0, loc_1001578A8                                      ; +0x70, 0x100157890\nLDR             X8, [X0]                                               ; +0x74, 0x100157894\nLDR             X1, [X8,#0x10]                                         ; +0x78, 0x100157898\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x7c, 0x10015789c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x80, 0x1001578a0\nBR              X1                                                     ; +0x84, 0x1001578a4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x1001578a8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x1001578ac\nRET                                                                    ; +0x90, 0x1001578b0", "xrefs": ["GJRotationControl::ccTouchEnded @ 0x100157af4", "EditorUI::deactivateRotationControl @ 0x10015fb94"], "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"}