//
// tinyxml2::XMLDeclaration::ShallowEqual from 0x1800a0870 to 0x1800a0912 (162 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010af10
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c156c
//
// 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 11:22:13 +0000
//
bool __fastcall tinyxml2::XMLDeclaration::ShallowEqual(
tinyxml2::XMLDeclaration *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 + 64LL))(a2) )
return 0;
Str = tinyxml2::StrPair::GetStr((tinyxml2::XMLDeclaration *)((char *)this + 24));
v5 = (*(__int64 (__fastcall **)(const struct tinyxml2::XMLNode *))(*(_QWORD *)a2 + 64LL))(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;
}