{"type": "func", "start": 4301314400, "end": 4301314827, "name": "EditorUI::showTextAlert", "pseudocode": "// \n// EditorUI::showTextAlert from 0x10060d960 to 0x10060db0b (427 bytes)\n// \n// 21 xrefs:\n// > EditorUI::showGridSizeAlert @ 0x10000e45b\n// > EditorUI::createGradientFromSelection @ 0x10001734e\n// > EditorUI::createGradientFromSelection @ 0x10001783d\n// > sub_1000D5190 @ 0x1000d538d\n// > sub_1000D5780 @ 0x1000d5a58\n// > EditorUI::findObject @ 0x1005b99b2\n// > EditorUI::handleEditorAction @ 0x10060bede\n// > EditorUI::handleEditorAction @ 0x10060bf8f\n// > EditorUI::handleEditorAction @ 0x10060c30a\n// > EditorUI::handleEditorAction @ 0x10060c4f5\n// > EditorUI::handleEditorAction @ 0x10060c80a\n// > EditorUI::handleEditorAction @ 0x10060c90f\n// > EditorUI::handleEditorAction @ 0x10060c9a4\n// > EditorUI::handleEditorAction @ 0x10060ca9e\n// > EditorUI::handleEditorAction @ 0x10060cb1b\n// > EditorUI::handleEditorAction @ 0x10060cc13\n// > EditorUI::handleEditorAction @ 0x10060cfeb\n// > EditorUI::handleEditorAction @ 0x10060d05c\n// > EditorUI::handleEditorAction @ 0x10060d0ab\n// > EditorUI::showLockedLayerAlert @ 0x10060dc23\n// > EditorUI::toggleViewOption @ 0x10063e686\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 12:34:33 +0000\n// \n\n__int64 __fastcall EditorUI::showTextAlert(__int64 a1, std::string *a2, char a3, int a4, unsigned int a5)\n{\n  const std::string::value_type *v7; // rsi\n  const char *data; // r15\n  size_t v9; // rax\n  size_t v10; // r12\n  char *v11; // r13\n  size_t v12; // r14\n  char *v13; // r15\n  float v15; // [rsp+0h] [rbp-70h] BYREF\n  float v16; // [rsp+8h] [rbp-68h] BYREF\n  __int128 __dst; // [rsp+10h] [rbp-60h] BYREF\n  void *v18; // [rsp+20h] [rbp-50h]\n  __int128 v19; // [rsp+28h] [rbp-48h] BYREF\n  void *__p; // [rsp+38h] [rbp-38h]\n  unsigned int v21; // [rsp+44h] [rbp-2Ch]\n\n  if ( !a4 )\n  {\n    v7 = \"Off\";\n    if ( a3 )\n      v7 = \"On\";\n    std::string::append(a2, v7);\n  }\n  if ( (*(_BYTE *)&a2->__r_.__value_.__s.0 & 1) != 0 )\n    data = a2->__r_.__value_.__l.__data_;\n  else\n    data = a2->__r_.__value_.__s.__data_;\n  v9 = strlen(data);\n  if ( v9 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v10 = v9;\n  v21 = a5;\n  if ( v9 >= 0x17 )\n  {\n    v12 = 26;\n    if ( (v9 | 7) != 0x17 )\n      v12 = (v9 | 7) + 1;\n    v11 = (char *)operator new(v12);\n    v18 = v11;\n    *(_QWORD *)&__dst = v12 + 1;\n    *((_QWORD *)&__dst + 1) = v10;\n    goto LABEL_15;\n  }\n  LOBYTE(__dst) = 2 * v9;\n  v11 = (char *)&__dst + 1;\n  if ( v9 )\nLABEL_15:\n    memmove(v11, data, v10);\n  v11[v10] = 0;\n  LOBYTE(v19) = 24;\n  strcpy((char *)&v19 + 1, \"chatFont.fnt\");\n  v13 = TextAlertPopup::create(&__dst, 0x64u, &v19, 0.60000002, 0.60000002);\n  if ( (v19 & 1) != 0 )\n    operator delete(__p);\n  if ( (__dst & 1) != 0 )\n    operator delete(v18);\n  TextAlertPopup::setLabelColor((__int64)v13, 65280);\n  sub_100278250(&v15, 0.0, 1.0);\n  sub_100278250(&v16, 20.0, -20.0);\n  TextAlertPopup::setAlertPosition((__int64)v13, &v15, &v16);\n  if ( v21 )\n    return TextAlertPopup::replaceIn(a1, v21, (__int64)v13, 0x64u);\n  else\n    return (*(__int64 (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 100);\n}", "assembly": "; \n; EditorUI::showTextAlert from 0x10060d960 to 0x10060db0b (427 bytes)\n; \n; 21 xrefs:\n; > EditorUI::showGridSizeAlert @ 0x10000e45b\n; > EditorUI::createGradientFromSelection @ 0x10001734e\n; > EditorUI::createGradientFromSelection @ 0x10001783d\n; > sub_1000D5190 @ 0x1000d538d\n; > sub_1000D5780 @ 0x1000d5a58\n; > EditorUI::findObject @ 0x1005b99b2\n; > EditorUI::handleEditorAction @ 0x10060bede\n; > EditorUI::handleEditorAction @ 0x10060bf8f\n; > EditorUI::handleEditorAction @ 0x10060c30a\n; > EditorUI::handleEditorAction @ 0x10060c4f5\n; > EditorUI::handleEditorAction @ 0x10060c80a\n; > EditorUI::handleEditorAction @ 0x10060c90f\n; > EditorUI::handleEditorAction @ 0x10060c9a4\n; > EditorUI::handleEditorAction @ 0x10060ca9e\n; > EditorUI::handleEditorAction @ 0x10060cb1b\n; > EditorUI::handleEditorAction @ 0x10060cc13\n; > EditorUI::handleEditorAction @ 0x10060cfeb\n; > EditorUI::handleEditorAction @ 0x10060d05c\n; > EditorUI::handleEditorAction @ 0x10060d0ab\n; > EditorUI::showLockedLayerAlert @ 0x10060dc23\n; > EditorUI::toggleViewOption @ 0x10063e686\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 12:34:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10060d960\nmov     rbp, rsp                                                       ; +0x1, 0x10060d961\npush    r15                                                            ; +0x4, 0x10060d964\npush    r14                                                            ; +0x6, 0x10060d966\npush    r13                                                            ; +0x8, 0x10060d968\npush    r12                                                            ; +0xa, 0x10060d96a\npush    rbx                                                            ; +0xc, 0x10060d96c\nsub     rsp, 48h                                                       ; +0xd, 0x10060d96d\nmov     r14d, r8d                                                      ; +0x11, 0x10060d971\nmov     r15, rsi                                                       ; +0x14, 0x10060d974\nmov     rbx, rdi                                                       ; +0x17, 0x10060d977\ntest    ecx, ecx                                                       ; +0x1a, 0x10060d97a\njnz     short loc_10060D99A                                            ; +0x1c, 0x10060d97c\nlea     rax, aOn; \"On\"                                                 ; +0x1e, 0x10060d97e\nlea     rsi, aOff; \"Off\"                                               ; +0x25, 0x10060d985\ntest    dl, dl                                                         ; +0x2c, 0x10060d98c\ncmovnz  rsi, rax; __s                                                  ; +0x2e, 0x10060d98e\nmov     rdi, r15; this                                                 ; +0x32, 0x10060d992\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x35, 0x10060d995\ntest    byte ptr [r15], 1                                              ; +0x3a, 0x10060d99a\njnz     short loc_10060D9A5                                            ; +0x3e, 0x10060d99e\ninc     r15                                                            ; +0x40, 0x10060d9a0\njmp     short loc_10060D9A9                                            ; +0x43, 0x10060d9a3\nmov     r15, [r15+10h]                                                 ; +0x45, 0x10060d9a5\nmov     rdi, r15; __s                                                  ; +0x49, 0x10060d9a9\ncall    _strlen                                                        ; +0x4c, 0x10060d9ac\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x51, 0x10060d9b1\njnb     loc_10060DB06                                                  ; +0x55, 0x10060d9b5\nmov     r12, rax                                                       ; +0x5b, 0x10060d9bb\ncmp     rax, 17h                                                       ; +0x5e, 0x10060d9be\nmov     [rbp+var_2C], r14d                                             ; +0x62, 0x10060d9c2\njnb     short loc_10060D9DA                                            ; +0x66, 0x10060d9c6\nlea     eax, [r12+r12]                                                 ; +0x68, 0x10060d9c8\nmov     byte ptr [rbp+__dst], al                                       ; +0x6c, 0x10060d9cc\nlea     r13, [rbp+__dst+1]                                             ; +0x6f, 0x10060d9cf\ntest    r12, r12                                                       ; +0x73, 0x10060d9d3\njnz     short loc_10060DA0D                                            ; +0x76, 0x10060d9d6\njmp     short loc_10060DA1B                                            ; +0x78, 0x10060d9d8\nmov     rax, r12                                                       ; +0x7a, 0x10060d9da\nor      rax, 7                                                         ; +0x7d, 0x10060d9dd\nlea     rcx, [rax+1]                                                   ; +0x81, 0x10060d9e1\ncmp     rax, 17h                                                       ; +0x85, 0x10060d9e5\nmov     r14d, 1Ah                                                      ; +0x89, 0x10060d9e9\ncmovnz  r14, rcx                                                       ; +0x8f, 0x10060d9ef\nmov     rdi, r14; __sz                                                 ; +0x93, 0x10060d9f3\ncall    __Znwm; operator new(ulong)                                    ; +0x96, 0x10060d9f6\nmov     r13, rax                                                       ; +0x9b, 0x10060d9fb\nmov     [rbp+var_50], rax                                              ; +0x9e, 0x10060d9fe\ninc     r14                                                            ; +0xa2, 0x10060da02\nmov     [rbp+__dst], r14                                               ; +0xa5, 0x10060da05\nmov     [rbp+var_58], r12                                              ; +0xa9, 0x10060da09\nmov     rdi, r13; __dst                                                ; +0xad, 0x10060da0d\nmov     rsi, r15; __src                                                ; +0xb0, 0x10060da10\nmov     rdx, r12; __len                                                ; +0xb3, 0x10060da13\ncall    _memmove                                                       ; +0xb6, 0x10060da16\nmov     byte ptr [r13+r12+0], 0                                        ; +0xbb, 0x10060da1b\nmov     [rbp+var_48], 18h                                              ; +0xc1, 0x10060da21\nmov     rax, 746E6F4674616863h                                         ; +0xc5, 0x10060da25\nmov     [rbp+var_47], rax                                              ; +0xcf, 0x10060da2f\nmov     dword ptr [rbp-3Fh], 746E662Eh                                 ; +0xd3, 0x10060da33\nmov     byte ptr [rbp-3Bh], 0                                          ; +0xda, 0x10060da3a\nlea     rdi, [rbp+__dst]                                               ; +0xde, 0x10060da3e\nmovss   xmm0, cs:dword_100A037D4                                       ; +0xe2, 0x10060da42\nlea     rdx, [rbp+var_48]                                              ; +0xea, 0x10060da4a\nmovaps  xmm1, xmm0                                                     ; +0xee, 0x10060da4e\nmov     esi, 64h ; 'd'                                                 ; +0xf1, 0x10060da51\ncall    TextAlertPopup__create                                         ; +0xf6, 0x10060da56\nmov     r15, rax                                                       ; +0xfb, 0x10060da5b\ntest    [rbp+var_48], 1                                                ; +0xfe, 0x10060da5e\njz      short loc_10060DA6D                                            ; +0x102, 0x10060da62\nmov     rdi, [rbp+__p]; __p                                            ; +0x104, 0x10060da64\ncall    __ZdlPv; operator delete(void *)                               ; +0x108, 0x10060da68\ntest    byte ptr [rbp+__dst], 1                                        ; +0x10d, 0x10060da6d\njz      short loc_10060DA7C                                            ; +0x111, 0x10060da71\nmov     rdi, [rbp+var_50]; __p                                         ; +0x113, 0x10060da73\ncall    __ZdlPv; operator delete(void *)                               ; +0x117, 0x10060da77\nmov     rdi, r15                                                       ; +0x11c, 0x10060da7c\nmov     esi, 0FF00h                                                    ; +0x11f, 0x10060da7f\ncall    TextAlertPopup__setLabelColor                                  ; +0x124, 0x10060da84\nlea     r14, [rbp+var_70]                                              ; +0x129, 0x10060da89\nmovss   xmm1, cs:alpha                                                 ; +0x12d, 0x10060da8d\nxorps   xmm0, xmm0                                                     ; +0x135, 0x10060da95\nmov     rdi, r14                                                       ; +0x138, 0x10060da98\ncall    sub_100278250                                                  ; +0x13b, 0x10060da9b\nlea     r12, [rbp+var_68]                                              ; +0x140, 0x10060daa0\nmovss   xmm0, cs:dword_100A0359C                                       ; +0x144, 0x10060daa4\nmovss   xmm1, cs:dword_100A03598                                       ; +0x14c, 0x10060daac\nmov     rdi, r12                                                       ; +0x154, 0x10060dab4\ncall    sub_100278250                                                  ; +0x157, 0x10060dab7\nmov     rdi, r15                                                       ; +0x15c, 0x10060dabc\nmov     rsi, r14                                                       ; +0x15f, 0x10060dabf\nmov     rdx, r12                                                       ; +0x162, 0x10060dac2\ncall    TextAlertPopup__setAlertPosition                               ; +0x165, 0x10060dac5\nmov     esi, [rbp+var_2C]                                              ; +0x16a, 0x10060daca\ntest    esi, esi                                                       ; +0x16d, 0x10060dacd\njz      short loc_10060DAE3                                            ; +0x16f, 0x10060dacf\nmov     rdi, rbx                                                       ; +0x171, 0x10060dad1\nmov     rdx, r15                                                       ; +0x174, 0x10060dad4\nmov     ecx, 64h ; 'd'                                                 ; +0x177, 0x10060dad7\ncall    TextAlertPopup__replaceIn                                      ; +0x17c, 0x10060dadc\njmp     short loc_10060DAF7                                            ; +0x181, 0x10060dae1\nmov     rax, [rbx]                                                     ; +0x183, 0x10060dae3\nmov     rdi, rbx                                                       ; +0x186, 0x10060dae6\nmov     rsi, r15                                                       ; +0x189, 0x10060dae9\nmov     edx, 64h ; 'd'                                                 ; +0x18c, 0x10060daec\ncall    qword ptr [rax+1D0h]                                           ; +0x191, 0x10060daf1\nadd     rsp, 48h                                                       ; +0x197, 0x10060daf7\npop     rbx                                                            ; +0x19b, 0x10060dafb\npop     r12                                                            ; +0x19c, 0x10060dafc\npop     r13                                                            ; +0x19e, 0x10060dafe\npop     r14                                                            ; +0x1a0, 0x10060db00\npop     r15                                                            ; +0x1a2, 0x10060db02\npop     rbp                                                            ; +0x1a4, 0x10060db04\nretn                                                                   ; +0x1a5, 0x10060db05\ncall    sub_100003630                                                  ; +0x1a6, 0x10060db06", "xrefs": ["EditorUI::showGridSizeAlert @ 0x10000e45b", "EditorUI::createGradientFromSelection @ 0x10001734e", "EditorUI::createGradientFromSelection @ 0x10001783d", "sub_1000D5190 @ 0x1000d538d", "sub_1000D5780 @ 0x1000d5a58", "EditorUI::findObject @ 0x1005b99b2", "EditorUI::handleEditorAction @ 0x10060bede", "EditorUI::handleEditorAction @ 0x10060bf8f", "EditorUI::handleEditorAction @ 0x10060c30a", "EditorUI::handleEditorAction @ 0x10060c4f5", "EditorUI::handleEditorAction @ 0x10060c80a", "EditorUI::handleEditorAction @ 0x10060c90f", "EditorUI::handleEditorAction @ 0x10060c9a4", "EditorUI::handleEditorAction @ 0x10060ca9e", "EditorUI::handleEditorAction @ 0x10060cb1b", "EditorUI::handleEditorAction @ 0x10060cc13", "EditorUI::handleEditorAction @ 0x10060cfeb", "EditorUI::handleEditorAction @ 0x10060d05c", "EditorUI::handleEditorAction @ 0x10060d0ab", "EditorUI::showLockedLayerAlert @ 0x10060dc23", "EditorUI::toggleViewOption @ 0x10063e686"], "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"}