//
// sub_7759F0 from 0x7759f0 to 0x775a48 (88 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_7759F0(_DWORD *a1, int a2, _BYTE *a3, int a4)
{
int v7; // r7
int *result; // r0
v7 = a2 - *a1;
if ( (unsigned int)a3 > 1073741820 - *(_DWORD *)(*a1 - 12) )
sub_7731C4("basic_string::_M_replace_aux");
result = sub_77500C(a1, a2 - *a1, nullptr, a3);
if ( a3 )
{
result = (int *)(*a1 + v7);
if ( a3 == (_BYTE *)&dword_0 + 1 )
*(_BYTE *)(*a1 + v7) = a4;
else
return (int *)sub_8E41C0(result, a4, (size_t)a3);
}
return result;
}