//
// tinyxml2::MemPoolT<88>::~MemPoolT<88> from 0x18009af80 to 0x18009affe (126 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x18009b208
// > sub_18009B4A0 @ 0x18009b4fe
// > sub_18009B4A0 @ 0x18009b4bc
// > ??> @ 0x180147fb8
// > ??> @ 0x180147fec
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0c78
//
// 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:11 +0000
//
void **__fastcall tinyxml2::MemPoolT<88>::~MemPoolT<88>(__int64 a1)
{
int v2; // edi
__int64 v3; // r14
void *v4; // rcx
v2 = 0;
*(_QWORD *)a1 = &tinyxml2::MemPoolT<88>::`vftable';
if ( *(int *)(a1 + 100) > 0 )
{
v3 = 0;
do
{
j_j_free_0(*(void **)(v3 + *(_QWORD *)(a1 + 8)));
++v2;
v3 += 8;
}
while ( v2 < *(_DWORD *)(a1 + 100) );
}
v4 = *(void **)(a1 + 8);
if ( v4 != (void *)(a1 + 16) )
j_j_free_0(v4);
*(_QWORD *)a1 = &tinyxml2::MemPool::`vftable';
return &tinyxml2::MemPool::`vftable';
}