//
// GJBaseGameLayer::moveAreaObject from 0x59e0e4 to 0x59e196 (178 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::transformAreaObjects @ 0x59e39a
// > GJBaseGameLayer::rotateAreaObjects @ 0x59ea1c
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x59ee72
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x59f094
//
// 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:15 +0000
//
int __fastcall GJBaseGameLayer::moveAreaObject(GJBaseGameLayer *this, GameObject *a2, float a3, float a4)
{
int result; // r0
double v9; // d6
result = GJBaseGameLayer::resetAreaObjectValues(this, a2, 1);
if ( a3 == 0.0 )
{
if ( a4 == 0.0 )
{
if ( !result )
return result;
return (*(int (__fastcall **)(GJBaseGameLayer *, GameObject *))(*(_DWORD *)this + 684))(this, a2);
}
}
else if ( a4 == 0.0 )
{
GameObject::dirtifyObjectPos((int)a2);
GameObject::dirtifyObjectRect((int)a2);
LABEL_4:
if ( !*((_BYTE *)a2 + 608) )
{
v9 = *((double *)a2 + 101);
*((float *)a2 + 142) = *((float *)a2 + 142) + a3;
*((double *)a2 + 101) = v9 + a3;
}
return (*(int (__fastcall **)(GJBaseGameLayer *, GameObject *))(*(_DWORD *)this + 684))(this, a2);
}
*((double *)a2 + 102) = *((double *)a2 + 102) + a4;
*((float *)a2 + 143) = *((float *)a2 + 143) + a4;
GameObject::dirtifyObjectPos((int)a2);
GameObject::dirtifyObjectRect((int)a2);
if ( a3 != 0.0 )
goto LABEL_4;
return (*(int (__fastcall **)(GJBaseGameLayer *, GameObject *))(*(_DWORD *)this + 684))(this, a2);
}