//
// sub_180039990 from 0x180039990 to 0x180039a55 (197 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800ea358
// > ??> @ 0x1801b0d8c
// > ??> @ 0x1801b0d98
//
// 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
//
cocos2d::CCAction *__fastcall sub_180039990(cocos2d::CCAction *this, char a2)
{
void *v5; // rcx
void *v6; // rcx
if ( (a2 & 2) != 0 )
{
`eh vector destructor iterator'(
this,
0x80u,
*((_QWORD *)this - 1),
(void (*)(void *))cocos2d::CCShuffleTiles::~CCShuffleTiles);
if ( (a2 & 1) != 0 )
j_j_j_free_0((char *)this - 8);
return (cocos2d::CCAction *)((char *)this - 8);
}
else
{
this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCShuffleTiles::`vftable';
v5 = *((void **)this + 14);
if ( v5 )
{
j_j_free_0(v5);
*((_QWORD *)this + 14) = 0;
}
v6 = *((void **)this + 15);
if ( v6 )
{
j_j_free_0(v6);
*((_QWORD *)this + 15) = 0;
}
this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCFiniteTimeAction::`vftable';
cocos2d::CCAction::~CCAction(this);
if ( (a2 & 1) != 0 )
j_j_free_0(this);
return this;
}
}