{"type": "func", "start": 4298115904, "end": 4298116041, "name": "GJPathPage::onBack", "pseudocode": "// \n// GJPathPage::onBack from 0x100300b40 to 0x100300bc9 (137 bytes)\n// \n// 1 xrefs:\n// > GJPathPage::init @ 0x1002ff589\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::onBack(GJPathPage *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rax\n  cocos2d::CCDirector *v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  GJPathsLayer *m_pathsLayer; // rax\n  int v7; // [rsp-14h] [rbp-14h] BYREF\n\n  if ( !a1->m_animationPlaying )\n  {\n    v7 = HIDWORD(v2);\n    v4 = cocos2d::CCDirector::sharedDirector();\n    v5 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *, cocos2d::CCObject *))v4->getTouchDispatcher)(\n                                         v4,\n                                         a2);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, 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(v7) = -1;\n    LOWORD(v7) = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *))m_pathsLayer->m_closeSprite->setColor)(\n      m_pathsLayer->m_closeSprite,\n      &v7);\n  }\n}", "assembly": "; \n; GJPathPage::onBack from 0x100300b40 to 0x100300bc9 (137 bytes)\n; \n; 1 xrefs:\n; > GJPathPage::init @ 0x1002ff589\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, 0x100300b40\njnz     short locret_100300BC8                                         ; +0x7, 0x100300b47\npush    rbp                                                            ; +0x9, 0x100300b49\nmov     rbp, rsp                                                       ; +0xa, 0x100300b4a\npush    rbx                                                            ; +0xd, 0x100300b4d\npush    rax                                                            ; +0xe, 0x100300b4e\nmov     rbx, rdi                                                       ; +0xf, 0x100300b4f\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x12, 0x100300b52\nmov     rcx, [rax]                                                     ; +0x17, 0x100300b57\nmov     rdi, rax                                                       ; +0x1a, 0x100300b5a\ncall    qword ptr [rcx+0A0h]                                           ; +0x1d, 0x100300b5d\nmov     rdi, rax                                                       ; +0x23, 0x100300b63\nmov     rsi, rbx                                                       ; +0x26, 0x100300b66\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x29, 0x100300b69\nmov     rdi, rbx                                                       ; +0x2e, 0x100300b6e\ncall    cocos2d__CCNode__stopAllActions                                ; +0x31, 0x100300b71\nmov     rdi, rbx                                                       ; +0x36, 0x100300b76\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0x39, 0x100300b79\nmov     rax, [rbx]                                                     ; +0x3e, 0x100300b7e\nmov     rdi, rbx                                                       ; +0x41, 0x100300b81\nxor     esi, esi                                                       ; +0x44, 0x100300b84\ncall    qword ptr [rax+420h]                                           ; +0x46, 0x100300b86\nmov     rax, [rbx]                                                     ; +0x4c, 0x100300b8c\nmov     rdi, rbx                                                       ; +0x4f, 0x100300b8f\nmov     esi, 1                                                         ; +0x52, 0x100300b92\ncall    qword ptr [rax+200h]                                           ; +0x57, 0x100300b97\nmov     rax, [rbx+288h]                                                ; +0x5d, 0x100300b9d\nmov     byte ptr [rbp-0Ah], 0FFh                                       ; +0x64, 0x100300ba4\nmov     word ptr [rbp-0Ch], 0FFFFh                                     ; +0x68, 0x100300ba8\nmov     rdi, [rax+280h]                                                ; +0x6e, 0x100300bae\nmov     rax, [rdi]                                                     ; +0x75, 0x100300bb5\nlea     rsi, [rbp-0Ch]                                                 ; +0x78, 0x100300bb8\ncall    qword ptr [rax+3B0h]                                           ; +0x7c, 0x100300bbc\nadd     rsp, 8                                                         ; +0x82, 0x100300bc2\npop     rbx                                                            ; +0x86, 0x100300bc6\npop     rbp                                                            ; +0x87, 0x100300bc7\nretn                                                                   ; +0x88, 0x100300bc8", "xrefs": ["GJPathPage::init @ 0x1002ff589"], "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"}