//
// tinyxml2::XMLDeclaration::ShallowEqual from 0xb23d20 to 0xb23e4c (300 bytes)
//
// 2 xrefs:
// > ??> @ 0x523e0
// > ??> @ 0x12196b8
//
// 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::XMLDeclaration::ShallowEqual(tinyxml2::XMLDeclaration *this, const tinyxml2::XMLNode *a2)
{
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x2
int *v6; // x3
_BYTE *Str; // x19
__int64 v8; // x1
__int64 v9; // x2
int *v10; // x3
_BYTE *v11; // x0
_BOOL4 v12; // w7
_BYTE *v13; // x2
_BYTE *v14; // x5
_BOOL4 v15; // w1
int v16; // w1
int v17; // t1
int v18; // w6
if ( (*(__int64 (__fastcall **)(const tinyxml2::XMLNode *))(*(_QWORD *)a2 + 80LL))(a2) )
{
v3 = (*(__int64 (__fastcall **)(const tinyxml2::XMLNode *))(*(_QWORD *)a2 + 80LL))(a2);
Str = (_BYTE *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v3 + 24), v4, v5, v6);
v11 = (_BYTE *)tinyxml2::StrPair::GetStr((tinyxml2::XMLDeclaration *)((char *)this + 24), v8, v9, v10);
if ( Str == v11 )
return 1;
if ( !*Str )
{
v13 = v11;
return *v13 == 0;
}
v12 = *v11 != 0 && *Str == *v11;
if ( *v11 != 0 && *Str == *v11 )
{
v13 = v11;
v14 = Str + 0x7FFFFFFF;
while ( 1 )
{
v17 = (unsigned __int8)*++Str;
v16 = v17;
v18 = (_DWORD)++v13 - (_DWORD)v11;
if ( !v17 )
break;
v15 = *v13 != 0 && v16 == (unsigned __int8)*v13;
if ( !v15 )
return v18 == 0x7FFFFFFF && v12;
if ( Str == v14 )
return v15;
}
v15 = v12;
if ( v18 == 0x7FFFFFFF )
return v15;
return *v13 == 0;
}
}
return 0;
}