{"type": "func", "start": 8157960, "end": 8158248, "name": "EditorUI::showMaxError", "pseudocode": "// \n// EditorUI::showMaxError from 0x7c7b08 to 0x7c7c28 (288 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::createObjectsFromString @ 0x7a116c\n// > EditorUI::onCreate @ 0x7ca880\n// > EditorUI::doPasteObjects @ 0xbd9ee8\n// > EditorUI::onDuplicate @ 0xbdab34\n// > <???> @ 0x59710\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::showMaxError(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 upper max limit of <cg>%i</c> objects. This li\"\n                                                     \"mit can be removed completely, but it is <cr>not</c> recommended. L\"\n                                                     \"evels with object count above this limit will display a <co>warning\"\n                                                     \"</c> when played online.\\n\"\n                                                     \"<cy>Unoptimized levels that use too many objects have a lower chanc\"\n                                                     \"e of being rated and featured.</c>\",\n                                (const char *)&elf_hash_bucket[19874]);\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 *)\"Unlimited\",\n           380.0);\n    if ( (v8[0] & 1) != 0 )\n      operator delete(v9);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 126);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::showMaxError from 0x7c7b08 to 0x7c7c28 (288 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::createObjectsFromString @ 0x7a116c\n; > EditorUI::onCreate @ 0x7ca880\n; > EditorUI::doPasteObjects @ 0xbd9ee8\n; > EditorUI::onDuplicate @ 0xbdab34\n; > <???> @ 0x59710\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, 0x7c7b08\nMOV             X29, SP                                                ; +0x4, 0x7c7b0c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7c7b10\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c7b14\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x10, 0x7c7b18\nMOV             X20, X0                                                ; +0x14, 0x7c7b1c\nLDRB            W0, [X0,#0x278]                                        ; +0x18, 0x7c7b20\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x7c7b24\nLDR             X1, [X1]                                               ; +0x20, 0x7c7b28\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x7c7b2c\nCBZ             W0, loc_7C7B58                                         ; +0x28, 0x7c7b30\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x7c7b34\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x30, 0x7c7b38\nLDR             X0, [X19]                                              ; +0x34, 0x7c7b3c\nCMP             X1, X0                                                 ; +0x38, 0x7c7b40\nB.NE            loc_7C7C08                                             ; +0x3c, 0x7c7b44\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x40, 0x7c7b48\nLDR             X21, [SP,#0x60+var_40]                                 ; +0x44, 0x7c7b4c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x48, 0x7c7b50\nRET                                                                    ; +0x4c, 0x7c7b54\nMOV             W0, #1                                                 ; +0x50, 0x7c7b58\nMOV             W1, #0x3880                                            ; +0x54, 0x7c7b5c\nSTRB            W0, [X20,#0x278]                                       ; +0x58, 0x7c7b60\nADRP            X0, #aYouHaveReached@PAGE; \"You have reached the upper max limit of\"... ; +0x5c, 0x7c7b64\nMOVK            W1, #1,LSL#16; char *                                  ; +0x60, 0x7c7b68\nADD             X0, X0, #aYouHaveReached@PAGEOFF; \"You have reached the upper max limit of\"... ; +0x64, 0x7c7b6c\nADD             X21, X29, #0x60+var_20                                 ; +0x68, 0x7c7b70\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x6c, 0x7c7b74\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x70, 0x7c7b78\nSTR             XZR, [X29,#0x60+var_20]                                ; +0x74, 0x7c7b7c\nSTR             X0, [X29,#0x60+var_28]                                 ; +0x78, 0x7c7b80\nSTR             XZR, [X29,#0x60+var_18]                                ; +0x7c, 0x7c7b84\nSTR             XZR, [X29,#0x60+var_10]                                ; +0x80, 0x7c7b88\nBL              .strlen                                                ; +0x84, 0x7c7b8c\nLDR             X1, [X29,#0x60+var_28]                                 ; +0x88, 0x7c7b90\nMOV             X2, X0                                                 ; +0x8c, 0x7c7b94\nMOV             X0, X21                                                ; +0x90, 0x7c7b98\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x94, 0x7c7b9c\nLDR             S0, =0x43BE0000                                        ; +0x98, 0x7c7ba0\nADRP            X1, #aMaxObjects@PAGE; \"Max Objects\"                   ; +0x9c, 0x7c7ba4\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0xa0, 0x7c7ba8\nADRP            X4, #aUnlimited@PAGE; \"Unlimited\"                      ; +0xa4, 0x7c7bac\nADD             X0, X20, #0x198                                        ; +0xa8, 0x7c7bb0\nADD             X1, X1, #aMaxObjects@PAGEOFF; \"Max Objects\"            ; +0xac, 0x7c7bb4\nMOV             X2, X21                                                ; +0xb0, 0x7c7bb8\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0xb4, 0x7c7bbc\nADD             X4, X4, #aUnlimited@PAGEOFF; \"Unlimited\"               ; +0xb8, 0x7c7bc0\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xbc, 0x7c7bc4\nMOV             X20, X0                                                ; +0xc0, 0x7c7bc8\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0xc4, 0x7c7bcc\nTBNZ            W0, #0, loc_7C7BFC                                     ; +0xc8, 0x7c7bd0\nLDR             X2, [X20]                                              ; +0xcc, 0x7c7bd4\nMOV             X0, X20                                                ; +0xd0, 0x7c7bd8\nMOV             W1, #0x7E ; '~'                                        ; +0xd4, 0x7c7bdc\nLDR             X2, [X2,#0x48]                                         ; +0xd8, 0x7c7be0\nBLR             X2                                                     ; +0xdc, 0x7c7be4\nLDR             X1, [X20]                                              ; +0xe0, 0x7c7be8\nMOV             X0, X20                                                ; +0xe4, 0x7c7bec\nLDR             X1, [X1,#0x520]                                        ; +0xe8, 0x7c7bf0\nBLR             X1                                                     ; +0xec, 0x7c7bf4\nB               loc_7C7B34                                             ; +0xf0, 0x7c7bf8\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xf4, 0x7c7bfc\nBL              _ZdlPv; operator delete(void *)                        ; +0xf8, 0x7c7c00\nB               loc_7C7BD4                                             ; +0xfc, 0x7c7c04\nBL              .__stack_chk_fail                                      ; +0x100, 0x7c7c08\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x104, 0x7c7c0c\nMOV             X19, X0                                                ; +0x108, 0x7c7c10\nTBZ             W1, #0, loc_7C7C20                                     ; +0x10c, 0x7c7c14\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x110, 0x7c7c18\nBL              _ZdlPv; operator delete(void *)                        ; +0x114, 0x7c7c1c\nMOV             X0, X19                                                ; +0x118, 0x7c7c20\nBL              _Unwind_Resume                                         ; +0x11c, 0x7c7c24", "xrefs": ["LevelEditorLayer::createObjectsFromString @ 0x7a116c", "EditorUI::onCreate @ 0x7ca880", "EditorUI::doPasteObjects @ 0xbd9ee8", "EditorUI::onDuplicate @ 0xbdab34", "<???> @ 0x59710"], "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"}