//
// sub_100726E50 from 0x100726e50 to 0x100726ed0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b99d18
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:36:17 +0000
//
unsigned __int8 *__fastcall sub_100726E50(unsigned __int8 *a1)
{
unsigned __int8 *v1; // rdx
unsigned __int8 *result; // rax
__int64 v3; // rsi
unsigned __int8 *v4; // rsi
unsigned __int8 *v5; // rdx
_BYTE *v6; // rsi
unsigned __int8 *v7; // rdx
v1 = a1;
while ( 1 )
{
do
{
result = v1;
v3 = *v1++;
}
while ( (a7_0[v3] & 1) == 0 );
if ( (_DWORD)v3 == 60 )
break;
if ( !(_DWORD)v3 )
{
v4 = result;
do
{
v5 = v4;
if ( v4 <= a1 )
break;
--v4;
}
while ( (a7_0[*(v5 - 1)] & 8) != 0 );
*v5 = 0;
return result;
}
}
v6 = result + 1;
do
{
v7 = result;
if ( result <= a1 )
break;
--result;
}
while ( (a7_0[*(v7 - 1)] & 8) != 0 );
*v7 = 0;
return v6;
}