//
// sub_180018E80 from 0x180018e80 to 0x180018f48 (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002b5b0
// > ??> @ 0x18004cb18
//
// This function is hookable on this platform (idp: pc, 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:15:42 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall sub_180018E80(cocos2d::CCObject *Block, char a2)
{
cocos2d::CCObject *v5; // rcx
if ( (a2 & 2) != 0 )
{
sub_18001F0B0(Block, 160, *((_QWORD *)Block - 1), cocos2d::extension::CCHttpResponse::~CCHttpResponse);
if ( (a2 & 1) != 0 )
j_j_j_free((char *)Block - 8);
return (cocos2d::CCObject *)((char *)Block - 8);
}
else
{
*(_QWORD *)Block = &cocos2d::extension::CCHttpResponse::`vftable';
v5 = *((cocos2d::CCObject **)Block + 7);
if ( v5 )
cocos2d::CCObject::release(v5);
sub_180003700((__int64)Block + 128);
sub_180018F50((char *)Block + 96);
sub_180018F50((char *)Block + 72);
cocos2d::CCObject::~CCObject(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}
}