//
// cocos2d::CCFileUtils::init from 0x100428700 to 0x100428790 (144 bytes)
//
// 5 xrefs:
// > cocos2d::CCFileUtils::sharedFileUtils @ 0x1006e511d
// > cocos2d::CCFileUtilsMac::createCCDictionaryWithContentsOfFile @ 0x1006e5971
// > cocos2d::CCFileUtilsMac::createCCArrayWithContentsOfFile @ 0x1006e6721
// > ??> @ 0x100b41e78
// > ??> @ 0x100b93fb8
//
// 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:30:18 +0000
//
char __fastcall cocos2d::CCFileUtils::init(__int64 a1)
{
_OWORD *v1; // rsi
unsigned __int64 v2; // r14
char *v3; // r14
_WORD v5[8]; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v1 = (_OWORD *)(a1 + 64);
v2 = *(_QWORD *)(a1 + 48);
if ( v2 >= *(_QWORD *)(a1 + 56) )
{
v3 = sub_1000568A0(a1 + 40, (__int64)v1);
}
else
{
if ( (*(_BYTE *)v1 & 1) != 0 )
{
sub_10001AD30(*(_QWORD **)(a1 + 48), *(const void **)(a1 + 80), *(_QWORD *)(a1 + 72));
}
else
{
*(_QWORD *)(v2 + 16) = *(_QWORD *)(a1 + 80);
*(_OWORD *)v2 = *v1;
}
v3 = (char *)(v2 + 24);
*(_QWORD *)(a1 + 48) = v3;
}
*(_QWORD *)(a1 + 48) = v3;
v5[0] = 0;
sub_1001593B0(a1 + 16, (__int64)v5);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
return 1;
}