//
// cocos2d::extension::AssetsManager::checkStoragePath from 0x7a5920 to 0x7a5950 (48 bytes)
//
// 2 xrefs:
// > cocos2d::extension::AssetsManager::AssetsManager @ 0x7a59f0
// > cocos2d::extension::AssetsManager::setStoragePath @ 0x7a5dbe
//
// 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
//
_DWORD *__fastcall cocos2d::extension::AssetsManager::checkStoragePath(_DWORD *this)
{
int v1; // r3
int v2; // r2
int v3; // r3
int v4; // r3
char *v5; // r2
v1 = *((unsigned __int8 *)this + 4);
v2 = v1 & 1;
if ( (v1 & 1) != 0 )
{
v3 = *(this + 2);
if ( !v3 )
return this;
}
else
{
v3 = v1 >> 1;
if ( !v3 )
return this;
}
v4 = v3 - 1;
if ( v2 )
v5 = (char *)*(this + 3);
else
v5 = (char *)this + 5;
if ( v5[v4] != 47 )
return std::string::append(this + 1, "/", 1u);
return this;
}