//
// cocos2d::CCFileUtils::~CCFileUtils from 0x18006d050 to 0x18006d15e (270 bytes)
//
// 6 xrefs:
// > sub_18006D160 @ 0x18006d1c2
// > cocos2d::CCFileUtilsWin32::~CCFileUtilsWin32 @ 0x180079fc0
// > sub_18007A100 @ 0x18007a162
// > sub_18006D160 @ 0x18006d17c
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b405c
//
// 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::CCFileUtils::~CCFileUtils(cocos2d::CCFileUtils *this)
{
cocos2d::CCObject *v2; // rcx
unsigned __int64 v3; // rdx
_QWORD *v4; // rcx
unsigned __int64 v5; // rdx
void *v6; // rcx
this->__vftable = (cocos2d::CCFileUtils_vtbl *)&cocos2d::CCFileUtils::`vftable';
v2 = *((cocos2d::CCObject **)this + 1);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *((_QWORD *)this + 17);
if ( v3 > 0xF )
{
v4 = *((_QWORD **)this + 14);
if ( v3 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
goto LABEL_14;
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free_0(v4);
}
*((_QWORD *)this + 16) = 0;
*((_QWORD *)this + 17) = 15;
*((_BYTE *)this + 112) = 0;
sub_18006C6D0((__int64)(this + 12), (__int64)(this + 12), *(char **)(*((_QWORD *)this + 12) + 8LL));
j_j_free_0(*((void **)this + 12));
v5 = *((_QWORD *)this + 11);
if ( v5 > 0xF )
{
v6 = *((void **)this + 8);
if ( v5 + 1 < 0x1000 )
{
LABEL_12:
j_j_free_0(v6);
goto LABEL_13;
}
if ( (unsigned __int64)v6 - *((_QWORD *)v6 - 1) - 8 <= 0x1F )
{
v6 = *((void **)v6 - 1);
goto LABEL_12;
}
LABEL_14:
invalid_parameter_noinfo_noreturn();
}
LABEL_13:
*((_QWORD *)this + 10) = 0;
*((_QWORD *)this + 11) = 15;
*((_BYTE *)this + 64) = 0;
sub_18000D280((__int64 *)this + 5);
sub_18000D280((__int64 *)this + 2);
}