//
// sub_1000B3B98 from 0x1000b3b98 to 0x1000b3c24 (140 bytes)
//
// 5 xrefs:
// > sub_1000B3B54 @ 0x1000b3b64
// > cocos2d::CCFileUtils::fullPathForFilename @ 0x10015137c
// > cocos2d::CCFileUtils::removeFullPath @ 0x10015191c
// > cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile @ 0x1003bc8dc
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1003bcb88
//
// 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_1000B3B98(__int64 a1, const void **a2)
{
__int64 v2; // x22
__int64 v3; // x23
__int64 v6; // x21
_BOOL4 v7; // w0
__int64 v8; // x8
v2 = a1 + 8;
v3 = *(_QWORD *)(a1 + 8);
if ( !v3 )
return v2;
v6 = a1 + 8;
do
{
v7 = sub_10000A144(a1, (const void **)(v3 + 32), a2);
if ( v7 )
v8 = 8;
else
v8 = 0;
if ( !v7 )
v6 = v3;
v3 = *(_QWORD *)(v3 + v8);
}
while ( v3 );
if ( v6 == v2 || sub_10000A144(a1, a2, (const void **)(v6 + 32)) )
return v2;
return v6;
}