// // CCAnimatedSprite::tweenToAnimation from 0x68cfec to 0x68d2ac (704 bytes) // // 13 xrefs: // > PlayerObject::playingEndEffect @ 0x753514 // > PlayerObject::boostPlayer @ 0x75657c // > PlayerObject::updateMove @ 0x757fa4 // > PlayerObject::updateMove @ 0x7587ac // > PlayerObject::updateJump @ 0x763a48 // > PlayerObject::updateJump @ 0x763ef0 // > PlayerObject::updateJump @ 0x763f88 // > PlayerObject::updateJump @ 0x764350 // > PlayerObject::updateJump @ 0x7645e4 // > PlayerObject::ringJump @ 0x76a7d4 // > AnimatedGameObject::playAnimation @ 0x899f3c // > GJMapObject::monsterIdle @ 0xac24b4 // > @ 0xee060 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:50:33 +0000 // __int64 __fastcall CCAnimatedSprite::tweenToAnimation(__int64 a1, __int64 a2, float a3) { char v5; // w0 __int64 v7; // x23 __int64 v8; // x0 __int64 v9; // x1 int AnimType; // w23 __int64 v12; // x23 const void *v13; // x1 size_t v14; // x2 __int64 v15; // x0 cocos2d::CCSpriteFrame *v16; // x1 __int64 v17; // x24 const char *v18; // x1 cocos2d::CCString *v19; // x0 size_t v20; // x0 __int64 *v21; // x0 const void *v22; // x1 size_t v23; // x2 cocos2d::CCSequence *v24; // x19 cocos2d::CCFiniteTimeAction *v25; // x0 cocos2d::CCAction *v26; // x19 cocos2d::CCSpriteFrame *CString; // [xsp+58h] [xbp+58h] cocos2d::CCSpriteFrame *v28; // [xsp+58h] [xbp+58h] __int64 v29; // [xsp+80h] [xbp+80h] BYREF __int64 v30; // [xsp+88h] [xbp+88h] void *v31; // [xsp+90h] [xbp+90h] v5 = *(_BYTE *)a2; v29 = 0; v30 = 0; v31 = nullptr; v7 = *(_QWORD *)(a1 + 648); if ( (v5 & 1) != 0 ) { std::string::__init(&v29, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8)); } else { v8 = *(_QWORD *)a2; v9 = *(_QWORD *)(a2 + 8); v31 = *(void **)(a2 + 16); v29 = v8; v30 = v9; } AnimType = SpriteAnimationManager::getAnimType(v7, &v29); if ( (v29 & 1) != 0 ) { operator delete(v31); if ( AnimType != 2 ) return _stack_chk_guard; } else if ( AnimType != 2 ) { return _stack_chk_guard; } v12 = a1 + 624; if ( !sub_68C5B0(a1 + 624, a2) || !cocos2d::CCNode::getActionByTag((cocos2d::CCNode *)a1, 1) ) { SpriteAnimationManager::stopAnimations(*(SpriteAnimationManager **)(a1 + 648)); cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 1); if ( a2 != v12 ) { if ( (*(_BYTE *)a2 & 1) != 0 ) { v13 = *(const void **)(a2 + 16); v14 = *(_QWORD *)(a2 + 8); } else { v13 = (const void *)(a2 + 1); v14 = *(_BYTE *)a2 >> 1; } std::string::assign((__int64 *)(a1 + 624), v13, v14); } v15 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(*(_QWORD *)(a1 + 648) + 392LL), a2); v16 = (cocos2d::CCSpriteFrame *)v15; if ( v15 ) { v17 = *(_QWORD *)(*(_QWORD *)(a1 + 648) + 392LL); if ( !*(_DWORD *)(v15 + 28) ) { v18 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v18 = *(const char **)(a2 + 16); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_first", v18); CString = (cocos2d::CCSpriteFrame *)cocos2d::CCString::getCString(v19); v29 = 0; v30 = 0; v31 = nullptr; v20 = strlen((const char *)CString); std::string::__init(&v29, CString, v20); v16 = (cocos2d::CCSpriteFrame *)cocos2d::CCDictionary::objectForKey(v17, &v29); if ( (v29 & 1) != 0 ) { v28 = v16; operator delete(v31); v16 = v28; } } v21 = (__int64 *)CCPartAnimSprite::tweenToFrame(*(CCPartAnimSprite **)(a1 + 672), v16, a3); if ( a2 != v12 ) { if ( (*(_BYTE *)a2 & 1) != 0 ) { v22 = *(const void **)(a2 + 16); v23 = *(_QWORD *)(a2 + 8); } else { v22 = (const void *)(a2 + 1); v23 = *(_BYTE *)a2 >> 1; } v21 = std::string::assign((__int64 *)(a1 + 624), v22, v23); } v24 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)v21, a3); v25 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create( a1, CCAnimatedSprite::tweenToAnimationFinished, 0); v26 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v24, v25, 0); (*(void (__fastcall **)(cocos2d::CCAction *, __int64))(*(_QWORD *)v26 + 72LL))(v26, 1); cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v26); } } return _stack_chk_guard; }