{"type": "func", "start": 4742408, "end": 4742566, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x485d08 to 0x485da6 (158 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onCreate @ 0x487836\n// > EditorUI::doPasteObjects @ 0x6f3258\n// > EditorUI::onDuplicate @ 0x6f39c6\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:25 +0000\n// \n\nint __fastcall EditorUI::showMaxBasicError(int this)\n{\n  int v1; // r4\n  int v2; // r5\n  cocos2d::CCString *v3; // r0\n  const char *CString; // r7\n  size_t v5; // r0\n  int *v6; // r5\n  int v7[3]; // [sp+8h] [bp-14h] BYREF\n\n  v1 = *(unsigned __int8 *)(this + 464);\n  v2 = this;\n  if ( !*(_BYTE *)(this + 464) )\n  {\n    *(_BYTE *)(this + 464) = 1;\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"You have reached the max limit of <cg>%i</c> objects. You can incre\"\n                                                     \"ase it to <cy>%i</c>, but your level may become unstable on some de\"\n                                                     \"vices, so it is recommended to stay below this limit. Levels with o\"\n                                                     \"bject count above this limit will display a <co>warning</c> when played online.\",\n                                (const char *)&stru_9C3C.st_value,\n                                80000);\n    v7[0] = v1;\n    v7[1] = v1;\n    v7[2] = v1;\n    CString = (const char *)cocos2d::CCString::getCString(v3);\n    v5 = strlen(CString);\n    std::string::__init(v7, CString, v5);\n    v6 = FLAlertLayer::create(\n           v2 + 316,\n           (cocos2d::CCLabelBMFont *)\"Max Objects\",\n           (int)v7,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Increase\",\n           380.0);\n    std::string::~string((int)v7);\n    (*(void (__fastcall **)(int *, int))(*v6 + 36))(v6, 125);\n    return (*(int (__fastcall **)(int *))(*v6 + 656))(v6);\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x485d08 to 0x485da6 (158 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onCreate @ 0x487836\n; > EditorUI::doPasteObjects @ 0x6f3258\n; > EditorUI::onDuplicate @ 0x6f39c6\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:25 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x485D10)                ; +0x0, 0x485d08\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x485d0a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x485d0c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x485d0e\nLDRB.W          R4, [R0,#0x1D0]                                        ; +0x8, 0x485d10\nSUB             SP, SP, #0x1C                                          ; +0xc, 0x485d14\nLDR             R2, [R3]                                               ; +0xe, 0x485d16\nMOV             R5, R0                                                 ; +0x10, 0x485d18\nMOV             R6, R3                                                 ; +0x12, 0x485d1a\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x14, 0x485d1c\nCMP             R4, #0                                                 ; +0x16, 0x485d1e\nBNE             loc_485D96                                             ; +0x18, 0x485d20\nMOVS            R3, #1                                                 ; +0x1a, 0x485d22\nSTRB.W          R3, [R0,#0x1D0]                                        ; +0x1c, 0x485d24\nLDR             R0, =(aYouHaveReached_0 - 0x485D34); \"You have reached the max limit of <cg>%\"... ; +0x20, 0x485d28\nMOVW            R1, #stru_9C3C.st_value; char *                        ; +0x22, 0x485d2a\nLDR             R2, =0x13880                                           ; +0x26, 0x485d2e\nADD             R0, PC; \"You have reached the max limit of <cg>%\"...   ; +0x28, 0x485d30\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x2a, 0x485d32\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2e, 0x485d36\nSTR             R4, [SP,#0x1C+var_14]                                  ; +0x32, 0x485d3a\nSTR             R4, [SP,#0x1C+var_10]                                  ; +0x34, 0x485d3c\nSTR             R4, [SP,#0x1C+var_C]                                   ; +0x36, 0x485d3e\nADD             R4, SP, #0x1C+var_14                                   ; +0x38, 0x485d40\nMOV             R7, R0                                                 ; +0x3a, 0x485d42\nBLX             strlen                                                 ; +0x3c, 0x485d44\nMOV             R1, R7                                                 ; +0x40, 0x485d48\nMOV             R2, R0                                                 ; +0x42, 0x485d4a\nMOV             R0, R4                                                 ; +0x44, 0x485d4c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x46, 0x485d4e\nLDR             R3, =(aIncrease - 0x485D5E); \"Increase\"                ; +0x4a, 0x485d52\nLDR             R1, =(aMaxObjects - 0x485D64); \"Max Objects\"           ; +0x4c, 0x485d54\nADD.W           R0, R5, #0x13C; int                                    ; +0x4e, 0x485d56\nADD             R3, PC; \"Increase\"                                     ; +0x52, 0x485d5a\nSTR             R3, [SP,#0x1C+var_1C]; int                             ; +0x54, 0x485d5c\nLDR             R3, flt_485DAC                                         ; +0x56, 0x485d5e\nADD             R1, PC; \"Max Objects\"                                  ; +0x58, 0x485d60\nMOV             R2, R4; int                                            ; +0x5a, 0x485d62\nSTR             R3, [SP,#0x1C+var_18]; float                           ; +0x5c, 0x485d64\nLDR             R3, =(aCancel - 0x485D6C); \"Cancel\"                    ; +0x5e, 0x485d66\nADD             R3, PC; \"Cancel\"                                       ; +0x60, 0x485d68\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x62, 0x485d6a\nMOV             R5, R0                                                 ; +0x66, 0x485d6e\nMOV             R0, R4                                                 ; +0x68, 0x485d70\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x485d72\nLDR             R3, [R5]                                               ; +0x6e, 0x485d76\nMOV             R0, R5                                                 ; +0x70, 0x485d78\nMOVS            R1, #0x7D ; '}'                                        ; +0x72, 0x485d7a\nLDR             R3, [R3,#0x24]                                         ; +0x74, 0x485d7c\nBLX             R3                                                     ; +0x76, 0x485d7e\nLDR             R3, [R5]                                               ; +0x78, 0x485d80\nMOV             R0, R5                                                 ; +0x7a, 0x485d82\nLDR.W           R3, [R3,#0x290]                                        ; +0x7c, 0x485d84\nBLX             R3                                                     ; +0x80, 0x485d88\nB               loc_485D96                                             ; +0x82, 0x485d8a\nMOV             R0, R4                                                 ; +0x84, 0x485d8c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x86, 0x485d8e\nBL              __cxa_end_cleanup                                      ; +0x8a, 0x485d92\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x8e, 0x485d96\nLDR             R3, [R6]                                               ; +0x90, 0x485d98\nCMP             R2, R3                                                 ; +0x92, 0x485d9a\nBEQ             loc_485DA2                                             ; +0x94, 0x485d9c\nBLX             __stack_chk_fail                                       ; +0x96, 0x485d9e\nADD             SP, SP, #0x1C                                          ; +0x9a, 0x485da2\nPOP             {R4-R7,PC}                                             ; +0x9c, 0x485da4", "xrefs": ["EditorUI::onCreate @ 0x487836", "EditorUI::doPasteObjects @ 0x6f3258", "EditorUI::onDuplicate @ 0x6f39c6"], "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"}