// // cocos2d::CCTimer::update from 0x100435ef0 to 0x10043609a (426 bytes) // // 1 xrefs: // > @ 0x100b438d0 // // 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 12:30:24 +0000 // __int64 __fastcall cocos2d::CCTimer::update(__int64 a1, __int64 a2, float a3) { __int64 result; // rax __int64 v5; // rbx float v6; // xmm0_4 float v7; // xmm0_4 _QWORD *v8; // rax _QWORD *v9; // rax __int64 v10; // rax __int64 v11; // rax float v12; // xmm0_4 __int64 v13; // rdi _QWORD *v14; // rdi _QWORD *v15; // rax v5 = a1; v6 = *(float *)(a1 + 64); if ( v6 == -1.0 ) { *(_DWORD *)(a1 + 64) = 0; *(_DWORD *)(a1 + 72) = 0; } else { result = *(unsigned __int8 *)(a1 + 69); if ( *(_BYTE *)(a1 + 68) == 1 && (result & 1) == 0 ) { v12 = v6 + a3; *(float *)(a1 + 64) = v12; if ( v12 >= *(float *)(a1 + 84) ) { v13 = *(_QWORD *)(a1 + 56); if ( v13 ) { result = *(_QWORD *)(v5 + 88); if ( result ) { v14 = (_QWORD *)(*(_QWORD *)(v5 + 96) + v13); if ( (result & 1) != 0 ) result = *(_QWORD *)(*v14 + result - 1); result = ((__int64 (__fastcall *)(_QWORD *))result)(v14); } } if ( *(_DWORD *)(v5 + 104) ) { v15 = cocos2d::CCScriptEngineManager::sharedManager(); result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, float))(*(_QWORD *)*v15 + 104LL))( *v15, *(unsigned int *)(v5 + 104), 0, *(float *)(v5 + 64)); } *(_DWORD *)(v5 + 64) = 0; } } else { v7 = v6 + a3; *(float *)(a1 + 64) = v7; if ( (result & 1) != 0 ) { if ( v7 >= *(float *)(a1 + 80) ) { a1 = *(_QWORD *)(a1 + 56); if ( a1 ) { result = *(_QWORD *)(v5 + 88); if ( result ) { a1 += *(_QWORD *)(v5 + 96); if ( (result & 1) != 0 ) result = *(_QWORD *)(*(_QWORD *)a1 + result - 1); result = ((__int64 (__fastcall *)(__int64))result)(a1); } } if ( *(_DWORD *)(v5 + 104) ) { v8 = cocos2d::CCScriptEngineManager::sharedManager(); a1 = *v8; a2 = *(unsigned int *)(v5 + 104); result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD, float))(*(_QWORD *)*v8 + 104LL))( *v8, a2, 0, *(float *)(v5 + 64)); } *(float *)(v5 + 64) = *(float *)(v5 + 64) - *(float *)(v5 + 80); ++*(_DWORD *)(v5 + 72); *(_BYTE *)(v5 + 69) = 0; } } else if ( v7 >= *(float *)(a1 + 84) ) { a1 = *(_QWORD *)(a1 + 56); if ( a1 ) { result = *(_QWORD *)(v5 + 88); if ( result ) { a1 += *(_QWORD *)(v5 + 96); if ( (result & 1) != 0 ) result = *(_QWORD *)(*(_QWORD *)a1 + result - 1); result = ((__int64 (__fastcall *)(__int64))result)(a1); } } if ( *(_DWORD *)(v5 + 104) ) { v9 = cocos2d::CCScriptEngineManager::sharedManager(); a1 = *v9; a2 = *(unsigned int *)(v5 + 104); result = (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD, float))(*(_QWORD *)*v9 + 104LL))( *v9, a2, 0, *(float *)(v5 + 64)); } *(_DWORD *)(v5 + 64) = 0; ++*(_DWORD *)(v5 + 72); } if ( !*(_BYTE *)(v5 + 68) ) { result = *(unsigned int *)(v5 + 72); if ( (unsigned int)result > *(_DWORD *)(v5 + 76) ) { v10 = cocos2d::CCDirector::sharedDirector(a1, a2); v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 128LL))(v10); return cocos2d::CCScheduler::unscheduleSelector( v11, *(_QWORD *)(v5 + 88), *(_QWORD *)(v5 + 96), *(_QWORD *)(v5 + 56)); } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source