//
// cocos2d::CCFileUtilsAndroid::init from 0xd7c7e4 to 0xd7c8b0 (204 bytes)
//
// 2 xrefs:
// > ??> @ 0xaff18
// > ??> @ 0x152de50
//
// 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:07 +0000
//
__int64 __fastcall cocos2d::CCFileUtilsAndroid::init(cocos2d::CCFileUtilsAndroid *this)
{
char *v2; // x0
char *v3; // x2
unsigned __int64 v4; // x2
v2 = (char *)this + 64;
if ( (*((_BYTE *)this + 64) & 1) != 0 )
{
v4 = *((_QWORD *)this + 8) & 0xFFFFFFFFFFFFFFFELL;
if ( v4 - 1 <= 6 )
{
std::string::__grow_by_and_replace(
(__int64)v2,
v4 - 1,
8 - v4,
*((_QWORD *)v2 + 1),
0,
*((_QWORD *)v2 + 1),
7u,
"assets/");
return cocos2d::CCFileUtils::init(this);
}
v3 = *((char **)v2 + 2);
}
else
{
v3 = (char *)this + 65;
}
strcpy(v3, "assets/");
if ( (*((_BYTE *)this + 64) & 1) != 0 )
*((_QWORD *)v2 + 1) = 7;
else
*((_BYTE *)this + 64) = 14;
return cocos2d::CCFileUtils::init(this);
}