// // cocos2d::CCRepeat::update from 0xd32834 to 0xd329d8 (420 bytes) // // 2 xrefs: // > @ 0x48dc0 // > @ 0x1513a48 // // 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:21 +0000 // __int64 __fastcall cocos2d::CCRepeat::update(cocos2d::CCRepeat *this, float a2) { float v3; // s1 float *v5; // x0 __int64 v6; // x1 unsigned int v7; // w0 __int64 result; // x0 float *v9; // x1 __int64 (__fastcall *v10)(__int64, float); // x19 float v11; // s0 __int64 v12; // [xsp+28h] [xbp+28h] v3 = *((float *)this + 25); if ( v3 > a2 ) { v12 = *((_QWORD *)this + 14); v10 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 40LL); v11 = fmodf((float)*((unsigned int *)this + 23) * a2, 1.0); return v10(v12, v11); } if ( v3 >= a2 ) goto LABEL_7; if ( *((_DWORD *)this + 23) > *((_DWORD *)this + 24) ) { v5 = *((float **)this + 14); while ( 1 ) { (*(void (__fastcall **)(float *, float))(*(_QWORD *)v5 + 40LL))(v5, 1.0); v6 = *((_QWORD *)this + 14); ++*((_DWORD *)this + 24); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 96LL))(v6); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 14) + 88LL))( *((_QWORD *)this + 14), *((_QWORD *)this + 8)); v5 = *((float **)this + 14); v3 = (float)(v5[20] / *((float *)this + 20)) + *((float *)this + 25); *((float *)this + 25) = v3; if ( a2 <= v3 ) break; if ( *((_DWORD *)this + 24) >= *((_DWORD *)this + 23) ) goto LABEL_10; } LABEL_7: if ( a2 >= 1.0 ) { v7 = *((_DWORD *)this + 24); if ( v7 < *((_DWORD *)this + 23) ) *((_DWORD *)this + 24) = v7 + 1; } } LABEL_10: result = *((unsigned __int8 *)this + 104); if ( !*((_BYTE *)this + 104) ) { v9 = *((float **)this + 14); if ( *((_DWORD *)this + 24) == *((_DWORD *)this + 23) ) { (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v9 + 40LL))(*((_QWORD *)this + 14), 1.0); return (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 14) + 96LL))(*((_QWORD *)this + 14)); } else { return (*(__int64 (__fastcall **)(_QWORD, float))(*(_QWORD *)v9 + 40LL))( *((_QWORD *)this + 14), a2 - (float)(v3 - (float)(v9[20] / *((float *)this + 20)))); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source