{"type": "func", "start": 4298123888, "end": 4298124025, "name": "GJPathPage::keyBackClicked", "pseudocode": "// \n// GJPathPage::keyBackClicked from 0x100302a70 to 0x100302af9 (137 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10090acf0\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 GJPathPage::keyBackClicked(GJPathPage *a1)\n{\n  __int64 v1; // rax\n  cocos2d::CCDirector *v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  GJPathsLayer *m_pathsLayer; // rax\n  int v6; // [rsp-14h] [rbp-14h] BYREF\n\n  if ( !a1->m_animationPlaying )\n  {\n    v6 = HIDWORD(v1);\n    v3 = cocos2d::CCDirector::sharedDirector();\n    v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    cocos2d::CCNode::stopAllActions(a1);\n    cocos2d::CCNode::unscheduleAllSelectors(a1);\n    ((void (__fastcall *)(GJPathPage *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    ((void (__fastcall *)(GJPathPage *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n    m_pathsLayer = a1->m_pathsLayer;\n    BYTE2(v6) = -1;\n    LOWORD(v6) = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *))m_pathsLayer->m_closeSprite->setColor)(\n      m_pathsLayer->m_closeSprite,\n      &v6);\n  }\n}", "assembly": "; \n; GJPathPage::keyBackClicked from 0x100302a70 to 0x100302af9 (137 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10090acf0\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\ncmp     byte ptr [rdi+294h], 0                                         ; +0x0, 0x100302a70\njnz     short locret_100302AF8                                         ; +0x7, 0x100302a77\npush    rbp                                                            ; +0x9, 0x100302a79\nmov     rbp, rsp                                                       ; +0xa, 0x100302a7a\npush    rbx                                                            ; +0xd, 0x100302a7d\npush    rax                                                            ; +0xe, 0x100302a7e\nmov     rbx, rdi                                                       ; +0xf, 0x100302a7f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x12, 0x100302a82\nmov     rcx, [rax]                                                     ; +0x17, 0x100302a87\nmov     rdi, rax                                                       ; +0x1a, 0x100302a8a\ncall    qword ptr [rcx+0A0h]                                           ; +0x1d, 0x100302a8d\nmov     rdi, rax                                                       ; +0x23, 0x100302a93\nmov     rsi, rbx                                                       ; +0x26, 0x100302a96\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x29, 0x100302a99\nmov     rdi, rbx                                                       ; +0x2e, 0x100302a9e\ncall    cocos2d__CCNode__stopAllActions                                ; +0x31, 0x100302aa1\nmov     rdi, rbx                                                       ; +0x36, 0x100302aa6\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0x39, 0x100302aa9\nmov     rax, [rbx]                                                     ; +0x3e, 0x100302aae\nmov     rdi, rbx                                                       ; +0x41, 0x100302ab1\nxor     esi, esi                                                       ; +0x44, 0x100302ab4\ncall    qword ptr [rax+420h]                                           ; +0x46, 0x100302ab6\nmov     rax, [rbx]                                                     ; +0x4c, 0x100302abc\nmov     rdi, rbx                                                       ; +0x4f, 0x100302abf\nmov     esi, 1                                                         ; +0x52, 0x100302ac2\ncall    qword ptr [rax+200h]                                           ; +0x57, 0x100302ac7\nmov     rax, [rbx+288h]                                                ; +0x5d, 0x100302acd\nmov     byte ptr [rbp-0Ah], 0FFh                                       ; +0x64, 0x100302ad4\nmov     word ptr [rbp-0Ch], 0FFFFh                                     ; +0x68, 0x100302ad8\nmov     rdi, [rax+280h]                                                ; +0x6e, 0x100302ade\nmov     rax, [rdi]                                                     ; +0x75, 0x100302ae5\nlea     rsi, [rbp-0Ch]                                                 ; +0x78, 0x100302ae8\ncall    qword ptr [rax+3B0h]                                           ; +0x7c, 0x100302aec\nadd     rsp, 8                                                         ; +0x82, 0x100302af2\npop     rbx                                                            ; +0x86, 0x100302af6\npop     rbp                                                            ; +0x87, 0x100302af7\nretn                                                                   ; +0x88, 0x100302af8", "xrefs": ["<???> @ 0x10090acf0"], "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"}