//
// GJBaseGameLayer::playAnimationCommand from 0x5908d8 to 0x590918 (64 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f503a
//
// 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:53:05 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::playAnimationCommand(
GJBaseGameLayer *this,
AnimatedGameObject *a2,
int a3)
{
unsigned int v4; // r4
cocos2d::CCObject *Group; // r5
AnimatedGameObject *v6; // r0
if ( a3 > 0 )
{
v4 = 0;
Group = GJBaseGameLayer::getGroup(this, a3);
while ( 1 )
{
this = (GJBaseGameLayer *)cocos2d::CCArray::count(Group);
if ( v4 >= (unsigned int)this )
break;
v6 = (AnimatedGameObject *)cocos2d::CCArray::objectAtIndex(Group, v4);
if ( *((_DWORD *)v6 + 271) == 2 )
AnimatedGameObject::playAnimation(v6, a2);
else
(*(void (__fastcall **)(AnimatedGameObject *))(*(_DWORD *)v6 + 760))(v6);
++v4;
}
}
return this;
}