// // CCPartAnimSprite::tweenToFrame from 0x100374fd0 to 0x1003751b1 (481 bytes) // // 1 xrefs: // > CCAnimatedSprite::tweenToAnimation @ 0x100350d71 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! void __fastcall CCPartAnimSprite::tweenToFrame(CCPartAnimSprite *a1, cocos2d::CCSpriteFrame *a2, float a3) { const char *CString; // r15 size_t v5; // rax size_t v6; // r14 char *v7; // r12 size_t v8; // r13 CCAnimateFrameCache *v9; // rax const char *v10; // rsi cocos2d::CCArray *v11; // rax cocos2d::CCArray *m_spriteParts; // rcx cocos2d::ccArray *data; // rdx __int64 num; // rsi unsigned __int64 arr; // rdx unsigned __int64 v16; // rsi cocos2d::ccArray *v17; // r14 __int64 v18; // r15 __int64 i; // r12 cocos2d::ccArray *v20; // rax cocos2d::CCObject **v21; // r14 unsigned __int64 v22; // r15 cocos2d::CCObject *v23; // rdi _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] if ( !a1->m_spriteFrame ) { ((void (__fastcall *)(CCPartAnimSprite *, cocos2d::CCSpriteFrame *))a1->setDisplayFrame)(a1, a2); return; } CString = cocos2d::CCString::getCString((cocos2d::CCString *)a2); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&a3); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 + 1; __dst[1] = v6; } else { LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( !v5 ) goto LABEL_11; } memmove(v7, CString, v6); LABEL_11: v7[v6] = 0; v9 = CCAnimateFrameCache::sharedSpriteFrameCache(); if ( (__dst[0] & 1) != 0 ) v10 = (const char *)__p; else v10 = (char *)__dst + 1; v11 = CCAnimateFrameCache::spriteFrameByName(v9, v10); if ( v11 ) { m_spriteParts = a1->m_spriteParts; if ( m_spriteParts ) { data = m_spriteParts->data; num = data->num; if ( data->num ) { arr = (unsigned __int64)data->arr; v16 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; *(_BYTE *)(*(_QWORD *)arr + 619LL) = 0; arr += 8LL; } while ( arr <= v16 ); } } v17 = v11->data; v18 = (int)v17->num; if ( v18 > 0 ) { for ( i = 0; i != v18; ++i ) CCPartAnimSprite::tweenSpriteTo(a1, (SpriteDescription *)v17->arr[i], a3); m_spriteParts = a1->m_spriteParts; } if ( m_spriteParts ) { v20 = m_spriteParts->data; if ( v20->num ) { v21 = v20->arr; v22 = (unsigned __int64)&v21[v20->num - 1]; do { v23 = *v21; if ( !*v21 ) break; if ( !BYTE3(v23[11].__vftable) ) ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v23->__vftable[4].~CCObject)(v23, 0); ++v21; } while ( (unsigned __int64)v21 <= v22 ); } } } a1->m_hasChanged = 1; if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source