//
// cocos2d::extension::WebSocket::~WebSocket from 0x7b2ec8 to 0x7b2f1e (86 bytes)
//
// 1 xrefs:
// > cocos2d::extension::WebSocket::~WebSocket @ 0x7b2f28
//
// 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:00:08 +0000
//
// Alternative name is '_ZN7cocos2d9extension9WebSocketD1Ev'
void __fastcall cocos2d::extension::WebSocket::~WebSocket(cocos2d::CCObject **this)
{
cocos2d::CCObject *v2; // r0
int i; // r5
char *v4; // r0
void *v5; // r0
*this = (cocos2d::CCObject *)&off_D021E8;
cocos2d::extension::WebSocket::close(this);
v2 = *(this + 9);
if ( v2 )
{
cocos2d::CCObject::release(v2);
*(this + 9) = nullptr;
}
for ( i = 0; ; i += 24 )
{
v4 = (char *)*(this + 14);
if ( !*(_DWORD *)&v4[i + 4] )
break;
v5 = *(void **)&v4[i];
if ( v5 )
{
operator delete[](v5);
*(_DWORD *)((char *)*(this + 14) + i) = 0;
}
}
if ( v4 )
{
operator delete[](v4);
*(this + 14) = nullptr;
}
std::string::~string((int)(this + 6));
std::string::~string((int)(this + 2));
}