// // cocos2d::CCRepeat::update from 0x7bd6b0 to 0x7bd7b6 (262 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:17 +0000 // int __fastcall cocos2d::CCRepeat::update(int this, float a2) { int v2; // r4 float v4; // s15 int v5; // r0 unsigned int v6; // r3 float *v7; // r0 float v8; // r3 int v9; // r5 int (__fastcall *v10)(int, _DWORD); // r6 float v11; // r1 v2 = this; if ( a2 < *(float *)(this + 88) ) { v9 = *(_DWORD *)(this + 96); v10 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 20); v11 = fmodf(a2 * (float)*(unsigned int *)(this + 80), 1.0); return v10(v9, LODWORD(v11)); } else { while ( 1 ) { v4 = *(float *)(v2 + 88); if ( a2 <= v4 ) break; if ( *(_DWORD *)(v2 + 84) >= *(_DWORD *)(v2 + 80) ) goto LABEL_8; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v2 + 96) + 20))(*(_DWORD *)(v2 + 96), 1065353216); v5 = *(_DWORD *)(v2 + 96); ++*(_DWORD *)(v2 + 84); (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 48))(v5); this = (*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 96) + 44))( *(_DWORD *)(v2 + 96), *(_DWORD *)(v2 + 56)); *(float *)(v2 + 88) = *(float *)(v2 + 88) + (float)(*(float *)(*(_DWORD *)(v2 + 96) + 68) / *(float *)(v2 + 68)); } if ( a2 >= 1.0 ) { v6 = *(_DWORD *)(v2 + 84); if ( v6 < *(_DWORD *)(v2 + 80) ) *(_DWORD *)(v2 + 84) = v6 + 1; } LABEL_8: if ( !*(_BYTE *)(v2 + 92) ) { v7 = *(float **)(v2 + 96); v8 = *v7; if ( *(_DWORD *)(v2 + 84) == *(_DWORD *)(v2 + 80) ) { (*(void (**)(void))(LODWORD(v8) + 20))(); return (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 96) + 48))(*(_DWORD *)(v2 + 96)); } else { return (*(int (__fastcall **)(float *, _DWORD))(LODWORD(v8) + 20))( v7, a2 - (float)(v4 - (float)(v7[17] / *(float *)(v2 + 68)))); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source