//
// SpriteAnimationManager::runQueuedAnimation from 0x3d8d74 to 0x3d8e12 (158 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::finishAnimation @ 0x3d8e4e
//
// 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:46 +0000
//
int *__fastcall SpriteAnimationManager::runQueuedAnimation(SpriteAnimationManager *this, int a2, int a3, int a4)
{
unsigned __int8 *v4; // r8
const char *v6; // r7
int *result; // r0
bool v8; // nf
size_t v9; // r0
int v10; // r2
int v11; // r3
int v12; // [sp+0h] [bp-10h] BYREF
int v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v15 = a4;
v4 = (unsigned __int8 *)this + 280;
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "not_used", 8u);
v6 = (const char *)sub_3D7D88(v4, (unsigned __int8 *)&v12);
result = (int *)std::string::~string((int)&v12);
if ( !v6 )
{
v8 = (*((_BYTE *)this + 280) & 1) != 0;
if ( (*((_BYTE *)this + 280) & 1) == 0 )
v6 = (char *)this + 281;
v12 = 0;
if ( v8 )
v6 = *((const char **)this + 72);
v13 = 0;
v14 = 0;
v9 = strlen(v6);
std::string::__init(&v12, v6, v9);
SpriteAnimationManager::executeAnimation((int)this, (int)&v12, v10, v11);
std::string::~string((int)&v12);
return std::string::assign((int *)v4, "not_used");
}
return result;
}