{"type": "func", "start": 4301526528, "end": 4301526678, "name": "GJRotationControl::ccTouchEnded", "pseudocode": "// \n// GJRotationControl::ccTouchEnded from 0x100641600 to 0x100641696 (150 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b81678\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\n__int64 __fastcall GJRotationControl::ccTouchEnded(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n  __int64 result; // rax\n  __int64 v5; // r14\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rdi\n\n  v3 = *(_QWORD *)(a1 + 504);\n  if ( v3 )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 912LL))(v3);\n    *(_QWORD *)(a1 + 504) = 0;\n  }\n  else\n  {\n    result = *(unsigned int *)(a1 + 440);\n    if ( (_DWORD)result == *(_DWORD *)(a2 + 56) )\n    {\n      *(_QWORD *)(a1 + 504) = 0;\n      if ( (_DWORD)result != -1 )\n      {\n        *(_DWORD *)(a1 + 440) = -1;\n        v5 = *(_QWORD *)(a1 + 424);\n        v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n        v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, \"GJ_rotationControlBtn01_001.png\");\n        result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1160LL))(v5, v7);\n        v8 = *(_QWORD *)(a1 + 512);\n        if ( v8 )\n          return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 16LL))(v8);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRotationControl::ccTouchEnded from 0x100641600 to 0x100641696 (150 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b81678\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, 0x100641600\nmov     rbp, rsp                                                       ; +0x1, 0x100641601\npush    r14                                                            ; +0x4, 0x100641604\npush    rbx                                                            ; +0x6, 0x100641606\nmov     rbx, rdi                                                       ; +0x7, 0x100641607\nmov     rdi, [rdi+1F8h]                                                ; +0xa, 0x10064160a\ntest    rdi, rdi                                                       ; +0x11, 0x100641611\njz      short loc_10064162C                                            ; +0x14, 0x100641614\nmov     rax, [rdi]                                                     ; +0x16, 0x100641616\ncall    qword ptr [rax+390h]                                           ; +0x19, 0x100641619\nmov     qword ptr [rbx+1F8h], 0                                        ; +0x1f, 0x10064161f\njmp     short loc_100641691                                            ; +0x2a, 0x10064162a\nmov     eax, [rbx+1B8h]                                                ; +0x2c, 0x10064162c\ncmp     eax, [rsi+38h]                                                 ; +0x32, 0x100641632\njnz     short loc_100641691                                            ; +0x35, 0x100641635\nmov     qword ptr [rbx+1F8h], 0                                        ; +0x37, 0x100641637\ncmp     eax, 0FFFFFFFFh                                                ; +0x42, 0x100641642\njz      short loc_100641691                                            ; +0x45, 0x100641645\nmov     dword ptr [rbx+1B8h], 0FFFFFFFFh                               ; +0x47, 0x100641647\nmov     r14, [rbx+1A8h]                                                ; +0x51, 0x100641651\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x58, 0x100641658\nlea     rsi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x5d, 0x10064165d\nmov     rdi, rax                                                       ; +0x64, 0x100641664\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x67, 0x100641667\nmov     rcx, [r14]                                                     ; +0x6c, 0x10064166c\nmov     rdi, r14                                                       ; +0x6f, 0x10064166f\nmov     rsi, rax                                                       ; +0x72, 0x100641672\ncall    qword ptr [rcx+488h]                                           ; +0x75, 0x100641675\nmov     rdi, [rbx+200h]                                                ; +0x7b, 0x10064167b\ntest    rdi, rdi                                                       ; +0x82, 0x100641682\njz      short loc_100641691                                            ; +0x85, 0x100641685\nmov     rax, [rdi]                                                     ; +0x87, 0x100641687\npop     rbx                                                            ; +0x8a, 0x10064168a\npop     r14                                                            ; +0x8b, 0x10064168b\npop     rbp                                                            ; +0x8d, 0x10064168d\njmp     qword ptr [rax+10h]                                            ; +0x8e, 0x10064168e\npop     rbx                                                            ; +0x91, 0x100641691\npop     r14                                                            ; +0x92, 0x100641692\npop     rbp                                                            ; +0x94, 0x100641694\nretn                                                                   ; +0x95, 0x100641695", "xrefs": ["<???> @ 0x100b81678"], "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"}