{"type": "func", "start": 4298759112, "end": 4298759272, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x10039dbc8 to 0x10039dc68 (160 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10039c2f4\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::onSave(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v5; // [xsp+1Fh] [xbp-11h]\n\n  if ( !a1->m_saved )\n  {\n    sub_100009900(__p, \"<cy>Save</c> the level?\");\n    v3 = FLAlertLayer::create_1(\n           (__int64)&a1->FLAlertLayerProtocol,\n           (__int64)\"Save\",\n           (__int64)__p,\n           (__int64)\"NO\",\n           (__int64)\"YES\",\n           300.0);\n    if ( v5 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v3->setTag)(v3, 3);\n    ((void (__fastcall *)(FLAlertLayer *))v3->show)(v3);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x10039dbc8 to 0x10039dc68 (160 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10039c2f4\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, #0x40                                          ; +0x0, 0x10039dbc8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10039dbcc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10039dbd0\nADD             X29, SP, #0x30                                         ; +0xc, 0x10039dbd4\nLDRB            W8, [X0,#0x230]                                        ; +0x10, 0x10039dbd8\nTBNZ            W8, #0, loc_10039DC58                                  ; +0x14, 0x10039dbdc\nMOV             X19, X0                                                ; +0x18, 0x10039dbe0\nADRL            X1, aCySaveCTheLeve; \"<cy>Save</c> the level?\"         ; +0x1c, 0x10039dbe4\nADD             X0, SP, #0x30+__p; int                                 ; +0x24, 0x10039dbec\nBL              sub_100009900                                          ; +0x28, 0x10039dbf0\nADRL            X1, aSave; \"Save\"                                      ; +0x2c, 0x10039dbf4\nADRL            X3, aNo; \"NO\"                                          ; +0x34, 0x10039dbfc\nADRL            X4, aYes; \"YES\"                                        ; +0x3c, 0x10039dc04\nMOV             W8, #0x43960000                                        ; +0x44, 0x10039dc0c\nFMOV            S0, W8                                                 ; +0x48, 0x10039dc10\nADD             X0, X19, #0x228                                        ; +0x4c, 0x10039dc14\nADD             X2, SP, #0x30+__p                                      ; +0x50, 0x10039dc18\nBL              FLAlertLayer__create_1                                 ; +0x54, 0x10039dc1c\nMOV             X19, X0                                                ; +0x58, 0x10039dc20\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x5c, 0x10039dc24\nTBZ             W8, #0x1F, loc_10039DC34                               ; +0x60, 0x10039dc28\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x10039dc2c\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x10039dc30\nLDR             X8, [X19]                                              ; +0x6c, 0x10039dc34\nLDR             X8, [X8,#0x48]                                         ; +0x70, 0x10039dc38\nMOV             X0, X19                                                ; +0x74, 0x10039dc3c\nMOV             W1, #3                                                 ; +0x78, 0x10039dc40\nBLR             X8                                                     ; +0x7c, 0x10039dc44\nLDR             X8, [X19]                                              ; +0x80, 0x10039dc48\nLDR             X8, [X8,#0x508]                                        ; +0x84, 0x10039dc4c\nMOV             X0, X19                                                ; +0x88, 0x10039dc50\nBLR             X8                                                     ; +0x8c, 0x10039dc54\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x10039dc58\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x10039dc5c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x98, 0x10039dc60\nRET                                                                    ; +0x9c, 0x10039dc64", "xrefs": ["EditorPauseLayer::customSetup @ 0x10039c2f4"], "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"}