//
// TextAlertPopup::replaceIn from 0xa205fc to 0xa206a4 (168 bytes)
//
// 3 xrefs:
// > EditorUI::showTextAlert @ 0xbd6fb4
// > GJKeybindManager::handleGlobalAudioAction @ 0xc09e08
// > ??> @ 0xea3a0
//
// This function is hookable on this platform (idp: arm, 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:59:39 +0000
//
_QWORD *__fastcall TextAlertPopup::replaceIn(__int64 a1, unsigned int a2, _QWORD *a3, unsigned int a4)
{
const void *v8; // x0
void *v9; // x1
if ( a1 && a3 )
{
v8 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 480LL))(a1);
if ( v8 )
{
v9 = _dynamic_cast(
v8,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'TextAlertPopup,
0);
if ( v9 )
{
TextAlertPopup::inheritOpacity(a3, (__int64)v9);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 568LL))(a1, a2, 1);
}
}
(*(void (__fastcall **)(__int64, _QWORD *, _QWORD, _QWORD))(*(_QWORD *)a1 + 472LL))(a1, a3, a4, a2);
}
return a3;
}