//
// cocos2d::extension::AssetsManager::checkStoragePath from 0xd09b34 to 0xd09b94 (96 bytes)
//
// 3 xrefs:
// > cocos2d::extension::AssetsManager::AssetsManager @ 0xd09ca0
// > cocos2d::extension::AssetsManager::setStoragePath @ 0xd0a340
// > ??> @ 0xf0928
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:58 +0000
//
__int64 __fastcall cocos2d::extension::AssetsManager::checkStoragePath(__int64 this)
{
int v1; // w1
__int64 v2; // x2
__int64 v3; // x1
int v4; // w1
v1 = *(unsigned __int8 *)(this + 8);
v2 = this + 8;
if ( (v1 & 1) != 0 )
{
v3 = *(_QWORD *)(this + 16);
if ( !v3 )
return this;
this = *(unsigned __int8 *)(*(_QWORD *)(this + 24) + v3 - 1);
if ( (_DWORD)this == 47 )
return this;
return std::string::append(v2, &word_11BA098, 1u);
}
v4 = v1 >> 1;
if ( v4 )
{
this = *(unsigned __int8 *)(this + 9 + v4 - 1LL);
if ( (_DWORD)this != 47 )
return std::string::append(v2, &word_11BA098, 1u);
}
return this;
}