//
// tinyxml2::MemPoolT<104>::~MemPoolT<104> from 0x180097730 to 0x1800977ae (126 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x1800978dc
// > sub_180097C70 @ 0x180097cce
// > sub_180097C70 @ 0x180097c8c
// > ??> @ 0x18013eb0c
// > ??> @ 0x18013eb40
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b6a50
//
// 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
//
void __fastcall tinyxml2::MemPoolT<104>::~MemPoolT<104>(_QWORD *a1)
{
int v2; // edi
__int64 v3; // rbp
_QWORD *v4; // rcx
v2 = 0;
*a1 = &tinyxml2::MemPoolT<104>::`vftable';
if ( *((int *)a1 + 25) > 0 )
{
v3 = 0;
do
{
j_j_free_0(*(void **)(a1[1] + v3));
++v2;
v3 += 8;
}
while ( v2 < *((_DWORD *)a1 + 25) );
}
v4 = (_QWORD *)a1[1];
if ( v4 != a1 + 2 )
j_j_free_0(v4);
*a1 = &tinyxml2::MemPool::`vftable';
}