{"type": "func", "start": 4295302656, "end": 4295302761, "name": "GJRotationControl::ccTouchEnded", "pseudocode": "// \n// GJRotationControl::ccTouchEnded from 0x100051e00 to 0x100051e69 (105 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008b1310\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 GJRotationControl::ccTouchEnded(GJRotationControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  int m_touchID; // eax\n  cocos2d::CCSprite *m_controlSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v5; // rax\n  cocos2d::CCSpriteFrame *v6; // rax\n  GJRotationControlDelegate *m_delegate; // rdi\n\n  m_touchID = a1->m_touchID;\n  if ( m_touchID != -1 && m_touchID == a2->m_nId )\n  {\n    a1->m_touchID = -1;\n    m_controlSprite = a1->m_controlSprite;\n    v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, \"GJ_rotationControlBtn01_001.png\");\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(\n      m_controlSprite,\n      v6);\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);\n  }\n}", "assembly": "; \n; GJRotationControl::ccTouchEnded from 0x100051e00 to 0x100051e69 (105 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008b1310\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, 0x100051e00\nmov     rbp, rsp                                                       ; +0x1, 0x100051e01\npush    r14                                                            ; +0x4, 0x100051e04\npush    rbx                                                            ; +0x6, 0x100051e06\nmov     eax, [rdi+1B8h]                                                ; +0x7, 0x100051e07\ncmp     eax, 0FFFFFFFFh                                                ; +0xd, 0x100051e0d\njz      short loc_100051E64                                            ; +0x10, 0x100051e10\ncmp     eax, [rsi+38h]                                                 ; +0x12, 0x100051e12\njnz     short loc_100051E64                                            ; +0x15, 0x100051e15\nmov     dword ptr [rdi+1B8h], 0FFFFFFFFh                               ; +0x17, 0x100051e17\nmov     rbx, [rdi+1A8h]                                                ; +0x21, 0x100051e21\nmov     r14, rdi                                                       ; +0x28, 0x100051e28\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x2b, 0x100051e2b\nlea     rsi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x30, 0x100051e30\nmov     rdi, rax                                                       ; +0x37, 0x100051e37\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x3a, 0x100051e3a\nmov     rcx, [rbx]                                                     ; +0x3f, 0x100051e3f\nmov     rdi, rbx                                                       ; +0x42, 0x100051e42\nmov     rsi, rax                                                       ; +0x45, 0x100051e45\ncall    qword ptr [rcx+478h]                                           ; +0x48, 0x100051e48\nmov     rdi, [r14+1C0h]                                                ; +0x4e, 0x100051e4e\ntest    rdi, rdi                                                       ; +0x55, 0x100051e55\njz      short loc_100051E64                                            ; +0x58, 0x100051e58\nmov     rax, [rdi]                                                     ; +0x5a, 0x100051e5a\npop     rbx                                                            ; +0x5d, 0x100051e5d\npop     r14                                                            ; +0x5e, 0x100051e5e\npop     rbp                                                            ; +0x60, 0x100051e60\njmp     qword ptr [rax+10h]                                            ; +0x61, 0x100051e61\npop     rbx                                                            ; +0x64, 0x100051e64\npop     r14                                                            ; +0x65, 0x100051e65\npop     rbp                                                            ; +0x67, 0x100051e67\nretn                                                                   ; +0x68, 0x100051e68", "xrefs": ["<???> @ 0x1008b1310"], "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"}