// // cocos2d::CCTimer::update from 0x7b4e88 to 0x7b4ffe (374 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:10 +0000 // int __fastcall cocos2d::CCTimer::update(int this, int a2) { float v2; // s15 int v3; // r4 float v4; // s15 int v5; // r2 int v6; // r3 char *v7; // r2 int v8; // r3 int v9; // r3 int v10; // r0 _DWORD *v11; // r0 char *v12; // r2 int v13; // r3 int v14; // r3 int v15; // r0 _DWORD *v16; // r0 float v17; // s15 float v18; // s14 char *v19; // r2 int v20; // r3 int v21; // r3 int v22; // r0 _DWORD *v23; // r0 int v24; // r0 int v25; // r0 v2 = *(float *)(this + 56); v3 = this; if ( v2 == -1.0 ) { *(_DWORD *)(this + 56) = 0; *(_DWORD *)(this + 64) = 0; } else { v4 = v2 + *(float *)&a2; v5 = *(unsigned __int8 *)(this + 60); v6 = *(unsigned __int8 *)(this + 61); *(float *)(this + 56) = v4; if ( !v5 || v6 ) { if ( v6 ) { if ( v4 >= *(float *)(this + 72) ) { this = *(_DWORD *)(this + 52); if ( this ) { v12 = *(char **)(v3 + 80); v13 = *(_DWORD *)(v3 + 84); if ( v12 || (v13 & 1) != 0 ) { v14 = v13 >> 1; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) a2 = *(int *)(this + v14); v15 = this + v14; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) v12 = *(char **)&v12[a2]; this = ((int (__fastcall *)(int, _DWORD))v12)(v15, LODWORD(v4)); } } if ( *(_DWORD *)(v3 + 88) ) { v16 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager((cocos2d::CCScriptEngineManager *)this); this = (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)*v16 + 52))( *v16, *(_DWORD *)(v3 + 88), *(_DWORD *)(v3 + 56), 0); } v17 = *(float *)(v3 + 56); v18 = *(float *)(v3 + 72); ++*(_DWORD *)(v3 + 64); *(_BYTE *)(v3 + 61) = 0; *(float *)(v3 + 56) = v17 - v18; } } else if ( v4 >= *(float *)(this + 76) ) { this = *(_DWORD *)(this + 52); if ( this ) { v19 = *(char **)(v3 + 80); v20 = *(_DWORD *)(v3 + 84); if ( v19 || (a2 = v20 << 31, (v20 & 1) != 0) ) { v21 = v20 >> 1; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) a2 = *(int *)(this + v21); v22 = this + v21; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) v19 = *(char **)&v19[a2]; this = ((int (__fastcall *)(int, _DWORD))v19)(v22, LODWORD(v4)); } } if ( *(_DWORD *)(v3 + 88) ) { v23 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager((cocos2d::CCScriptEngineManager *)this); this = (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)*v23 + 52))( *v23, *(_DWORD *)(v3 + 88), *(_DWORD *)(v3 + 56), 0); } *(_DWORD *)(v3 + 56) = 0; ++*(_DWORD *)(v3 + 64); } if ( !*(_BYTE *)(v3 + 60) && *(_DWORD *)(v3 + 64) > *(_DWORD *)(v3 + 68) ) { v24 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); v25 = (*(int (__fastcall **)(int))(*(_DWORD *)v24 + 64))(v24); return cocos2d::CCScheduler::unscheduleSelector( v25, *(_DWORD *)(v3 + 80), *(_DWORD *)(v3 + 84), *(_DWORD *)(v3 + 52)); } } else if ( v4 >= *(float *)(this + 76) ) { this = *(_DWORD *)(this + 52); if ( this ) { v7 = *(char **)(v3 + 80); v8 = *(_DWORD *)(v3 + 84); if ( v7 || (v8 & 1) != 0 ) { v9 = v8 >> 1; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) a2 = *(int *)(this + v9); v10 = this + v9; if ( (*(_DWORD *)(v3 + 84) & 1) != 0 ) v7 = *(char **)&v7[a2]; this = ((int (__fastcall *)(int, _DWORD))v7)(v10, LODWORD(v4)); } } if ( *(_DWORD *)(v3 + 88) ) { v11 = (_DWORD *)cocos2d::CCScriptEngineManager::sharedManager((cocos2d::CCScriptEngineManager *)this); this = (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)*v11 + 52))( *v11, *(_DWORD *)(v3 + 88), *(_DWORD *)(v3 + 56), 0); } *(_DWORD *)(v3 + 56) = 0; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source