//
// sub_10064EE10 from 0x10064ee10 to 0x10064ef39 (297 bytes)
//
// 2 xrefs:
// > sub_10064CF70 @ 0x10064d06f
// > sub_10064F220 @ 0x10064f700
//
// 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_10064EE10(_BYTE *a1, __int64 a2)
{
__int64 v2; // rsi
__int64 i; // rax
__int64 result; // rax
__int64 v5; // rsi
__int64 k; // rax
__int64 v7; // rsi
__int64 j; // rax
__int64 v9; // rsi
__int64 m; // rax
switch ( *a1 )
{
case 'c':
v2 = a2 - (_QWORD)a1;
if ( v2 )
{
for ( i = 0; i != v2; ++i )
{
if ( aComment[i] != a1[i] )
goto LABEL_25;
}
}
if ( aComment[v2] )
goto LABEL_25;
result = 3;
break;
case 'n':
v7 = a2 - (_QWORD)a1;
if ( v7 )
{
for ( j = 0; j != v7; ++j )
{
if ( aNode[j] != a1[j] )
goto LABEL_25;
}
}
if ( aNode[v7] )
goto LABEL_25;
result = 2;
break;
case 'p':
v5 = a2 - (_QWORD)a1;
if ( v5 )
{
for ( k = 0; k != v5; ++k )
{
if ( aProcessingInst[k] != a1[k] )
goto LABEL_25;
}
}
if ( aProcessingInst[v5] )
goto LABEL_25;
result = 4;
break;
case 't':
v9 = a2 - (_QWORD)a1;
if ( v9 )
{
for ( m = 0; m != v9; ++m )
{
if ( aText_0[m] != a1[m] )
goto LABEL_25;
}
}
if ( aText_0[v9] )
goto LABEL_25;
result = 5;
break;
default:
LABEL_25:
result = 0;
break;
}
return result;
}