//
// cocos2d::extension::AssetsManager::checkStoragePath from 0xa977ac to 0xa97824 (120 bytes)
//
// 3 xrefs:
// > cocos2d::extension::AssetsManager::setStoragePath @ 0xa97cf8
// > cocos2d::extension::AssetsManager::AssetsManager @ 0xa97fb8
// > ??> @ 0xb8500
//
// 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 cocos2d::extension::AssetsManager::checkStoragePath(__int64 this)
{
__int64 v1; // x2
__int64 v2; // x21
__int64 v3; // x1
__int64 v4; // x20
__int64 v5; // x19
v1 = *(_QWORD *)(this + 8);
v2 = this + 8;
v3 = *(_QWORD *)(v1 - 24);
if ( v3 )
{
v4 = v3 - 1;
if ( (*(_DWORD *)(v1 - 8) & 0x80000000) == 0 )
{
v5 = this;
sub_D176A8(this + 8);
v1 = *(_QWORD *)(v5 + 8);
}
this = *(unsigned __int8 *)(v1 + v4);
if ( (_DWORD)this != 47 )
return sub_D15FD4(v2, &word_F2A0A8, 1);
}
return this;
}