//
// GJBaseGameLayer::moveAreaObject from 0x47cf74 to 0x47d026 (178 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::transformAreaObjects @ 0x47d228
// > GJBaseGameLayer::rotateAreaObjects @ 0x47d8a4
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x47dcf2
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x47df14
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::moveAreaObject(GJBaseGameLayer *a1, GameObject *a2, float a3, float a4)
{
_BOOL4 v8; // r0
double m_positionX; // d6
v8 = GJBaseGameLayer::resetAreaObjectValues(a1, a2, 1);
if ( a3 == 0.0 )
{
if ( a4 == 0.0 )
{
if ( !v8 )
return;
goto LABEL_7;
}
}
else if ( a4 == 0.0 )
{
GameObject::dirtifyObjectPos(a2);
GameObject::dirtifyObjectRect(a2);
LABEL_4:
if ( !a2->m_tempOffsetXRelated )
{
m_positionX = a2->m_positionX;
a2->m_positionXOffset = a2->m_positionXOffset + a3;
a2->m_positionX = m_positionX + a3;
}
goto LABEL_7;
}
a2->m_positionY = a2->m_positionY + a4;
a2->m_positionYOffset = a2->m_positionYOffset + a4;
GameObject::dirtifyObjectPos(a2);
GameObject::dirtifyObjectRect(a2);
if ( a3 != 0.0 )
goto LABEL_4;
LABEL_7:
a1->updateObjectSection(a1, a2);
}