//
// sub_1004C772C from 0x1004c772c to 0x1004c776c (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
//
__int16 *__fastcall sub_1004C772C(__int16 *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;
}