//
// GJBaseGameLayer::getRotateCommandTargets from 0x5927c0 to 0x592820 (96 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x5a2344
// > GJBaseGameLayer::triggerRotateCommand @ 0x5a259a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:07 +0000
//
int __fastcall GJBaseGameLayer::getRotateCommandTargets(
cocos2d::CCDictionary **this,
int a2,
int *a3,
_DWORD *a4,
_DWORD *a5)
{
int v6; // r1
int result; // r0
int v10; // r3
v6 = *(_DWORD *)(a2 + 1288);
if ( !v6 )
v6 = *(_DWORD *)(a2 + 1284);
*a3 = GJBaseGameLayer::tryGetObject(this, v6);
result = GJBaseGameLayer::tryGetObject(this, *(_DWORD *)(a2 + 1284));
*a4 = result;
if ( *(_BYTE *)(a2 + 1504) )
goto LABEL_6;
if ( *(_BYTE *)(a2 + 1505) )
{
if ( *((_BYTE *)this + 866) )
{
v10 = (int)*(this + 520);
goto LABEL_8;
}
LABEL_6:
v10 = (int)*(this + 519);
LABEL_8:
*a5 = v10;
return result;
}
result = GJBaseGameLayer::tryGetObject(this, *(_DWORD *)(a2 + 1376));
*a5 = result;
return result;
}