//
// GJBaseGameLayer::playAnimationCommand from 0x9a0730 to 0x9a07cc (156 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x897fd0
// > ??> @ 0x42e38
//
// 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:58:06 +0000
//
GJBaseGameLayer *__fastcall GJBaseGameLayer::playAnimationCommand(GJBaseGameLayer *this, unsigned int a2, int a3)
{
unsigned int v4; // w19
cocos2d::CCObject *Group; // x20
bool v6; // cf
unsigned int v7; // w1
AnimatedGameObject *v8; // x0
if ( a3 > 0 )
{
v4 = 0;
Group = GJBaseGameLayer::getGroup(this, a3);
v6 = (unsigned int)cocos2d::CCArray::count(Group) == 0;
v7 = 0;
for ( this = Group; !v6; this = Group )
{
v8 = (AnimatedGameObject *)cocos2d::CCArray::objectAtIndex(this, v7);
++v4;
if ( *((_DWORD *)v8 + 312) == 2 )
AnimatedGameObject::playAnimation(v8, (AnimatedGameObject *)a2);
else
(*(void (__fastcall **)(AnimatedGameObject *))(*(_QWORD *)v8 + 1520LL))(v8);
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(Group);
v7 = v4;
}
}
return this;
}