{"type": "func", "start": 5280556, "end": 5280684, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x50932c to 0x5093ac (128 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:26 +0000\n// \n\nint __fastcall EditorPauseLayer::onSave(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r4\n  int v3; // r5\n  int *v4; // r5\n  int v5[3]; // [sp+8h] [bp-10h] BYREF\n\n  v2 = *(unsigned __int8 *)(this + 452);\n  v3 = this;\n  if ( !*(_BYTE *)(this + 452) )\n  {\n    v5[0] = *(unsigned __int8 *)(this + 452);\n    v5[1] = v2;\n    v5[2] = v2;\n    std::string::__init(v5, \"<cy>Save</c> the level?\", 0x17u);\n    v4 = FLAlertLayer::create(\n           v3 + 444,\n           (cocos2d::CCLabelBMFont *)\"Save\",\n           (int)v5,\n           (ButtonSprite *)\"NO\",\n           (ButtonSprite *)\"YES\",\n           300.0);\n    std::string::~string((int)v5);\n    (*(void (__fastcall **)(int *, int))(*v4 + 36))(v4, 3);\n    return (*(int (__fastcall **)(int *))(*v4 + 656))(v4);\n  }\n  return this;\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x50932c to 0x5093ac (128 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:26 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x509334)                ; +0x0, 0x50932c\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x50932e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x509330\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x509332\nLDRB.W          R4, [R0,#0x1C4]                                        ; +0x8, 0x509334\nSUB             SP, SP, #0x18                                          ; +0xc, 0x509338\nLDR             R2, [R3]                                               ; +0xe, 0x50933a\nMOV             R5, R0                                                 ; +0x10, 0x50933c\nMOV             R6, R3                                                 ; +0x12, 0x50933e\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x14, 0x509340\nCBNZ            R4, loc_50939C                                         ; +0x16, 0x509342\nSTR             R4, [SP,#0x18+var_10]                                  ; +0x18, 0x509344\nMOVS            R2, #0x17                                              ; +0x1a, 0x509346\nSTR             R4, [SP,#0x18+var_C]                                   ; +0x1c, 0x509348\nSTR             R4, [SP,#0x18+var_8]                                   ; +0x1e, 0x50934a\nADD             R4, SP, #0x18+var_10                                   ; +0x20, 0x50934c\nLDR             R1, =(aCySaveCTheLeve - 0x509356); \"<cy>Save</c> the level?\" ; +0x22, 0x50934e\nMOV             R0, R4                                                 ; +0x24, 0x509350\nADD             R1, PC; \"<cy>Save</c> the level?\"                      ; +0x26, 0x509352\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x28, 0x509354\nLDR             R3, =(aYes_0 - 0x509364); \"YES\"                        ; +0x2c, 0x509358\nLDR             R1, =(aSave - 0x50936A); \"Save\"                        ; +0x2e, 0x50935a\nADD.W           R0, R5, #0x1BC; int                                    ; +0x30, 0x50935c\nADD             R3, PC; \"YES\"                                          ; +0x34, 0x509360\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x36, 0x509362\nLDR             R3, flt_5093AC                                         ; +0x38, 0x509364\nADD             R1, PC; \"Save\"                                         ; +0x3a, 0x509366\nMOV             R2, R4; int                                            ; +0x3c, 0x509368\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x3e, 0x50936a\nLDR             R3, =(aNo_0 - 0x509372); \"NO\"                          ; +0x40, 0x50936c\nADD             R3, PC; \"NO\"                                           ; +0x42, 0x50936e\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x44, 0x509370\nMOV             R5, R0                                                 ; +0x48, 0x509374\nMOV             R0, R4                                                 ; +0x4a, 0x509376\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4c, 0x509378\nLDR             R3, [R5]                                               ; +0x50, 0x50937c\nMOV             R0, R5                                                 ; +0x52, 0x50937e\nMOVS            R1, #3                                                 ; +0x54, 0x509380\nLDR             R3, [R3,#0x24]                                         ; +0x56, 0x509382\nBLX             R3                                                     ; +0x58, 0x509384\nLDR             R3, [R5]                                               ; +0x5a, 0x509386\nMOV             R0, R5                                                 ; +0x5c, 0x509388\nLDR.W           R3, [R3,#0x290]                                        ; +0x5e, 0x50938a\nBLX             R3                                                     ; +0x62, 0x50938e\nB               loc_50939C                                             ; +0x64, 0x509390\nMOV             R0, R4                                                 ; +0x66, 0x509392\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x68, 0x509394\nBL              __cxa_end_cleanup                                      ; +0x6c, 0x509398\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x70, 0x50939c\nLDR             R3, [R6]                                               ; +0x72, 0x50939e\nCMP             R2, R3                                                 ; +0x74, 0x5093a0\nBEQ             loc_5093A8                                             ; +0x76, 0x5093a2\nBLX             __stack_chk_fail                                       ; +0x78, 0x5093a4\nADD             SP, SP, #0x18                                          ; +0x7c, 0x5093a8\nPOP             {R4-R6,PC}                                             ; +0x7e, 0x5093aa", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}