//
// GJBaseGameLayer::updateAreaObjectLastValues from 0x140330b00 to 0x140330b94 (148 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetAreaObjectValues @ 0x1403308d8
// > GJBaseGameLayer::resetAreaObjectValues @ 0x140330a73
//
// 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 11:30:32 +0000
//
__int64 __fastcall GJBaseGameLayer::updateAreaObjectLastValues(__int64 a1, __int64 a2)
{
float v2; // xmm1_4
__int64 result; // rax
if ( !*(_BYTE *)(a2 + 1298) )
{
if ( *(_DWORD *)(a2 + 1244) != *(_DWORD *)(a1 + 992) )
{
v2 = *(double *)(a2 + 960);
*(float *)(a2 + 1232) = *(double *)(a2 + 952);
*(float *)(a2 + 1236) = v2;
*(_DWORD *)(a2 + 1244) = *(_DWORD *)(a1 + 992);
*(_WORD *)(a2 + 872) = 257;
}
result = *(unsigned int *)(a1 + 992);
if ( *(_DWORD *)(a2 + 1252) != (_DWORD)result )
{
*(_DWORD *)(a2 + 996) = *(_DWORD *)(a2 + 1160);
*(_DWORD *)(a2 + 1000) = *(_DWORD *)(a2 + 1164);
result = *(unsigned int *)(a1 + 992);
*(_DWORD *)(a2 + 1252) = result;
*(_WORD *)(a2 + 872) = 257;
}
}
return result;
}