//
// ParticleGameObject::setRotationY from 0x140642ac0 to 0x140642be8 (296 bytes)
//
// 4 xrefs:
// > ??> @ 0x14081ee40
// > ??> @ 0x1408e845c
// > ??> @ 0x1408e846c
// > ??> @ 0x14093113c
//
// 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:35:35 +0000
//
double __fastcall ParticleGameObject::setRotationY(__int64 a1, float a2)
{
double result; // xmm0_8
unsigned int i; // ebx
struct cocos2d::CCObject *v5; // rax
__int64 v6; // rcx
__int64 v7; // rcx
__int64 v8; // rcx
__int64 v9; // rbx
__int64 v10; // rdx
*(_QWORD *)&result = *(unsigned int *)(a1 + 60);
if ( *(float *)&result != a2 )
{
*(_WORD *)(a1 + 872) = 257;
*(_BYTE *)(a1 + 848) = 1;
cocos2d::CCSprite::setRotationY((cocos2d::CCSprite *)a1, a2);
if ( *(_BYTE *)(a1 + 616) )
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), i);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 384LL))(v5);
}
}
v6 = *(_QWORD *)(a1 + 752);
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 384LL))(v6);
v7 = *(_QWORD *)(a1 + 896);
if ( v7 && !*(_BYTE *)(a1 + 874) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 384LL))(v7);
v8 = *(_QWORD *)(a1 + 776);
if ( v8 && !*(_BYTE *)(a1 + 1072) )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 384LL))(v8);
}
if ( *(_BYTE *)(a1 + 1072) )
{
v9 = *(_QWORD *)(a1 + 776);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 360LL))(a1);
return ParticleGameObject::updateParticleAngle(a1, v10, v9);
}
return result;
}