// // cocos2d::CCAnimate::update from 0x180037130 to 0x18003738d (605 bytes) // // 6 xrefs: // > @ 0x1800eff50 // > @ 0x18013f0f0 // > @ 0x18013f100 // > @ 0x18013f11c // > @ 0x18014cf68 // > @ 0x1801baad4 // // This function is hookable on this platform (idp: pc, 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 11:21:35 +0000 // void __fastcall cocos2d::CCAnimate::update(cocos2d::CCAnimate *this, float a2) { float v3; // xmm6_4 __int64 v4; // rax unsigned int v5; // ecx float v6; // xmm6_4 cocos2d::CCArray *v7; // r13 unsigned int v8; // eax __int64 v9; // rbp unsigned int v10; // r12d __int64 v11; // r14 _QWORD *v12; // rcx struct cocos2d::CCString *v13; // rax __int64 v14; // rax _DWORD *v15; // rax __int64 *v16; // rdi __int64 v17; // rbx float *v18; // rax cocos2d::CCArray *v19; // rdi _DWORD *v20; // rax unsigned int i; // ebx struct cocos2d::CCString *v22; // rax float v23[4]; // [rsp+20h] [rbp-68h] BYREF float v24; // [rsp+90h] [rbp+8h] BYREF float v25; // [rsp+94h] [rbp+Ch] float v26; // [rsp+A0h] [rbp+18h] BYREF float v27; // [rsp+A4h] [rbp+1Ch] float v28; // [rsp+A8h] [rbp+20h] BYREF v3 = a2; if ( a2 < 1.0 ) { v4 = *((_QWORD *)this + 12); v5 = *((_DWORD *)this + 32); v6 = a2 * (float)*(int *)(v4 + 84); if ( (int)v6 > v5 ) { *((_DWORD *)this + 28) = 0; *((_DWORD *)this + 32) = v5 + 1; } v3 = fmodf(v6, 1.0); } v7 = *(cocos2d::CCArray **)(*((_QWORD *)this + 12) + 72LL); v8 = cocos2d::CCArray::count(v7); v9 = *((unsigned int *)this + 28); v10 = v8; if ( (unsigned int)v9 < v8 ) { v11 = 4 * v9; do { v12 = *((_QWORD **)this + 13); if ( (__int64)(v12[1] - *v12) >> 2 <= (unsigned __int64)(unsigned int)v9 ) std::vector::_Xlen(); if ( v3 < *(float *)(v11 + *v12) ) break; v13 = cocos2d::CCArray::stringAtIndex(v7, v9); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 8) + 1008LL))( *((_QWORD *)this + 8), *((_QWORD *)v13 + 7)); if ( *((_BYTE *)this + 132) && (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 504LL))(*((_QWORD *)this + 8)) ) { v14 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 504LL))(*((_QWORD *)this + 8)); v15 = (_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 320LL))(v14); cocos2d::cc_timeval::operator=(&v24, v15); v16 = *((__int64 **)this + 8); v17 = *v16; v18 = kmVec2Fill(v23, v24 * 0.5, v25 * 0.5); (*(void (__fastcall **)(__int64 *, float *))(v17 + 184))(v16, v18); } if ( *((_BYTE *)this + 133) ) { v19 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 480LL))(*((_QWORD *)this + 8)); if ( v19 ) { v20 = (_DWORD *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 8) + 320LL))(*((_QWORD *)this + 8)); cocos2d::cc_timeval::operator=(&v26, v20); kmVec2Fill(&v28, v26 * 0.5, v27 * 0.5); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v19); ++i ) { v22 = cocos2d::CCArray::stringAtIndex(v19, i); (*(void (__fastcall **)(struct cocos2d::CCString *, float *))(*(_QWORD *)v22 + 184LL))(v22, &v28); } } } LODWORD(v9) = v9 + 1; v11 += 4; *((_DWORD *)this + 28) = v9; } while ( (unsigned int)v9 < v10 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source