//
// GJBaseGameLayer::getModifiedDelta from 0x595f88 to 0x596012 (138 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateEditor @ 0x4731b0
// > GJBaseGameLayer::update @ 0x5bd78e
//
// 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 11:53:09 +0000
//
double __fastcall GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *this, float a2)
{
double v4; // d9
double v5; // d8
float v6; // s14
float v7; // s16
double result; // r0
if ( *((int *)this + 2733) > 0 )
{
cocos2d::CCDirector::sharedDirector(this);
a2 = 0.0;
--*((_DWORD *)this + 2733);
}
v4 = 0.00416666667;
v5 = a2 + *((double *)this + 1359);
v6 = *((float *)this + 180);
if ( v6 < 1.0 )
v4 = v6 * 0.00416666667;
v7 = v5;
result = (double)lroundf() * v4;
*((double *)this + 1359) = v7 - result;
return result;
}