{"type": "func", "start": 4299075656, "end": 4299075848, "name": "EditorUI::showMaxError", "pseudocode": "// \n// EditorUI::showMaxError from 0x1003eb048 to 0x1003eb108 (192 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::createObjectsFromString @ 0x100359ab4\n// > EditorUI::onDuplicate @ 0x1003e46d8\n// > EditorUI::onCreate @ 0x1003e6bd4\n// > EditorUI::doPasteObjects @ 0x1003eec2c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditorUI::showMaxError(EditorUI *a1)\n{\n  cocos2d::CCString *v2; // x0\n  char *CString; // x0\n  FLAlertLayer *v4; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v6; // [xsp+1Fh] [xbp-11h]\n\n  if ( !a1->m_alertShown )\n  {\n    a1->m_alertShown = 1;\n    v2 = (cocos2d::CCString *)sub_100268F4C(\n                                \"You have reached the upper max limit of <cg>%i</c> objects. This limit can be removed co\"\n                                \"mpletely, but it is <cr>not</c> recommended. Levels with object count above this limit w\"\n                                \"ill display a <co>warning</c> when played online.\\n\"\n                                \"<cy>Unoptimized levels that use too many objects have a lower chance of being rated and featured.</c>\",\n                                80000);\n    CString = (char *)cocos2d::CCString::getCString(v2);\n    sub_100009900(__p, CString);\n    v4 = FLAlertLayer::create_1(\n           (__int64)&a1->FLAlertLayerProtocol,\n           (__int64)\"Max Objects\",\n           (__int64)__p,\n           (__int64)\"Cancel\",\n           (__int64)\"Unlimited\",\n           380.0);\n    if ( v6 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v4->setTag)(v4, 126);\n    ((void (__fastcall *)(FLAlertLayer *))v4->show)(v4);\n  }\n}", "assembly": "; \n; EditorUI::showMaxError from 0x1003eb048 to 0x1003eb108 (192 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::createObjectsFromString @ 0x100359ab4\n; > EditorUI::onDuplicate @ 0x1003e46d8\n; > EditorUI::onCreate @ 0x1003e6bd4\n; > EditorUI::doPasteObjects @ 0x1003eec2c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003eb048\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003eb04c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003eb050\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003eb054\nLDRB            W8, [X0,#0x250]                                        ; +0x10, 0x1003eb058\nTBNZ            W8, #0, loc_1003EB0F8                                  ; +0x14, 0x1003eb05c\nMOV             X19, X0                                                ; +0x18, 0x1003eb060\nMOV             W8, #1                                                 ; +0x1c, 0x1003eb064\nSTRB            W8, [X0,#0x250]                                        ; +0x20, 0x1003eb068\nMOV             W8, #0x13880                                           ; +0x24, 0x1003eb06c\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x2c, 0x1003eb074\nADRL            X0, aYouHaveReached; \"You have reached the upper max limit of\"... ; +0x30, 0x1003eb078\nBL              sub_100268F4C                                          ; +0x38, 0x1003eb080\nBL              cocos2d__CCString__getCString                          ; +0x3c, 0x1003eb084\nMOV             X1, X0; __s                                            ; +0x40, 0x1003eb088\nADD             X0, SP, #0x30+__p; int                                 ; +0x44, 0x1003eb08c\nBL              sub_100009900                                          ; +0x48, 0x1003eb090\nADRL            X1, aMaxObjects; \"Max Objects\"                         ; +0x4c, 0x1003eb094\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x54, 0x1003eb09c\nADRL            X4, aUnlimited; \"Unlimited\"                            ; +0x5c, 0x1003eb0a4\nMOV             W8, #0x43BE0000                                        ; +0x64, 0x1003eb0ac\nFMOV            S0, W8                                                 ; +0x68, 0x1003eb0b0\nADD             X0, X19, #0x198                                        ; +0x6c, 0x1003eb0b4\nADD             X2, SP, #0x30+__p                                      ; +0x70, 0x1003eb0b8\nBL              FLAlertLayer__create_1                                 ; +0x74, 0x1003eb0bc\nMOV             X19, X0                                                ; +0x78, 0x1003eb0c0\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x7c, 0x1003eb0c4\nTBZ             W8, #0x1F, loc_1003EB0D4                               ; +0x80, 0x1003eb0c8\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x84, 0x1003eb0cc\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x1003eb0d0\nLDR             X8, [X19]                                              ; +0x8c, 0x1003eb0d4\nLDR             X8, [X8,#0x48]                                         ; +0x90, 0x1003eb0d8\nMOV             X0, X19                                                ; +0x94, 0x1003eb0dc\nMOV             W1, #0x7E ; '~'                                        ; +0x98, 0x1003eb0e0\nBLR             X8                                                     ; +0x9c, 0x1003eb0e4\nLDR             X8, [X19]                                              ; +0xa0, 0x1003eb0e8\nLDR             X8, [X8,#0x508]                                        ; +0xa4, 0x1003eb0ec\nMOV             X0, X19                                                ; +0xa8, 0x1003eb0f0\nBLR             X8                                                     ; +0xac, 0x1003eb0f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb0, 0x1003eb0f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb4, 0x1003eb0fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0xb8, 0x1003eb100\nRET                                                                    ; +0xbc, 0x1003eb104", "xrefs": ["LevelEditorLayer::createObjectsFromString @ 0x100359ab4", "EditorUI::onDuplicate @ 0x1003e46d8", "EditorUI::onCreate @ 0x1003e6bd4", "EditorUI::doPasteObjects @ 0x1003eec2c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}