{"type": "func", "start": 4299075876, "end": 4299076072, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x1003eb124 to 0x1003eb1e8 (196 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDuplicate @ 0x1003e471c\n// > EditorUI::onCreate @ 0x1003e6c68\n// > EditorUI::doPasteObjects @ 0x1003eec84\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::showMaxBasicError(EditorUI *a1)\n{\n  cocos2d::CCString *v2; // x0\n  char *CString; // x0\n  FLAlertLayer *v4; // x19\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v6; // [xsp+2Fh] [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 max limit of <cg>%i</c> objects. You can increase it to <cy>%i</c>,\"\n                                \" but your level may become unstable on some devices, so it is recommended to stay below \"\n                                \"this limit. Levels with object count above this limit will display a <co>warning</c> whe\"\n                                \"n played online.\",\n                                40000,\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)\"Increase\",\n           380.0);\n    if ( v6 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v4->setTag)(v4, 125);\n    ((void (__fastcall *)(FLAlertLayer *))v4->show)(v4);\n  }\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x1003eb124 to 0x1003eb1e8 (196 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDuplicate @ 0x1003e471c\n; > EditorUI::onCreate @ 0x1003e6c68\n; > EditorUI::doPasteObjects @ 0x1003eec84\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, #0x50                                          ; +0x0, 0x1003eb124\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1003eb128\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1003eb12c\nADD             X29, SP, #0x40                                         ; +0xc, 0x1003eb130\nLDRB            W8, [X0,#0x250]                                        ; +0x10, 0x1003eb134\nTBNZ            W8, #0, loc_1003EB1D8                                  ; +0x14, 0x1003eb138\nMOV             X19, X0                                                ; +0x18, 0x1003eb13c\nMOV             W8, #1                                                 ; +0x1c, 0x1003eb140\nSTRB            W8, [X0,#0x250]                                        ; +0x20, 0x1003eb144\nMOV             W8, #0x13880                                           ; +0x24, 0x1003eb148\nMOV             W9, #0x9C40                                            ; +0x2c, 0x1003eb150\nSTP             X9, X8, [SP,#0x40+var_40]                              ; +0x30, 0x1003eb154\nADRL            X0, aYouHaveReached_0; \"You have reached the max limit of <cg>%\"... ; +0x34, 0x1003eb158\nBL              sub_100268F4C                                          ; +0x3c, 0x1003eb160\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x1003eb164\nMOV             X1, X0; __s                                            ; +0x44, 0x1003eb168\nADD             X0, SP, #0x40+__p; int                                 ; +0x48, 0x1003eb16c\nBL              sub_100009900                                          ; +0x4c, 0x1003eb170\nADRL            X1, aMaxObjects; \"Max Objects\"                         ; +0x50, 0x1003eb174\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x58, 0x1003eb17c\nADRL            X4, aIncrease; \"Increase\"                              ; +0x60, 0x1003eb184\nMOV             W8, #0x43BE0000                                        ; +0x68, 0x1003eb18c\nFMOV            S0, W8                                                 ; +0x6c, 0x1003eb190\nADD             X0, X19, #0x198                                        ; +0x70, 0x1003eb194\nADD             X2, SP, #0x40+__p                                      ; +0x74, 0x1003eb198\nBL              FLAlertLayer__create_1                                 ; +0x78, 0x1003eb19c\nMOV             X19, X0                                                ; +0x7c, 0x1003eb1a0\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x80, 0x1003eb1a4\nTBZ             W8, #0x1F, loc_1003EB1B4                               ; +0x84, 0x1003eb1a8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x88, 0x1003eb1ac\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1003eb1b0\nLDR             X8, [X19]                                              ; +0x90, 0x1003eb1b4\nLDR             X8, [X8,#0x48]                                         ; +0x94, 0x1003eb1b8\nMOV             X0, X19                                                ; +0x98, 0x1003eb1bc\nMOV             W1, #0x7D ; '}'                                        ; +0x9c, 0x1003eb1c0\nBLR             X8                                                     ; +0xa0, 0x1003eb1c4\nLDR             X8, [X19]                                              ; +0xa4, 0x1003eb1c8\nLDR             X8, [X8,#0x508]                                        ; +0xa8, 0x1003eb1cc\nMOV             X0, X19                                                ; +0xac, 0x1003eb1d0\nBLR             X8                                                     ; +0xb0, 0x1003eb1d4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xb4, 0x1003eb1d8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb8, 0x1003eb1dc\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xbc, 0x1003eb1e0\nRET                                                                    ; +0xc0, 0x1003eb1e4", "xrefs": ["EditorUI::onDuplicate @ 0x1003e471c", "EditorUI::onCreate @ 0x1003e6c68", "EditorUI::doPasteObjects @ 0x1003eec84"], "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"}