//
// sub_978678 from 0x978678 to 0x9786b6 (62 bytes)
//
// 0 xrefs:
//
// 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 12:06:00 +0000
//
_DWORD *__fastcall sub_978678(_DWORD *a1, int a2, int a3, char *a4)
{
char *v8; // r9
size_t v9; // r0
if ( (*(_BYTE *)a1 & 1) != 0 )
v8 = (char *)a1[2];
else
v8 = (char *)a1 + 1;
v9 = strlen(a4);
return std::string::replace(a1, a2 - (_DWORD)v8, a3 - a2, a4, v9);
}