//
// EnhancedGameObject::updateAnimateOnTrigger from 0x65e9ec to 0x65ea44 (88 bytes)
//
// 0 xrefs:
//
// 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:55:35 +0000
//
EnhancedGameObject *__fastcall EnhancedGameObject::updateAnimateOnTrigger(EnhancedGameObject *this, int a2)
{
EnhancedGameObject *v2; // r4
int v3; // r3
GameManager *v4; // r0
int v5; // r3
int (__fastcall *v6)(EnhancedGameObject *, _DWORD, int); // r5
cocos2d::CCDictionary **v7; // r0
int v8; // r0
v2 = this;
if ( *((_BYTE *)this + 1206) && *((_BYTE *)this + 1237) )
{
if ( a2 )
{
v3 = *(_DWORD *)this;
*((_BYTE *)this + 658) = 0;
v4 = (GameManager *)(*(int (__fastcall **)(EnhancedGameObject *, int))(v3 + 456))(this, 255);
*((_DWORD *)v2 + 313) = -1;
v5 = *(_DWORD *)v2;
*((_BYTE *)v2 + 1237) = 0;
v6 = *(int (__fastcall **)(EnhancedGameObject *, _DWORD, int))(v5 + 924);
v7 = (cocos2d::CCDictionary **)GameManager::sharedState(v4);
v8 = GameManager::defaultFrameForAnimation(v7, *((_DWORD *)v2 + 223));
this = (EnhancedGameObject *)v6(v2, 0, v8);
*((_BYTE *)v2 + 1237) = 1;
}
else
{
return (EnhancedGameObject *)EnhancedGameObject::waitForAnimationTrigger(this);
}
}
return this;
}