//
// sub_D18910 from 0xd18910 to 0xd1895c (76 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_D18910(
int **a1,
size_t a2,
unsigned __int64 a3,
__int64 *a4,
unsigned __int64 a5,
unsigned __int64 a6)
{
__int64 v6; // x3
unsigned __int64 v7; // x6
unsigned __int64 v8; // x6
int *v9; // x3
unsigned __int64 v10; // x4
v6 = *a4;
v7 = *(_QWORD *)(v6 - 24);
if ( a5 > v7 )
sub_D13C5C(
"%s: __pos (which is %zu) > this->size() (which is %zu)",
"basic_string::replace",
a5,
*(_QWORD *)(v6 - 24));
v8 = v7 - a5;
v9 = (int *)(v6 + a5);
if ( v8 > a6 )
v10 = a6;
else
v10 = v8;
return sub_D1861C(a1, a2, a3, v9, v10);
}