//
// GameObject::setRotationX from 0x140197f50 to 0x140198095 (325 bytes)
//
// 49 xrefs:
// > ??> @ 0x140556510
// > ??> @ 0x140556c80
// > ??> @ 0x14055dcb8
// > ??> @ 0x14055e338
// > ??> @ 0x1405c83d0
// > ??> @ 0x14060deb0
// > ??> @ 0x14060e5d0
// > ??> @ 0x14060ee08
// > ??> @ 0x14060f4b0
// > ??> @ 0x14060fb80
// > ??> @ 0x140610238
// > ??> @ 0x140610980
// > ??> @ 0x1406111e0
// > ??> @ 0x140611918
// > ??> @ 0x140612100
// > ??> @ 0x1406127a8
// > ??> @ 0x140612e50
// > ??> @ 0x1406135c0
// > ??> @ 0x140613c68
// > ??> @ 0x140614450
// > ??> @ 0x140614c88
// > ??> @ 0x1406153d0
// > ??> @ 0x140615a78
// > ??> @ 0x1406161c0
// > ??> @ 0x140616980
// > ??> @ 0x140617028
// > ??> @ 0x1406176d0
// > ??> @ 0x140617e40
// > ??> @ 0x1406184e8
// > ??> @ 0x140618c30
// > ??> @ 0x1406196d0
// > ??> @ 0x140619d78
// > ??> @ 0x14061a420
// > ??> @ 0x14061ab40
// > ??> @ 0x14061b1e8
// > ??> @ 0x14061b930
// > ??> @ 0x14061c0c8
// > ??> @ 0x14061c770
// > ??> @ 0x14061ce18
// > ??> @ 0x14061d4c0
// > ??> @ 0x14061db68
// > ??> @ 0x14061e210
// > ??> @ 0x14061e8b8
// > ??> @ 0x14061f0c8
// > ??> @ 0x14061f860
// > ??> @ 0x140678de8
// > ??> @ 0x140678df8
// > ??> @ 0x1406cbafc
// > ??> @ 0x1406cbb08
//
// 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 GameObject::setRotationX(GameObject *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
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;
}
}