//
// GJBaseGameLayer::triggerRotateCommand from 0x140326d90 to 0x140326ffe (622 bytes)
//
// 5 xrefs:
// > EffectGameObject::triggerObject @ 0x140648370
// > ??> @ 0x1408b5b64
// > ??> @ 0x1408b5ba4
// > ??> @ 0x14091efa4
// > ??> @ 0x14091efb0
//
// 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 11:30:27 +0000
//
__int64 __fastcall GJBaseGameLayer::triggerRotateCommand(__int64 a1, __int64 a2, int a3)
{
__int64 Object; // rbx
__int64 v7; // rax
__int64 v8; // r12
__int64 v9; // r14
__int64 v10; // rsi
__int64 v11; // rbx
__int64 v12; // rax
__int64 v13; // [rsp+B8h] [rbp+10h]
__int64 v14; // [rsp+C0h] [rbp+18h]
if ( *(_BYTE *)(a2 + 1552) && *(float *)(a2 + 1468) != 0.0 && (*(_BYTE *)(a2 + 1524) || *(_BYTE *)(a2 + 1541)) )
return GJBaseGameLayer::triggerDynamicRotateCommand();
if ( *(_BYTE *)(a2 + 1524) || *(_BYTE *)(a2 + 1541) )
{
Object = GJBaseGameLayer::tryGetObject(a1);
v14 = Object;
v7 = GJBaseGameLayer::tryGetObject(a1);
v13 = v7;
if ( !*(_BYTE *)(a2 + 1700) )
{
if ( !*(_BYTE *)(a2 + 1701) )
{
v8 = GJBaseGameLayer::tryGetObject(a1);
v7 = v13;
LABEL_14:
if ( Object && v8 )
{
if ( v7 )
{
v9 = GJBaseGameLayer::tryGetObject(a1);
v10 = GJBaseGameLayer::tryGetObject(a1);
v11 = GJBaseGameLayer::tryGetObject(a1);
v12 = GJBaseGameLayer::tryGetObject(a1);
sub_140326AB0(a2, v14, v13, v8, v12, v11, v10, v9);
}
}
return GJEffectManager::createRotateCommand(
*(_QWORD *)(a1 + 2408),
a2,
a3,
*(_DWORD *)(a2 + 1480),
*(_DWORD *)(a2 + 1484),
*(_DWORD *)(a2 + 1512),
*(_DWORD *)(a2 + 1516),
*(_BYTE *)(a2 + 1568));
}
if ( *(_BYTE *)(a1 + 1058) )
{
v8 = *(_QWORD *)(a1 + 3520);
goto LABEL_14;
}
}
v8 = *(_QWORD *)(a1 + 3512);
goto LABEL_14;
}
return GJEffectManager::createRotateCommand(
*(_QWORD *)(a1 + 2408),
a2,
a3,
*(_DWORD *)(a2 + 1480),
*(_DWORD *)(a2 + 1484),
*(_DWORD *)(a2 + 1512),
*(_DWORD *)(a2 + 1516),
*(_BYTE *)(a2 + 1568));
}