//
// sub_B4CB2C from 0xb4cb2c to 0xb4cb6c (64 bytes)
//
// 2 xrefs:
// > sub_B57FA0 @ 0xb589f0
// > sub_B57FA0 @ 0xb58240
//
// 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
//
__int64 __fastcall sub_B4CB2C(__int64 a1, unsigned __int8 a2)
{
__int64 result; // x0
for ( result = a1 + 1; ; ++result )
{
if ( (byte_F1EC70[*(unsigned __int8 *)(result - 1)] & 2) != 0 )
{
if ( *(unsigned __int8 *)(result - 1) == a2 )
{
*(_BYTE *)(result - 1) = 0;
return result;
}
if ( !*(_BYTE *)(result - 1) )
break;
}
}
return 0;
}