//
// GameManager::addDuplicateLastFrame from 0x52e2c0 to 0x52e388 (200 bytes)
//
// 0 xrefs:
//
// 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 GameManager::addDuplicateLastFrame(GameManager *a1, int a2)
{
int v4; // r10
char *v5; // r0
char *v6; // r0
cocos2d::CCDictionary *m_framesForAnimation; // r4
int v8; // r1
cocos2d::CCObject *v9; // r0
_BYTE v10[4]; // [sp+Ch] [bp-18h] BYREF
_BYTE v11[4]; // [sp+10h] [bp-14h] BYREF
char v12; // [sp+14h] [bp-10h] BYREF
char v13; // [sp+18h] [bp-Ch] BYREF
v4 = GameManager::framesForAnimation(a1, a2);
v5 = (char *)sub_52911A(a2, v4);
sub_776584((int)v10, v5);
v6 = (char *)sub_52913C(a2, v4);
sub_776584((int)v11, v6);
sub_775C20(&v12);
sub_775C20(&v13);
GameManager::addCustomAnimationFrame((int)a1, a2, v4, (cocos2d::CCString *)&v12, (cocos2d::CCString *)&v13);
sub_774008(&v13);
sub_774008(&v12);
m_framesForAnimation = a1->m_framesForAnimation;
v9 = cocos2d::CCInteger::create((cocos2d::CCInteger *)(v4 + 1), v8);
cocos2d::CCDictionary::setObject(m_framesForAnimation, v9, a2);
sub_774008(v11);
sub_774008(v10);
}