//
// tinyxml2::MemPoolT<104>::~MemPoolT from 0xd931b4 to 0xd93240 (140 bytes)
//
// 3 xrefs:
// > ??> @ 0x81be0
// > ??> @ 0xab430
// > ??> @ 0x152f1d0
//
// This function is hookable on this platform (idp: arm, 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 13:08:20 +0000
//
// Alternative name is '_ZN8tinyxml28MemPoolTILi104EED1Ev'
void __fastcall tinyxml2::MemPoolT<104>::~MemPoolT(__int64 a1)
{
__int64 v2; // x20
int v3; // w19
int v4; // w1
void *v5; // x0
void *v6; // x0
v2 = 0;
v3 = 0;
v4 = *(_DWORD *)(a1 + 100);
*(_QWORD *)a1 = &off_152F1D0;
if ( v4 > 0 )
{
do
{
++v3;
v5 = *(void **)(*(_QWORD *)(a1 + 8) + v2);
v2 += 8;
operator delete(v5);
}
while ( *(_DWORD *)(a1 + 100) > v3 );
}
v6 = *(void **)(a1 + 8);
if ( v6 != (void *)(a1 + 16) )
{
if ( v6 )
operator delete[](v6);
}
}