{"type": "func", "start": 5455812, "end": 5455920, "name": "EndLevelLayer::onEdit", "pseudocode": "// \n// EndLevelLayer::onEdit from 0x533fc4 to 0x534030 (108 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:06 +0000\n// \n\nint __fastcall EndLevelLayer::onEdit(int this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCNode **v2; // r4\n  int v3; // r5\n  FMODAudioEngine *v4; // r0\n  FMODAudioEngine *v5; // r0\n  float v6; // r1\n  cocos2d::CCSequence *v7; // r6\n  cocos2d::CCFiniteTimeAction *v8; // r0\n  int v9; // r3\n  cocos2d::CCAction *v10; // r0\n\n  v2 = (cocos2d::CCNode **)this;\n  v3 = *(unsigned __int8 *)(this + 487);\n  if ( !*(_BYTE *)(this + 487) )\n  {\n    *(_BYTE *)(this + 487) = 1;\n    cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(this + 480));\n    v4 = (FMODAudioEngine *)cocos2d::CCNode::unscheduleAllSelectors(v2[120]);\n    v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);\n    FMODAudioEngine::stopAllMusic(v5, 1);\n    PlayLayer::removeAllObjects(v2[120]);\n    v7 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(nullptr, v6);\n    v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, EndLevelLayer::goEdit, v3);\n    v10 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v7, v8, v3, v9, EndLevelLayer::goEdit, v3);\n    return cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v10);\n  }\n  return this;\n}", "assembly": "; \n; EndLevelLayer::onEdit from 0x533fc4 to 0x534030 (108 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:06 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x533fc4\nMOV             R4, R0                                                 ; +0x2, 0x533fc6\nLDRB.W          R5, [R0,#0x1E7]                                        ; +0x4, 0x533fc8\nCBNZ            R5, loc_53402C                                         ; +0x8, 0x533fcc\nMOVS            R6, #1                                                 ; +0xa, 0x533fce\nSTRB.W          R6, [R0,#0x1E7]                                        ; +0xc, 0x533fd0\nLDR.W           R0, [R0,#0x1E0]; this                                  ; +0x10, 0x533fd4\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x14, 0x533fd8\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x18, 0x533fdc\nBL              _ZN7cocos2d6CCNode22unscheduleAllSelectorsEv; cocos2d::CCNode::unscheduleAllSelectors(void) ; +0x1c, 0x533fe0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x20, 0x533fe4\nMOV             R1, R6; bool                                           ; +0x24, 0x533fe8\nBL              _ZN15FMODAudioEngine12stopAllMusicEb; FMODAudioEngine::stopAllMusic(bool) ; +0x26, 0x533fea\nLDR.W           R0, [R4,#0x1E0]; this                                  ; +0x2a, 0x533fee\nBL              _ZN9PlayLayer16removeAllObjectsEv; PlayLayer::removeAllObjects(void) ; +0x2e, 0x533ff2\nMOVS            R0, #0; this                                           ; +0x32, 0x533ff6\nBL              _ZN7cocos2d11CCDelayTime6createEf; cocos2d::CCDelayTime::create(float) ; +0x34, 0x533ff8\nLDR             R3, =(_ZN13EndLevelLayer6goEditEv_ptr - 0x534002)      ; +0x38, 0x533ffc\nADD             R3, PC; _ZN13EndLevelLayer6goEditEv_ptr                ; +0x3a, 0x533ffe\nLDR             R3, [R3]; EndLevelLayer::goEdit(void)                  ; +0x3c, 0x534000\nSTMEA.W         SP, {R3,R5}                                            ; +0x3e, 0x534002\nADD             R3, SP, #8+var_s0                                      ; +0x42, 0x534006\nLDMDB.W         R3, {R1,R2}                                            ; +0x44, 0x534008\nMOV             R6, R0                                                 ; +0x48, 0x53400c\nMOV             R0, R4                                                 ; +0x4a, 0x53400e\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x4c, 0x534010\nMOV             R2, R5                                                 ; +0x50, 0x534014\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x52, 0x534016\nMOV             R0, R6; this                                           ; +0x54, 0x534018\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x56, 0x53401a\nMOV             R1, R0; cocos2d::CCAction *                            ; +0x5a, 0x53401e\nMOV             R0, R4; this                                           ; +0x5c, 0x534020\nADD             SP, SP, #8                                             ; +0x5e, 0x534022\nPOP.W           {R4-R6,LR}                                             ; +0x60, 0x534024\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x64, 0x534028\nADD             SP, SP, #8                                             ; +0x68, 0x53402c\nPOP             {R4-R6,PC}                                             ; +0x6a, 0x53402e", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}