//
// cocos2d::extension::CCHttpRequest::~CCHttpRequest from 0x7feffc to 0x7ff0c0 (196 bytes)
//
// 2 xrefs:
// > ??> @ 0xcd888
// > ??> @ 0x143f170
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:54:42 +0000
//
void __fastcall cocos2d::extension::CCHttpRequest::~CCHttpRequest(cocos2d::extension::CCHttpRequest *this)
{
cocos2d::CCObject *v2; // x0
void **v3; // x20
void **v4; // x0
void *v5; // x0
v2 = *((cocos2d::CCObject **)this + 17);
*(_QWORD *)this = &off_143F160;
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((void ***)this + 21);
if ( v3 )
{
v4 = *((void ***)this + 22);
if ( v3 != v4 )
{
do
{
*((_QWORD *)this + 22) = v4 - 3;
if ( (*(_BYTE *)(v4 - 3) & 1) != 0 )
operator delete(*(v4 - 1));
v4 = *((void ***)this + 22);
}
while ( v3 != v4 );
v4 = *((void ***)this + 21);
}
operator delete(v4);
}
if ( (*((_BYTE *)this + 112) & 1) != 0 )
operator delete(*((void **)this + 16));
v5 = *((void **)this + 11);
if ( v5 )
{
if ( v5 != *((void **)this + 12) )
*((_QWORD *)this + 12) = v5;
operator delete(v5);
}
if ( (*((_BYTE *)this + 64) & 1) != 0 )
operator delete(*((void **)this + 10));
cocos2d::CCObject::~CCObject(this);
operator delete(this);
}