{"type": "func", "start": 5280860, "end": 5281012, "name": "EditorPauseLayer::onExitNoSave", "pseudocode": "// \n// EditorPauseLayer::onExitNoSave from 0x50945c to 0x5094f4 (152 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\nchar **__fastcall EditorPauseLayer::onExitNoSave(char **this, cocos2d::CCObject *a2)\n{\n  int v2; // r1\n  char **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    if ( *(_DWORD *)(*((_DWORD *)*(this + 114) + 352) + 952) == 2 )\n    {\n      v5[0] = *((unsigned __int8 *)this + 452);\n      v5[1] = v2;\n      v5[2] = v2;\n      std::string::__init(v5, \"<cy>Exit</c> without saving? All unsaved changes will be <cr>lost</c>!\", 0x46u);\n      v4 = FLAlertLayer::create(\n             (int)(v3 + 111),\n             (cocos2d::CCLabelBMFont *)\"Exit\",\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, 1);\n      return (char **)(*(int (__fastcall **)(int *))(*v4 + 656))(v4);\n    }\n    else\n    {\n      return EditorPauseLayer::onExitEditor((LevelEditorLayer **)this, (cocos2d::CCObject *)v2);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EditorPauseLayer::onExitNoSave from 0x50945c to 0x5094f4 (152 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 - 0x509464)                ; +0x0, 0x50945c\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x50945e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x509460\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x509462\nLDRB.W          R1, [R0,#0x1C4]; cocos2d::CCObject *                   ; +0x8, 0x509464\nSUB             SP, SP, #0x18                                          ; +0xc, 0x509468\nLDR             R2, [R3]                                               ; +0xe, 0x50946a\nMOV             R5, R0                                                 ; +0x10, 0x50946c\nMOV             R6, R3                                                 ; +0x12, 0x50946e\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x14, 0x509470\nCMP             R1, #0                                                 ; +0x16, 0x509472\nBNE             loc_5094E4                                             ; +0x18, 0x509474\nLDR.W           R3, [R0,#0x1C8]                                        ; +0x1a, 0x509476\nLDR.W           R3, [R3,#0x580]                                        ; +0x1e, 0x50947a\nLDR.W           R3, [R3,#0x3B8]                                        ; +0x22, 0x50947e\nCMP             R3, #2                                                 ; +0x26, 0x509482\nBEQ             loc_50948C                                             ; +0x28, 0x509484\nBL              _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x2a, 0x509486\nB               loc_5094E4                                             ; +0x2e, 0x50948a\nSTR             R1, [SP,#0x18+var_10]                                  ; +0x30, 0x50948c\nADD             R4, SP, #0x18+var_10                                   ; +0x32, 0x50948e\nSTR             R1, [SP,#0x18+var_C]                                   ; +0x34, 0x509490\nMOVS            R2, #0x46 ; 'F'                                        ; +0x36, 0x509492\nSTR             R1, [SP,#0x18+var_8]                                   ; +0x38, 0x509494\nMOV             R0, R4                                                 ; +0x3a, 0x509496\nLDR             R1, =(aCyExitCWithout - 0x50949E); \"<cy>Exit</c> without saving? All unsave\"... ; +0x3c, 0x509498\nADD             R1, PC; \"<cy>Exit</c> without saving? All unsave\"...   ; +0x3e, 0x50949a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x40, 0x50949c\nLDR             R3, =(aYes_0 - 0x5094AC); \"YES\"                        ; +0x44, 0x5094a0\nLDR             R1, =(aExit_0 - 0x5094B2); \"Exit\"                      ; +0x46, 0x5094a2\nADD.W           R0, R5, #0x1BC; int                                    ; +0x48, 0x5094a4\nADD             R3, PC; \"YES\"                                          ; +0x4c, 0x5094a8\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x4e, 0x5094aa\nLDR             R3, flt_5094F4                                         ; +0x50, 0x5094ac\nADD             R1, PC; \"Exit\"                                         ; +0x52, 0x5094ae\nMOV             R2, R4; int                                            ; +0x54, 0x5094b0\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x56, 0x5094b2\nLDR             R3, =(aNo_0 - 0x5094BA); \"NO\"                          ; +0x58, 0x5094b4\nADD             R3, PC; \"NO\"                                           ; +0x5a, 0x5094b6\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x5c, 0x5094b8\nMOV             R5, R0                                                 ; +0x60, 0x5094bc\nMOV             R0, R4                                                 ; +0x62, 0x5094be\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x64, 0x5094c0\nLDR             R3, [R5]                                               ; +0x68, 0x5094c4\nMOV             R0, R5                                                 ; +0x6a, 0x5094c6\nMOVS            R1, #1                                                 ; +0x6c, 0x5094c8\nLDR             R3, [R3,#0x24]                                         ; +0x6e, 0x5094ca\nBLX             R3                                                     ; +0x70, 0x5094cc\nLDR             R3, [R5]                                               ; +0x72, 0x5094ce\nMOV             R0, R5                                                 ; +0x74, 0x5094d0\nLDR.W           R3, [R3,#0x290]                                        ; +0x76, 0x5094d2\nBLX             R3                                                     ; +0x7a, 0x5094d6\nB               loc_5094E4                                             ; +0x7c, 0x5094d8\nMOV             R0, R4                                                 ; +0x7e, 0x5094da\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x80, 0x5094dc\nBL              __cxa_end_cleanup                                      ; +0x84, 0x5094e0\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x88, 0x5094e4\nLDR             R3, [R6]                                               ; +0x8a, 0x5094e6\nCMP             R2, R3                                                 ; +0x8c, 0x5094e8\nBEQ             loc_5094F0                                             ; +0x8e, 0x5094ea\nBLX             __stack_chk_fail                                       ; +0x90, 0x5094ec\nADD             SP, SP, #0x18                                          ; +0x94, 0x5094f0\nPOP             {R4-R6,PC}                                             ; +0x96, 0x5094f2", "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"}