//
// sub_1004C70AC from 0x1004c70ac to 0x1004c70ec (64 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
//
char *__fastcall sub_1004C70AC(char *result, int a2)
{
__int64 v2; // x8
int v4; // w8
v2 = 0;
while ( result[v2++] )
;
if ( (_DWORD)v2 == 1 )
return nullptr;
v4 = 1 - v2;
while ( *result != a2 )
{
++result;
if ( __CFADD__(v4++, 1) )
return nullptr;
}
return result;
}