//
// TextAlertPopup::replaceIn from 0x5d4c98 to 0x5d4cf2 (90 bytes)
//
// 2 xrefs:
// > EditorUI::showTextAlert @ 0x6f1700
// > GJKeybindManager::handleGlobalAudioAction @ 0x71468a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:08 +0000
//
_DWORD *__fastcall TextAlertPopup::replaceIn(int a1, int a2, _DWORD *a3, int a4)
{
const void *v8; // r0
void *v9; // r1
if ( a1 && a3 )
{
v8 = (const void *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 240))(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, (int)v9);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 284))(a1, a2, 1);
}
}
(*(void (__fastcall **)(int, _DWORD *, int, int))(*(_DWORD *)a1 + 236))(a1, a3, a4, a2);
}
return a3;
}