//
// sub_100151EF8 from 0x100151ef8 to 0x100151fc0 (200 bytes)
//
// 5 xrefs:
// > cocos2d::CCFileUtils::setSearchPaths @ 0x100151d90
// > cocos2d::CCFileUtils::addSearchPath @ 0x100152014
// > cocos2d::CCFileUtils::removeSearchPath @ 0x100152150
// > cocos2d::CCFileUtils::getFullPathForDirectoryAndFilename @ 0x100152474
// > cocos2d::CCFileUtilsIOS::getFullPathForDirectoryAndFilename @ 0x100236564
//
// 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
//
__int64 __usercall sub_100151EF8@(const void **a1@, const void **a2@, __int64 a3@)
{
size_t v5; // x21
size_t v6; // x20
__int64 result; // x0
char *v8; // x23
const void *v9; // x1
char *v10; // x21
const void *v11; // x1
if ( *((char *)a1 + 23) >= 0 )
v5 = *((unsigned __int8 *)a1 + 23);
else
v5 = (size_t)a1[1];
if ( *((char *)a2 + 23) >= 0 )
v6 = *((unsigned __int8 *)a2 + 23);
else
v6 = (size_t)a2[1];
result = sub_100048E98(a3, v6 + v5);
if ( *(char *)(result + 23) >= 0 )
v8 = (char *)result;
else
v8 = *(char **)result;
if ( v5 )
{
if ( *((char *)a1 + 23) >= 0 )
v9 = a1;
else
v9 = *a1;
result = (__int64)memmove(v8, v9, v5);
}
v10 = &v8[v5];
if ( v6 )
{
if ( *((char *)a2 + 23) >= 0 )
v11 = a2;
else
v11 = *a2;
result = (__int64)memmove(v10, v11, v6);
}
v10[v6] = 0;
return result;
}