//
// SpriteAnimationManager::runQueuedAnimation from 0x6b1330 to 0x6b1444 (276 bytes)
//
// 2 xrefs:
// > SpriteAnimationManager::finishAnimation @ 0x6b14a4
// > ??> @ 0x5a988
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:51 +0000
//
__int64 __fastcall SpriteAnimationManager::runQueuedAnimation(SpriteAnimationManager *this)
{
__int64 *v2; // x22
const char *v3; // x1
size_t v4; // x0
char *v6; // [xsp+48h] [xbp+48h]
__int128 v7; // [xsp+50h] [xbp+50h] BYREF
void *v8; // [xsp+60h] [xbp+60h]
*((_QWORD *)&v7 + 1) = 0;
v2 = (__int64 *)((char *)this + 352);
v8 = nullptr;
LOBYTE(v7) = 16;
*(_QWORD *)((char *)&v7 + 1) = *(_QWORD *)"not_used";
if ( !sub_6AF58C((__int64)this + 352, (__int64)&v7) )
{
v3 = (char *)this + 353;
if ( (*((_BYTE *)this + 352) & 1) != 0 )
v3 = (const char *)v2[2];
v6 = (char *)v3;
v7 = 0u;
v8 = nullptr;
v4 = strlen(v3);
std::string::__init((__int64 *)&v7, v6, v4);
SpriteAnimationManager::executeAnimation((__int64)this, (__int64)&v7);
if ( (v7 & 1) != 0 )
operator delete(v8);
std::string::assign(v2, "not_used");
}
return _stack_chk_guard;
}