{"type": "func", "start": 4298758904, "end": 4298759036, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x10039daf8 to 0x10039db7c (132 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10039c23c\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 EditorPauseLayer::onSaveAndPlay(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDelayTime *v3; // x20\n  char v4; // w0\n  __int64 v5; // x1\n  __int64 v6; // x2\n  __int64 v7; // x3\n  __int64 v8; // x4\n  __int64 v9; // x5\n  __int64 v10; // x6\n  __int64 v11; // x7\n  cocos2d::CCSequence *v12; // x1\n  cocos2d::SEL_CallFunc v13; // 0:x1.16\n\n  if ( !a1->m_saved )\n  {\n    ((void (__fastcall *)(EditorPauseLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n    a1->m_saved = 1;\n    EditorPauseLayer::saveLevel(a1);\n    v3 = cocos2d::CCDelayTime::create(0.0);\n    v13.ptr = (void (*)(void))EditorPauseLayer::playStep2;\n    v13.adj = 0;\n    v4 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v13);\n    v12 = sub_10018A494(v3, v5, v6, v7, v8, v9, v10, v11, v4);\n    cocos2d::CCNode::runAction(a1, v12);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x10039daf8 to 0x10039db7c (132 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10039c23c\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,#0x230]                                        ; +0x0, 0x10039daf8\nTBZ             W8, #0, loc_10039DB04                                  ; +0x4, 0x10039dafc\nRET                                                                    ; +0x8, 0x10039db00\nSUB             SP, SP, #0x30 ; '0'                                    ; +0xc, 0x10039db04\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x10039db08\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x10039db0c\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x10039db10\nMOV             X19, X0                                                ; +0x1c, 0x10039db14\nLDR             X8, [X0]                                               ; +0x20, 0x10039db18\nLDR             X8, [X8,#0x420]                                        ; +0x24, 0x10039db1c\nMOV             W1, #0                                                 ; +0x28, 0x10039db20\nBLR             X8                                                     ; +0x2c, 0x10039db24\nMOV             W8, #1                                                 ; +0x30, 0x10039db28\nSTRB            W8, [X19,#0x230]                                       ; +0x34, 0x10039db2c\nMOV             X0, X19                                                ; +0x38, 0x10039db30\nBL              EditorPauseLayer__saveLevel                            ; +0x3c, 0x10039db34\nFMOV            S0, WZR                                                ; +0x40, 0x10039db38\nBL              cocos2d__CCDelayTime__create                           ; +0x44, 0x10039db3c\nMOV             X20, X0                                                ; +0x48, 0x10039db40\nADRL            X1, EditorPauseLayer__playStep2                        ; +0x4c, 0x10039db44\nMOV             X0, X19                                                ; +0x54, 0x10039db4c\nMOV             X2, #0                                                 ; +0x58, 0x10039db50\nBL              cocos2d__CCCallFunc__create                            ; +0x5c, 0x10039db54\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0x60, 0x10039db58\nMOV             X0, X20                                                ; +0x64, 0x10039db5c\nBL              sub_10018A494                                          ; +0x68, 0x10039db60\nMOV             X1, X0                                                 ; +0x6c, 0x10039db64\nMOV             X0, X19                                                ; +0x70, 0x10039db68\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x74, 0x10039db6c\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x78, 0x10039db70\nADD             SP, SP, #0x30 ; '0'                                    ; +0x7c, 0x10039db74\nB               cocos2d__CCNode__runAction                             ; +0x80, 0x10039db78", "xrefs": ["EditorPauseLayer::customSetup @ 0x10039c23c"], "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"}