//
// sub_10064A220 from 0x10064a220 to 0x10064a2a0 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x100985f88
//
// 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_10064A220(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;
}