//
// GJBaseGameLayer::playKeyframeAnimation from 0x880d20 to 0x880ee4 (452 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x76f94c
// > ??> @ 0x372a8
//
// 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
//
void GJBaseGameLayer::playKeyframeAnimation(
GJBaseGameLayer *a1,
KeyframeAnimTriggerObject *a2,
std::vector *const a3)
{
cocos2d::CCArray *Group; // x19
unsigned __int64 v7; // x0
__int64 *v8; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x19
__int64 v11; // x0
char *v12; // x22
cocos2d::CCObject *i; // x20
cocos2d::CCArray *v14; // x26
GameObject *MainObject; // x0
int m_targetGroupID; // w1
int v17[3]; // [xsp+74h] [xbp+74h] BYREF
_QWORD v18[4]; // [xsp+80h] [xbp+80h] BYREF
float v19; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v20; // [xsp+A8h] [xbp+A8h]
__int64 v21; // [xsp+B0h] [xbp+B0h] BYREF
Group = GJBaseGameLayer::getGroup(a1, a2->m_animationID);
v18[2] = 0;
v18[3] = 0;
v19 = 1.0;
v20 = 0;
v7 = sub_D146DC(&v19, 10);
v18[1] = v7;
if ( v7 == 1 )
{
v21 = 0;
v8 = &v21;
}
else
{
v8 = (__int64 *)sub_8563A4(v7);
}
v18[0] = v8;
if ( Group )
{
data = Group->data;
if ( data->num )
{
arr = data->arr;
v11 = 8LL * data->num - 8;
v12 = (char *)arr + v11;
if ( arr <= (cocos2d::CCObject **)((char *)arr + v11) )
{
for ( i = *arr; *arr; i = *arr )
{
if ( HIDWORD(i[18].__vftable) == 3032 )
{
v17[0] = i[32].m_uOrderOfArrival;
if ( !sub_855BD4(v18, v17[0]) )
{
*(_QWORD *)&v17[1] = v18;
std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::_M_insert>>>(
v18,
v17);
v14 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, v17[0]);
MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2->m_centerGroupID);
m_targetGroupID = a2->m_targetGroupID;
if ( !m_targetGroupID )
m_targetGroupID = i[25].m_uOrderOfArrival;
GJEffectManager::createKeyframeCommand(
a1->m_effectManager,
m_targetGroupID,
v14,
MainObject,
a2->m_uniqueID,
a2->m_controlID,
0,
a2->m_positionXMod,
a2->m_positionYMod,
a2->m_rotationMod,
a2->m_scaleXMod,
a2->m_scaleYMod,
a2->m_timeMod,
a3);
}
}
if ( v12 < (char *)++arr )
break;
}
}
}
}
std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((__int64)v18);
}