//
// AnimatedGameObject::displayFrameChanged from 0x3e5a80 to 0x3e5b5c (220 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AnimatedGameObject::displayFrameChanged @ 0x3e5b6c
//
// 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
//
int __fastcall AnimatedGameObject::displayFrameChanged(int a1, CCSpritePlus *this, char **a3)
{
CCSpritePlus *Follower; // r8
int i; // r2
int v6; // r9
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5
cocos2d::CCSpriteFrameCache *v8; // r0
cocos2d::CCSpriteFrame *v9; // r0
char *v11; // [sp+8h] [bp-14h] BYREF
int v12; // [sp+Ch] [bp-10h] BYREF
char *v13; // [sp+10h] [bp-Ch] BYREF
Follower = CCSpritePlus::getFollower(this);
sub_776584((int)&v11, *a3);
sub_776584((int)&v12, "_001.png");
sub_776584((int)&v13, "_glow_001.png");
for ( i = 0; ; i = *((_DWORD *)v13 - 3) + v6 )
{
v6 = sub_774834(&v11, &v12, i);
if ( v6 == -1 )
break;
sub_776454(&v11, v6, *(_DWORD *)(v12 - 12), &v13);
}
sub_774008(&v13);
sub_774008(&v12);
sub_776584((int)&v13, v11);
sub_774008(&v11);
setDisplayFrame = Follower->setDisplayFrame;
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v13);
setDisplayFrame(Follower, v9);
return sub_774008(&v13);
}