//
// sub_100152704 from 0x100152704 to 0x100152794 (144 bytes)
//
// 1 xrefs:
// > cocos2d::CCFileUtils::removeSearchPath @ 0x1001521cc
//
// 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 __fastcall sub_100152704(__int64 a1, __int64 a2, const void **a3)
{
__int64 v3; // x19
char v5; // w8
size_t v6; // x21
const void *v7; // x22
__int64 v8; // x9
int v9; // w8
const void *v10; // x0
v3 = a1;
if ( a1 != a2 )
{
v5 = *((_BYTE *)a3 + 23);
if ( v5 >= 0 )
v6 = *((unsigned __int8 *)a3 + 23);
else
v6 = (size_t)a3[1];
if ( v5 >= 0 )
v7 = a3;
else
v7 = *a3;
do
{
v8 = *(unsigned __int8 *)(v3 + 23);
v9 = (char)v8;
if ( (v8 & 0x80u) != 0LL )
v8 = *(_QWORD *)(v3 + 8);
if ( v8 == v6 )
{
v10 = v9 >= 0 ? (const void *)v3 : *(const void **)v3;
if ( !memcmp(v10, v7, v6) )
break;
}
v3 += 24;
}
while ( v3 != a2 );
}
return v3;
}