//
// sub_9786B6 from 0x9786b6 to 0x9786e6 (48 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_9786B6(_DWORD *a1, int a2, int a3, unsigned int a4, int a5)
{
unsigned int v5; // r2
char *v6; // lr
v5 = a3 - a2;
if ( (*(_BYTE *)a1 & 1) != 0 )
v6 = (char *)a1[2];
else
v6 = (char *)a1 + 1;
return std::string::replace(a1, a2 - (_DWORD)v6, v5, a4, a5);
}