//
// ParticleGameObject::setRotationX from 0x1404a0c10 to 0x1404a0d78 (360 bytes)
//
// 5 xrefs:
// > ??> @ 0x14060d560
// > ??> @ 0x1406a79d8
// > ??> @ 0x1406a7a0c
// > ??> @ 0x1406dc56c
// > ??> @ 0x1406dc578
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ParticleGameObject::setRotationX(ParticleGameObject *a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCParticleSystemQuad *m_particle; // rcx
float m_fRotationX; // xmm0_4
float v9; // xmm0_4
if ( a1->m_fRotationX != a2 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
cocos2d::CCSprite::setRotationX(a1, a2);
if ( a1->m_hasFollower )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
((void (__fastcall *)(struct cocos2d::CCObject *))v4->__vftable[4].setTag)(v4);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setRotationX)(m_glowSprite);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setRotationX)(m_colorSprite);
m_particle = a1->m_particle;
if ( m_particle && !a1->m_particleLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRotationX)(m_particle);
m_fRotationX = a1->m_fRotationX;
a1->m_isRotationAligned = m_fRotationX == 90.0
|| m_fRotationX == -90.0
|| m_fRotationX == 270.0
|| m_fRotationX == -270.0;
}
if ( a1->m_particleLocked )
{
v9 = a1->getRotation(a1);
ParticleGameObject::updateParticleAngle(a1, v9, a1->m_particle);
}
}