//
// SpriteAnimationManager::storeAnimation from 0x3d7fa0 to 0x3d80c4 (292 bytes)
//
// 1 xrefs:
// > SpriteAnimationManager::loadAnimations @ 0x3d928a
//
// 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:46:45 +0000
//
int __fastcall SpriteAnimationManager::storeAnimation(
_DWORD *a1,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3,
int a4,
char *a5,
char *a6,
cocos2d::CCObject *a7)
{
int v7; // r4
const char *v10; // r8
int v11; // r9
const char *v12; // r1
cocos2d::CCString *v13; // r0
const char *CString; // r10
size_t v15; // r0
int v16; // r10
cocos2d::CCObject *v17; // r0
bool v18; // nf
cocos2d::CCObject *v19; // r9
size_t v20; // r0
int v21; // r8
cocos2d::CCObject *v22; // r0
bool v23; // nf
cocos2d::CCObject *v24; // r6
size_t v25; // r0
_DWORD *v27; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v28; // [sp+4h] [bp-Ch]
cocos2d::CCObject *v29; // [sp+8h] [bp-8h]
int v30; // [sp+Ch] [bp-4h]
v27 = a1;
v28 = a2;
v29 = a3;
v30 = a4;
v7 = a4;
v10 = (const char *)a7;
cocos2d::CCDictionary::setObject(a1[74], a2);
cocos2d::CCDictionary::setObject(a1[75], a3);
v11 = a1[75];
if ( (*(_BYTE *)v7 & 1) != 0 )
v12 = *(const char **)(v7 + 8);
else
v12 = (const char *)(v7 + 1);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_first", v12);
v27 = nullptr;
v28 = nullptr;
v29 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v13);
v15 = strlen(CString);
std::string::__init((int *)&v27, CString, v15);
cocos2d::CCDictionary::setObject(v11, a7);
std::string::~string((int)&v27);
v16 = a1[68];
v17 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a6);
v18 = (*(_BYTE *)v7 & 1) != 0;
if ( (*(_BYTE *)v7 & 1) == 0 )
v10 = (const char *)(v7 + 1);
v27 = nullptr;
if ( v18 )
v10 = *(const char **)(v7 + 8);
v28 = nullptr;
v29 = nullptr;
v19 = v17;
v20 = strlen(v10);
std::string::__init((int *)&v27, v10, v20);
cocos2d::CCDictionary::setObject(v16, v19);
std::string::~string((int)&v27);
v21 = a1[67];
v22 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a5);
v23 = (*(_BYTE *)v7 & 1) != 0;
if ( (*(_BYTE *)v7 & 1) == 0 )
++v7;
v27 = nullptr;
if ( v23 )
v7 = *(_DWORD *)(v7 + 8);
v28 = nullptr;
v29 = nullptr;
v24 = v22;
v25 = strlen((const char *)v7);
std::string::__init((int *)&v27, (const void *)v7, v25);
cocos2d::CCDictionary::setObject(v21, v24);
return std::string::~string((int)&v27);
}