//
// TextAlertPopup::replaceIn from 0x10029c480 to 0x10029c584 (260 bytes)
//
// 2 xrefs:
// > EditorUI::showTextAlert @ 0x10060dadc
// > GJKeybindManager::handleGlobalAudioAction @ 0x100615919
//
// 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 12:27:53 +0000
//
__int64 __fastcall TextAlertPopup::replaceIn(__int64 a1, unsigned int a2, __int64 a3, unsigned int a4)
{
const void *v7; // rax
_QWORD *v8; // rax
__int64 v9; // r13
__int64 v10; // rdi
unsigned __int8 v11; // al
__int64 v12; // r13
__int64 v13; // rdi
unsigned __int8 v14; // al
_QWORD *v16; // [rsp+0h] [rbp-30h]
if ( a1 != 0 && a3 != 0 )
{
v7 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);
if ( v7 )
{
v8 = __dynamic_cast(
v7,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'TextAlertPopup,
0);
if ( v8 )
{
v9 = *(_QWORD *)(a3 + 328);
if ( v9 )
{
v10 = v8[41];
if ( v10 )
{
v16 = v8;
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1008LL))(v10);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1024LL))(v9, v11);
v8 = v16;
}
}
v12 = *(_QWORD *)(a3 + 336);
if ( v12 )
{
v13 = v8[42];
if ( v13 )
{
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 896LL))(v13);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 912LL))(v12, v14);
}
}
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 568LL))(a1, a2, 1);
}
}
(*(void (__fastcall **)(__int64, __int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 472LL))(a1, a3, a4, a2);
}
return a3;
}