//
// GJBaseGameLayer::playAnimationCommand from 0x10012a1e0 to 0x10012a295 (181 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x1001b99ff
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJBaseGameLayer::playAnimationCommand(GJBaseGameLayer *a1, int a2, int a3)
{
intptr_t v3; // r15
cocos2d::CCArray *v4; // r14
unsigned int v5; // r15d
__int64 v6; // rax
if ( a3 > 0 )
{
v3 = 9999;
if ( (unsigned int)a3 < 0x270F )
v3 = (unsigned int)a3;
v4 = a1->m_groups.__begin_[v3];
if ( !v4 )
{
v4 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);
cocos2d::CCDictionary::setObject(a1->m_groupDict, v4, v3);
a1->m_groups.__begin_[v3] = v4;
}
if ( (unsigned int)sub_100720070(v4) )
{
v5 = 0;
do
{
v6 = sub_1007200C0(v4, v5);
if ( *(_DWORD *)(v6 + 1248) == 2 )
AnimatedGameObject::playAnimation((AnimatedGameObject *)v6, a2);
else
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1504LL))(v6);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(v4) );
}
}
}