//
// tinyxml2::MemPoolT<36>::~MemPoolT from 0x7f8358 to 0x7f8392 (58 bytes)
//
// 2 xrefs:
// > tinyxml2::MemPoolT<36>::~MemPoolT @ 0x7f839c
// > tinyxml2::XMLDocument::~XMLDocument @ 0x7f8e4e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:11 +0000
//
// Alternative name is '_ZN8tinyxml28MemPoolTILi36EED1Ev'
_DWORD *__fastcall tinyxml2::MemPoolT<36>::~MemPoolT(_DWORD *a1)
{
int v2; // r5
void *v3; // r0
_DWORD *v4; // r0
v2 = 0;
*a1 = &off_D116C0;
while ( v2 < a1[13] )
{
v3 = *(void **)(a1[1] + 4 * v2++);
operator delete(v3);
}
v4 = (_DWORD *)a1[1];
if ( v4 != a1 + 2 && v4 )
operator delete[](v4);
return a1;
}