//
// GameObject::setRotationX from 0x641944 to 0x641a4c (264 bytes)
//
// 48 xrefs:
// > ParticleGameObject::setRotationX @ 0x7554dc
// > ??> @ 0x49680
// > ??> @ 0x1152848
// > ??> @ 0x1153618
// > ??> @ 0x1153de8
// > ??> @ 0x11545e8
// > ??> @ 0x1161f98
// > ??> @ 0x1162798
// > ??> @ 0x1162f98
// > ??> @ 0x1163798
// > ??> @ 0x1163f98
// > ??> @ 0x1164798
// > ??> @ 0x1164f98
// > ??> @ 0x1165798
// > ??> @ 0x1166768
// > ??> @ 0x1166f68
// > ??> @ 0x1167768
// > ??> @ 0x1167f68
// > ??> @ 0x11687a8
// > ??> @ 0x1168fa8
// > ??> @ 0x11697a8
// > ??> @ 0x1169fa8
// > ??> @ 0x116a7a8
// > ??> @ 0x116afb8
// > ??> @ 0x116b7b8
// > ??> @ 0x116bfb8
// > ??> @ 0x116c7b8
// > ??> @ 0x116cfb8
// > ??> @ 0x116d7b8
// > ??> @ 0x116dfb8
// > ??> @ 0x116e7b8
// > ??> @ 0x116efb8
// > ??> @ 0x116f7b8
// > ??> @ 0x116ffb8
// > ??> @ 0x11707b8
// > ??> @ 0x1170fb8
// > ??> @ 0x11717b8
// > ??> @ 0x1171fb8
// > ??> @ 0x11727b8
// > ??> @ 0x1172fb8
// > ??> @ 0x11737b8
// > ??> @ 0x1173fb8
// > ??> @ 0x11747b8
// > ??> @ 0x1174fb8
// > ??> @ 0x11757b8
// > ??> @ 0x1175fb8
// > ??> @ 0x11767b8
// > ??> @ 0x1176fd8
//
// 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)
{
cocos2d::CCSprite *m_glowSprite; // x0
cocos2d::CCSprite *m_colorSprite; // x0
cocos2d::CCParticleSystemQuad *m_particle; // x0
float m_fRotationX; // s0
if ( a1->m_fRotationX != a2 )
{
a1->m_isObjectRectDirty = 1;
a1->m_isOrientedBoxDirty = 1;
a1->m_isDirty = 1;
CCSpritePlus::setRotationX(a1, a2);
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
m_glowSprite->setRotationX(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
m_colorSprite->setRotationX(m_colorSprite, a2);
m_particle = a1->m_particle;
if ( m_particle && !a1->m_particleLocked )
m_particle->setRotationX(m_particle, a2);
m_fRotationX = a1->m_fRotationX;
a1->m_isRotationAligned = m_fRotationX == 270.0
|| m_fRotationX == 90.0
|| m_fRotationX == -90.0
|| m_fRotationX == -270.0;
}
}