// // CCPartAnimSprite::tweenToFrame from 0x6934ec to 0x6936e0 (500 bytes) // // 2 xrefs: // > CCAnimatedSprite::tweenToAnimation @ 0x68d1a8 // > @ 0x8b0d8 // // 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:36 +0000 // __int64 __fastcall CCPartAnimSprite::tweenToFrame(CCPartAnimSprite *this, cocos2d::CCSpriteFrame *a2, float a3) { size_t v5; // x0 CCAnimateFrameCache *v6; // x0 CCAnimateFrameCache *v7; // x0 const char *v8; // x1 __int64 v9; // x22 __int64 v10; // x0 int *v11; // x2 unsigned int v12; // w1 __int64 *v13; // x19 __int64 *v14; // x21 __int64 v15; // x0 __int64 v16; // x22 int v17; // w21 __int64 v18; // x19 __int64 v19; // x0 char *v20; // x19 __int64 v21; // x1 char *i; // x21 char v23; // w0 char *CString; // [xsp+48h] [xbp+48h] __int64 v26[2]; // [xsp+50h] [xbp+50h] BYREF void *v27; // [xsp+60h] [xbp+60h] if ( !*((_QWORD *)this + 76) ) { (*(void (__fastcall **)(CCPartAnimSprite *, cocos2d::CCSpriteFrame *))(*(_QWORD *)this + 1160LL))(this, a2); return _stack_chk_guard; } v26[0] = 0; CString = (char *)cocos2d::CCString::getCString(a2); v26[1] = 0; v27 = nullptr; v5 = strlen(CString); v6 = (CCAnimateFrameCache *)std::string::__init(v26, CString, v5); v7 = (CCAnimateFrameCache *)CCAnimateFrameCache::sharedSpriteFrameCache(v6); v8 = (char *)v26 + 1; if ( (v26[0] & 1) != 0 ) v8 = (const char *)v27; v9 = CCAnimateFrameCache::spriteFrameByName(v7, v8); if ( !v9 ) goto LABEL_18; v10 = *((_QWORD *)this + 79); if ( !v10 || (v11 = *(int **)(v10 + 56), (v12 = *v11) == 0) ) { v16 = *(_QWORD *)(v9 + 56); v17 = *(_DWORD *)v16; if ( *(int *)v16 <= 0 ) goto LABEL_18; goto LABEL_11; } v13 = *((__int64 **)v11 + 2); v14 = &v13[v12 - 1]; if ( v13 > v14 || (v15 = *v13) == 0 ) { v16 = *(_QWORD *)(v9 + 56); v17 = *(_DWORD *)v16; if ( *(int *)v16 <= 0 ) goto LABEL_15; goto LABEL_11; } do { CCSpritePart::markAsNotBeingUsed(v15); if ( v14 < ++v13 ) break; v15 = *v13; } while ( *v13 ); v16 = *(_QWORD *)(v9 + 56); v17 = *(_DWORD *)v16; if ( *(int *)v16 > 0 ) { LABEL_11: v18 = 0; do CCPartAnimSprite::tweenSpriteTo( (cocos2d::CCArray **)this, *(SpriteDescription **)(*(_QWORD *)(v16 + 16) + 8 * v18++), a3); while ( v17 > (int)v18 ); } v19 = *((_QWORD *)this + 79); if ( v19 ) { v11 = *(int **)(v19 + 56); v12 = *v11; if ( *v11 ) { LABEL_15: v20 = *((char **)v11 + 2); v21 = 8LL * v12 - 8; for ( i = &v20[v21]; i >= v20; v20 += 8 ) { if ( !*(_QWORD *)v20 ) break; CCSpritePart::hideInactive(*(_BYTE **)v20); } } } LABEL_18: v23 = v26[0]; *((_BYTE *)this + 616) = 1; if ( (v23 & 1) != 0 ) operator delete(v27); return _stack_chk_guard; }