//
// std::_Deque_base>::~_Deque_base from 0x5def84 to 0x5defac (40 bytes)
//
// 2 xrefs:
// > cocos2d::CCDictMaker::~CCDictMaker @ 0x5defbc
// > cocos2d::CCDictMaker::CCDictMaker @ 0x5e040c
//
// 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
//
// Alternative name is '_ZNSt11_Deque_baseIN7cocos2d10CCSAXStateESaIS1_EED1Ev'
int __fastcall std::_Deque_base::~_Deque_base(int a1)
{
void **v2; // r5
unsigned int v3; // r6
void *v4; // r0
if ( *(_DWORD *)a1 )
{
v2 = *(void ***)(a1 + 20);
v3 = *(_DWORD *)(a1 + 36) + 4;
while ( (unsigned int)v2 < v3 )
{
v4 = *v2++;
operator delete(v4);
}
operator delete(*(void **)a1);
}
return a1;
}