//
// GJBaseGameLayer::playAnimationCommand from 0x100108190 to 0x100108245 (181 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x10019a06f
//
// This function is hookable on this platform (idp: pc, 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:21:32 +0000
//
void __fastcall GJBaseGameLayer::playAnimationCommand(__int64 a1, unsigned int a2, int a3)
{
__int64 v3; // r15
__int64 v4; // r14
unsigned int v5; // r15d
_DWORD *v6; // rax
if ( a3 > 0 )
{
v3 = 9999;
if ( (unsigned int)a3 < 0x270F )
v3 = (unsigned int)a3;
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3);
if ( !v4 )
{
v4 = sub_1007FE900(a1);
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3592), v4, v3);
*(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v3) = v4;
}
if ( (unsigned int)sub_1007FEF90(v4) )
{
v5 = 0;
do
{
v6 = (_DWORD *)sub_1007FEFE0(v4, v5);
if ( v6[312] == 2 )
AnimatedGameObject::playAnimation(v6, a2);
else
(*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v6 + 1520LL))(v6);
++v5;
}
while ( v5 < (unsigned int)sub_1007FEF90(v4) );
}
}
}