{"type": "func", "start": 5370499280, "end": 5370499588, "name": "EditorUI::showMaxError", "pseudocode": "// \n// EditorUI::showMaxError from 0x1401b50d0 to 0x1401b5204 (308 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onCreate @ 0x1401b250e\n// > EditorUI::onDuplicate @ 0x1401c55ba\n// > EditorUI::doPasteObjects @ 0x1401c5f45\n// > LevelEditorLayer::createObjectsFromString @ 0x1403f074d\n// > <???> @ 0x14091a174\n// \n// This function is hookable on this platform (idp: pc, 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:27:57 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorUI::showMaxError(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  int v3; // edi\n  const char *CString; // rax\n  size_t v5; // r8\n  __int64 v6; // rax\n  cocos2d::CCObject *v7; // rbx\n  __int128 v8; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v9; // [rsp+60h] [rbp-38h]\n  __int64 v10; // [rsp+68h] [rbp-30h]\n  _BYTE v11[32]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 680) )\n  {\n    *(_BYTE *)(a1 + 680) = 1;\n    v2 = cocos2d::CCString::createWithFormat(\n           \"You have reached the upper max limit of <cg>%i</c> objects. This limit can be removed completely, but it is <\"\n           \"cr>not</c> recommended. Levels with object count above this limit will display a <co>warning</c> when played \"\n           \"online.\\n\"\n           \"<cy>Unoptimized levels that use too many objects have a lower chance of being rated and featured.</c>\",\n           80000);\n    v3 = a1 + 408;\n    if ( !a1 )\n      v3 = 0;\n    CString = cocos2d::CCString::getCString(v2);\n    v8 = 0;\n    v9 = 0;\n    v10 = 0;\n    v5 = -1;\n    do\n      ++v5;\n    while ( CString[v5] );\n    sub_14003D230(&v8, CString, v5);\n    v6 = sub_14003F4F0((__int64)v11, (__int64)&v8);\n    v7 = FLAlertLayer::create(\n           v3,\n           (int)\"Max Objects\",\n           v6,\n           (__int64)\"Cancel\",\n           (__int64)\"Unlimited\",\n           1136525312,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v8);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 64LL))(v7, 126);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);\n  }\n}", "assembly": "; \n; EditorUI::showMaxError from 0x1401b50d0 to 0x1401b5204 (308 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onCreate @ 0x1401b250e\n; > EditorUI::onDuplicate @ 0x1401c55ba\n; > EditorUI::doPasteObjects @ 0x1401c5f45\n; > LevelEditorLayer::createObjectsFromString @ 0x1403f074d\n; > <???> @ 0x14091a174\n; \n; This function is hookable on this platform (idp: pc, 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:27:57 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401b50d0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1401b50d5\npush    rdi                                                            ; +0xa, 0x1401b50da\nsub     rsp, 90h                                                       ; +0xb, 0x1401b50db\nmov     rbx, rcx                                                       ; +0x12, 0x1401b50e2\ncmp     byte ptr [rcx+2A8h], 0                                         ; +0x15, 0x1401b50e5\njnz     loc_1401B51EF                                                  ; +0x1c, 0x1401b50ec\nmov     byte ptr [rcx+2A8h], 1                                         ; +0x22, 0x1401b50f2\nmov     edx, 13880h                                                    ; +0x29, 0x1401b50f9\nlea     rcx, aYouHaveReached; \"You have reached the upper max limit of\"... ; +0x2e, 0x1401b50fe\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x35, 0x1401b5105\nlea     rdi, [rbx+198h]                                                ; +0x3b, 0x1401b510b\nxor     esi, esi                                                       ; +0x42, 0x1401b5112\ntest    rbx, rbx                                                       ; +0x44, 0x1401b5114\ncmovz   rdi, rsi                                                       ; +0x47, 0x1401b5117\nmov     rcx, rax                                                       ; +0x4b, 0x1401b511b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4e, 0x1401b511e\nxorps   xmm0, xmm0                                                     ; +0x54, 0x1401b5124\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x57, 0x1401b5127\nmov     [rsp+98h+var_38], rsi                                          ; +0x5c, 0x1401b512c\nmov     [rsp+98h+var_30], rsi                                          ; +0x61, 0x1401b5131\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x66, 0x1401b5136\nnop     dword ptr [rax]                                                ; +0x6d, 0x1401b513d\ninc     r8                                                             ; +0x70, 0x1401b5140\ncmp     [rax+r8], sil                                                  ; +0x73, 0x1401b5143\njnz     short loc_1401B5140                                            ; +0x77, 0x1401b5147\nmov     rdx, rax                                                       ; +0x79, 0x1401b5149\nlea     rcx, [rsp+98h+var_48]                                          ; +0x7c, 0x1401b514c\ncall    sub_14003D230                                                  ; +0x81, 0x1401b5151\nlea     rax, [rsp+98h+var_48]                                          ; +0x86, 0x1401b5156\nmov     [rsp+98h+arg_0], rax                                           ; +0x8b, 0x1401b515b\nlea     rdx, [rsp+98h+var_48]                                          ; +0x93, 0x1401b5163\nlea     rcx, [rsp+98h+var_28]                                          ; +0x98, 0x1401b5168\ncall    sub_14003F4F0                                                  ; +0x9d, 0x1401b516d\nmovss   xmm0, cs:flt_140835080                                         ; +0xa2, 0x1401b5172\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xaa, 0x1401b517a\nxorps   xmm1, xmm1                                                     ; +0xb0, 0x1401b5180\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb3, 0x1401b5183\nmov     [rsp+98h+var_68], 0                                            ; +0xb9, 0x1401b5189\nmovss   xmm0, cs:dword_140835A04                                       ; +0xbe, 0x1401b518e\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc6, 0x1401b5196\nlea     rcx, aUnlimited; \"Unlimited\"                                   ; +0xcc, 0x1401b519c\nmov     [rsp+98h+var_78], rcx                                          ; +0xd3, 0x1401b51a3\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd8, 0x1401b51a8\nmov     r8, rax                                                        ; +0xdf, 0x1401b51af\nlea     rdx, aMaxObjects; \"Max Objects\"                                ; +0xe2, 0x1401b51b2\nmov     rcx, rdi                                                       ; +0xe9, 0x1401b51b9\ncall    FLAlertLayer__create                                           ; +0xec, 0x1401b51bc\nmov     rbx, rax                                                       ; +0xf1, 0x1401b51c1\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf4, 0x1401b51c4\ncall    sub_14003D310                                                  ; +0xf9, 0x1401b51c9\nmov     rcx, [rbx]                                                     ; +0xfe, 0x1401b51ce\nmov     r8, [rcx+40h]                                                  ; +0x101, 0x1401b51d1\nmov     edx, 7Eh ; '~'                                                 ; +0x105, 0x1401b51d5\nmov     rcx, rbx                                                       ; +0x10a, 0x1401b51da\ncall    r8                                                             ; +0x10d, 0x1401b51dd\nmov     rcx, [rbx]                                                     ; +0x110, 0x1401b51e0\nmov     rdx, [rcx+428h]                                                ; +0x113, 0x1401b51e3\nmov     rcx, rbx                                                       ; +0x11a, 0x1401b51ea\ncall    rdx                                                            ; +0x11d, 0x1401b51ed\nlea     r11, [rsp+98h+var_8]                                           ; +0x11f, 0x1401b51ef\nmov     rbx, [r11+20h]                                                 ; +0x127, 0x1401b51f7\nmov     rsi, [r11+28h]                                                 ; +0x12b, 0x1401b51fb\nmov     rsp, r11                                                       ; +0x12f, 0x1401b51ff\npop     rdi                                                            ; +0x132, 0x1401b5202\nretn                                                                   ; +0x133, 0x1401b5203", "xrefs": ["EditorUI::onCreate @ 0x1401b250e", "EditorUI::onDuplicate @ 0x1401c55ba", "EditorUI::doPasteObjects @ 0x1401c5f45", "LevelEditorLayer::createObjectsFromString @ 0x1403f074d", "<???> @ 0x14091a174"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}