//
// tinyxml2::XMLDocument::Identify from 0xd95f64 to 0xd96a04 (2720 bytes)
//
// 2 xrefs:
// > tinyxml2::XMLNode::ParseDeep @ 0xd98424
// > ??> @ 0xb7ce8
//
// 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:22 +0000
//
char *__fastcall tinyxml2::XMLDocument::Identify(tinyxml2::XMLDocument *this, char *a2, tinyxml2::XMLNode **a3)
{
int v5; // w19
char *v7; // x20
char *v8; // x0
int v9; // w1
int v10; // w0
tinyxml2::XMLDeclaration *v11; // x19
int v12; // w1
int v13; // w0
int v14; // w2
char *v15; // x20
int v17; // t1
tinyxml2::XMLElement *v18; // x19
int v19; // w1
int v20; // w0
int v21; // w2
char *v22; // x0
tinyxml2::XMLComment *v23; // x19
int v24; // w1
int v25; // w0
int v26; // w2
char *v27; // x0
__int64 v28; // x0
_QWORD *v29; // x19
int v30; // w2
int v31; // w1
int v32; // w2
char *v33; // x0
tinyxml2::XMLUnknown *v34; // x19
int v35; // w1
int v36; // w0
int v37; // w2
__int64 v38; // x0
_QWORD *v39; // x19
int v40; // w2
int v41; // w1
int v42; // w2
_QWORD *v43; // x24
int v44; // w1
int v45; // w0
void *v46; // x26
_QWORD *v47; // x24
int v48; // w1
int v49; // w0
void *v50; // x26
_QWORD *v51; // x21
int v52; // w0
int v53; // w1
__int64 v54; // x4
_QWORD *v55; // x20
int v56; // w0
int v57; // w1
__int64 v58; // x4
_QWORD *v59; // x24
int v60; // w1
int v61; // w0
void *v62; // x26
_QWORD *v63; // x24
int v64; // w1
int v65; // w0
void *v66; // x26
int v67; // w25
unsigned __int64 v68; // x0
char *v69; // x0
int v70; // w25
unsigned __int64 v71; // x0
char *v72; // x0
int v73; // w19
unsigned __int64 v74; // x0
char *v75; // x0
int v76; // w25
unsigned __int64 v77; // x0
char *v78; // x0
v5 = (unsigned __int8)*a2;
v7 = a2;
if ( (v5 & 0x80) != 0 )
goto LABEL_2;
while ( isspace(v5) )
{
v17 = (unsigned __int8)*++v7;
v5 = v17;
if ( (v17 & 0x80) != 0 )
goto LABEL_2;
}
if ( v5 )
{
LABEL_2:
v8 = "";
if ( v7 == "" )
{
LABEL_7:
v11 = *((tinyxml2::XMLDeclaration **)this + 77);
if ( !v11 )
{
v43 = (_QWORD *)operator new(0x3C8u);
memset(v43, 0, 0x3C8u);
v44 = *((_DWORD *)this + 153);
v45 = v44 + 1;
if ( v44 + 1 > *((_DWORD *)this + 152) )
{
v67 = 2 * v45;
v68 = 16LL * v45;
if ( (unsigned __int64)v67 > 0xFE0000000000000LL )
v68 = -1;
v46 = (void *)operator new[](v68);
memcpy(v46, *((const void **)this + 65), 8LL * *((int *)this + 153));
v69 = *((char **)this + 65);
if ( v69 != (char *)this + 528 && v69 )
operator delete[](v69);
*((_QWORD *)this + 65) = v46;
*((_DWORD *)this + 152) = v67;
v44 = *((_DWORD *)this + 153);
v45 = v44 + 1;
}
else
{
v46 = *((void **)this + 65);
}
*((_DWORD *)this + 153) = v45;
*((_QWORD *)v46 + v44) = v43;
*v43 = v43 + 11;
v43[22] = v43 + 33;
v43[11] = v43 + 22;
v43[44] = v43 + 55;
v43[55] = v43 + 66;
v43[33] = v43 + 44;
v43[66] = v43 + 77;
v11 = (tinyxml2::XMLDeclaration *)v43;
v43[77] = v43 + 88;
v43[88] = v43 + 99;
v43[99] = v43 + 110;
v43[110] = 0;
*((_QWORD *)this + 77) = v43;
}
v12 = *((_DWORD *)this + 158);
v13 = *((_DWORD *)this + 156) + 1;
*((_QWORD *)this + 77) = *(_QWORD *)v11;
*((_DWORD *)this + 156) = v13;
if ( v13 > v12 )
*((_DWORD *)this + 158) = v13;
v14 = *((_DWORD *)this + 159);
++*((_DWORD *)this + 157);
*((_DWORD *)this + 159) = v14 + 1;
v15 = v7 + 2;
tinyxml2::XMLDeclaration::XMLDeclaration(v11, this);
*((_QWORD *)v11 + 10) = (char *)this + 512;
*a3 = v11;
return v15;
}
v9 = (unsigned __int8)*v7;
if ( *v7 )
{
if ( v9 != 60 )
{
if ( v7 == "
GD Web Decomp