// // CCAnimatedSprite::tweenToAnimation from 0x3c3d78 to 0x3c3eda (354 bytes) // // 12 xrefs: // > PlayerObject::playingEndEffect @ 0x43a960 // > PlayerObject::boostPlayer @ 0x43abf4 // > PlayerObject::updateMove @ 0x43d8ea // > PlayerObject::updateMove @ 0x43d9f8 // > PlayerObject::updateJump @ 0x444ada // > PlayerObject::updateJump @ 0x444dc4 // > PlayerObject::updateJump @ 0x444dfa // > PlayerObject::updateJump @ 0x445458 // > PlayerObject::updateJump @ 0x4454a8 // > PlayerObject::ringJump @ 0x449e34 // > AnimatedGameObject::playAnimation @ 0x4f5eb4 // > GJMapObject::monsterIdle @ 0x63f7b6 // // 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:33 +0000 // int __fastcall CCAnimatedSprite::tweenToAnimation(int a1, int a2, cocos2d::CCDelayTime *a3) { int v3; // r8 int AnimType; // r8 int result; // r0 cocos2d::CCSpriteFrame *v9; // r1 int v10; // r11 const char *v11; // r1 cocos2d::CCString *v12; // r0 size_t v13; // r0 int v14; // r11 CCPartAnimSprite *v15; // r0 float v16; // r1 cocos2d::CCSequence *v17; // r5 cocos2d::CCFiniteTimeAction *v18; // r0 cocos2d::CCAction *v19; // r5 const char *CString; // [sp+4h] [bp-30h] _DWORD v21[3]; // [sp+14h] [bp-20h] BYREF int v22[3]; // [sp+20h] [bp-14h] BYREF v3 = *(_DWORD *)(a1 + 532); std::string::basic_string(v22, a2); AnimType = SpriteAnimationManager::getAnimType(v3, v22); result = std::string::~string((int)v22); if ( AnimType == 2 && (!sub_3C3480((unsigned __int8 *)(a1 + 520), (unsigned __int8 *)a2) || (result = cocos2d::CCNode::getActionByTag((cocos2d::CCNode *)a1, 1)) == 0) ) { SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(a1 + 532)); cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 1); std::string::operator=((unsigned __int8 *)(a1 + 520), (unsigned __int8 *)a2); result = cocos2d::CCDictionary::objectForKey(*(_DWORD *)(*(_DWORD *)(a1 + 532) + 300), a2); v9 = (cocos2d::CCSpriteFrame *)result; if ( result ) { memset(v21, 0, sizeof(v21)); v10 = *(_DWORD *)(*(_DWORD *)(a1 + 532) + 300); if ( *(_DWORD *)(result + 24) ) { v15 = *(CCPartAnimSprite **)(a1 + 544); } else { if ( (*(_BYTE *)a2 & 1) != 0 ) v11 = *(const char **)(a2 + 8); else v11 = (const char *)(a2 + 1); v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_first", v11); CString = (const char *)cocos2d::CCString::getCString(v12); memset(v22, 0, sizeof(v22)); v13 = strlen(CString); std::string::__init(v22, CString, v13); v14 = cocos2d::CCDictionary::objectForKey(v10, v22); std::string::~string((int)v22); v15 = *(CCPartAnimSprite **)(a1 + 544); v9 = (cocos2d::CCSpriteFrame *)v14; } CCPartAnimSprite::tweenToFrame(v15, v9, *(float *)&a3); std::string::operator=((unsigned __int8 *)(a1 + 520), (unsigned __int8 *)a2); v17 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a3, v16); v18 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create( a1, CCAnimatedSprite::tweenToAnimationFinished, 0); v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v17, v18, 0); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v19 + 36))(v19, 1); cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v19); return std::string::~string((int)v21); } } return result; }