//
// sub_1004C7814 from 0x1004c7814 to 0x1004c788c (120 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
//
_WORD *__fastcall sub_1004C7814(unsigned __int16 *a1)
{
unsigned __int16 *v1; // x19
int v2; // w8
unsigned __int16 *v3; // x9
int v4; // t1
_WORD *result; // x0
_WORD *v6; // x8
int v7; // t1
v1 = a1;
v2 = -2;
v3 = a1;
do
{
v4 = *v3++;
v2 += 2;
}
while ( v4 );
result = sub_1004B11FC(
*((__int64 **)off_1008524C8 + 54),
(v2 & 0xFFFFFFFE) + 2,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_stringw.cpp",
202,
0,
0);
if ( result )
{
v6 = result;
do
{
v7 = *v1++;
*v6++ = v7;
}
while ( v7 );
}
return result;
}