{"type": "func", "start": 5371367328, "end": 5371367486, "name": "GJPathPage::onBack", "pseudocode": "// \n// GJPathPage::onBack from 0x140288fa0 to 0x14028903e (158 bytes)\n// \n// 4 xrefs:\n// > GJPathPage::unlockAnimationFinished @ 0x140288edc\n// > GJPathPage::keyBackClicked @ 0x140289049\n// > GJPathPage::init @ 0x140285b7c\n// > <???> @ 0x1406d15ec\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 GJPathPage::onBack(GJPathPage *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  cocos2d::CCTouchDispatcher *v4; // rax\n  _BOOL8 v5; // rdx\n  GJPathsLayer *m_pathsLayer; // rcx\n  __int16 v7; // [rsp+30h] [rbp+8h] BYREF\n  char v8; // [rsp+32h] [rbp+Ah]\n\n  if ( !a1->m_animationPlaying )\n  {\n    v3 = cocos2d::CCDirector::sharedDirector(a1);\n    v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    cocos2d::CCNode::stopAllActions(a1);\n    cocos2d::CCNode::unscheduleAllSelectors(a1);\n    a1->setKeypadEnabled(a1, 0);\n    LOBYTE(v5) = 1;\n    a1->removeFromParentAndCleanup(a1, v5);\n    m_pathsLayer = a1->m_pathsLayer;\n    v7 = -1;\n    v8 = -1;\n    m_pathsLayer->m_closeSprite->setColor(\n      &m_pathsLayer->m_closeSprite->cocos2d::CCRGBAProtocol,\n      (const cocos2d::ccColor3B *)&v7);\n  }\n}", "assembly": "; \n; GJPathPage::onBack from 0x140288fa0 to 0x14028903e (158 bytes)\n; \n; 4 xrefs:\n; > GJPathPage::unlockAnimationFinished @ 0x140288edc\n; > GJPathPage::keyBackClicked @ 0x140289049\n; > GJPathPage::init @ 0x140285b7c\n; > <???> @ 0x1406d15ec\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    rbx                                                            ; +0x0, 0x140288fa0\nsub     rsp, 20h                                                       ; +0x2, 0x140288fa2\ncmp     byte ptr [rcx+294h], 0                                         ; +0x6, 0x140288fa6\nmov     rbx, rcx                                                       ; +0xd, 0x140288fad\njnz     loc_140289038                                                  ; +0x10, 0x140288fb0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x16, 0x140288fb6\nmov     rcx, rax                                                       ; +0x1c, 0x140288fbc\nmov     rdx, [rax]                                                     ; +0x1f, 0x140288fbf\ncall    qword ptr [rdx+90h]                                            ; +0x22, 0x140288fc2\nmov     rcx, rax                                                       ; +0x28, 0x140288fc8\nmov     rdx, rbx                                                       ; +0x2b, 0x140288fcb\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x2e, 0x140288fce\nmov     rcx, rbx                                                       ; +0x34, 0x140288fd4\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x37, 0x140288fd7\nmov     rcx, rbx                                                       ; +0x3d, 0x140288fdd\ncall    cs:?unscheduleAllSelectors@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x40, 0x140288fe0\nmov     rax, [rbx]                                                     ; +0x46, 0x140288fe6\nxor     edx, edx                                                       ; +0x49, 0x140288fe9\nmov     rcx, rbx                                                       ; +0x4b, 0x140288feb\ncall    qword ptr [rax+3D0h]                                           ; +0x4e, 0x140288fee\nmov     rax, [rbx]                                                     ; +0x54, 0x140288ff4\nmov     dl, 1                                                          ; +0x57, 0x140288ff7\nmov     rcx, rbx                                                       ; +0x59, 0x140288ff9\ncall    qword ptr [rax+1F8h]                                           ; +0x5c, 0x140288ffc\nmovzx   eax, cs:word_140529AD0                                         ; +0x62, 0x140289002\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x69, 0x140289009\nmov     rcx, [rbx+288h]                                                ; +0x6e, 0x14028900e\nmov     [rsp+28h+arg_0], ax                                            ; +0x75, 0x140289015\nmovzx   eax, cs:byte_140529AD2                                         ; +0x7a, 0x14028901a\nmov     [rsp+28h+arg_2], al                                            ; +0x81, 0x140289021\nmov     rcx, [rcx+280h]                                                ; +0x85, 0x140289025\nadd     rcx, 140h                                                      ; +0x8c, 0x14028902c\nmov     rax, [rcx]                                                     ; +0x93, 0x140289033\ncall    qword ptr [rax]                                                ; +0x96, 0x140289036\nadd     rsp, 20h                                                       ; +0x98, 0x140289038\npop     rbx                                                            ; +0x9c, 0x14028903c\nretn                                                                   ; +0x9d, 0x14028903d", "xrefs": ["GJPathPage::unlockAnimationFinished @ 0x140288edc", "GJPathPage::keyBackClicked @ 0x140289049", "GJPathPage::init @ 0x140285b7c", "<???> @ 0x1406d15ec"], "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"}