//
// sub_1800903C0 from 0x1800903c0 to 0x180090480 (192 bytes)
//
// 9 xrefs:
// > sub_1800903C0 @ 0x1800903fa
// > cocos2d::CCSpriteFrameCache::~CCSpriteFrameCache @ 0x180090589
// > cocos2d::CCSpriteFrameCache::removeSpriteFrameByName @ 0x180091c2c
// > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x180091ca0
// > cocos2d::CCSpriteFrameCache::removeUnusedSpriteFrames @ 0x18009277a
// > ??> @ 0x18013deb4
// > ??> @ 0x18013dec4
// > ??> @ 0x18013dedc
// > ??> @ 0x1801b62c4
//
// 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
//
void __fastcall sub_1800903C0(__int64 a1, __int64 a2, __int64 *a3)
{
__int64 *v3; // rdi
_QWORD *v6; // rbx
unsigned __int64 v7; // rdx
_QWORD *v8; // rcx
v3 = a3;
while ( !*((_BYTE *)v3 + 25) )
{
sub_1800903C0(a1, a2, v3[2]);
v6 = v3;
v3 = (__int64 *)*v3;
v7 = v6[7];
if ( v7 > 0xF )
{
v8 = (_QWORD *)v6[4];
if ( v7 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v8 - *(v8 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v8 = (_QWORD *)*(v8 - 1);
}
j_j_free_0(v8);
}
v6[6] = 0;
v6[7] = 15;
*((_BYTE *)v6 + 32) = 0;
j_j_free_0(v6);
}
}