{"type": "func", "start": 9410796, "end": 9410960, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x8f98ec to 0x8f9990 (164 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa2550\n// > EndLevelLayer::onEdit @ 0x8f9820\n// > <???> @ 0x1544860\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:57:02 +0000\n// \n\ncocos2d::CCObject *__fastcall EndLevelLayer::goEdit(cocos2d::CCNode **this)\n{\n  cocos2d::CCDirector *v2; // x0\n  __int64 v3; // x0\n  cocos2d::CCTouchDispatcher *v4; // x0\n  __int64 v5; // x20\n  bool v6; // w2\n  cocos2d::CCObject *result; // x0\n  cocos2d::CCObject *v8; // x21\n  cocos2d::CCObject *v9; // x1\n\n  (*((void (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 165))(this, 0);\n  cocos2d::CCNode::stopAllActions(*(this + 76));\n  cocos2d::CCNode::unscheduleAllSelectors(*(this + 76));\n  v2 = (cocos2d::CCDirector *)GJBaseGameLayer::resetAudio(*(this + 76));\n  v3 = cocos2d::CCDirector::sharedDirector(v2);\n  v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)this);\n  v5 = (__int64)*(this + 76);\n  result = (cocos2d::CCObject *)GJGameLoadingLayer::transitionToLoadingLayer(\n                                  *(GJGameLoadingLayer **)(v5 + 1936),\n                                  (GJGameLevel *)((char *)&dword_0 + 1),\n                                  v6);\n  v8 = result;\n  v9 = *(cocos2d::CCObject **)(v5 + 13808);\n  if ( result != v9 )\n  {\n    if ( result )\n    {\n      result = (cocos2d::CCObject *)cocos2d::CCObject::retain(result);\n      v9 = *(cocos2d::CCObject **)(v5 + 13808);\n    }\n    if ( v9 )\n      result = (cocos2d::CCObject *)cocos2d::CCObject::release(v9);\n    *(_QWORD *)(v5 + 13808) = v8;\n  }\n  *(this + 76) = nullptr;\n  return result;\n}", "assembly": "; \n; EndLevelLayer::goEdit from 0x8f98ec to 0x8f9990 (164 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa2550\n; > EndLevelLayer::onEdit @ 0x8f9820\n; > <???> @ 0x1544860\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:57:02 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8f98ec\nMOV             X1, #0                                                 ; +0x4, 0x8f98f0\nMOV             X29, SP                                                ; +0x8, 0x8f98f4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x8f98f8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x8f98fc\nMOV             X19, X0                                                ; +0x14, 0x8f9900\nLDR             X2, [X0]                                               ; +0x18, 0x8f9904\nLDR             X2, [X2,#0x528]                                        ; +0x1c, 0x8f9908\nBLR             X2                                                     ; +0x20, 0x8f990c\nLDR             X0, [X19,#0x260]; this                                 ; +0x24, 0x8f9910\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x28, 0x8f9914\nLDR             X0, [X19,#0x260]; this                                 ; +0x2c, 0x8f9918\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x30, 0x8f991c\nLDR             X0, [X19,#0x260]; this                                 ; +0x34, 0x8f9920\nBL              _ZN15GJBaseGameLayer10resetAudioEv; GJBaseGameLayer::resetAudio(void) ; +0x38, 0x8f9924\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x8f9928\nLDR             X1, [X0]                                               ; +0x40, 0x8f992c\nLDR             X1, [X1,#0xA0]                                         ; +0x44, 0x8f9930\nBLR             X1                                                     ; +0x48, 0x8f9934\nMOV             X1, X19; cocos2d::CCObject *                           ; +0x4c, 0x8f9938\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x50, 0x8f993c\nLDR             X20, [X19,#0x260]                                      ; +0x54, 0x8f9940\nMOV             W1, #(dword_0+1); GJGameLevel *                        ; +0x58, 0x8f9944\nLDR             X0, [X20,#0x790]; this                                 ; +0x5c, 0x8f9948\nBL              _ZN18GJGameLoadingLayer24transitionToLoadingLayerEP11GJGameLevelb; GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *,bool) ; +0x60, 0x8f994c\nMOV             X21, X0                                                ; +0x64, 0x8f9950\nLDR             X1, [X20,#0x35F0]                                      ; +0x68, 0x8f9954\nCMP             X0, X1                                                 ; +0x6c, 0x8f9958\nB.EQ            loc_8F997C                                             ; +0x70, 0x8f995c\nCBZ             X0, loc_8F996C                                         ; +0x74, 0x8f9960\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x78, 0x8f9964\nLDR             X1, [X20,#0x35F0]                                      ; +0x7c, 0x8f9968\nCBZ             X1, loc_8F9978                                         ; +0x80, 0x8f996c\nMOV             X0, X1; this                                           ; +0x84, 0x8f9970\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x88, 0x8f9974\nSTR             X21, [X20,#0x35F0]                                     ; +0x8c, 0x8f9978\nSTR             XZR, [X19,#0x260]                                      ; +0x90, 0x8f997c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x94, 0x8f9980\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x98, 0x8f9984\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0x8f9988\nRET                                                                    ; +0xa0, 0x8f998c", "xrefs": ["<???> @ 0xa2550", "EndLevelLayer::onEdit @ 0x8f9820", "<???> @ 0x1544860"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}