{"type": "func", "start": 4295287952, "end": 4295288050, "name": "GJRotationControl::finishTouch", "pseudocode": "// \n// GJRotationControl::finishTouch from 0x10004e490 to 0x10004e4f2 (98 bytes)\n// \n// 0 xrefs:\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::finishTouch(GJRotationControl *a1)\n{\n  cocos2d::CCSprite *m_controlSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v2; // rax\n  cocos2d::CCSpriteFrame *v3; // rax\n  GJRotationControlDelegate *m_delegate; // rdi\n\n  if ( a1->m_touchID != -1 )\n  {\n    a1->m_touchID = -1;\n    m_controlSprite = a1->m_controlSprite;\n    v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v3 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, \"GJ_rotationControlBtn01_001.png\");\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)(\n      m_controlSprite,\n      v3);\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(GJRotationControlDelegate *))m_delegate->angleChangeEnded)(m_delegate);\n  }\n}", "assembly": "; \n; GJRotationControl::finishTouch from 0x10004e490 to 0x10004e4f2 (98 bytes)\n; \n; 0 xrefs:\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, 0x10004e490\nmov     rbp, rsp                                                       ; +0x1, 0x10004e491\npush    r14                                                            ; +0x4, 0x10004e494\npush    rbx                                                            ; +0x6, 0x10004e496\ncmp     dword ptr [rdi+1B8h], 0FFFFFFFFh                               ; +0x7, 0x10004e497\njz      short loc_10004E4ED                                            ; +0xe, 0x10004e49e\nmov     dword ptr [rdi+1B8h], 0FFFFFFFFh                               ; +0x10, 0x10004e4a0\nmov     rbx, [rdi+1A8h]                                                ; +0x1a, 0x10004e4aa\nmov     r14, rdi                                                       ; +0x21, 0x10004e4b1\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x24, 0x10004e4b4\nlea     rsi, aGjRotationcont; \"GJ_rotationControlBtn01_001.png\"        ; +0x29, 0x10004e4b9\nmov     rdi, rax                                                       ; +0x30, 0x10004e4c0\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x33, 0x10004e4c3\nmov     rcx, [rbx]                                                     ; +0x38, 0x10004e4c8\nmov     rdi, rbx                                                       ; +0x3b, 0x10004e4cb\nmov     rsi, rax                                                       ; +0x3e, 0x10004e4ce\ncall    qword ptr [rcx+478h]                                           ; +0x41, 0x10004e4d1\nmov     rdi, [r14+1C0h]                                                ; +0x47, 0x10004e4d7\ntest    rdi, rdi                                                       ; +0x4e, 0x10004e4de\njz      short loc_10004E4ED                                            ; +0x51, 0x10004e4e1\nmov     rax, [rdi]                                                     ; +0x53, 0x10004e4e3\npop     rbx                                                            ; +0x56, 0x10004e4e6\npop     r14                                                            ; +0x57, 0x10004e4e7\npop     rbp                                                            ; +0x59, 0x10004e4e9\njmp     qword ptr [rax+10h]                                            ; +0x5a, 0x10004e4ea\npop     rbx                                                            ; +0x5d, 0x10004e4ed\npop     r14                                                            ; +0x5e, 0x10004e4ee\npop     rbp                                                            ; +0x60, 0x10004e4f0\nretn                                                                   ; +0x61, 0x10004e4f1", "xrefs": [], "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"}