{"type": "func", "start": 4299648752, "end": 4299648948, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x100476ef0 to 0x100476fb4 (196 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onDuplicate @ 0x100189ba4\n// > EditorUI::doPasteObjects @ 0x10018aba4\n// > EditorUI::onCreate @ 0x1004745bc\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 11:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::showMaxBasicError(__int64 result)\n{\n  __int64 v1; // x19\n  void *v2; // x0\n  char *CString; // x0\n  void *v4; // x19\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v6; // [xsp+2Fh] [xbp-11h]\n\n  if ( (*(_BYTE *)(result + 632) & 1) == 0 )\n  {\n    v1 = result;\n    *(_BYTE *)(result + 632) = 1;\n    v2 = sub_1003065B0(\n           \"You have reached the max limit of <cg>%i</c> objects. You can increase it to <cy>%i</c>, but your level may b\"\n           \"ecome unstable on some devices, so it is recommended to stay below this limit. Levels with object count above\"\n           \" this limit will display a <co>warning</c> when played online.\",\n           40000,\n           80000);\n    CString = (char *)cocos2d::CCString::getCString((__int64)v2);\n    sub_100009900(__p, CString);\n    v4 = FLAlertLayer::create_1(\n           v1 + 408,\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 **)(void *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 125);\n    return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v4 + 1312LL))(v4);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x100476ef0 to 0x100476fb4 (196 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onDuplicate @ 0x100189ba4\n; > EditorUI::doPasteObjects @ 0x10018aba4\n; > EditorUI::onCreate @ 0x1004745bc\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 11:05:41 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100476ef0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100476ef4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x100476ef8\nADD             X29, SP, #0x40                                         ; +0xc, 0x100476efc\nLDRB            W8, [X0,#0x278]                                        ; +0x10, 0x100476f00\nTBNZ            W8, #0, loc_100476FA4                                  ; +0x14, 0x100476f04\nMOV             X19, X0                                                ; +0x18, 0x100476f08\nMOV             W8, #1                                                 ; +0x1c, 0x100476f0c\nSTRB            W8, [X0,#0x278]                                        ; +0x20, 0x100476f10\nMOV             W8, #0x13880                                           ; +0x24, 0x100476f14\nMOV             W9, #0x9C40                                            ; +0x2c, 0x100476f1c\nSTP             X9, X8, [SP,#0x40+var_40]                              ; +0x30, 0x100476f20\nADRL            X0, aYouHaveReached_0; \"You have reached the max limit of <cg>%\"... ; +0x34, 0x100476f24\nBL              sub_1003065B0                                          ; +0x3c, 0x100476f2c\nBL              cocos2d__CCString__getCString                          ; +0x40, 0x100476f30\nMOV             X1, X0; __s                                            ; +0x44, 0x100476f34\nADD             X0, SP, #0x40+__p; int                                 ; +0x48, 0x100476f38\nBL              sub_100009900                                          ; +0x4c, 0x100476f3c\nADRL            X1, aMaxObjects; \"Max Objects\"                         ; +0x50, 0x100476f40\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x58, 0x100476f48\nADRL            X4, aIncrease; \"Increase\"                              ; +0x60, 0x100476f50\nMOV             W8, #0x43BE0000                                        ; +0x68, 0x100476f58\nFMOV            S0, W8                                                 ; +0x6c, 0x100476f5c\nADD             X0, X19, #0x198                                        ; +0x70, 0x100476f60\nADD             X2, SP, #0x40+__p                                      ; +0x74, 0x100476f64\nBL              FLAlertLayer__create_1                                 ; +0x78, 0x100476f68\nMOV             X19, X0                                                ; +0x7c, 0x100476f6c\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x80, 0x100476f70\nTBZ             W8, #0x1F, loc_100476F80                               ; +0x84, 0x100476f74\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x88, 0x100476f78\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x100476f7c\nLDR             X8, [X19]                                              ; +0x90, 0x100476f80\nLDR             X8, [X8,#0x48]                                         ; +0x94, 0x100476f84\nMOV             X0, X19                                                ; +0x98, 0x100476f88\nMOV             W1, #0x7D ; '}'                                        ; +0x9c, 0x100476f8c\nBLR             X8                                                     ; +0xa0, 0x100476f90\nLDR             X8, [X19]                                              ; +0xa4, 0x100476f94\nLDR             X8, [X8,#0x520]                                        ; +0xa8, 0x100476f98\nMOV             X0, X19                                                ; +0xac, 0x100476f9c\nBLR             X8                                                     ; +0xb0, 0x100476fa0\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xb4, 0x100476fa4\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb8, 0x100476fa8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xbc, 0x100476fac\nRET                                                                    ; +0xc0, 0x100476fb0", "xrefs": ["EditorUI::onDuplicate @ 0x100189ba4", "EditorUI::doPasteObjects @ 0x10018aba4", "EditorUI::onCreate @ 0x1004745bc"], "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"}