//
// cocos2d::extension::AssetsManager::setSearchPath from 0x7a6204 to 0x7a62a8 (164 bytes)
//
// 2 xrefs:
// > cocos2d::extension::AssetsManager::checkUpdate @ 0x7a63c8
// > cocos2d::extension::AssetsManager::Helper::handleUpdateSucceed @ 0x7a6484
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:57 +0000
//
int __fastcall cocos2d::extension::AssetsManager::setSearchPath(cocos2d::extension::AssetsManager *this)
{
int v2; // r0
int *v3; // r0
int *v4; // r7
signed int v5; // r4
int *v6; // r0
int v7; // r0
int v8; // r4
int v9; // r7
int *v11; // [sp+0h] [bp-14h] BYREF
int *v12; // [sp+4h] [bp-10h]
char *v13; // [sp+8h] [bp-Ch]
v2 = cocos2d::CCFileUtils::sharedFileUtils(this);
v3 = (int *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 68))(v2);
v11 = nullptr;
v12 = nullptr;
v13 = nullptr;
v4 = v3;
v5 = v3[1] - *v3;
if ( -1431655765 * (v5 >> 2) )
{
if ( (unsigned int)(-1431655765 * (v5 >> 2)) > 0x15555555 )
sub_38B800();
v12 = (int *)operator new(v5);
v11 = v12;
v13 = (char *)v12 + v5;
v8 = *v4;
v9 = v4[1];
while ( v8 != v9 )
{
if ( v12 )
std::string::basic_string(v12, v8);
v8 += 12;
v12 += 3;
}
}
v6 = std::vector::insert(&v11, v11, (int)this + 4);
v7 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)v6);
(*(void (__fastcall **)(int, int **))(*(_DWORD *)v7 + 56))(v7, &v11);
return std::__vector_base::~__vector_base((int)&v11);
}