{"type": "func", "start": 4190656, "end": 4190778, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x3ff1c0 to 0x3ff23a (122 bytes)\n// \n// 0 xrefs:\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 EditorPauseLayer::onSave(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // r5\n  _BYTE v4[4]; // [sp+10h] [bp-8h] BYREF\n\n  if ( !a1->m_saved )\n  {\n    sub_776584((int)v4, \"<cy>Save</c> the level?\");\n    v3 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, (int)\"Save\", (int)v4, (int)\"NO\", (int)\"YES\", 300.0);\n    sub_774008(v4);\n    v3->setTag(v3, 3);\n    v3->show(v3);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x3ff1c0 to 0x3ff23a (122 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3FF1C8)                ; +0x0, 0x3ff1c0\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x3ff1c2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3ff1c4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3ff1c6\nSUB             SP, SP, #0x18                                          ; +0x8, 0x3ff1c8\nMOV             R5, R0                                                 ; +0xa, 0x3ff1ca\nLDR             R2, [R3]                                               ; +0xc, 0x3ff1cc\nMOV             R6, R3                                                 ; +0xe, 0x3ff1ce\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x10, 0x3ff1d0\nLDRB.W          R2, [R0,#0x1C0]                                        ; +0x12, 0x3ff1d2\nCBNZ            R2, loc_3FF22A                                         ; +0x16, 0x3ff1d6\nADD             R4, SP, #0x18+var_8                                    ; +0x18, 0x3ff1d8\nLDR             R1, =(aCySaveCTheLeve - 0x3FF1E2); \"<cy>Save</c> the level?\" ; +0x1a, 0x3ff1da\nADD             R2, SP, #0x18+var_C                                    ; +0x1c, 0x3ff1dc\nADD             R1, PC; \"<cy>Save</c> the level?\"                      ; +0x1e, 0x3ff1de\nMOV             R0, R4; int                                            ; +0x20, 0x3ff1e0\nBL              sub_776584                                             ; +0x22, 0x3ff1e2\nLDR             R3, =(aYes_0 - 0x3FF1F2); \"YES\"                        ; +0x26, 0x3ff1e6\nLDR             R1, =(aSave - 0x3FF1F8); \"Save\"                        ; +0x28, 0x3ff1e8\nADD.W           R0, R5, #0x1BC; int                                    ; +0x2a, 0x3ff1ea\nADD             R3, PC; \"YES\"                                          ; +0x2e, 0x3ff1ee\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x30, 0x3ff1f0\nLDR             R3, flt_3FF23C                                         ; +0x32, 0x3ff1f2\nADD             R1, PC; \"Save\"                                         ; +0x34, 0x3ff1f4\nMOV             R2, R4; int                                            ; +0x36, 0x3ff1f6\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x3ff1f8\nLDR             R3, =(aNo_0 - 0x3FF200); \"NO\"                          ; +0x3a, 0x3ff1fa\nADD             R3, PC; \"NO\"                                           ; +0x3c, 0x3ff1fc\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x3ff1fe\nMOV             R5, R0                                                 ; +0x42, 0x3ff202\nMOV             R0, R4                                                 ; +0x44, 0x3ff204\nBL              sub_774008                                             ; +0x46, 0x3ff206\nLDR             R3, [R5]                                               ; +0x4a, 0x3ff20a\nMOV             R0, R5                                                 ; +0x4c, 0x3ff20c\nMOVS            R1, #3                                                 ; +0x4e, 0x3ff20e\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x3ff210\nBLX             R3                                                     ; +0x52, 0x3ff212\nLDR             R3, [R5]                                               ; +0x54, 0x3ff214\nMOV             R0, R5                                                 ; +0x56, 0x3ff216\nLDR.W           R3, [R3,#0x284]                                        ; +0x58, 0x3ff218\nBLX             R3                                                     ; +0x5c, 0x3ff21c\nB               loc_3FF22A                                             ; +0x5e, 0x3ff21e\nMOV             R0, R4                                                 ; +0x60, 0x3ff220\nBL              sub_774008                                             ; +0x62, 0x3ff222\nBL              __cxa_end_cleanup                                      ; +0x66, 0x3ff226\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x6a, 0x3ff22a\nLDR             R3, [R6]                                               ; +0x6c, 0x3ff22c\nCMP             R2, R3                                                 ; +0x6e, 0x3ff22e\nBEQ             loc_3FF236                                             ; +0x70, 0x3ff230\nBLX             __stack_chk_fail                                       ; +0x72, 0x3ff232\nADD             SP, SP, #0x18                                          ; +0x76, 0x3ff236\nPOP             {R4-R6,PC}                                             ; +0x78, 0x3ff238", "xrefs": [], "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"}