//
// GJBaseGameLayer::getRotateCommandTargets from 0x9a3344 to 0x9a33fc (184 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x9be450
// > GJBaseGameLayer::triggerRotateCommand @ 0x9be78c
// > ??> @ 0x41c20
//
// 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 12:58:08 +0000
//
__int64 __fastcall GJBaseGameLayer::getRotateCommandTargets(
cocos2d::CCDictionary **this,
__int64 a2,
__int64 *a3,
__int64 *a4,
_QWORD *a5)
{
int v7; // w1
__int64 result; // x0
v7 = *(_DWORD *)(a2 + 1468);
if ( !v7 )
v7 = *(_DWORD *)(a2 + 1464);
*a3 = GJBaseGameLayer::tryGetObject(this, v7);
*a4 = GJBaseGameLayer::tryGetObject(this, *(_DWORD *)(a2 + 1464));
if ( *(_BYTE *)(a2 + 1684) )
goto LABEL_6;
if ( *(_BYTE *)(a2 + 1685) )
{
if ( !*((_BYTE *)this + 1010) )
{
LABEL_6:
result = (__int64)*(this + 407);
*a5 = result;
return result;
}
result = (__int64)*(this + 408);
*a5 = result;
}
else
{
result = GJBaseGameLayer::tryGetObject(this, *(_DWORD *)(a2 + 1556));
*a5 = result;
}
return result;
}