//
// tinyxml2::XMLComment::ShallowEqual from 0x18009cb30 to 0x18009cbd2 (162 bytes)
//
// 3 xrefs:
// > ??> @ 0x180104800
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b72c0
//
// 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
//
bool __fastcall tinyxml2::XMLComment::ShallowEqual(tinyxml2::XMLComment *this, const struct tinyxml2::XMLNode *a2)
{
const char *Str; // rbx
__int64 v5; // rax
const char *v6; // rax
int v7; // edx
char v8; // cl
bool v9; // zf
if ( !(*(__int64 (__fastcall **)(const struct tinyxml2::XMLNode *))(*(_QWORD *)a2 + 32LL))(a2) )
return 0;
Str = tinyxml2::StrPair::GetStr((tinyxml2::XMLComment *)((char *)this + 24));
v5 = (*(__int64 (__fastcall **)(const struct tinyxml2::XMLNode *))(*(_QWORD *)a2 + 32LL))(a2);
v6 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v5 + 24));
v7 = 0;
if ( v6 == Str )
return 1;
v8 = *v6;
if ( *v6 )
{
do
{
if ( !*Str || v8 != *Str )
break;
v9 = v7 == 0x7FFFFFFF;
if ( v7 == 0x7FFFFFFF )
goto LABEL_9;
v8 = *++v6;
++Str;
++v7;
}
while ( v8 );
v9 = v7 == 0x7FFFFFFF;
LABEL_9:
if ( v9 )
return 1;
}
return !*v6 && !*Str;
}