//
// cocos2d::extension::CCHttpResponse::~CCHttpResponse from 0xaab0fc to 0xaab1e0 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0x90a08
// > ??> @ 0x11fada0
//
// 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
//
void __fastcall cocos2d::extension::CCHttpResponse::~CCHttpResponse(cocos2d::extension::CCHttpResponse *this)
{
cocos2d::extension::CCHttpRequest *pHttpRequest; // x0
stl::StringData::Internal *m_data; // x2
char *v4; // x0
unsigned __int8 *m_start; // x0
unsigned __int8 *v6; // x0
unsigned int *v7; // x2
int v8; // w1
pHttpRequest = this->_pHttpRequest;
this->__vftable = (cocos2d::extension::CCHttpResponse_vtbl *)&off_11FAD90;
if ( pHttpRequest )
cocos2d::CCObject::release(pHttpRequest);
m_data = this->_errorBuffer.m_data.m_data;
v4 = (char *)m_data - 24;
if ( (__int64 *)((char *)m_data - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)((char *)m_data - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *((_DWORD *)m_data - 2);
*((_DWORD *)m_data - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v4);
}
m_start = this->_responseHeader.m_start;
if ( m_start )
operator delete(m_start);
v6 = this->_responseData.m_start;
if ( v6 )
operator delete(v6);
cocos2d::CCObject::~CCObject(this);
operator delete(this);
}