//
// EditorUI::showTextAlert from 0x1401c1ed0 to 0x1401c20b6 (486 bytes)
//
// 13 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
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:03 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall EditorUI::showTextAlert(__int64 a1, _QWORD *a2, char a3, char a4, unsigned int a5)
{
size_t v8; // r8
__int16 *v9; // rdx
_BYTE *v10; // rdx
size_t v11; // r8
__int64 v12; // rdx
__int64 v13; // r8
__int64 v14; // rbp
__int64 v15; // r9
__int64 v16; // rax
__int64 v17; // rbx
__int64 v18; // rax
__int16 v19; // [rsp+30h] [rbp-88h] BYREF
char v20; // [rsp+32h] [rbp-86h]
_QWORD *v21; // [rsp+40h] [rbp-78h] BYREF
_BYTE v22[8]; // [rsp+48h] [rbp-70h] BYREF
_QWORD v23[4]; // [rsp+50h] [rbp-68h] BYREF
__int128 v24; // [rsp+70h] [rbp-48h] BYREF
__int64 v25; // [rsp+80h] [rbp-38h]
__int64 v26; // [rsp+88h] [rbp-30h]
_QWORD *v27; // [rsp+90h] [rbp-28h]
v27 = a2;
if ( !a4 )
{
if ( a3 )
{
v8 = 2;
v9 = &word_1407521B4;
}
else
{
v8 = 3;
v9 = (__int16 *)&dword_1407521B0;
}
sub_140044D80(a2, v9, v8);
}
v21 = v23;
v23[2] = 12;
v23[3] = 15;
v23[0] = *(_QWORD *)"chatFont.fnt";
v23[1] = *(unsigned int *)".fnt";
v10 = a2;
if ( a2[3] > 0xFu )
v10 = (_BYTE *)*a2;
v24 = 0;
v25 = 0;
v26 = 0;
v11 = -1;
do
++v11;
while ( v10[v11] );
sub_14003D230(&v24, v10, v11);
v14 = TextAlertPopup::create(&v24, v12, v13, 100, v23);
v19 = -256;
v20 = 0;
v15 = *(_QWORD *)(v14 + 328);
if ( v15 )
(**(void (__fastcall ***)(__int64, __int16 *))(v15 + 368))(v15 + 368, &v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 20.0, -20.0);
v17 = v16;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, 1.0);
TextAlertPopup::setAlertPosition(v14, v18, v17);
if ( a5 )
TextAlertPopup::replaceIn(a1, a5, v14, 100);
else
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v14, 100);
sub_14003D310((__int64)a2);
}