//
// tinyxml2::MemPoolT<72>::~MemPoolT<72> from 0x1800975b0 to 0x18009762e (126 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x1800978d0
// > sub_180097AC0 @ 0x180097b1e
// > sub_180097AC0 @ 0x180097adc
// > ??> @ 0x18013ebec
// > ??> @ 0x18013ec20
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b699c
//
// 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<72>::~MemPoolT<72>(_QWORD *a1)
{
int v2; // edi
__int64 v3; // rbp
_QWORD *v4; // rcx
v2 = 0;
*a1 = &tinyxml2::MemPoolT<72>::`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';
}