//
// tinyxml2::MemPoolT<96>::~MemPoolT<96> from 0x18009b000 to 0x18009b07e (126 bytes)
//
// 7 xrefs:
// > tinyxml2::XMLDocument::~XMLDocument @ 0x18009b214
// > sub_18009B530 @ 0x18009b58e
// > sub_18009B530 @ 0x18009b54c
// > ??> @ 0x180147f48
// > ??> @ 0x180147f7c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c0cb4
//
// 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<96>::~MemPoolT<96>(__int64 a1)
{
int v2; // edi
__int64 v3; // r14
void *v4; // rcx
v2 = 0;
*(_QWORD *)a1 = &tinyxml2::MemPoolT<96>::`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';
}