//
// AnimatedGameObject::playAnimation from 0x4f5e3c to 0x4f5f04 (200 bytes)
//
// 2 xrefs:
// > PlayLayer::loadActiveSaveObjects @ 0x4020d2
// > GJBaseGameLayer::playAnimationCommand @ 0x590904
//
// 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:51:16 +0000
//
int __fastcall AnimatedGameObject::playAnimation(AnimatedGameObject *this, AnimatedGameObject *a2)
{
int v4; // r3
int v5; // r2
float v6; // s16
int v7; // r7
int *v8; // r4
int v9; // r7
unsigned __int8 v11[4]; // [sp+0h] [bp-2Ch] BYREF
int v12; // [sp+4h] [bp-28h]
int v13[3]; // [sp+Ch] [bp-20h] BYREF
int v14[3]; // [sp+18h] [bp-14h] BYREF
AnimatedGameObject::animationForID((AnimatedGameObject *)v11, (int)a2, *((_DWORD *)this + 223));
if ( (v11[0] & 1) != 0 )
v4 = v12;
else
v4 = (int)v11[0] >> 1;
if ( v4 )
{
*((_DWORD *)this + 327) = a2;
std::string::operator=((unsigned __int8 *)this + 1292, v11);
*((_BYTE *)this + 1289) = 1;
if ( *((_BYTE *)this + 657)
&& (v6 = COERCE_FLOAT(AnimatedGameObject::getTweenTime(a2, *((_DWORD *)this + 223), v5)), v6 > 0.0) )
{
v7 = *((_DWORD *)this + 319);
v8 = v13;
std::string::basic_string(v13, (int)v11);
CCAnimatedSprite::tweenToAnimation(v7, (int)v13, (cocos2d::CCDelayTime *)LODWORD(v6));
}
else
{
v9 = *((_DWORD *)this + 319);
v8 = v14;
std::string::basic_string(v14, (int)v11);
CCAnimatedSprite::runAnimationForced(v9, (int)v14);
}
std::string::~string((int)v8);
}
return std::string::~string((int)v11);
}