//
// std::deque>::~deque from 0x5dedd4 to 0x5dedfc (40 bytes)
//
// 2 xrefs:
// > cocos2d::CCDictMaker::~CCDictMaker @ 0x5defc4
// > cocos2d::CCDictMaker::CCDictMaker @ 0x5e0396
//
// 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 '_ZNSt5dequeIPN7cocos2d7CCArrayESaIS2_EED1Ev'
int __fastcall std::deque::~deque(int a1)
{
void **v2; // r4
unsigned int v3; // r6
void *v4; // r0
v2 = *(void ***)(a1 + 20);
if ( *(_DWORD *)a1 )
{
v3 = *(_DWORD *)(a1 + 36) + 4;
while ( (unsigned int)v2 < v3 )
{
v4 = *v2++;
operator delete(v4);
}
operator delete(*(void **)a1);
}
return a1;
}