//
// GJBaseGameLayer::moveAreaObject from 0x140333700 to 0x1403337e1 (225 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::transformAreaObjects @ 0x1403326dd
// > GJBaseGameLayer::rotateAreaObjects @ 0x140333027
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x140333554
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1403335fb
// > ??> @ 0x14091f7cc
//
// 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:33 +0000
//
char __fastcall GJBaseGameLayer::moveAreaObject(__int64 a1, __int64 a2, float a3, float a4)
{
char result; // al
bool v7; // zf
double v8; // xmm0_8
result = GJBaseGameLayer::resetAreaObjectValues(a1, a2, 1);
if ( a3 == 0.0 )
{
v7 = a4 == 0.0;
if ( a4 == 0.0 )
{
if ( !result )
return result;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1216LL))(a1, a2);
}
}
else
{
v7 = a4 == 0.0;
}
if ( !v7 )
{
v8 = a4 + *(double *)(a2 + 960);
*(float *)(a2 + 676) = a4 + *(float *)(a2 + 676);
*(double *)(a2 + 960) = v8;
}
*(_WORD *)(a2 + 849) = 257;
*(_WORD *)(a2 + 872) = 257;
if ( a3 != 0.0 && !*(_BYTE *)(a2 + 712) )
{
*(float *)(a2 + 672) = a3 + *(float *)(a2 + 672);
*(double *)(a2 + 952) = a3 + *(double *)(a2 + 952);
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1216LL))(a1, a2);
}