// // SpriteAnimationManager::executeAnimation from 0x3d8310 to 0x3d84b6 (422 bytes) // // 2 xrefs: // > SpriteAnimationManager::runAnimation @ 0x3d8620 // > SpriteAnimationManager::runQueuedAnimation @ 0x3d8de0 // // 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::executeAnimation(int a1, int a2, int a3, int a4) { unsigned __int8 *v4; // r4 int result; // r0 cocos2d::CCAction *v8; // r8 int v9; // r9 int v10; // r10 int v11; // r9 cocos2d::CCString *v12; // r0 _BOOL4 v13; // r9 const char *CString; // r0 const char *v15; // r6 size_t v16; // r0 int v17; // r6 int AnimType; // r6 int v19; // [sp+0h] [bp-10h] BYREF int v20; // [sp+4h] [bp-Ch] int v21; // [sp+8h] [bp-8h] int v22; // [sp+Ch] [bp-4h] v19 = a1; v20 = a2; v21 = a3; v22 = a4; v4 = (unsigned __int8 *)(a1 + 304); result = sub_3D7D88((unsigned __int8 *)(a1 + 304), (unsigned __int8 *)a2); if ( !result ) { cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(*(_DWORD *)(a1 + 264) + 536)); std::string::operator=(v4, (unsigned __int8 *)a2); std::string::basic_string(&v19, a2); SpriteAnimationManager::playSoundForAnimation(a1, (int)&v19); std::string::~string((int)&v19); v8 = (cocos2d::CCAction *)cocos2d::CCDictionary::objectForKey(*(_DWORD *)(a1 + 300), a2); if ( *((_DWORD *)v8 + 6) ) { std::string::basic_string(&v19, a2); AnimType = SpriteAnimationManager::getAnimType(a1, (int)&v19); std::string::~string((int)&v19); CCAnimatedSprite::willPlayAnimation(*(CCAnimatedSprite **)(a1 + 264)); CCAnimatedSprite::switchToMode(*(_DWORD *)(a1 + 264), AnimType); return (*(int (__fastcall **)(_DWORD, cocos2d::CCAction *))(**(_DWORD **)(*(_DWORD *)(a1 + 264) + 536) + 580))( *(_DWORD *)(*(_DWORD *)(a1 + 264) + 536), v8); } else { v9 = *(_DWORD *)(*(_DWORD *)(a1 + 264) + 548); std::string::basic_string(&v19, a2); v10 = SpriteAnimationManager::getAnimType(a1, (int)&v19); std::string::~string((int)&v19); CCAnimatedSprite::willPlayAnimation(*(CCAnimatedSprite **)(a1 + 264)); CCAnimatedSprite::switchToMode(*(_DWORD *)(a1 + 264), v10); if ( v9 != *(_DWORD *)(*(_DWORD *)(a1 + 264) + 548) || (v19 = 0, v20 = 0, v21 = 0, std::string::__init(&v19, "spawn", 5u), v13 = sub_3D7D88((unsigned __int8 *)a2, (unsigned __int8 *)&v19), std::string::~string((int)&v19), v13) ) { v11 = *(_DWORD *)(a1 + 300); if ( (*(_BYTE *)a2 & 1) != 0 ) v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_first", *(const char **)(a2 + 8)); else v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_first", (const char *)(a2 + 1)); CString = (const char *)cocos2d::CCString::getCString(v12); v19 = 0; v20 = 0; v21 = 0; v15 = CString; v16 = strlen(CString); std::string::__init(&v19, v15, v16); v17 = cocos2d::CCDictionary::objectForKey(v11, &v19); std::string::~string((int)&v19); if ( (unsigned int)(*(_DWORD *)(v17 + 24) - 1) <= 1 ) (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(a1 + 264) + 536) + 580))( *(_DWORD *)(*(_DWORD *)(a1 + 264) + 536), v17); } (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v8 + 36))(v8, 1); return cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(*(_DWORD *)(a1 + 264) + 536), v8); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source