//
// GJBaseGameLayer::getRotateCommandTargets from 0x10028a7b8 to 0x10028a858 (160 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerRotateCommand @ 0x10028acf8
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10028adf8
//
// 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:59 +0000
//
__int64 __fastcall GJBaseGameLayer::getRotateCommandTargets(
__int64 a1,
__int64 a2,
__int64 *a3,
__int64 *a4,
__int64 *a5)
{
int v9; // w1
__int64 result; // x0
v9 = *(_DWORD *)(a2 + 1468);
if ( !v9 )
v9 = *(_DWORD *)(a2 + 1464);
*a3 = GJBaseGameLayer::tryGetObject(a1, v9);
*a4 = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1464));
if ( (*(_BYTE *)(a2 + 1684) & 1) != 0 )
goto LABEL_4;
if ( *(_BYTE *)(a2 + 1685) != 1 )
{
result = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1556));
goto LABEL_9;
}
if ( (*(_BYTE *)(a1 + 1010) & 1) == 0 )
LABEL_4:
result = *(_QWORD *)(a1 + 3256);
else
result = *(_QWORD *)(a1 + 3264);
LABEL_9:
*a5 = result;
return result;
}