//
// sub_10072BA40 from 0x10072ba40 to 0x10072bb69 (297 bytes)
//
// 2 xrefs:
// > sub_100729BA0 @ 0x100729c9f
// > sub_10072BE50 @ 0x10072c330
//
// 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:19 +0000
//
__int64 __fastcall sub_10072BA40(_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;
}