{"type": "func", "start": 4299441076, "end": 4299441208, "name": "EditorPauseLayer::onSaveAndPlay", "pseudocode": "// \n// EditorPauseLayer::onSaveAndPlay from 0x1004443b4 to 0x100444438 (132 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1004438b4\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:05:13 +0000\n// \n\n_BYTE *__fastcall EditorPauseLayer::onSaveAndPlay(_BYTE *result)\n{\n  __int64 v1; // x19\n  float *v2; // x20\n  char v3; // w0\n  __int64 v4; // x1\n  __int64 v5; // x2\n  __int64 v6; // x3\n  __int64 v7; // x4\n  __int64 v8; // x5\n  __int64 v9; // x6\n  __int64 v10; // x7\n  __int64 v11; // x0\n\n  if ( (result[568] & 1) == 0 )\n  {\n    v1 = (__int64)result;\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);\n    *(_BYTE *)(v1 + 568) = 1;\n    EditorPauseLayer::saveLevel(v1);\n    v2 = cocos2d::CCDelayTime::create(0.0);\n    v3 = (unsigned __int8)cocos2d::CCCallFunc::create(v1, (__int64)EditorPauseLayer::playStep2, 0);\n    v11 = sub_10021D420((__int64)v2, v4, v5, v6, v7, v8, v9, v10, v3);\n    return (_BYTE *)cocos2d::CCNode::runAction(v1, v11);\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndPlay from 0x1004443b4 to 0x100444438 (132 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1004438b4\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:05:13 +0000\n; \nLDRB            W8, [X0,#0x238]                                        ; +0x0, 0x1004443b4\nTBZ             W8, #0, loc_1004443C0                                  ; +0x4, 0x1004443b8\nRET                                                                    ; +0x8, 0x1004443bc\nSUB             SP, SP, #0x30 ; '0'                                    ; +0xc, 0x1004443c0\nSTP             X20, X19, [SP,#0x30+var_20]                            ; +0x10, 0x1004443c4\nSTP             X29, X30, [SP,#0x30+var_10]                            ; +0x14, 0x1004443c8\nADD             X29, SP, #0x30+var_10                                  ; +0x18, 0x1004443cc\nMOV             X19, X0                                                ; +0x1c, 0x1004443d0\nLDR             X8, [X0]                                               ; +0x20, 0x1004443d4\nLDR             X8, [X8,#0x430]                                        ; +0x24, 0x1004443d8\nMOV             W1, #0                                                 ; +0x28, 0x1004443dc\nBLR             X8                                                     ; +0x2c, 0x1004443e0\nMOV             W8, #1                                                 ; +0x30, 0x1004443e4\nSTRB            W8, [X19,#0x238]                                       ; +0x34, 0x1004443e8\nMOV             X0, X19                                                ; +0x38, 0x1004443ec\nBL              EditorPauseLayer__saveLevel                            ; +0x3c, 0x1004443f0\nFMOV            S0, WZR                                                ; +0x40, 0x1004443f4\nBL              cocos2d__CCDelayTime__create                           ; +0x44, 0x1004443f8\nMOV             X20, X0                                                ; +0x48, 0x1004443fc\nADRL            X1, EditorPauseLayer__playStep2                        ; +0x4c, 0x100444400\nMOV             X0, X19                                                ; +0x54, 0x100444408\nMOV             X2, #0                                                 ; +0x58, 0x10044440c\nBL              cocos2d__CCCallFunc__create                            ; +0x5c, 0x100444410\nSTP             X0, XZR, [SP,#0x30+var_30]                             ; +0x60, 0x100444414\nMOV             X0, X20                                                ; +0x64, 0x100444418\nBL              sub_10021D420                                          ; +0x68, 0x10044441c\nMOV             X1, X0                                                 ; +0x6c, 0x100444420\nMOV             X0, X19                                                ; +0x70, 0x100444424\nLDP             X29, X30, [SP,#0x30+var_10]                            ; +0x74, 0x100444428\nLDP             X20, X19, [SP,#0x30+var_20]                            ; +0x78, 0x10044442c\nADD             SP, SP, #0x30 ; '0'                                    ; +0x7c, 0x100444430\nB               cocos2d__CCNode__runAction                             ; +0x80, 0x100444434", "xrefs": ["EditorPauseLayer::customSetup @ 0x1004438b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}