//
// GJBaseGameLayer::triggerRotateCommand from 0x9be700 to 0x9be890 (400 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x89813c
// > ??> @ 0xb8b58
//
// 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:28 +0000
//
__int64 __fastcall GJBaseGameLayer::triggerRotateCommand(cocos2d::CCDictionary **this, EnhancedTriggerObject *a2)
{
float v4; // s0
__int64 v5; // x22
GameObject *v6; // x0
GameObject *Object; // [xsp+40h] [xbp+30h]
GameObject *v9; // [xsp+48h] [xbp+38h]
GameObject *v10; // [xsp+50h] [xbp+40h]
__int64 v11; // [xsp+58h] [xbp+48h]
float v12; // [xsp+60h] [xbp+50h]
__int64 v13; // [xsp+60h] [xbp+50h]
__int64 v14; // [xsp+70h] [xbp+60h] BYREF
__int64 v15; // [xsp+78h] [xbp+68h] BYREF
__int64 v16; // [xsp+80h] [xbp+70h] BYREF
v4 = *((float *)a2 + 386) + (float)((float)*((int *)a2 + 387) * 360.0);
if ( !*((_BYTE *)a2 + 1536) || *((float *)a2 + 363) == 0.0 )
{
if ( *((_BYTE *)a2 + 1508) || *((_BYTE *)a2 + 1525) )
{
v12 = *((float *)a2 + 386) + (float)((float)*((int *)a2 + 387) * 360.0);
GJBaseGameLayer::getRotateCommandTargets(this, (__int64)a2, &v15, &v16, &v14);
v5 = v15;
v4 = v12;
if ( v15 )
{
v13 = v14;
if ( v14 )
{
v11 = v16;
if ( v16 )
{
Object = (GameObject *)GJBaseGameLayer::tryGetObject(this, *((_DWORD *)a2 + 460));
v9 = (GameObject *)GJBaseGameLayer::tryGetObject(this, *((_DWORD *)a2 + 461));
v10 = (GameObject *)GJBaseGameLayer::tryGetObject(this, *((_DWORD *)a2 + 462));
v6 = (GameObject *)GJBaseGameLayer::tryGetObject(this, *((_DWORD *)a2 + 463));
getRotateCommandAngleDelta((__int64)a2, v5, v11, v13, Object, v9, v10, v6);
}
}
}
}
goto LABEL_10;
}
if ( !*((_BYTE *)a2 + 1508) && !*((_BYTE *)a2 + 1525) )
{
LABEL_10:
GJEffectManager::createRotateCommand(
*(this + 269),
v4,
*((float *)a2 + 363),
*((_DWORD *)a2 + 366),
*((_DWORD *)a2 + 367),
*((_DWORD *)a2 + 374),
*((float *)a2 + 375),
*((_BYTE *)a2 + 1552),
0,
0,
*((_DWORD *)a2 + 229),
*((_DWORD *)a2 + 418));
return _stack_chk_guard;
}
GJBaseGameLayer::triggerDynamicRotateCommand((__int64)this, a2);
return _stack_chk_guard;
}