//
// GJEffectManager::createRotateCommand from 0x140366c70 to 0x140366d96 (294 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326fe8
// > ??> @ 0x1409217a0
//
// 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:55 +0000
//
__int64 __fastcall GJEffectManager::createRotateCommand(
__int64 a1,
float a2,
float a3,
int a4,
int a5,
int a6,
float a7,
unsigned __int8 a8,
__int64 a9,
__int64 a10,
int a11,
int a12)
{
__int64 v14; // rcx
__int64 result; // rax
if ( *(_QWORD *)(a1 + 1560) == *(_QWORD *)(a1 + 1568) )
{
sub_140374400(a1 + 1552);
}
else
{
GroupCommandObject2::GroupCommandObject2(*(_QWORD **)(a1 + 1560));
*(_QWORD *)(a1 + 1560) += 520LL;
}
v14 = *(_QWORD *)(a1 + 1560);
*(_DWORD *)(v14 - 476) = a5;
*(_DWORD *)(v14 - 176) = a11;
*(double *)(v14 - 496) = a3;
*(_DWORD *)(v14 - 172) = a12;
*(_DWORD *)(v14 - 508) = a6;
result = a8;
*(_DWORD *)(v14 - 480) = a4;
*(_DWORD *)(v14 - 312) = 1;
*(_BYTE *)(v14 - 336) = a8;
*(_DWORD *)(v14 - 332) = 0;
*(double *)(v14 - 504) = a7;
*(double *)(v14 - 344) = a2;
if ( a2 == 0.0 )
{
*(_BYTE *)(v14 - 408) = 1;
*(_BYTE *)(v14 - 406) = 1;
}
else
{
*(double *)(v14 - 112) = a2;
*(_DWORD *)(v14 - 120) = 3;
}
return result;
}