//
// GJBaseGameLayer::getRotateCommandTargets from 0x1001159a0 to 0x100115a3e (158 bytes)
//
// 0 xrefs:
//
// 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 12:24:33 +0000
//
__int64 __fastcall GJBaseGameLayer::getRotateCommandTargets(
__int64 a1,
__int64 a2,
__int64 *a3,
__int64 *a4,
__int64 *a5,
__m128 a6)
{
int v9; // esi
__int64 result; // rax
v9 = *(_DWORD *)(a2 + 1468);
if ( !v9 )
v9 = *(_DWORD *)(a2 + 1464);
*a3 = GJBaseGameLayer::tryGetObject(a1, v9, a6);
*a4 = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1464), a6);
if ( *(_BYTE *)(a2 + 1684) )
goto LABEL_4;
if ( *(_BYTE *)(a2 + 1685) != 1 )
{
result = GJBaseGameLayer::tryGetObject(a1, *(_DWORD *)(a2 + 1556), a6);
goto LABEL_9;
}
if ( !*(_BYTE *)(a1 + 1010) )
LABEL_4:
result = *(_QWORD *)(a1 + 3256);
else
result = *(_QWORD *)(a1 + 3264);
LABEL_9:
*a5 = result;
return result;
}