{"type": "func", "start": 4847888, "end": 4848008, "name": "EditLevelLayer::confirmDelete", "pseudocode": "// \n// EditLevelLayer::confirmDelete from 0x49f910 to 0x49f988 (120 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:49:49 +0000\n// \n\nint __fastcall EditLevelLayer::confirmDelete(EditLevelLayer *this, cocos2d::CCObject *a2)\n{\n  int *v3; // r5\n  int v5[3]; // [sp+8h] [bp-10h] BYREF\n\n  memset(v5, 0, sizeof(v5));\n  std::string::__init(\n    v5,\n    \"Are you sure you want to <cr>delete</c> this level?\\n<cy>This action cannot be undone.</c>\",\n    0x59u);\n  v3 = FLAlertLayer::create(\n         (int)this + 320,\n         (cocos2d::CCLabelBMFont *)\"Delete Level\",\n         (int)v5,\n         (ButtonSprite *)\"NO\",\n         (ButtonSprite *)\"YES\",\n         340.0);\n  std::string::~string((int)v5);\n  (*(void (__fastcall **)(int *, int))(*v3 + 36))(v3, 4);\n  return (*(int (__fastcall **)(int *))(*v3 + 656))(v3);\n}", "assembly": "; \n; EditLevelLayer::confirmDelete from 0x49f910 to 0x49f988 (120 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:49:49 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x49f910\nSUB             SP, SP, #0x18                                          ; +0x2, 0x49f912\nLDR             R6, =(__stack_chk_guard_ptr - 0x49F920)                ; +0x4, 0x49f914\nADD             R4, SP, #0x18+var_10                                   ; +0x6, 0x49f916\nLDR             R1, =(aAreYouSureYouW_6 - 0x49F926); \"Are you sure you want to <cr>delete</c>\"... ; +0x8, 0x49f918\nMOV             R5, R0                                                 ; +0xa, 0x49f91a\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x49f91c\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x49f91e\nMOV             R0, R4                                                 ; +0x10, 0x49f920\nADD             R1, PC; \"Are you sure you want to <cr>delete</c>\"...   ; +0x12, 0x49f922\nMOVS            R2, #0x59 ; 'Y'                                        ; +0x14, 0x49f924\nLDR             R3, [R6]                                               ; +0x16, 0x49f926\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x18, 0x49f928\nMOVS            R3, #0                                                 ; +0x1a, 0x49f92a\nSTR             R3, [SP,#0x18+var_10]                                  ; +0x1c, 0x49f92c\nSTR             R3, [SP,#0x18+var_C]                                   ; +0x1e, 0x49f92e\nSTR             R3, [SP,#0x18+var_8]                                   ; +0x20, 0x49f930\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x22, 0x49f932\nLDR             R3, =(aYes_0 - 0x49F944); \"YES\"                        ; +0x26, 0x49f936\nADD.W           R0, R5, #0x140; int                                    ; +0x28, 0x49f938\nLDR             R1, =(aDeleteLevel - 0x49F94A); \"Delete Level\"         ; +0x2c, 0x49f93c\nMOV             R2, R4; int                                            ; +0x2e, 0x49f93e\nADD             R3, PC; \"YES\"                                          ; +0x30, 0x49f940\nSTR             R3, [SP,#0x18+var_18]; int                             ; +0x32, 0x49f942\nLDR             R3, flt_49F988                                         ; +0x34, 0x49f944\nADD             R1, PC; \"Delete Level\"                                 ; +0x36, 0x49f946\nSTR             R3, [SP,#0x18+var_14]; float                           ; +0x38, 0x49f948\nLDR             R3, =(aNo_0 - 0x49F950); \"NO\"                          ; +0x3a, 0x49f94a\nADD             R3, PC; \"NO\"                                           ; +0x3c, 0x49f94c\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x3e, 0x49f94e\nMOV             R5, R0                                                 ; +0x42, 0x49f952\nMOV             R0, R4                                                 ; +0x44, 0x49f954\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x46, 0x49f956\nLDR             R3, [R5]                                               ; +0x4a, 0x49f95a\nMOV             R0, R5                                                 ; +0x4c, 0x49f95c\nMOVS            R1, #4                                                 ; +0x4e, 0x49f95e\nLDR             R3, [R3,#0x24]                                         ; +0x50, 0x49f960\nBLX             R3                                                     ; +0x52, 0x49f962\nLDR             R3, [R5]                                               ; +0x54, 0x49f964\nMOV             R0, R5                                                 ; +0x56, 0x49f966\nLDR.W           R3, [R3,#0x290]                                        ; +0x58, 0x49f968\nBLX             R3                                                     ; +0x5c, 0x49f96c\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x5e, 0x49f96e\nLDR             R3, [R6]                                               ; +0x60, 0x49f970\nCMP             R2, R3                                                 ; +0x62, 0x49f972\nBEQ             loc_49F984                                             ; +0x64, 0x49f974\nBLX             __stack_chk_fail                                       ; +0x66, 0x49f976\nMOV             R0, R4                                                 ; +0x6a, 0x49f97a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6c, 0x49f97c\nBL              __cxa_end_cleanup                                      ; +0x70, 0x49f980\nADD             SP, SP, #0x18                                          ; +0x74, 0x49f984\nPOP             {R4-R6,PC}                                             ; +0x76, 0x49f986", "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"}