//
// tinyxml2::MemPoolT<72>::~MemPoolT from 0xb22a9c to 0xb22b20 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x3fe28
// > ??> @ 0x12193b8
//
// 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(_DWORD *p)
{
int v2; // w1
__int64 v3; // x20
int v4; // w19
void *v5; // x0
_DWORD *v6; // x0
v2 = p[25];
v3 = 0;
v4 = 0;
*(_QWORD *)p = &off_12193B0;
if ( v2 > 0 )
{
do
{
++v4;
v5 = *(void **)(*((_QWORD *)p + 1) + v3);
v3 += 8;
operator delete(v5);
}
while ( v4 < p[25] );
}
v6 = *((_DWORD **)p + 1);
if ( v6 != p + 4 && v6 )
operator delete[](v6);
operator delete(p);
}