{"type": "func", "start": 8204364, "end": 8204516, "name": "EndLevelLayer::onEdit", "pseudocode": "// \n// EndLevelLayer::onEdit from 0x7d304c to 0x7d30e4 (152 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x44028\n// > EndLevelLayer::customSetup @ 0x7d6f94\n// > <???> @ 0x122a2a8\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::onEdit(EndLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  PlayLayer *m_playLayer; // x0\n  FMODAudioEngine *v4; // x0\n  cocos2d::CCSequence *v5; // x20\n  cocos2d::CCFiniteTimeAction *v6; // x0\n  cocos2d::CCAction *v7; // x0\n\n  if ( !a1->m_exiting )\n  {\n    m_playLayer = a1->m_playLayer;\n    a1->m_exiting = 1;\n    cocos2d::CCNode::stopAllActions(m_playLayer);\n    cocos2d::CCNode::unscheduleAllSelectors(a1->m_playLayer);\n    v4 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllMusic(v4, 1);\n    PlayLayer::removeAllObjects(a1->m_playLayer);\n    v5 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.0);\n    v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EndLevelLayer::goEdit, 0);\n    v7 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, 0);\n    cocos2d::CCNode::runAction(a1, v7);\n  }\n}", "assembly": "; \n; EndLevelLayer::onEdit from 0x7d304c to 0x7d30e4 (152 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x44028\n; > EndLevelLayer::customSetup @ 0x7d6f94\n; > <???> @ 0x122a2a8\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, 0x7d304c\nMOV             X29, SP                                                ; +0x4, 0x7d3050\nLDRB            W1, [X0,#0x26B]                                        ; +0x8, 0x7d3054\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x7d3058\nCBZ             W1, loc_7D306C                                         ; +0x10, 0x7d305c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0x7d3060\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x18, 0x7d3064\nRET                                                                    ; +0x1c, 0x7d3068\nMOV             X19, X0                                                ; +0x20, 0x7d306c\nLDR             X0, [X0,#0x260]; this                                  ; +0x24, 0x7d3070\nMOV             W1, #1                                                 ; +0x28, 0x7d3074\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x2c, 0x7d3078\nSTRB            W1, [X19,#0x26B]                                       ; +0x30, 0x7d307c\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x34, 0x7d3080\nLDR             X0, [X19,#0x260]; this                                 ; +0x38, 0x7d3084\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x3c, 0x7d3088\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x40, 0x7d308c\nLDR             X1, [X29,#0x30+var_8]; bool                            ; +0x44, 0x7d3090\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x48, 0x7d3094\nLDR             X0, [X19,#0x260]; this                                 ; +0x4c, 0x7d3098\nBL              _ZN9PlayLayer16removeAllObjectsEv; PlayLayer::removeAllObjects(void) ; +0x50, 0x7d309c\nFMOV            S0, WZR; float                                         ; +0x54, 0x7d30a0\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x58, 0x7d30a4\nMOV             X20, X0                                                ; +0x5c, 0x7d30a8\nADRP            X1, #_ZN13EndLevelLayer6goEditEv_ptr@PAGE              ; +0x60, 0x7d30ac\nMOV             X2, #0                                                 ; +0x64, 0x7d30b0\nMOV             X0, X19                                                ; +0x68, 0x7d30b4\nLDR             X1, [X1,#_ZN13EndLevelLayer6goEditEv_ptr@PAGEOFF]; EndLevelLayer::goEdit(void) ... ; +0x6c, 0x7d30b8\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x70, 0x7d30bc\nMOV             X1, X0; cocos2d::CCFiniteTimeAction *                  ; +0x74, 0x7d30c0\nMOV             X2, #0                                                 ; +0x78, 0x7d30c4\nMOV             X0, X20; this                                          ; +0x7c, 0x7d30c8\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x80, 0x7d30cc\nMOV             X1, X0; cocos2d::CCAction *                            ; +0x84, 0x7d30d0\nMOV             X0, X19; this                                          ; +0x88, 0x7d30d4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x8c, 0x7d30d8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x90, 0x7d30dc\nB               _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x94, 0x7d30e0", "xrefs": ["<???> @ 0x44028", "EndLevelLayer::customSetup @ 0x7d6f94", "<???> @ 0x122a2a8"], "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"}