//
// GJBaseGameLayer::updateAreaObjectLastValues from 0x59389c to 0x593912 (118 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::resetAreaObjectValues @ 0x59deee
// > GJBaseGameLayer::resetAreaObjectValues @ 0x59e066
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:07 +0000
//
int __fastcall GJBaseGameLayer::updateAreaObjectLastValues(int this, GameObject *a2)
{
int v2; // r5
float v4; // s14
float v5; // s14
v2 = this;
if ( !*((_BYTE *)a2 + 1110) )
{
if ( *((_DWORD *)a2 + 268) != *(_DWORD *)(this + 808) )
{
v4 = *((double *)a2 + 101);
*((float *)a2 + 265) = v4;
v5 = *((double *)a2 + 102);
*((float *)a2 + 266) = v5;
*((_DWORD *)a2 + 268) = *(_DWORD *)(this + 808);
this = GameObject::dirtifyObjectRect((int)a2);
}
if ( *((_DWORD *)a2 + 270) != *(_DWORD *)(v2 + 808) )
{
*((_DWORD *)a2 + 213) = *((_DWORD *)a2 + 252);
*((_DWORD *)a2 + 214) = *((_DWORD *)a2 + 253);
*((_DWORD *)a2 + 270) = *(_DWORD *)(v2 + 808);
return GameObject::dirtifyObjectRect((int)a2);
}
}
return this;
}