//
// GJBaseGameLayer::getEasedAreaValue from 0x100122040 to 0x100122144 (260 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x100120150
// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x1001203d4
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1001207c2
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1001208c2
//
// 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:39 +0000
//
__m128 __fastcall GJBaseGameLayer::getEasedAreaValue(__int64 a1, __m128 result, __int64 a3, __int64 a4, int a5, int a6)
{
__int64 v6; // rax
__int64 v7; // rsi
__int64 v8; // r8
int v9; // edx
int v10; // ecx
__m128 v11; // xmm1
__m128 v12; // xmm1
v6 = *(_QWORD *)(a4 + 168);
if ( *(_BYTE *)(v6 + 1973) != 1 )
goto LABEL_6;
if ( result.f32[0] > 0.0099999998 && result.f32[0] < 0.99000001 )
{
v7 = a6;
v8 = *(_QWORD *)(a4 + 208);
v9 = *(_DWORD *)(a4 + 192);
a5 = (*(_DWORD *)(v8 + 4 * v7) != v9 - 2) & (unsigned __int8)(a5 | (*(_DWORD *)(v8 + 4 * v7) == v9 - 1));
*(_DWORD *)(v8 + 4 * v7) = a5 + v9;
}
if ( !(_BYTE)a5 )
{
v10 = *(_DWORD *)(v6 + 1940);
if ( v10 != -1 )
{
if ( v10 == -2 )
{
*(double *)result.i64 = GameToolbox::getEasedValue(
*(unsigned int *)(v6 + 1932),
*(double *)result.i64,
*(float *)(v6 + 1936));
return result;
}
goto LABEL_13;
}
}
else
{
LABEL_6:
v10 = *(_DWORD *)(v6 + 1928);
if ( v10 != -1 )
{
if ( v10 == -2 )
{
*(double *)result.i64 = GameToolbox::getEasedValue(
*(unsigned int *)(v6 + 1920),
*(double *)result.i64,
*(float *)(v6 + 1924));
return result;
}
LABEL_13:
v11 = result;
v11.f32[0] = result.f32[0] * 100.0;
v12 = _mm_cvtepi32_ps(_mm_cvttps_epi32(v11));
v12.f32[0] = (float)((float)((float)((float)(v12.f32[0] * -0.0099999998) + result.f32[0])
* (float)(*(float *)(*(_QWORD *)(a1 + 12136)
+ 4LL * ((int)(float)(result.f32[0] * 100.0) + v10)
+ 4)
- *(float *)(*(_QWORD *)(a1 + 12136)
+ 4LL * ((int)(float)(result.f32[0] * 100.0) + v10))))
* 100.0)
+ *(float *)(*(_QWORD *)(a1 + 12136) + 4LL * ((int)(float)(result.f32[0] * 100.0) + v10));
return v12;
}
}
return result;
}