//
// SpriteAnimationManager::queueAnimation from 0x2f3644 to 0x2f36ba (118 bytes)
//
// 2 xrefs:
// > SpriteAnimationManager::runAnimation @ 0x2f38d8
// > SpriteAnimationManager::runAnimation @ 0x2f38fe
//
// 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
//
int __fastcall SpriteAnimationManager::queueAnimation(int a1, int a2)
{
int Prio; // r9
int v5; // r8
int result; // r0
std::string v7; // [sp+8h] [bp-Ch] BYREF
sub_775C20(&v7, a2);
Prio = SpriteAnimationManager::getPrio(a1, &v7);
sub_774008(&v7);
sub_776584((int)&v7, *(char **)(a1 + 280));
v5 = SpriteAnimationManager::getPrio(a1, &v7);
result = sub_774008(&v7);
if ( Prio <= v5 )
return sub_775D40(a1 + 280, a2);
return result;
}