//
// cocos2d::CCFileUtils::init from 0xd76934 to 0xd76a34 (256 bytes)
//
// 5 xrefs:
// > cocos2d::CCFileUtilsAndroid::init @ 0xd7c844
// > cocos2d::CCFileUtilsAndroid::init @ 0xd7c88c
// > cocos2d::CCFileUtilsAndroid::init @ 0xd7c8a4
// > ??> @ 0x93c58
// > ??> @ 0x152d990
//
// This function is hookable on this platform (idp: arm, 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 13:08:03 +0000
//
__int64 __fastcall cocos2d::CCFileUtils::init(cocos2d::CCFileUtils *this)
{
_QWORD *v1; // x1
__int64 *v3; // x21
unsigned __int64 v4; // x0
unsigned __int64 v5; // x3
_QWORD *v6; // x2
__int64 v7; // x5
int v8; // w3
__int64 v10; // [xsp+30h] [xbp+30h] BYREF
__int64 v11; // [xsp+38h] [xbp+38h]
void *v12; // [xsp+40h] [xbp+40h]
v1 = (_QWORD *)((char *)this + 64);
v3 = (__int64 *)((char *)this + 40);
v4 = *((_QWORD *)this + 6);
if ( v4 == *((_QWORD *)this + 7) )
{
std::vector::__push_back_slow_path(v3, v1);
}
else
{
if ( v4 )
{
std::string::basic_string(v4, v1);
v4 = v3[1];
}
v3[1] = v4 + 24;
}
v5 = *((_QWORD *)this + 4);
v6 = *((_QWORD **)this + 3);
v10 = 0;
v11 = 0;
v12 = nullptr;
if ( (unsigned __int64)v6 >= v5 )
{
std::vector::__push_back_slow_path((void ***)this + 2, &v10);
v8 = v10 & 1;
}
else
{
if ( v6 )
{
v7 = v11;
*v6 = v10;
v6[1] = v7;
v8 = 0;
v6[2] = v12;
v10 = 0;
v6 = *((_QWORD **)this + 3);
v11 = 0;
v12 = nullptr;
}
else
{
v8 = 0;
}
*((_QWORD *)this + 3) = v6 + 3;
}
if ( v8 )
operator delete(v12);
return 1;
}