//
// SpriteAnimationManager::queueAnimation from 0x100324004 to 0x1003240cc (200 bytes)
//
// 2 xrefs:
// > SpriteAnimationManager::runAnimation @ 0x100323ed0
// > SpriteAnimationManager::runAnimation @ 0x100323f14
//
// 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 SpriteAnimationManager::queueAnimation(__int64 a1, __int64 a2)
{
int Prio; // w21
std::string *v5; // x22
char *v6; // x1
int v7; // w20
void *v8[2]; // [xsp+8h] [xbp-58h] BYREF
char v9; // [xsp+1Fh] [xbp-41h]
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
__int64 v11; // [xsp+30h] [xbp-30h]
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v11 = *(_QWORD *)(a2 + 16);
}
Prio = SpriteAnimationManager::getPrio(a1, (__int64)__p);
if ( SHIBYTE(v11) < 0 )
operator delete(__p[0]);
v5 = (std::string *)(a1 + 352);
v6 = (char *)(a1 + 352);
if ( *(char *)(a1 + 375) < 0 )
v6 = (char *)v5->__r_.__value_.__r.__words[0];
sub_100009900(v8, v6);
v7 = SpriteAnimationManager::getPrio(a1, (__int64)v8);
if ( v9 < 0 )
operator delete(v8[0]);
if ( Prio <= v7 )
std::string::operator=(v5, (const std::string *)a2);
}