{"type": "func", "start": 5370552016, "end": 5370552502, "name": "EditorUI::showTextAlert", "pseudocode": "// \n// EditorUI::showTextAlert from 0x1401c1ed0 to 0x1401c20b6 (486 bytes)\n// \n// 13 xrefs:\n// > EditorUI::createGradientFromSelection @ 0x1401b9b2d\n// > EditorUI::createGradientFromSelection @ 0x1401b9e9a\n// > EditorUI::showLockedLayerAlert @ 0x1401c21ef\n// > EditorUI::handleEditorAction @ 0x1401c2b41\n// > EditorUI::handleEditorAction @ 0x1401c2f28\n// > EditorUI::handleEditorAction @ 0x1401c4350\n// > EditorUI::handleEditorAction @ 0x1401c459e\n// > EditorUI::handleEditorAction @ 0x1401c46bd\n// > EditorUI::findObject @ 0x1401c9348\n// > EditorUI::toggleViewOption @ 0x1401f85bb\n// > LevelEditorLayer::doAutoSave @ 0x1404092d2\n// > LevelEditorLayer::doAutoBackup @ 0x14040978b\n// > <???> @ 0x14091a6d8\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:28:03 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall EditorUI::showTextAlert(__int64 a1, _QWORD *a2, char a3, char a4, unsigned int a5)\n{\n  size_t v8; // r8\n  __int16 *v9; // rdx\n  _BYTE *v10; // rdx\n  size_t v11; // r8\n  __int64 v12; // rdx\n  __int64 v13; // r8\n  __int64 v14; // rbp\n  __int64 v15; // r9\n  __int64 v16; // rax\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  __int16 v19; // [rsp+30h] [rbp-88h] BYREF\n  char v20; // [rsp+32h] [rbp-86h]\n  _QWORD *v21; // [rsp+40h] [rbp-78h] BYREF\n  _BYTE v22[8]; // [rsp+48h] [rbp-70h] BYREF\n  _QWORD v23[4]; // [rsp+50h] [rbp-68h] BYREF\n  __int128 v24; // [rsp+70h] [rbp-48h] BYREF\n  __int64 v25; // [rsp+80h] [rbp-38h]\n  __int64 v26; // [rsp+88h] [rbp-30h]\n  _QWORD *v27; // [rsp+90h] [rbp-28h]\n\n  v27 = a2;\n  if ( !a4 )\n  {\n    if ( a3 )\n    {\n      v8 = 2;\n      v9 = &word_1407521B4;\n    }\n    else\n    {\n      v8 = 3;\n      v9 = (__int16 *)&dword_1407521B0;\n    }\n    sub_140044D80(a2, v9, v8);\n  }\n  v21 = v23;\n  v23[2] = 12;\n  v23[3] = 15;\n  v23[0] = *(_QWORD *)\"chatFont.fnt\";\n  v23[1] = *(unsigned int *)\".fnt\";\n  v10 = a2;\n  if ( a2[3] > 0xFu )\n    v10 = (_BYTE *)*a2;\n  v24 = 0;\n  v25 = 0;\n  v26 = 0;\n  v11 = -1;\n  do\n    ++v11;\n  while ( v10[v11] );\n  sub_14003D230(&v24, v10, v11);\n  v14 = TextAlertPopup::create(&v24, v12, v13, 100, v23);\n  v19 = -256;\n  v20 = 0;\n  v15 = *(_QWORD *)(v14 + 328);\n  if ( v15 )\n    (**(void (__fastcall ***)(__int64, __int16 *))(v15 + 368))(v15 + 368, &v19);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 20.0, -20.0);\n  v17 = v16;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, 1.0);\n  TextAlertPopup::setAlertPosition(v14, v18, v17);\n  if ( a5 )\n    TextAlertPopup::replaceIn(a1, a5, v14, 100);\n  else\n    (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v14, 100);\n  sub_14003D310((__int64)a2);\n}", "assembly": "; \n; EditorUI::showTextAlert from 0x1401c1ed0 to 0x1401c20b6 (486 bytes)\n; \n; 13 xrefs:\n; > EditorUI::createGradientFromSelection @ 0x1401b9b2d\n; > EditorUI::createGradientFromSelection @ 0x1401b9e9a\n; > EditorUI::showLockedLayerAlert @ 0x1401c21ef\n; > EditorUI::handleEditorAction @ 0x1401c2b41\n; > EditorUI::handleEditorAction @ 0x1401c2f28\n; > EditorUI::handleEditorAction @ 0x1401c4350\n; > EditorUI::handleEditorAction @ 0x1401c459e\n; > EditorUI::handleEditorAction @ 0x1401c46bd\n; > EditorUI::findObject @ 0x1401c9348\n; > EditorUI::toggleViewOption @ 0x1401f85bb\n; > LevelEditorLayer::doAutoSave @ 0x1404092d2\n; > LevelEditorLayer::doAutoBackup @ 0x14040978b\n; > <???> @ 0x14091a6d8\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:28:03 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1401c1ed0\npush    rbp                                                            ; +0x5, 0x1401c1ed5\npush    rsi                                                            ; +0x6, 0x1401c1ed6\npush    rdi                                                            ; +0x7, 0x1401c1ed7\nsub     rsp, 0A0h                                                      ; +0x8, 0x1401c1ed8\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1401c1edf\nxor     rax, rsp                                                       ; +0x16, 0x1401c1ee6\nmov     [rsp+0B8h+var_20], rax                                         ; +0x19, 0x1401c1ee9\nmov     rdi, rdx                                                       ; +0x21, 0x1401c1ef1\nmov     rsi, rcx                                                       ; +0x24, 0x1401c1ef4\nmov     [rsp+0B8h+var_28], rdx                                         ; +0x27, 0x1401c1ef7\ntest    r9b, r9b                                                       ; +0x2f, 0x1401c1eff\njnz     short loc_1401C1F2D                                            ; +0x32, 0x1401c1f02\nmov     rcx, rdx; Src                                                  ; +0x34, 0x1401c1f04\ntest    r8b, r8b                                                       ; +0x37, 0x1401c1f07\njz      short loc_1401C1F1B                                            ; +0x3a, 0x1401c1f0a\nmov     r8d, 2                                                         ; +0x3c, 0x1401c1f0c\nlea     rdx, word_1407521B4                                            ; +0x42, 0x1401c1f12\njmp     short loc_1401C1F28                                            ; +0x49, 0x1401c1f19\nmov     r8d, 3; Size                                                   ; +0x4b, 0x1401c1f1b\nlea     rdx, dword_1407521B0; void *                                   ; +0x51, 0x1401c1f21\ncall    sub_140044D80                                                  ; +0x58, 0x1401c1f28\nlea     rax, [rsp+0B8h+var_68]                                         ; +0x5d, 0x1401c1f2d\nmov     [rsp+0B8h+var_78], rax                                         ; +0x62, 0x1401c1f32\nxorps   xmm0, xmm0                                                     ; +0x67, 0x1401c1f37\nmovups  [rsp+0B8h+var_68], xmm0                                        ; +0x6a, 0x1401c1f3a\nmov     [rsp+0B8h+var_58], 0Ch                                         ; +0x6f, 0x1401c1f3f\nmov     [rsp+0B8h+var_50], 0Fh                                         ; +0x78, 0x1401c1f48\nmovsd   xmm0, qword ptr cs:aChatfontFnt; \"chatFont.fnt\"                ; +0x81, 0x1401c1f51\nmovsd   qword ptr [rsp+0B8h+var_68], xmm0                              ; +0x89, 0x1401c1f59\nmov     eax, dword ptr cs:aChatfontFnt+8; \".fnt\"                       ; +0x8f, 0x1401c1f5f\nmov     dword ptr [rsp+0B8h+var_68+8], eax                             ; +0x95, 0x1401c1f65\nmov     byte ptr [rsp+0B8h+var_68+0Ch], 0                              ; +0x99, 0x1401c1f69\nmov     rdx, rdi                                                       ; +0x9e, 0x1401c1f6e\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0xa1, 0x1401c1f71\njbe     short loc_1401C1F7B                                            ; +0xa6, 0x1401c1f76\nmov     rdx, [rdi]                                                     ; +0xa8, 0x1401c1f78\nxorps   xmm0, xmm0                                                     ; +0xab, 0x1401c1f7b\nmovups  [rsp+0B8h+var_48], xmm0                                        ; +0xae, 0x1401c1f7e\nxor     eax, eax                                                       ; +0xb3, 0x1401c1f83\nmov     [rsp+0B8h+var_38], rax                                         ; +0xb5, 0x1401c1f85\nmov     [rsp+0B8h+var_30], rax                                         ; +0xbd, 0x1401c1f8d\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0xc5, 0x1401c1f95\nnop     dword ptr [rax+00h]                                            ; +0xcc, 0x1401c1f9c\ninc     r8                                                             ; +0xd0, 0x1401c1fa0\ncmp     [rdx+r8], al                                                   ; +0xd3, 0x1401c1fa3\njnz     short loc_1401C1FA0                                            ; +0xd7, 0x1401c1fa7\nlea     rcx, [rsp+0B8h+var_48]                                         ; +0xd9, 0x1401c1fa9\ncall    sub_14003D230                                                  ; +0xde, 0x1401c1fae\nnop                                                                    ; +0xe3, 0x1401c1fb3\nlea     rax, [rsp+0B8h+var_68]                                         ; +0xe4, 0x1401c1fb4\nmov     [rsp+0B8h+var_98], rax                                         ; +0xe9, 0x1401c1fb9\nmov     r9d, 64h ; 'd'                                                 ; +0xee, 0x1401c1fbe\nmovss   xmm1, cs:dword_140834F64                                       ; +0xf4, 0x1401c1fc4\nmovaps  xmm2, xmm1                                                     ; +0xfc, 0x1401c1fcc\nlea     rcx, [rsp+0B8h+var_48]                                         ; +0xff, 0x1401c1fcf\ncall    TextAlertPopup__create                                         ; +0x104, 0x1401c1fd4\nmov     rbp, rax                                                       ; +0x109, 0x1401c1fd9\nmovzx   ecx, cs:word_1407032A0                                         ; +0x10c, 0x1401c1fdc\nmov     [rsp+0B8h+var_88], cx                                          ; +0x113, 0x1401c1fe3\nmovzx   ecx, cs:byte_1407032A2                                         ; +0x118, 0x1401c1fe8\nmov     [rsp+0B8h+var_86], cl                                          ; +0x11f, 0x1401c1fef\nmov     r9, [rax+148h]                                                 ; +0x123, 0x1401c1ff3\ntest    r9, r9                                                         ; +0x12a, 0x1401c1ffa\njz      short loc_1401C2018                                            ; +0x12d, 0x1401c1ffd\nmov     rcx, [r9+170h]                                                 ; +0x12f, 0x1401c1fff\nmov     r8, [rcx]                                                      ; +0x136, 0x1401c2006\nlea     rdx, [rsp+0B8h+var_88]                                         ; +0x139, 0x1401c2009\nlea     rcx, [r9+170h]                                                 ; +0x13e, 0x1401c200e\ncall    r8                                                             ; +0x145, 0x1401c2015\nmovss   xmm2, cs:dword_140835E48                                       ; +0x148, 0x1401c2018\nmovss   xmm1, cs:dword_1408355B4                                       ; +0x150, 0x1401c2020\nlea     rcx, [rsp+0B8h+var_70]                                         ; +0x158, 0x1401c2028\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x15d, 0x1401c202d\nmov     rbx, rax                                                       ; +0x163, 0x1401c2033\nmovss   xmm2, cs:flt_140835080                                         ; +0x166, 0x1401c2036\nxorps   xmm1, xmm1                                                     ; +0x16e, 0x1401c203e\nlea     rcx, [rsp+0B8h+var_78]                                         ; +0x171, 0x1401c2041\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x176, 0x1401c2046\nmov     rdx, rax                                                       ; +0x17c, 0x1401c204c\nmov     r8, rbx                                                        ; +0x17f, 0x1401c204f\nmov     rcx, rbp                                                       ; +0x182, 0x1401c2052\ncall    TextAlertPopup__setAlertPosition                               ; +0x185, 0x1401c2055\nmov     edx, [rsp+0B8h+arg_20]                                         ; +0x18a, 0x1401c205a\nmov     rcx, rsi                                                       ; +0x191, 0x1401c2061\ntest    edx, edx                                                       ; +0x194, 0x1401c2064\njz      short loc_1401C2078                                            ; +0x196, 0x1401c2066\nmov     r9d, 64h ; 'd'                                                 ; +0x198, 0x1401c2068\nmov     r8, rbp                                                        ; +0x19e, 0x1401c206e\ncall    TextAlertPopup__replaceIn                                      ; +0x1a1, 0x1401c2071\njmp     short loc_1401C208B                                            ; +0x1a6, 0x1401c2076\nmov     rax, [rsi]                                                     ; +0x1a8, 0x1401c2078\nmov     r8d, 64h ; 'd'                                                 ; +0x1ab, 0x1401c207b\nmov     rdx, rbp                                                       ; +0x1b1, 0x1401c2081\ncall    qword ptr [rax+1C8h]                                           ; +0x1b4, 0x1401c2084\nnop                                                                    ; +0x1ba, 0x1401c208a\nmov     rcx, rdi                                                       ; +0x1bb, 0x1401c208b\ncall    sub_14003D310                                                  ; +0x1be, 0x1401c208e\nmov     rcx, [rsp+0B8h+var_20]                                         ; +0x1c3, 0x1401c2093\nxor     rcx, rsp; StackCookie                                          ; +0x1cb, 0x1401c209b\ncall    __security_check_cookie                                        ; +0x1ce, 0x1401c209e\nmov     rbx, [rsp+0B8h+arg_10]                                         ; +0x1d3, 0x1401c20a3\nadd     rsp, 0A0h                                                      ; +0x1db, 0x1401c20ab\npop     rdi                                                            ; +0x1e2, 0x1401c20b2\npop     rsi                                                            ; +0x1e3, 0x1401c20b3\npop     rbp                                                            ; +0x1e4, 0x1401c20b4\nretn                                                                   ; +0x1e5, 0x1401c20b5", "xrefs": ["EditorUI::createGradientFromSelection @ 0x1401b9b2d", "EditorUI::createGradientFromSelection @ 0x1401b9e9a", "EditorUI::showLockedLayerAlert @ 0x1401c21ef", "EditorUI::handleEditorAction @ 0x1401c2b41", "EditorUI::handleEditorAction @ 0x1401c2f28", "EditorUI::handleEditorAction @ 0x1401c4350", "EditorUI::handleEditorAction @ 0x1401c459e", "EditorUI::handleEditorAction @ 0x1401c46bd", "EditorUI::findObject @ 0x1401c9348", "EditorUI::toggleViewOption @ 0x1401f85bb", "LevelEditorLayer::doAutoSave @ 0x1404092d2", "LevelEditorLayer::doAutoBackup @ 0x14040978b", "<???> @ 0x14091a6d8"], "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"}