{"type": "func", "start": 8158252, "end": 8158544, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x7c7c2c to 0x7c7d50 (292 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onCreate @ 0x7ca8ac\n// > EditorUI::doPasteObjects @ 0xbda044\n// > EditorUI::onDuplicate @ 0xbdab50\n// > <???> @ 0x1016e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:09 +0000\n// \n\n__int64 __fastcall EditorUI::showMaxBasicError(EditorUI *this)\n{\n  cocos2d::CCString *v3; // x0\n  const char *CString; // x0\n  size_t v5; // x0\n  __int64 v6; // x20\n  char *v7; // [xsp+38h] [xbp+38h]\n  __int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF\n  void *v9; // [xsp+50h] [xbp+50h]\n\n  if ( !*((_BYTE *)this + 632) )\n  {\n    *((_BYTE *)this + 632) = 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 *)&elf_hash_bucket[9874],\n                                80000);\n    CString = (const char *)cocos2d::CCString::getCString(v3);\n    v8[0] = 0;\n    v7 = (char *)CString;\n    v8[1] = 0;\n    v9 = nullptr;\n    v5 = strlen(CString);\n    std::string::__init(v8, v7, v5);\n    v6 = FLAlertLayer::create(\n           (__int64)this + 408,\n           (cocos2d::CCLabelBMFont *)\"Max Objects\",\n           (char *)v8,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Increase\",\n           380.0);\n    if ( (v8[0] & 1) != 0 )\n      operator delete(v9);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 125);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x7c7c2c to 0x7c7d50 (292 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onCreate @ 0x7ca8ac\n; > EditorUI::doPasteObjects @ 0xbda044\n; > EditorUI::onDuplicate @ 0xbdab50\n; > <???> @ 0x1016e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:54:09 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7c7c2c\nMOV             X29, SP                                                ; +0x4, 0x7c7c30\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7c7c34\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c7c38\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x7c7c3c\nMOV             X20, X0                                                ; +0x14, 0x7c7c40\nLDRB            W0, [X0,#0x278]                                        ; +0x18, 0x7c7c44\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7c7c48\nLDR             X1, [X1]                                               ; +0x20, 0x7c7c4c\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x7c7c50\nCBZ             W0, loc_7C7C7C                                         ; +0x28, 0x7c7c54\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x7c7c58\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x30, 0x7c7c5c\nLDR             X0, [X19]                                              ; +0x34, 0x7c7c60\nCMP             X1, X0                                                 ; +0x38, 0x7c7c64\nB.NE            loc_7C7D30                                             ; +0x3c, 0x7c7c68\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x40, 0x7c7c6c\nLDR             X21, [SP,#0x60+var_40]                                 ; +0x44, 0x7c7c70\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x48, 0x7c7c74\nRET                                                                    ; +0x4c, 0x7c7c78\nMOV             W2, #0x3880                                            ; +0x50, 0x7c7c7c\nADRP            X0, #aYouHaveReached_0@PAGE; \"You have reached the max limit of <cg>%\"... ; +0x54, 0x7c7c80\nMOV             W3, #1                                                 ; +0x58, 0x7c7c84\nMOVK            W2, #1,LSL#16                                          ; +0x5c, 0x7c7c88\nSTRB            W3, [X20,#0x278]                                       ; +0x60, 0x7c7c8c\nMOV             W1, #(elf_hash_bucket+0x9A48); char *                  ; +0x64, 0x7c7c90\nADD             X0, X0, #aYouHaveReached_0@PAGEOFF; \"You have reached the max limit of <cg>%\"... ; +0x68, 0x7c7c94\nADD             X21, X29, #0x60+var_20                                 ; +0x6c, 0x7c7c98\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x70, 0x7c7c9c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x74, 0x7c7ca0\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x78, 0x7c7ca4\nSTR             X0, [X29,#0x60+var_28]                                 ; +0x7c, 0x7c7ca8\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x80, 0x7c7cac\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x84, 0x7c7cb0\nBL              .strlen                                                ; +0x88, 0x7c7cb4\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x8c, 0x7c7cb8\nMOV             X2, X0                                                 ; +0x90, 0x7c7cbc\nMOV             X0, X21                                                ; +0x94, 0x7c7cc0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x98, 0x7c7cc4\nLDR             S0, =0x43BE0000                                        ; +0x9c, 0x7c7cc8\nADRP            X1, #aMaxObjects@PAGE; \"Max Objects\"                   ; +0xa0, 0x7c7ccc\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0xa4, 0x7c7cd0\nADRP            X4, #aIncrease@PAGE; \"Increase\"                        ; +0xa8, 0x7c7cd4\nADD             X0, X20, #0x198                                        ; +0xac, 0x7c7cd8\nADD             X1, X1, #aMaxObjects@PAGEOFF; \"Max Objects\"            ; +0xb0, 0x7c7cdc\nMOV             X2, X21                                                ; +0xb4, 0x7c7ce0\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0xb8, 0x7c7ce4\nADD             X4, X4, #aIncrease@PAGEOFF; \"Increase\"                 ; +0xbc, 0x7c7ce8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xc0, 0x7c7cec\nMOV             X20, X0                                                ; +0xc4, 0x7c7cf0\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0xc8, 0x7c7cf4\nTBNZ            W0, #0, loc_7C7D24                                     ; +0xcc, 0x7c7cf8\nLDR             X2, [X20]                                              ; +0xd0, 0x7c7cfc\nMOV             X0, X20                                                ; +0xd4, 0x7c7d00\nMOV             W1, #0x7D ; '}'                                        ; +0xd8, 0x7c7d04\nLDR             X2, [X2,#0x48]                                         ; +0xdc, 0x7c7d08\nBLR             X2                                                     ; +0xe0, 0x7c7d0c\nLDR             X1, [X20]                                              ; +0xe4, 0x7c7d10\nMOV             X0, X20                                                ; +0xe8, 0x7c7d14\nLDR             X1, [X1,#0x520]                                        ; +0xec, 0x7c7d18\nBLR             X1                                                     ; +0xf0, 0x7c7d1c\nB               loc_7C7C58                                             ; +0xf4, 0x7c7d20\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xf8, 0x7c7d24\nBL              _ZdlPv; operator delete(void *)                        ; +0xfc, 0x7c7d28\nB               loc_7C7CFC                                             ; +0x100, 0x7c7d2c\nBL              .__stack_chk_fail                                      ; +0x104, 0x7c7d30\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x108, 0x7c7d34\nMOV             X19, X0                                                ; +0x10c, 0x7c7d38\nTBZ             W1, #0, loc_7C7D48                                     ; +0x110, 0x7c7d3c\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x114, 0x7c7d40\nBL              _ZdlPv; operator delete(void *)                        ; +0x118, 0x7c7d44\nMOV             X0, X19                                                ; +0x11c, 0x7c7d48\nBL              _Unwind_Resume                                         ; +0x120, 0x7c7d4c", "xrefs": ["EditorUI::onCreate @ 0x7ca8ac", "EditorUI::doPasteObjects @ 0xbda044", "EditorUI::onDuplicate @ 0xbdab50", "<???> @ 0x1016e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}