//
// GJBaseGameLayer::getMoveTargetDelta from 0x100286f30 to 0x10028704c (284 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x10028a370
//
// This function is hookable on this platform (idp: arm, 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:01:58 +0000
//
float32x2_t __usercall GJBaseGameLayer::getMoveTargetDelta@(
__int64 a1@,
__int64 a2@,
int a3@,
float32x2_t *a4@)
{
__int64 v8; // x1
__int64 MainObject; // x0
_DWORD *v10; // x20
_DWORD *Object; // x0
float32x2_t result; // d0
__int64 v13; // x1
float32x2_t v14; // [xsp+0h] [xbp-40h] BYREF
float32x2_t v15; // [xsp+8h] [xbp-38h] BYREF
v8 = *(unsigned int *)(a2 + 1528);
if ( (int)v8 <= 0 )
v8 = *(unsigned int *)(a2 + 1464);
if ( a3 )
MainObject = GJBaseGameLayer::tryGetMainObject(a1, v8);
else
MainObject = GJBaseGameLayer::tryGetObject(a1, v8);
v10 = (_DWORD *)MainObject;
if ( (*(_BYTE *)(a2 + 1684) & 1) != 0 )
{
LABEL_7:
Object = *(_DWORD **)(a1 + 3256);
goto LABEL_8;
}
if ( *(_BYTE *)(a2 + 1685) == 1 )
{
if ( (*(_BYTE *)(a1 + 1010) & 1) != 0 )
{
Object = *(_DWORD **)(a1 + 3264);
goto LABEL_8;
}
goto LABEL_7;
}
v13 = *(unsigned int *)(a2 + 1468);
if ( a3 )
Object = (_DWORD *)GJBaseGameLayer::tryGetMainObject(a1, v13);
else
Object = (_DWORD *)GJBaseGameLayer::tryGetObject(a1, v13);
LABEL_8:
if ( v10 && Object && v10[229] != Object[229] )
{
(*(void (__fastcall **)(float32x2_t *__return_ptr))(*(_QWORD *)Object + 1360LL))(&v15);
(*(void (__fastcall **)(float32x2_t *__return_ptr, _DWORD *))(*(_QWORD *)v10 + 1360LL))(&v14, v10);
return sub_10002632C(&v15, &v14, a4);
}
else
{
*(double *)&result = sub_1000262F4(a4, (double *)&qword_1009F5820);
}
return result;
}