{"type": "func", "start": 7280476, "end": 7280602, "name": "EditorUI::showLockedLayerAlert", "pseudocode": "// \n// EditorUI::showLockedLayerAlert from 0x6f175c to 0x6f17da (126 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onCreate @ 0x4877ec\n// > EditorUI::pasteObjects @ 0x6f2de4\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:57:36 +0000\n// \n\nint __fastcall EditorUI::showLockedLayerAlert(EditorUI *this, const char *a2)\n{\n  cocos2d::CCString *v3; // r0\n  const char *CString; // r6\n  size_t v5; // r0\n  int v7[3]; // [sp+Ch] [bp-20h] BYREF\n  int v8[3]; // [sp+18h] [bp-14h] BYREF\n\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"Layer %i is locked.\", a2);\n  memset(v7, 0, sizeof(v7));\n  CString = (const char *)cocos2d::CCString::getCString(v3);\n  v5 = strlen(CString);\n  std::string::__init(v7, CString, v5);\n  std::string::basic_string(v8, (int)v7);\n  EditorUI::showTextAlert((int)this, v8, 0, 1, 127);\n  std::string::~string((int)v8);\n  return std::string::~string((int)v7);\n}", "assembly": "; \n; EditorUI::showLockedLayerAlert from 0x6f175c to 0x6f17da (126 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onCreate @ 0x4877ec\n; > EditorUI::pasteObjects @ 0x6f2de4\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:57:36 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x6f175c\nMOV             R7, R0                                                 ; +0x2, 0x6f175e\nLDR             R4, =(__stack_chk_guard_ptr - 0x6F176C)                ; +0x4, 0x6f1760\nSUB             SP, SP, #0x2C                                          ; +0x6, 0x6f1762\nLDR             R0, =(aLayerIIsLocked - 0x6F1770); \"Layer %i is locked.\" ; +0x8, 0x6f1764\nADD             R5, SP, #0x2C+var_20                                   ; +0xa, 0x6f1766\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x6f1768\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x6f176a\nADD             R0, PC; \"Layer %i is locked.\"                          ; +0x10, 0x6f176c\nLDR             R3, [R4]                                               ; +0x12, 0x6f176e\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x14, 0x6f1770\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x16, 0x6f1772\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x1a, 0x6f1776\nMOVS            R3, #0                                                 ; +0x1e, 0x6f177a\nSTR             R3, [SP,#0x2C+var_20]                                  ; +0x20, 0x6f177c\nSTR             R3, [SP,#0x2C+var_1C]                                  ; +0x22, 0x6f177e\nSTR             R3, [SP,#0x2C+var_18]                                  ; +0x24, 0x6f1780\nMOV             R6, R0                                                 ; +0x26, 0x6f1782\nBLX             strlen                                                 ; +0x28, 0x6f1784\nMOV             R1, R6                                                 ; +0x2c, 0x6f1788\nADD             R6, SP, #0x2C+var_14                                   ; +0x2e, 0x6f178a\nMOV             R2, R0                                                 ; +0x30, 0x6f178c\nMOV             R0, R5                                                 ; +0x32, 0x6f178e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x34, 0x6f1790\nMOV             R0, R6                                                 ; +0x38, 0x6f1794\nMOV             R1, R5                                                 ; +0x3a, 0x6f1796\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x3c, 0x6f1798\nMOVS            R3, #0x7F                                              ; +0x40, 0x6f179c\nMOV             R0, R7; int                                            ; +0x42, 0x6f179e\nSTR             R3, [SP,#0x2C+var_2C]; int                             ; +0x44, 0x6f17a0\nMOV             R1, R6; int                                            ; +0x46, 0x6f17a2\nMOVS            R2, #0; int                                            ; +0x48, 0x6f17a4\nMOVS            R3, #1; int                                            ; +0x4a, 0x6f17a6\nBL              _ZN8EditorUI13showTextAlertENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEbbi; EditorUI::showTextAlert(std::string,bool,bool,int) ; +0x4c, 0x6f17a8\nMOV             R0, R6                                                 ; +0x50, 0x6f17ac\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x52, 0x6f17ae\nMOV             R0, R5                                                 ; +0x56, 0x6f17b2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x58, 0x6f17b4\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x5c, 0x6f17b8\nLDR             R3, [R4]                                               ; +0x5e, 0x6f17ba\nCMP             R2, R3                                                 ; +0x60, 0x6f17bc\nBEQ             loc_6F17D6                                             ; +0x62, 0x6f17be\nBLX             __stack_chk_fail                                       ; +0x64, 0x6f17c0\nMOV             R0, R6                                                 ; +0x68, 0x6f17c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x6f17c6\nB               loc_6F17CC                                             ; +0x6e, 0x6f17ca\nMOV             R0, R5                                                 ; +0x70, 0x6f17cc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x72, 0x6f17ce\nBL              __cxa_end_cleanup                                      ; +0x76, 0x6f17d2\nADD             SP, SP, #0x2C ; ','                                    ; +0x7a, 0x6f17d6\nPOP             {R4-R7,PC}                                             ; +0x7c, 0x6f17d8", "xrefs": ["EditorUI::onCreate @ 0x4877ec", "EditorUI::pasteObjects @ 0x6f2de4"], "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"}