//
// GJBaseGameLayer::getModifiedDelta from 0x9a8860 to 0x9a890c (172 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateEditor @ 0x7a9064
// > GJBaseGameLayer::update @ 0x9ed65c
// > ??> @ 0xc9dc0
//
// 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 12:58:11 +0000
//
double __fastcall GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *this, float a2)
{
cocos2d::CCDirector *v3; // x0
double v4; // d1
float v5; // s2
float v6; // s1
double v7; // d2
double v8; // d1
float v9; // s0
double result; // d0
v3 = (cocos2d::CCDirector *)*((unsigned int *)this + 3185);
if ( (int)v3 <= 0 )
{
v5 = *((float *)this + 204);
v6 = a2 + *((double *)this + 1582);
if ( v5 >= 1.0 )
goto LABEL_3;
LABEL_6:
v7 = v5 * 0.00416666667;
goto LABEL_4;
}
cocos2d::CCDirector::sharedDirector(v3);
v4 = *((double *)this + 1582);
v5 = *((float *)this + 204);
--*((_DWORD *)this + 3185);
v6 = v4 + 0.0;
if ( v5 < 1.0 )
goto LABEL_6;
LABEL_3:
v7 = 0.00416666667;
LABEL_4:
v8 = v6;
v9 = v8 / v7;
result = v7 * (double)(int)llroundf(v9);
*((double *)this + 1582) = v8 - result;
return result;
}