// // cocos2d::CCAnimate::initWithAnimation from 0x7bf91c to 0x7bfa94 (376 bytes) // // 2 xrefs: // > cocos2d::CCAnimate::create @ 0x7bfab4 // > cocos2d::CCAnimate::copyWithZone @ 0x7bfb74 // // 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 12:00:19 +0000 // int __fastcall cocos2d::CCAnimate::initWithAnimation(cocos2d::CCObject **this, cocos2d::CCAnimation *a2) { float v4; // s18 int v5; // r8 cocos2d::CCObject *v6; // r0 _DWORD *v7; // r6 unsigned int v8; // r0 int v9; // r3 float v10; // s19 _DWORD *v11; // r3 float v12; // s17 int *v13; // r6 int v14; // r3 int v15; // t1 _DWORD *v17; // r5 float *v18; // r2 float v19; // s16 float v20; // s16 unsigned int v21; // r2 unsigned int v22; // r1 int *v23; // [sp+4h] [bp-20h] void *v24; // [sp+8h] [bp-1Ch] BYREF int v25; // [sp+Ch] [bp-18h] float *v26; // [sp+10h] [bp-14h] v4 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCAnimation *))(*(_DWORD *)a2 + 40))(a2)); v5 = cocos2d::CCActionInterval::initWithDuration( (cocos2d::CCActionInterval *)this, v4 * (float)*((unsigned int *)a2 + 18)); if ( v5 ) { *(this + 22) = nullptr; if ( *(this + 20) != a2 ) { cocos2d::CCObject::retain(a2); v6 = *(this + 20); if ( v6 ) cocos2d::CCObject::release(v6); *(this + 20) = a2; } *(this + 23) = nullptr; *(this + 24) = nullptr; v7 = *(this + 21); v8 = cocos2d::CCArray::count(*((cocos2d::CCArray **)a2 + 16)); if ( v8 > (v7[2] - *v7) >> 2 ) { std::__split_buffer::__split_buffer(&v24, v8, (v7[1] - *v7) >> 2, (int)(v7 + 2)); std::vector::__swap_out_circular_buffer((int)v7, &v24); v26 -= ((unsigned int)v26 - v25) >> 2; if ( v24 ) operator delete(v24); } v9 = *((_DWORD *)a2 + 16); v10 = *((float *)a2 + 13); if ( v9 ) { v11 = *(_DWORD **)(v9 + 52); if ( *v11 ) { v12 = 0.0; v13 = (int *)v11[3]; v23 = &v13[*v11 - 1]; while ( v13 <= v23 ) { v15 = *v13++; v14 = v15; if ( !v15 ) break; v17 = *(this + 21); v18 = (float *)v17[1]; v19 = v12 * (float)(v4 / v10); v12 = v12 + *(float *)(v14 + 56); v20 = v19 / v4; if ( v18 == (float *)v17[2] ) { v21 = ((int)v18 - *v17) >> 2; if ( v21 > 0x1FFFFFFE ) { v22 = 0x3FFFFFFF; } else { v22 = v21 + 1; if ( v21 + 1 < 2 * v21 ) v22 = 2 * v21; } std::__split_buffer::__split_buffer(&v24, v22, v21, (int)(v17 + 2)); if ( v26 ) *v26 = v20; ++v26; std::vector::__swap_out_circular_buffer((int)v17, &v24); v26 -= ((unsigned int)v26 - v25) >> 2; if ( v24 ) operator delete(v24); } else { if ( v18 ) *v18 = v20; v17[1] += 4; } } } } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source