// // cocos2d::CCTimer::update from 0xd23120 to 0xd23380 (608 bytes) // // 2 xrefs: // > @ 0x9eba8 // > @ 0x1510a48 // // 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:12 +0000 // float __fastcall cocos2d::CCTimer::update(cocos2d::CCTimer *this, float a2) { float v2; // s1 int v4; // w0 float result; // s0 int v6; // w1 __int64 v7; // x3 void (__fastcall *v8)(__int64); // x2 __int64 v9; // x0 cocos2d::CCScriptEngineManager *v10; // x0 float v11; // s1 __int64 v12; // x3 void (__fastcall *v13)(__int64); // x2 __int64 v14; // x0 cocos2d::CCScriptEngineManager *v15; // x0 _QWORD *v16; // x0 cocos2d::CCDirector *v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x3 void (__fastcall *v21)(__int64); // x2 __int64 v22; // x0 cocos2d::CCScriptEngineManager *v23; // x0 float v24; // s0 float v25; // s1 int v26; // w0 int v27; // w1 _QWORD *v28; // x0 _QWORD *v29; // x0 v2 = *((float *)this + 16); if ( v2 == -1.0 ) { *((_DWORD *)this + 18) = 0; *((_DWORD *)this + 16) = 0; return 0.0; } v4 = *((unsigned __int8 *)this + 68); if ( v4 ) { result = v2 + a2; if ( *((_BYTE *)this + 69) ) { *((float *)this + 16) = result; goto LABEL_27; } v11 = *((float *)this + 21); *((float *)this + 16) = result; if ( result < v11 ) return result; v12 = *((_QWORD *)this + 7); if ( v12 ) { v13 = *((void (__fastcall **)(__int64))this + 11); v14 = *((_QWORD *)this + 12); if ( v13 ) { if ( (v14 & 1) == 0 ) { v13(v12 + (v14 >> 1)); goto LABEL_20; } } else if ( (v14 & 1) == 0 ) { goto LABEL_20; } (*(void (__fastcall **)(__int64))((char *)v13 + *(_QWORD *)(v12 + (v14 >> 1))))(v12 + (v14 >> 1)); } LABEL_20: v15 = (cocos2d::CCScriptEngineManager *)*((unsigned int *)this + 26); if ( (_DWORD)v15 ) { v16 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v15); (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD, float))(*(_QWORD *)*v16 + 104LL))( *v16, *((unsigned int *)this + 26), 0, *((float *)this + 16)); } *((_DWORD *)this + 16) = 0; return 0.0; } result = v2 + a2; v6 = *((unsigned __int8 *)this + 69); *((float *)this + 16) = result; if ( !v6 ) { if ( result >= *((float *)this + 21) ) { v7 = *((_QWORD *)this + 7); if ( v7 ) { v8 = *((void (__fastcall **)(__int64))this + 11); v9 = *((_QWORD *)this + 12); if ( v8 ) { if ( (v9 & 1) == 0 ) { v8(v7 + (v9 >> 1)); goto LABEL_9; } } else if ( (v9 & 1) == 0 ) { goto LABEL_9; } (*(void (__fastcall **)(__int64))((char *)v8 + *(_QWORD *)(v7 + (v9 >> 1))))(v7 + (v9 >> 1)); } LABEL_9: v10 = (cocos2d::CCScriptEngineManager *)*((unsigned int *)this + 26); if ( (_DWORD)v10 ) { v29 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v10); (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD, float))(*(_QWORD *)*v29 + 104LL))( *v29, *((unsigned int *)this + 26), 0, *((float *)this + 16)); } result = 0.0; v4 = *((unsigned __int8 *)this + 68); ++*((_DWORD *)this + 18); *((_DWORD *)this + 16) = 0; LABEL_12: if ( v4 ) return result; } LABEL_23: v17 = (cocos2d::CCDirector *)*((unsigned int *)this + 19); if ( *((_DWORD *)this + 18) > (unsigned int)v17 ) { v18 = cocos2d::CCDirector::sharedDirector(v17); v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 128LL))(v18); cocos2d::CCScheduler::unscheduleSelector( v19, *((_QWORD *)this + 11), *((_QWORD *)this + 12), *((_QWORD *)this + 7)); } return result; } LABEL_27: if ( result < *((float *)this + 20) ) goto LABEL_12; v20 = *((_QWORD *)this + 7); if ( v20 ) { v21 = *((void (__fastcall **)(__int64))this + 11); v22 = *((_QWORD *)this + 12); if ( v21 ) { if ( (v22 & 1) == 0 ) { v21(v20 + (v22 >> 1)); goto LABEL_32; } } else if ( (v22 & 1) == 0 ) { goto LABEL_32; } (*(void (__fastcall **)(__int64))((char *)v21 + *(_QWORD *)(v20 + (v22 >> 1))))(v20 + (v22 >> 1)); } LABEL_32: v23 = (cocos2d::CCScriptEngineManager *)*((unsigned int *)this + 26); if ( (_DWORD)v23 ) { v28 = (_QWORD *)cocos2d::CCScriptEngineManager::sharedManager(v23); (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD, float))(*(_QWORD *)*v28 + 104LL))( *v28, *((unsigned int *)this + 26), 0, *((float *)this + 16)); } v24 = *((float *)this + 16); v25 = *((float *)this + 20); v26 = *((unsigned __int8 *)this + 68); v27 = *((_DWORD *)this + 18) + 1; *((_BYTE *)this + 69) = 0; result = v24 - v25; *((_DWORD *)this + 18) = v27; *((float *)this + 16) = result; if ( !v26 ) goto LABEL_23; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source