// // cocos2d::CCRepeat::update from 0x1800371a0 to 0x1800372da (314 bytes) // // 6 xrefs: // > @ 0x1800e9410 // > @ 0x180135684 // > @ 0x180135698 // > @ 0x1801356b0 // > @ 0x1801438a8 // > @ 0x1801b0a8c // // 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 // void __fastcall cocos2d::CCRepeat::update(cocos2d::CCRepeat *this, float a2) { float v2; // xmm2_4 __int64 v4; // rcx float v5; // xmm2_4 unsigned int v6; // eax __int64 v7; // rdx __int64 *v8; // rbx __int64 v9; // rdi v2 = *((float *)this + 26); if ( a2 < v2 ) { v8 = *((__int64 **)this + 14); v9 = *v8; fmodf((float)*((int *)this + 24) * a2, 1.0); (*(void (__fastcall **)(__int64 *))(v9 + 32))(v8); } else { if ( a2 > v2 ) { do { if ( *((_DWORD *)this + 25) >= *((_DWORD *)this + 24) ) break; (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 14) + 32LL))(*((_QWORD *)this + 14)); v4 = *((_QWORD *)this + 14); ++*((_DWORD *)this + 25); (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 88LL))(v4); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(**((_QWORD **)this + 14) + 80LL))( *((_QWORD *)this + 14), this->m_pTarget); v5 = (float)(*(float *)(*((_QWORD *)this + 14) + 80LL) / this->m_fDuration) + *((float *)this + 26); *((float *)this + 26) = v5; } while ( a2 > v5 ); } if ( a2 >= 1.0 ) { v6 = *((_DWORD *)this + 25); if ( v6 < *((_DWORD *)this + 24) ) *((_DWORD *)this + 25) = v6 + 1; } if ( !*((_BYTE *)this + 108) ) { v7 = **((_QWORD **)this + 14); if ( *((_DWORD *)this + 25) == *((_DWORD *)this + 24) ) { (*(void (**)(void))(v7 + 32))(); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 14) + 88LL))(*((_QWORD *)this + 14)); } else { (*(void (**)(void))(v7 + 32))(); } } } }