//
// GJBaseGameLayer::getModifiedDelta from 0x100151260 to 0x100151304 (164 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateEditor @ 0x1000dd5e4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
double __fastcall GJBaseGameLayer::getModifiedDelta(GJBaseGameLayer *a1, float a2)
{
float m_timeWarp; // xmm2_4
double v3; // xmm1_8
float v4; // xmm0_4
double v5; // xmm2_8
double v6; // xmm0_8
__m128 v7; // xmm3
double result; // xmm0_8
if ( a1->m_resumeTimer > 0 )
{
cocos2d::CCDirector::sharedDirector();
--a1->m_resumeTimer;
a2 = 0.0;
}
m_timeWarp = a1->m_gameState.m_timeWarp;
v3 = 0.004166666666666667;
if ( m_timeWarp < 1.0 )
v3 = 0.004166666666666667 * m_timeWarp;
v4 = a2 + a1->m_extraDelta;
v5 = v4;
v6 = v5 / v3;
*(float *)&v6 = v5 / v3;
v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, (__m128)*(unsigned __int64 *)&v6), (__m128)xmmword_1008150C0);
v7.f32[0] = v7.f32[0] + *(float *)&v6;
result = _mm_cvtepi32_pd(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v7, 11))).f64[0] * v3;
a1->m_extraDelta = v5 - result;
return result;
}