// // GJBaseGameLayer::getModifiedDelta from 0x140340630 to 0x1403406c8 (152 bytes) // // 3 xrefs: // > GJBaseGameLayer::update @ 0x1403407e7 // > LevelEditorLayer::updateEditor @ 0x1403f5ffd // > @ 0x14091fd6c // // 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 11:30:39 +0000 // __int64 __fastcall GJBaseGameLayer::getModifiedDelta(__int64 a1, float a2) { double v3; // xmm7_8 double v4; // xmm6_8 __int64 result; // rax if ( *(int *)(a1 + 13220) > 0 ) { cocos2d::CCDirector::sharedDirector(a1); --*(_DWORD *)(a1 + 13220); a2 = 0.0; } v3 = fminf(1.0, *(float *)(a1 + 816)) * 0.004166666666666667; v4 = (float)(a2 + *(double *)(a1 + 13136)); result = (unsigned int)(int)roundf(v4 / v3); *(double *)(a1 + 13136) = v4 - (double)(int)result * v3; return result; }