{"type": "func", "start": 8204624, "end": 8204788, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x7d3150 to 0x7d31f4 (164 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x79680\n// > EndLevelLayer::onEdit @ 0x7d30b8\n// > <???> @ 0x122c110\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 EndLevelLayer::goEdit(EndLevelLayer *a1)\n{\n  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCTouchDispatcher *v3; // x0\n  PlayLayer *m_playLayer; // x20\n  GJGameLoadingLayer *v5; // x0\n  GJGameLoadingLayer *v6; // x21\n  cocos2d::CCObject *m_loadingLayer; // x1\n\n  a1->exitLayer(a1, nullptr);\n  cocos2d::CCNode::stopAllActions(a1->m_playLayer);\n  cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);\n  GJBaseGameLayer::resetAudio(a1->m_playLayer);\n  v2 = cocos2d::CCDirector::sharedDirector();\n  v3 = v2->getTouchDispatcher(v2);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1);\n  m_playLayer = a1->m_playLayer;\n  v5 = GJGameLoadingLayer::transitionToLoadingLayer(m_playLayer->m_level, (bool)&dword_0 + 1);\n  v6 = v5;\n  m_loadingLayer = m_playLayer->m_loadingLayer;\n  if ( v5 != m_loadingLayer )\n  {\n    if ( v5 )\n    {\n      cocos2d::CCObject::retain(v5);\n      m_loadingLayer = m_playLayer->m_loadingLayer;\n    }\n    if ( m_loadingLayer )\n      cocos2d::CCObject::release(m_loadingLayer);\n    m_playLayer->m_loadingLayer = v6;\n  }\n  a1->m_playLayer = nullptr;\n}", "assembly": "; \n; EndLevelLayer::goEdit from 0x7d3150 to 0x7d31f4 (164 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x79680\n; > EndLevelLayer::onEdit @ 0x7d30b8\n; > <???> @ 0x122c110\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7d3150\nMOV             X1, #0                                                 ; +0x4, 0x7d3154\nMOV             X29, SP                                                ; +0x8, 0x7d3158\nLDR             X2, [X0]                                               ; +0xc, 0x7d315c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x7d3160\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x7d3164\nMOV             X19, X0                                                ; +0x18, 0x7d3168\nLDR             X2, [X2,#0x518]                                        ; +0x1c, 0x7d316c\nBLR             X2                                                     ; +0x20, 0x7d3170\nLDR             X0, [X19,#0x260]; this                                 ; +0x24, 0x7d3174\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x28, 0x7d3178\nLDR             X0, [X19,#0x260]; this                                 ; +0x2c, 0x7d317c\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x30, 0x7d3180\nLDR             X0, [X19,#0x260]; this                                 ; +0x34, 0x7d3184\nBL              _ZN15GJBaseGameLayer10resetAudioEv; GJBaseGameLayer::resetAudio(void) ; +0x38, 0x7d3188\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x7d318c\nLDR             X1, [X0]                                               ; +0x40, 0x7d3190\nLDR             X1, [X1,#0xA0]                                         ; +0x44, 0x7d3194\nBLR             X1                                                     ; +0x48, 0x7d3198\nMOV             X1, X19; cocos2d::CCObject *                           ; +0x4c, 0x7d319c\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x50, 0x7d31a0\nLDR             X20, [X19,#0x260]                                      ; +0x54, 0x7d31a4\nMOV             W1, #(dword_0+1); GJGameLevel *                        ; +0x58, 0x7d31a8\nLDR             X0, [X20,#0x8A0]; this                                 ; +0x5c, 0x7d31ac\nBL              _ZN18GJGameLoadingLayer24transitionToLoadingLayerEP11GJGameLevelb; GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *,bool) ; +0x60, 0x7d31b0\nMOV             X21, X0                                                ; +0x64, 0x7d31b4\nLDR             X1, [X20,#0x3748]                                      ; +0x68, 0x7d31b8\nCMP             X0, X1                                                 ; +0x6c, 0x7d31bc\nB.EQ            loc_7D31E0                                             ; +0x70, 0x7d31c0\nCBZ             X0, loc_7D31D0                                         ; +0x74, 0x7d31c4\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x78, 0x7d31c8\nLDR             X1, [X20,#0x3748]                                      ; +0x7c, 0x7d31cc\nCBZ             X1, loc_7D31DC                                         ; +0x80, 0x7d31d0\nMOV             X0, X1; this                                           ; +0x84, 0x7d31d4\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x88, 0x7d31d8\nSTR             X21, [X20,#0x3748]                                     ; +0x8c, 0x7d31dc\nSTR             XZR, [X19,#0x260]                                      ; +0x90, 0x7d31e0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x94, 0x7d31e4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0x7d31e8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0x7d31ec\nRET                                                                    ; +0xa0, 0x7d31f0", "xrefs": ["<???> @ 0x79680", "EndLevelLayer::onEdit @ 0x7d30b8", "<???> @ 0x122c110"], "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"}