//
// sub_1004C7328 from 0x1004c7328 to 0x1004c7358 (48 bytes)
//
// 21 xrefs:
// > sub_1004AB2B8 @ 0x1004ab9b0
// > sub_1004AB2B8 @ 0x1004aba1c
// > sub_1004AB2B8 @ 0x1004aba44
// > sub_1004AB2B8 @ 0x1004aba6c
// > sub_1004AB2B8 @ 0x1004aba94
// > sub_1004AB2B8 @ 0x1004ababc
// > sub_1004AB2B8 @ 0x1004abae4
// > sub_1004AB2B8 @ 0x1004abb0c
// > sub_1004AB2B8 @ 0x1004abb34
// > sub_1004AB2B8 @ 0x1004abb5c
// > sub_1004AB2B8 @ 0x1004abc94
// > sub_1004AB2B8 @ 0x1004abcbc
// > sub_1004AB2B8 @ 0x1004abce4
// > sub_1004AB2B8 @ 0x1004abd0c
// > sub_1004AB2B8 @ 0x1004abd34
// > sub_1004AB2B8 @ 0x1004abd5c
// > sub_1004AB2B8 @ 0x1004abd84
// > sub_1004AB2B8 @ 0x1004abdac
// > sub_1004AB2B8 @ 0x1004abdd4
// > sub_1004AB2B8 @ 0x1004abdfc
// > sub_1004AB2B8 @ 0x1004abe24
//
// 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
//
unsigned __int8 *__fastcall sub_1004C7328(unsigned __int8 *result)
{
unsigned int v1; // w10
bool v2; // cc
__int64 v3; // x10
while ( 1 )
{
v1 = *result;
v2 = v1 > 0x20;
v3 = (1LL << v1) & 0x100000600LL;
if ( v2 || v3 == 0 )
break;
++result;
}
return result;
}