//
// ObjectToolbox::dObjectToolbox from 0x1404a1b60 to 0x1404a1bdc (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407ce5c0
// > ??> @ 0x140929558
//
// 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 11:32:57 +0000
//
void *__fastcall ObjectToolbox::dObjectToolbox(void *Block, char a2)
{
*(_QWORD *)Block = &ObjectToolbox::`vftable';
sub_14018C850((__int64)Block + 320, (__int64)Block + 320, *(_QWORD *)(*((_QWORD *)Block + 40) + 8LL));
j_j_free(*((void **)Block + 40));
cocos2d::CCNode::~CCNode((cocos2d::CCNode *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}