//
// tinyxml2::XMLText::ShallowEqual from 0xd94670 to 0xd9479c (300 bytes)
//
// 2 xrefs:
// > ??> @ 0xb7aa8
// > ??> @ 0x152f3d8
//
// This function is hookable on this platform (idp: arm, 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 13:08:20 +0000
//
bool __fastcall tinyxml2::XMLText::ShallowEqual(tinyxml2::XMLText *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 + 56LL))(a2) )
{
v3 = (*(__int64 (__fastcall **)(const tinyxml2::XMLNode *))(*(_QWORD *)a2 + 56LL))(a2);
Str = (_BYTE *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v3 + 24), v4, v5, v6);
v11 = (_BYTE *)tinyxml2::StrPair::GetStr((tinyxml2::XMLText *)((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;
}