//
// sub_180090480 from 0x180090480 to 0x1800904ed (109 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x180092271
// > ??> @ 0x1801b62e8
// > ??> @ 0x1801b62f4
//
// 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_180090480(__int64 a1, _QWORD *a2)
{
unsigned __int64 v3; // rdx
_QWORD *v4; // rcx
v3 = a2[7];
if ( v3 > 0xF )
{
v4 = (_QWORD *)a2[4];
if ( v3 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free_0(v4);
}
a2[6] = 0;
a2[7] = 15;
*((_BYTE *)a2 + 32) = 0;
j_j_free_0(a2);
}