//
// sub_B4D068 from 0xb4d068 to 0xb4d0ac (68 bytes)
//
// 2 xrefs:
// > sub_B57FA0 @ 0xb58318
// > sub_B57FA0 @ 0xb58268
//
// 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_B4D068(__int64 a1)
{
__int64 result; // x0
_BYTE *v2; // x3
for ( result = a1 + 1; ; ++result )
{
v2 = (_BYTE *)(result - 1);
if ( (byte_F1EC70[*(unsigned __int8 *)(result - 1)] & 1) != 0 )
{
if ( *(_BYTE *)(result - 1) == 60 )
{
*v2 = 0;
return result;
}
if ( !*(_BYTE *)(result - 1) )
break;
}
}
*v2 = 0;
return --result;
}