{"type": "func", "start": 4298875052, "end": 4298875212, "name": "GJPathPage::onBack", "pseudocode": "// \n// GJPathPage::onBack from 0x1003ba0ac to 0x1003ba14c (160 bytes)\n// \n// 4 xrefs:\n// > GJPathPage::unlockAnimationFinished @ 0x1003bae78\n// > GJPathPage::keyBackClicked @ 0x1003bb494\n// > sub_1003BB498 @ 0x1003bb49c\n// > GJPathPage::init @ 0x1003b8ef4\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  cocos2d::CCDirector *v3; // x0\n  cocos2d::CCTouchDispatcher *v4; // x0\n  GJPathsLayer *m_pathsLayer; // x8\n  __int16 v6; // [xsp+Ch] [xbp-14h] BYREF\n  char v7; // [xsp+Eh] [xbp-12h]\n\n  if ( !a1->m_animationPlaying )\n  {\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    v7 = -1;\n    v6 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_pathsLayer->m_closeSprite->setColor)(\n      m_pathsLayer->m_closeSprite,\n      &v6);\n  }\n}", "assembly": "; \n; GJPathPage::onBack from 0x1003ba0ac to 0x1003ba14c (160 bytes)\n; \n; 4 xrefs:\n; > GJPathPage::unlockAnimationFinished @ 0x1003bae78\n; > GJPathPage::keyBackClicked @ 0x1003bb494\n; > sub_1003BB498 @ 0x1003bb49c\n; > GJPathPage::init @ 0x1003b8ef4\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\nLDRB            W8, [X0,#0x294]                                        ; +0x0, 0x1003ba0ac\nTBNZ            W8, #0, locret_1003BA148                               ; +0x4, 0x1003ba0b0\nSUB             SP, SP, #0x30                                          ; +0x8, 0x1003ba0b4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x1003ba0b8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x1003ba0bc\nADD             X29, SP, #0x20                                         ; +0x14, 0x1003ba0c0\nMOV             X19, X0                                                ; +0x18, 0x1003ba0c4\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c, 0x1003ba0c8\nLDR             X8, [X0]                                               ; +0x20, 0x1003ba0cc\nLDR             X8, [X8,#0xA0]                                         ; +0x24, 0x1003ba0d0\nBLR             X8                                                     ; +0x28, 0x1003ba0d4\nMOV             X1, X19                                                ; +0x2c, 0x1003ba0d8\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x30, 0x1003ba0dc\nMOV             X0, X19                                                ; +0x34, 0x1003ba0e0\nBL              cocos2d__CCNode__stopAllActions                        ; +0x38, 0x1003ba0e4\nMOV             X0, X19                                                ; +0x3c, 0x1003ba0e8\nBL              cocos2d__CCNode__unscheduleAllSelectors                ; +0x40, 0x1003ba0ec\nLDR             X8, [X19]                                              ; +0x44, 0x1003ba0f0\nLDR             X8, [X8,#0x420]                                        ; +0x48, 0x1003ba0f4\nMOV             X0, X19                                                ; +0x4c, 0x1003ba0f8\nMOV             W1, #0                                                 ; +0x50, 0x1003ba0fc\nBLR             X8                                                     ; +0x54, 0x1003ba100\nLDR             X8, [X19]                                              ; +0x58, 0x1003ba104\nLDR             X8, [X8,#0x200]                                        ; +0x5c, 0x1003ba108\nMOV             X0, X19                                                ; +0x60, 0x1003ba10c\nMOV             W1, #1                                                 ; +0x64, 0x1003ba110\nBLR             X8                                                     ; +0x68, 0x1003ba114\nLDR             X8, [X19,#0x288]                                       ; +0x6c, 0x1003ba118\nMOV             W9, #0xFFFFFFFF                                        ; +0x70, 0x1003ba11c\nSTRB            W9, [SP,#0x20+var_12]                                  ; +0x74, 0x1003ba120\nSTRH            W9, [SP,#0x20+var_14]                                  ; +0x78, 0x1003ba124\nLDR             X0, [X8,#0x280]                                        ; +0x7c, 0x1003ba128\nLDR             X8, [X0]                                               ; +0x80, 0x1003ba12c\nLDR             X8, [X8,#0x3B0]                                        ; +0x84, 0x1003ba130\nADD             X1, SP, #0x20+var_14                                   ; +0x88, 0x1003ba134\nBLR             X8                                                     ; +0x8c, 0x1003ba138\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x90, 0x1003ba13c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x94, 0x1003ba140\nADD             SP, SP, #0x30 ; '0'                                    ; +0x98, 0x1003ba144\nRET                                                                    ; +0x9c, 0x1003ba148", "xrefs": ["GJPathPage::unlockAnimationFinished @ 0x1003bae78", "GJPathPage::keyBackClicked @ 0x1003bb494", "sub_1003BB498 @ 0x1003bb49c", "GJPathPage::init @ 0x1003b8ef4"], "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"}