{"type": "func", "start": 5369834304, "end": 5369834609, "name": "EditorUI::showMaxBasicError", "pseudocode": "// \n// EditorUI::showMaxBasicError from 0x140112b40 to 0x140112c71 (305 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onCreate @ 0x14010f479\n// > EditorUI::onDuplicate @ 0x140112d31\n// > EditorUI::doPasteObjects @ 0x140113400\n// > <???> @ 0x1406c906c\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\n// Hidden C++ exception states: #wind=1\nvoid EditorUI::showMaxBasicError(EditorUI *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  FLAlertLayer *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 ( !a1->m_alertShown )\n  {\n    a1->m_alertShown = 1;\n    v2 = cocos2d::CCString::createWithFormat(\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    v3 = (_DWORD)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_14003A930(&v8, CString, v5);\n    v6 = sub_14003BDB0((__int64)v11, (__int64)&v8);\n    v7 = FLAlertLayer::create(\n           v3,\n           (int)\"Max Objects\",\n           v6,\n           (__int64)\"Cancel\",\n           (__int64)\"Increase\",\n           1136525312,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v8);\n    v7->setTag(v7, 125);\n    v7->show(v7);\n  }\n}", "assembly": "; \n; EditorUI::showMaxBasicError from 0x140112b40 to 0x140112c71 (305 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onCreate @ 0x14010f479\n; > EditorUI::onDuplicate @ 0x140112d31\n; > EditorUI::doPasteObjects @ 0x140113400\n; > <???> @ 0x1406c906c\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140112b40\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140112b45\npush    rdi                                                            ; +0xa, 0x140112b4a\nsub     rsp, 90h                                                       ; +0xb, 0x140112b4b\nmov     rbx, rcx                                                       ; +0x12, 0x140112b52\ncmp     byte ptr [rcx+268h], 0                                         ; +0x15, 0x140112b55\njnz     loc_140112C5C                                                  ; +0x1c, 0x140112b5c\nmov     byte ptr [rcx+268h], 1                                         ; +0x22, 0x140112b62\nmov     edx, 9C40h                                                     ; +0x29, 0x140112b69\nmov     r8d, 13880h                                                    ; +0x2e, 0x140112b6e\nlea     rcx, aYouHaveReached_0; \"You have reached the max limit of <cg>%\"... ; +0x34, 0x140112b74\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x3b, 0x140112b7b\nlea     rdi, [rbx+198h]                                                ; +0x41, 0x140112b81\nxor     esi, esi                                                       ; +0x48, 0x140112b88\ntest    rbx, rbx                                                       ; +0x4a, 0x140112b8a\ncmovz   rdi, rsi                                                       ; +0x4d, 0x140112b8d\nmov     rcx, rax                                                       ; +0x51, 0x140112b91\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x54, 0x140112b94\nxorps   xmm0, xmm0                                                     ; +0x5a, 0x140112b9a\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x5d, 0x140112b9d\nmov     [rsp+98h+var_38], rsi                                          ; +0x62, 0x140112ba2\nmov     [rsp+98h+var_30], rsi                                          ; +0x67, 0x140112ba7\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x6c, 0x140112bac\ninc     r8                                                             ; +0x73, 0x140112bb3\ncmp     [rax+r8], sil                                                  ; +0x76, 0x140112bb6\njnz     short loc_140112BB3                                            ; +0x7a, 0x140112bba\nmov     rdx, rax                                                       ; +0x7c, 0x140112bbc\nlea     rcx, [rsp+98h+var_48]                                          ; +0x7f, 0x140112bbf\ncall    sub_14003A930                                                  ; +0x84, 0x140112bc4\nlea     rax, [rsp+98h+var_48]                                          ; +0x89, 0x140112bc9\nmov     [rsp+98h+arg_0], rax                                           ; +0x8e, 0x140112bce\nlea     rdx, [rsp+98h+var_48]                                          ; +0x96, 0x140112bd6\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9b, 0x140112bdb\ncall    sub_14003BDB0                                                  ; +0xa0, 0x140112be0\nmovss   xmm0, cs:flt_140622C24                                         ; +0xa5, 0x140112be5\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xad, 0x140112bed\nxorps   xmm1, xmm1                                                     ; +0xb3, 0x140112bf3\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb6, 0x140112bf6\nmov     [rsp+98h+var_68], 0                                            ; +0xbc, 0x140112bfc\nmovss   xmm0, cs:dword_140623478                                       ; +0xc1, 0x140112c01\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc9, 0x140112c09\nlea     rcx, aIncrease; \"Increase\"                                     ; +0xcf, 0x140112c0f\nmov     [rsp+98h+var_78], rcx                                          ; +0xd6, 0x140112c16\nlea     r9, aCancel; \"Cancel\"                                          ; +0xdb, 0x140112c1b\nmov     r8, rax                                                        ; +0xe2, 0x140112c22\nlea     rdx, aMaxObjects; \"Max Objects\"                                ; +0xe5, 0x140112c25\nmov     rcx, rdi                                                       ; +0xec, 0x140112c2c\ncall    FLAlertLayer__create                                           ; +0xef, 0x140112c2f\nmov     rbx, rax                                                       ; +0xf4, 0x140112c34\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf7, 0x140112c37\ncall    sub_14003A830                                                  ; +0xfc, 0x140112c3c\nmov     r8, [rbx]                                                      ; +0x101, 0x140112c41\nmov     edx, 7Dh ; '}'                                                 ; +0x104, 0x140112c44\nmov     rcx, rbx                                                       ; +0x109, 0x140112c49\ncall    qword ptr [r8+40h]                                             ; +0x10c, 0x140112c4c\nmov     rdx, [rbx]                                                     ; +0x110, 0x140112c50\nmov     rcx, rbx                                                       ; +0x113, 0x140112c53\ncall    qword ptr [rdx+410h]                                           ; +0x116, 0x140112c56\nlea     r11, [rsp+98h+var_8]                                           ; +0x11c, 0x140112c5c\nmov     rbx, [r11+20h]                                                 ; +0x124, 0x140112c64\nmov     rsi, [r11+28h]                                                 ; +0x128, 0x140112c68\nmov     rsp, r11                                                       ; +0x12c, 0x140112c6c\npop     rdi                                                            ; +0x12f, 0x140112c6f\nretn                                                                   ; +0x130, 0x140112c70", "xrefs": ["EditorUI::onCreate @ 0x14010f479", "EditorUI::onDuplicate @ 0x140112d31", "EditorUI::doPasteObjects @ 0x140113400", "<???> @ 0x1406c906c"], "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"}