//
// cocos2d::CCFileUtils::dCCFileUtils from 0x10043ab60 to 0x10043ac4d (237 bytes)
//
// 2 xrefs:
// > sub_10060D550 @ 0x10060d555
// > sub_10060D560 @ 0x10060d569
//
// 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::dCCFileUtils(__int64 a1)
{
cocos2d::CCObject *v2; // rdi
__int64 v3; // r14
__int64 v4; // r15
void *v5; // rdi
__int64 v6; // r14
__int64 v7; // r15
void *v8; // rdi
*(_QWORD *)a1 = &off_100937F88;
v2 = *(cocos2d::CCObject **)(a1 + 8);
if ( v2 )
cocos2d::CCObject::release(v2);
if ( (*(_BYTE *)(a1 + 112) & 1) != 0 )
operator delete(*(void **)(a1 + 128));
sub_1002EFF50(a1 + 88, *(_QWORD **)(a1 + 96));
if ( (*(_BYTE *)(a1 + 64) & 1) != 0 )
operator delete(*(void **)(a1 + 80));
v3 = *(_QWORD *)(a1 + 40);
if ( v3 )
{
v4 = *(_QWORD *)(a1 + 48);
v5 = *(void **)(a1 + 40);
if ( v4 != v3 )
{
do
{
if ( (*(_BYTE *)(v4 - 24) & 1) != 0 )
operator delete(*(void **)(v4 - 8));
v4 -= 24;
}
while ( v4 != v3 );
v5 = *(void **)(a1 + 40);
}
*(_QWORD *)(a1 + 48) = v3;
operator delete(v5);
}
v6 = *(_QWORD *)(a1 + 16);
if ( v6 )
{
v7 = *(_QWORD *)(a1 + 24);
v8 = *(void **)(a1 + 16);
if ( v7 != v6 )
{
do
{
if ( (*(_BYTE *)(v7 - 24) & 1) != 0 )
operator delete(*(void **)(v7 - 8));
v7 -= 24;
}
while ( v7 != v6 );
v8 = *(void **)(a1 + 16);
}
*(_QWORD *)(a1 + 24) = v6;
operator delete(v8);
}
}