//
// SpriteAnimationManager::queueAnimation from 0x3d84c4 to 0x3d855a (150 bytes)
//
// 2 xrefs:
// > SpriteAnimationManager::runAnimation @ 0x3d860a
// > SpriteAnimationManager::runAnimation @ 0x3d8632
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:46:45 +0000
//
unsigned __int8 *__fastcall SpriteAnimationManager::queueAnimation(int a1, unsigned __int8 *a2)
{
const char *v2; // r7
int Prio; // r9
bool v6; // nf
size_t v7; // r0
int v8; // r7
unsigned __int8 *result; // r0
int v10[3]; // [sp+0h] [bp-14h] BYREF
std::string::basic_string(v10, (int)a2);
Prio = SpriteAnimationManager::getPrio(a1, (int)v10);
std::string::~string((int)v10);
v6 = (*(_BYTE *)(a1 + 280) & 1) != 0;
if ( (*(_BYTE *)(a1 + 280) & 1) == 0 )
v2 = (const char *)(a1 + 281);
v10[0] = 0;
if ( v6 )
v2 = *(const char **)(a1 + 288);
v10[1] = 0;
v10[2] = 0;
v7 = strlen(v2);
std::string::__init(v10, v2, v7);
v8 = SpriteAnimationManager::getPrio(a1, (int)v10);
result = (unsigned __int8 *)std::string::~string((int)v10);
if ( Prio <= v8 )
return std::string::operator=((unsigned __int8 *)(a1 + 280), a2);
return result;
}