//
// GJBaseGameLayer::getModifiedDelta from 0x10012f180 to 0x10012f224 (164 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::updateEditor @ 0x1000ac637
//
// 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 12:24:46 +0000
//
__int64 __fastcall GJBaseGameLayer::getModifiedDelta(__int64 a1, __int64 a2, float a3)
{
__int64 result; // rax
float v4; // xmm2_4
double v5; // xmm1_8
float v6; // xmm0_4
double v7; // xmm2_8
double v8; // xmm0_8
__m128 v9; // xmm3
if ( *(int *)(a1 + 12740) > 0 )
{
result = cocos2d::CCDirector::sharedDirector(a1, a2);
--*(_DWORD *)(a1 + 12740);
a3 = 0.0;
}
v4 = *(float *)(a1 + 816);
v5 = 0.004166666666666667;
if ( v4 < 1.0 )
v5 = 0.004166666666666667 * v4;
v6 = a3 + *(double *)(a1 + 12656);
v7 = v6;
v8 = v7 / v5;
*(float *)&v8 = v7 / v5;
v9 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, (__m128)*(unsigned __int64 *)&v8), (__m128)xmmword_100A03600);
v9.f32[0] = v9.f32[0] + *(float *)&v8;
*(double *)(a1 + 12656) = v7 - _mm_cvtepi32_pd(_mm_cvttps_epi32(_mm_round_ss((__m128)0LL, v9, 11))).f64[0] * v5;
return result;
}