//
// tinyxml2::XMLElement::ShallowEqual from 0x1800a0920 to 0x1800a0a5e (318 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010b040
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1578
//
// 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
//
char __fastcall tinyxml2::XMLElement::ShallowEqual(tinyxml2::XMLElement *this, const struct tinyxml2::XMLNode *a2)
{
__int64 v3; // rdi
const char *Str; // rbx
const char *v5; // rax
int v6; // ecx
char v7; // dl
bool v8; // zf
__int64 v9; // rsi
__int64 v10; // rdi
const char *v11; // rbx
const char *v12; // rax
int v13; // ecx
char v14; // dl
bool v15; // zf
v3 = (**(__int64 (__fastcall ***)(const struct tinyxml2::XMLNode *))a2)(a2);
if ( v3 )
{
Str = tinyxml2::StrPair::GetStr((tinyxml2::XMLElement *)((char *)this + 24));
v5 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v3 + 24));
v6 = 0;
if ( v5 == Str )
goto LABEL_12;
v7 = *v5;
if ( *v5 )
{
do
{
if ( !*Str || v7 != *Str )
break;
v8 = v6 == 0x7FFFFFFF;
if ( v6 == 0x7FFFFFFF )
goto LABEL_9;
v7 = *++v5;
++Str;
++v6;
}
while ( v7 );
v8 = v6 == 0x7FFFFFFF;
LABEL_9:
if ( v8 )
goto LABEL_12;
}
if ( !*v5 && !*Str )
{
LABEL_12:
v9 = *((_QWORD *)this + 12);
v10 = *(_QWORD *)(v3 + 96);
if ( v9 )
{
while ( v10 )
{
v11 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v10 + 32));
v12 = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v9 + 32));
v13 = 0;
if ( v12 != v11 )
{
v14 = *v12;
if ( !*v12 )
goto LABEL_30;
do
{
if ( !*v11 || v14 != *v11 )
break;
v15 = v13 == 0x7FFFFFFF;
if ( v13 == 0x7FFFFFFF )
goto LABEL_21;
v14 = *++v12;
++v11;
++v13;
}
while ( v14 );
v15 = v13 == 0x7FFFFFFF;
LABEL_21:
if ( !v15 )
{
LABEL_30:
if ( *v12 || *v11 )
break;
}
}
v9 = *(_QWORD *)(v9 + 56);
v10 = *(_QWORD *)(v10 + 56);
if ( !v9 )
goto LABEL_25;
}
}
else
{
LABEL_25:
if ( !v10 )
return 1;
}
}
}
return 0;
}