//
// sub_777FE4 from 0x777fe4 to 0x778020 (60 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_777FE4(wchar_t *a1, int a2, int a3)
{
int v5; // r4
wchar_t v6; // r3
v5 = a2 - *a1;
if ( *(_DWORD *)(*a1 - 12) == 268435454 )
sub_7731C4("basic_string::_M_replace_aux");
sub_7777D0(a1, v5 >> 2, 0, 1);
v6 = *a1;
*(_DWORD *)(v6 + v5) = a3;
*(_DWORD *)(v6 - 4) = -1;
return v6 + v5;
}