{"type": "func", "start": 4356208, "end": 4356316, "name": "EndLevelLayer::onEdit", "pseudocode": "// \n// EndLevelLayer::onEdit from 0x427870 to 0x4278dc (108 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::onEdit(EndLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  _BOOL4 m_exiting; // r5\n  FMODAudioEngine *v4; // r0\n  cocos2d::CCSequence *v5; // r6\n  cocos2d::CCFiniteTimeAction *v6; // r0\n  int v7; // r3\n  cocos2d::CCAction *v8; // r0\n\n  m_exiting = a1->m_exiting;\n  if ( !a1->m_exiting )\n  {\n    a1->m_exiting = 1;\n    cocos2d::CCNode::stopAllActions(a1->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, m_exiting);\n    v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v5, v6, m_exiting, v7, EndLevelLayer::goEdit, m_exiting);\n    cocos2d::CCNode::runAction(a1, v8);\n  }\n}", "assembly": "; \n; EndLevelLayer::onEdit from 0x427870 to 0x4278dc (108 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            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x427870\nMOV             R4, R0                                                 ; +0x2, 0x427872\nLDRB.W          R5, [R0,#0x1E7]                                        ; +0x4, 0x427874\nCBNZ            R5, loc_4278D8                                         ; +0x8, 0x427878\nMOVS            R6, #1                                                 ; +0xa, 0x42787a\nSTRB.W          R6, [R0,#0x1E7]                                        ; +0xc, 0x42787c\nLDR.W           R0, [R0,#0x1E0]; this                                  ; +0x10, 0x427880\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x14, 0x427884\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x18, 0x427888\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x1c, 0x42788c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x20, 0x427890\nMOV             R1, R6; p                                              ; +0x24, 0x427894\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x26, 0x427896\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x2a, 0x42789a\nBL              _ZN9PlayLayer16removeAllObjectsEv; PlayLayer::removeAllObjects(void) ; +0x2e, 0x42789e\nMOVS            R0, #0; this                                           ; +0x32, 0x4278a2\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x34, 0x4278a4\nLDR             R3, =(_ZN13EndLevelLayer6goEditEv_ptr - 0x4278AE)      ; +0x38, 0x4278a8\nADD             R3, PC; _ZN13EndLevelLayer6goEditEv_ptr                ; +0x3a, 0x4278aa\nLDR             R3, [R3]; EndLevelLayer::goEdit(void)                  ; +0x3c, 0x4278ac\nSTMEA.W         SP, {R3,R5}                                            ; +0x3e, 0x4278ae\nADD             R3, SP, #8+var_s0                                      ; +0x42, 0x4278b2\nLDMDB.W         R3, {R1,R2}                                            ; +0x44, 0x4278b4\nMOV             R6, R0                                                 ; +0x48, 0x4278b8\nMOV             R0, R4                                                 ; +0x4a, 0x4278ba\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x4c, 0x4278bc\nMOV             R2, R5                                                 ; +0x50, 0x4278c0\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x52, 0x4278c2\nMOV             R0, R6; this                                           ; +0x54, 0x4278c4\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x56, 0x4278c6\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x5a, 0x4278ca\nMOV             R0, R4; this                                           ; +0x5c, 0x4278cc\nADD             SP, SP, #8                                             ; +0x5e, 0x4278ce\nPOP.W           {R4-R6,LR}                                             ; +0x60, 0x4278d0\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x64, 0x4278d4\nADD             SP, SP, #8                                             ; +0x68, 0x4278d8\nPOP             {R4-R6,PC}                                             ; +0x6a, 0x4278da", "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"}