{"type": "func", "start": 4298077200, "end": 4298077344, "name": "EndLevelLayer::onEdit", "pseudocode": "// \n// EndLevelLayer::onEdit from 0x1002f7410 to 0x1002f74a0 (144 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1002f65a0\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 __fastcall EndLevelLayer::onEdit(EndLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // x0\n  cocos2d::CCDelayTime *v4; // x20\n  char v5; // w0\n  __int64 v6; // x1\n  __int64 v7; // x2\n  __int64 v8; // x3\n  __int64 v9; // x4\n  __int64 v10; // x5\n  __int64 v11; // x6\n  __int64 v12; // x7\n  cocos2d::CCSequence *v13; // x1\n  cocos2d::SEL_CallFunc v14; // 0:x1.16\n\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    v3 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllMusic(v3, 1);\n    PlayLayer::removeAllObjects(a1->m_playLayer);\n    v4 = cocos2d::CCDelayTime::create(0.0);\n    v14.ptr = (void (*)(void))EndLevelLayer::goEdit;\n    v14.adj = 0;\n    v5 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v14);\n    v13 = sub_10018A494(v4, v6, v7, v8, v9, v10, v11, v12, v5);\n    cocos2d::CCNode::runAction(a1, v13);\n  }\n}", "assembly": "; \n; EndLevelLayer::onEdit from 0x1002f7410 to 0x1002f74a0 (144 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1002f65a0\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\nLDRB            W8, [X0,#0x26B]                                        ; +0x0, 0x1002f7410\nTBZ             W8, #0, loc_1002F741C                                  ; +0x4, 0x1002f7414\nRET                                                                    ; +0x8, 0x1002f7418\nSUB             SP, SP, #0x30 ; '0'                                    ; +0xc, 0x1002f741c\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x1002f7420\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x1002f7424\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x1002f7428\nMOV             X19, X0                                                ; +0x1c, 0x1002f742c\nMOV             W8, #1                                                 ; +0x20, 0x1002f7430\nSTRB            W8, [X0,#0x26B]                                        ; +0x24, 0x1002f7434\nLDR             X0, [X0,#0x260]                                        ; +0x28, 0x1002f7438\nBL              cocos2d__CCNode__stopAllActions                        ; +0x2c, 0x1002f743c\nLDR             X0, [X19,#0x260]                                       ; +0x30, 0x1002f7440\nBL              cocos2d__CCNode__unscheduleAllSelectors                ; +0x34, 0x1002f7444\nBL              FMODAudioEngine__sharedEngine                          ; +0x38, 0x1002f7448\nMOV             W1, #1                                                 ; +0x3c, 0x1002f744c\nBL              FMODAudioEngine__stopAllMusic                          ; +0x40, 0x1002f7450\nLDR             X0, [X19,#0x260]                                       ; +0x44, 0x1002f7454\nBL              PlayLayer__removeAllObjects                            ; +0x48, 0x1002f7458\nFMOV            S0, WZR                                                ; +0x4c, 0x1002f745c\nBL              cocos2d__CCDelayTime__create                           ; +0x50, 0x1002f7460\nMOV             X20, X0                                                ; +0x54, 0x1002f7464\nADRL            X1, EndLevelLayer__goEdit                              ; +0x58, 0x1002f7468\nMOV             X0, X19                                                ; +0x60, 0x1002f7470\nMOV             X2, #0                                                 ; +0x64, 0x1002f7474\nBL              cocos2d__CCCallFunc__create                            ; +0x68, 0x1002f7478\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0x6c, 0x1002f747c\nMOV             X0, X20                                                ; +0x70, 0x1002f7480\nBL              sub_10018A494                                          ; +0x74, 0x1002f7484\nMOV             X1, X0                                                 ; +0x78, 0x1002f7488\nMOV             X0, X19                                                ; +0x7c, 0x1002f748c\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x80, 0x1002f7490\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x84, 0x1002f7494\nADD             SP, SP, #0x30 ; '0'                                    ; +0x88, 0x1002f7498\nB               cocos2d__CCNode__runAction                             ; +0x8c, 0x1002f749c", "xrefs": ["EndLevelLayer::customSetup @ 0x1002f65a0"], "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"}