{"type": "func", "start": 4356396, "end": 4356506, "name": "EndLevelLayer::goEdit", "pseudocode": "// \n// EndLevelLayer::goEdit from 0x42792c to 0x42799a (110 bytes)\n// \n// 0 xrefs:\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; // r0\n  cocos2d::CCTouchDispatcher *v3; // r0\n  PlayLayer *m_playLayer; // r5\n  GJGameLoadingLayer *v5; // r0\n  GJGameLoadingLayer *v6; // r7\n  cocos2d::CCObject *m_loadingLayer; // r0\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  if ( m_playLayer->m_loadingLayer != v5 )\n  {\n    if ( v5 )\n      cocos2d::CCObject::retain(v5);\n    m_loadingLayer = m_playLayer->m_loadingLayer;\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 0x42792c to 0x42799a (110 bytes)\n; \n; 0 xrefs:\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            {R3-R7,LR}                                             ; +0x0, 0x42792c\nMOVS            R1, #0                                                 ; +0x2, 0x42792e\nLDR             R3, [R0]                                               ; +0x4, 0x427930\nMOV             R4, R0                                                 ; +0x6, 0x427932\nLDR.W           R3, [R3,#0x28C]                                        ; +0x8, 0x427934\nBLX             R3                                                     ; +0xc, 0x427938\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0xe, 0x42793a\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x12, 0x42793e\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x16, 0x427942\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x1a, 0x427946\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x1e, 0x42794a\nBL              _ZN15GJBaseGameLayer10resetAudioEv; GJBaseGameLayer::resetAudio(void) ; +0x22, 0x42794e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x26, 0x427952\nLDR             R3, [R0]                                               ; +0x2a, 0x427956\nLDR             R3, [R3,#0x50]                                         ; +0x2c, 0x427958\nBLX             R3                                                     ; +0x2e, 0x42795a\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x30, 0x42795c\nBL              _ZN7cocos2d17CCTouchDispatcher19unregisterForcePrioEPNS_8CCObjectE; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x32, 0x42795e\nLDR.W           R5, [R4,#0x1E0]                                        ; +0x36, 0x427962\nMOVS            R1, #(dword_0+1); GJGameLevel *                        ; +0x3a, 0x427966\nLDR.W           R0, [R5,#0x608]; this                                  ; +0x3c, 0x427968\nBL              _ZN18GJGameLoadingLayer24transitionToLoadingLayerEP11GJGameLevelb; GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *,bool) ; +0x40, 0x42796c\nMOVW            R3, #0x2DCC                                            ; +0x44, 0x427970\nLDR             R2, [R5,R3]                                            ; +0x48, 0x427974\nMOV             R6, R3                                                 ; +0x4a, 0x427976\nCMP             R2, R0                                                 ; +0x4c, 0x427978\nMOV             R7, R0                                                 ; +0x4e, 0x42797a\nBEQ             loc_427992                                             ; +0x50, 0x42797c\nCBZ             R0, loc_427984                                         ; +0x52, 0x42797e\nBL              _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x54, 0x427980\nLDR             R0, [R5,R6]; this                                      ; +0x58, 0x427984\nCBZ             R0, loc_42798C                                         ; +0x5a, 0x427986\nBL              _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x5c, 0x427988\nMOVW            R3, #0x2DCC                                            ; +0x60, 0x42798c\nSTR             R7, [R5,R3]                                            ; +0x64, 0x427990\nMOVS            R3, #0                                                 ; +0x66, 0x427992\nSTR.W           R3, [R4,#0x1E0]                                        ; +0x68, 0x427994\nPOP             {R3-R7,PC}                                             ; +0x6c, 0x427998", "xrefs": [], "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"}