//
// GJBaseGameLayer::getModifiedDelta from 0x10029a680 to 0x10029a70c (140 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x10029a79c
// > LevelEditorLayer::updateEditor @ 0x1003f7f84
//
// 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 11:02:08 +0000
//
double __fastcall GJBaseGameLayer::getModifiedDelta(__int64 a1, float a2)
{
float v3; // s2
double v4; // d2
float v5; // s0
double v6; // d1
float v7; // s0
double result; // d0
if ( *(int *)(a1 + 12740) >= 1 )
{
cocos2d::CCDirector::sharedDirector();
--*(_DWORD *)(a1 + 12740);
a2 = 0.0;
}
v3 = *(float *)(a1 + 816);
if ( v3 >= 1.0 )
v4 = 0.00416666667;
else
v4 = v3 * 0.00416666667;
v5 = *(double *)(a1 + 12656) + a2;
v6 = v5;
v7 = v5 / v4;
result = v4 * (double)(int)llroundf(v7);
*(double *)(a1 + 12656) = v6 - result;
return result;
}