// // cocos2d::CCAnimate::initWithAnimation from 0xd365a8 to 0xd367e0 (568 bytes) // // 4 xrefs: // > cocos2d::CCAnimate::create @ 0xd36808 // > cocos2d::CCAnimate::copyWithZone @ 0xd3691c // > cocos2d::CCAnimate::copyWithZone @ 0xd36978 // > @ 0x1007e0 // // 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 13:07:23 +0000 // __int64 __fastcall cocos2d::CCAnimate::initWithAnimation(cocos2d::CCAnimation **this, cocos2d::CCAnimation *a2) { float v4; // s9 unsigned __int8 v5; // w0 unsigned int v6; // w24 cocos2d::CCAnimation *v8; // x0 cocos2d::CCObject *v9; // x0 const void **v10; // x22 unsigned __int64 v11; // x1 __int64 v12; // x0 float v13; // s10 unsigned int *v14; // x0 __int64 *v15; // x19 __int64 *v16; // x23 __int64 v17; // x2 float v18; // s10 float v19; // s8 __int64 v20; // x0 float v21; // s0 float *v22; // x1 const void *v23; // x1 signed __int64 v24; // x2 char *v25; // x0 void *v26; // x1 char *v27; // x0 const void *v28; // x0 void *v29; // [xsp+60h] [xbp+60h] BYREF void *v30; // [xsp+68h] [xbp+68h] char *v31; // [xsp+70h] [xbp+70h] const void *v32; // [xsp+78h] [xbp+78h] v4 = (*(float (__fastcall **)(cocos2d::CCAnimation *))(*(_QWORD *)a2 + 80LL))(a2); v5 = cocos2d::CCActionInterval::initWithDuration( (cocos2d::CCActionInterval *)this, (float)*((unsigned int *)a2 + 21) * v4); v6 = v5; if ( v5 ) { v8 = *(this + 12); *((_DWORD *)this + 28) = 0; if ( a2 != v8 ) { cocos2d::CCObject::retain(a2); v9 = *(this + 12); if ( v9 ) cocos2d::CCObject::release(v9); *(this + 12) = a2; } *(this + 15) = nullptr; *((_DWORD *)this + 32) = 0; v10 = (const void **)*(this + 13); v11 = (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)a2 + 9)); if ( v11 > ((_BYTE *)v10[2] - (_BYTE *)*v10) >> 2 ) { std::__split_buffer::__split_buffer( (__int64 *)&v29, v11, ((_BYTE *)v10[1] - (_BYTE *)*v10) >> 2, (__int64)(v10 + 2)); v23 = *v10; v24 = (_BYTE *)v10[1] - (_BYTE *)*v10; v25 = (char *)v30 - v24; v30 = (char *)v30 - v24; if ( v24 > 3 ) { memcpy(v25, v23, v24); v25 = (char *)v30; } v26 = (void *)*v10; *v10 = v25; v30 = v26; v27 = (char *)v10[1]; v10[1] = v31; v31 = v27; v28 = v10[2]; v10[2] = v32; v32 = v28; v29 = v30; if ( v31 != v30 ) v31 += 4 * ~((unsigned __int64)(v31 - 4 - (_BYTE *)v30) >> 2); if ( v30 ) operator delete(v30); } v12 = *((_QWORD *)a2 + 9); v13 = *((float *)a2 + 14); if ( v12 ) { v14 = *(unsigned int **)(v12 + 56); if ( *v14 ) { v15 = *((__int64 **)v14 + 2); v16 = &v15[*v14 - 1]; if ( v15 <= v16 ) { v17 = *v15; if ( *v15 ) { v18 = v4 / v13; v19 = 0.0; do { v20 = (__int64)*(this + 13); v21 = (float)(v19 * v18) / v4; *(float *)&v29 = v21; v22 = *(float **)(v20 + 8); v19 = v19 + *(float *)(v17 + 64); if ( v22 == *(float **)(v20 + 16) ) { std::vector::__push_back_slow_path((void **)v20, &v29); } else { if ( v22 ) { *v22 = v21; v22 = *(float **)(v20 + 8); } *(_QWORD *)(v20 + 8) = v22 + 1; } if ( v16 < ++v15 ) break; v17 = *v15; } while ( *v15 ); } } } } } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source