{"type": "func", "start": 4295926592, "end": 4295926828, "name": "EditLevelLayer::onPlay", "pseudocode": "// \n// EditLevelLayer::onPlay from 0x1000ea340 to 0x1000ea42c (236 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::keyDown @ 0x1000ec4a0\n// > EditLevelLayer::init @ 0x1000e97ac\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 EditLevelLayer::onPlay(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v3; // x0\n  FMODAudioEngine *v4; // x20\n  cocos2d::CCDelayTime *v5; // x20\n  cocos2d::CCAction *v6; // x0\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v8; // [xsp+2Fh] [xbp-11h]\n  cocos2d::SEL_CallFunc v9; // 0:x1.16\n\n  if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning && !a1->m_exiting )\n  {\n    EditLevelLayer::closeTextInputs(a1);\n    ((void (__fastcall *)(EditLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    a1->m_exiting = 1;\n    v3 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::stopAllMusic(v3, 1);\n    v4 = FMODAudioEngine::sharedEngine();\n    sub_100009900(__p, \"playSound_01.ogg\");\n    FMODAudioEngine::playEffect(v4, __p, 1.0, 0.0, 0.3);\n    if ( v8 < 0 )\n      operator delete(__p[0]);\n    EditLevelLayer::verifyLevelName(a1);\n    v5 = cocos2d::CCDelayTime::create(0.0);\n    v9.ptr = (void (*)(void))EditLevelLayer::playStep2;\n    v9.adj = 0;\n    cocos2d::CCCallFunc::create(a1, v9);\n    v6 = (cocos2d::CCAction *)sub_10018A494(v5);\n    cocos2d::CCNode::runAction(a1, v6);\n  }\n}", "assembly": "; \n; EditLevelLayer::onPlay from 0x1000ea340 to 0x1000ea42c (236 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::keyDown @ 0x1000ec4a0\n; > EditLevelLayer::init @ 0x1000e97ac\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1000ea340\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1000ea344\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1000ea348\nADD             X29, SP, #0x40                                         ; +0xc, 0x1000ea34c\nMOV             X19, X0                                                ; +0x10, 0x1000ea350\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x14, 0x1000ea354\nLDRB            W8, [X0,#0xA8]                                         ; +0x18, 0x1000ea358\nTBNZ            W8, #0, loc_1000EA41C                                  ; +0x1c, 0x1000ea35c\nLDRB            W8, [X19,#0x1E0]                                       ; +0x20, 0x1000ea360\nTBNZ            W8, #0, loc_1000EA41C                                  ; +0x24, 0x1000ea364\nMOV             X0, X19                                                ; +0x28, 0x1000ea368\nBL              EditLevelLayer__closeTextInputs                        ; +0x2c, 0x1000ea36c\nLDR             X8, [X19]                                              ; +0x30, 0x1000ea370\nLDR             X8, [X8,#0x420]                                        ; +0x34, 0x1000ea374\nMOV             X0, X19                                                ; +0x38, 0x1000ea378\nMOV             W1, #0                                                 ; +0x3c, 0x1000ea37c\nBLR             X8                                                     ; +0x40, 0x1000ea380\nMOV             W8, #1                                                 ; +0x44, 0x1000ea384\nSTRB            W8, [X19,#0x1E0]                                       ; +0x48, 0x1000ea388\nBL              FMODAudioEngine__sharedEngine                          ; +0x4c, 0x1000ea38c\nMOV             W1, #1                                                 ; +0x50, 0x1000ea390\nBL              FMODAudioEngine__stopAllMusic                          ; +0x54, 0x1000ea394\nBL              FMODAudioEngine__sharedEngine                          ; +0x58, 0x1000ea398\nMOV             X20, X0                                                ; +0x5c, 0x1000ea39c\nADRL            X1, aPlaysound01Ogg; \"playSound_01.ogg\"                ; +0x60, 0x1000ea3a0\nADD             X0, SP, #0x40+__p; int                                 ; +0x68, 0x1000ea3a8\nBL              sub_100009900                                          ; +0x6c, 0x1000ea3ac\nADRP            X8, #dword_100635360@PAGE                              ; +0x70, 0x1000ea3b0\nLDR             S2, [X8,#dword_100635360@PAGEOFF]                      ; +0x74, 0x1000ea3b4\nADD             X1, SP, #0x40+__p                                      ; +0x78, 0x1000ea3b8\nFMOV            S0, #1.0                                               ; +0x7c, 0x1000ea3bc\nFMOV            S1, WZR                                                ; +0x80, 0x1000ea3c0\nMOV             X0, X20                                                ; +0x84, 0x1000ea3c4\nBL              FMODAudioEngine__playEffect                            ; +0x88, 0x1000ea3c8\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x8c, 0x1000ea3cc\nTBZ             W8, #0x1F, loc_1000EA3DC                               ; +0x90, 0x1000ea3d0\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x94, 0x1000ea3d4\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1000ea3d8\nMOV             X0, X19                                                ; +0x9c, 0x1000ea3dc\nBL              EditLevelLayer__verifyLevelName                        ; +0xa0, 0x1000ea3e0\nFMOV            S0, WZR                                                ; +0xa4, 0x1000ea3e4\nBL              cocos2d__CCDelayTime__create                           ; +0xa8, 0x1000ea3e8\nMOV             X20, X0                                                ; +0xac, 0x1000ea3ec\nADRL            X1, EditLevelLayer__playStep2                          ; +0xb0, 0x1000ea3f0\nMOV             X0, X19                                                ; +0xb8, 0x1000ea3f8\nMOV             X2, #0                                                 ; +0xbc, 0x1000ea3fc\nBL              cocos2d__CCCallFunc__create                            ; +0xc0, 0x1000ea400\nSTP             X0, XZR, [SP,#0x40+var_40]                             ; +0xc4, 0x1000ea404\nMOV             X0, X20                                                ; +0xc8, 0x1000ea408\nBL              sub_10018A494                                          ; +0xcc, 0x1000ea40c\nMOV             X1, X0                                                 ; +0xd0, 0x1000ea410\nMOV             X0, X19                                                ; +0xd4, 0x1000ea414\nBL              cocos2d__CCNode__runAction                             ; +0xd8, 0x1000ea418\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xdc, 0x1000ea41c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xe0, 0x1000ea420\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xe4, 0x1000ea424\nRET                                                                    ; +0xe8, 0x1000ea428", "xrefs": ["EditLevelLayer::keyDown @ 0x1000ec4a0", "EditLevelLayer::init @ 0x1000e97ac"], "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"}