//
// sub_100152794 from 0x100152794 to 0x100152804 (112 bytes)
//
// 1 xrefs:
// > cocos2d::CCFileUtils::removeSearchPath @ 0x1001521e0
//
// 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
//
__int128 *__fastcall sub_100152794(__int64 a1, __int128 *a2, __int128 *a3, __int64 a4)
{
__int128 *v5; // x20
__int128 v7; // q0
v5 = a2;
if ( a2 != a3 )
{
do
{
if ( *(char *)(a4 + 23) < 0 )
operator delete(*(void **)a4);
v7 = *v5;
*(_QWORD *)(a4 + 16) = *((_QWORD *)v5 + 2);
*(_OWORD *)a4 = v7;
a4 += 24;
*((_BYTE *)v5 + 23) = 0;
*(_BYTE *)v5 = 0;
v5 = (__int128 *)((char *)v5 + 24);
}
while ( v5 != a3 );
return a3;
}
return v5;
}