//
// GameObject::setRotationX from 0x1005bbff0 to 0x1005bc0a4 (180 bytes)
//
// 47 xrefs:
// > ParticleGameObject::setRotationX @ 0x1001b2749
// > ??> @ 0x1008c41d0
// > ??> @ 0x1008c4a08
// > ??> @ 0x1008c5200
// > ??> @ 0x1008c59f8
// > ??> @ 0x1008c61f0
// > ??> @ 0x1008c69e8
// > ??> @ 0x1008c71e0
// > ??> @ 0x1008c79d8
// > ??> @ 0x1008c89d0
// > ??> @ 0x1008c9248
// > ??> @ 0x1008c9a58
// > ??> @ 0x1008ca268
// > ??> @ 0x1008caa78
// > ??> @ 0x1008cb288
// > ??> @ 0x1008cba98
// > ??> @ 0x1008cc2a8
// > ??> @ 0x1008ccab8
// > ??> @ 0x1008cd2c8
// > ??> @ 0x1008cdad8
// > ??> @ 0x1008ce300
// > ??> @ 0x1008ceb58
// > ??> @ 0x1008cf380
// > ??> @ 0x1008cfba8
// > ??> @ 0x1008d03d0
// > ??> @ 0x1008d0bf8
// > ??> @ 0x1008d1408
// > ??> @ 0x1008d1c18
// > ??> @ 0x1008d2428
// > ??> @ 0x1008d2c38
// > ??> @ 0x1008d3448
// > ??> @ 0x1008d3c58
// > ??> @ 0x1008d4468
// > ??> @ 0x1008d4c78
// > ??> @ 0x1008d5488
// > ??> @ 0x1008d5c98
// > ??> @ 0x1008d64a8
// > ??> @ 0x1008d6cb8
// > ??> @ 0x1008d74c8
// > ??> @ 0x1008d7cd8
// > ??> @ 0x1008d84e8
// > ??> @ 0x1008d8cf8
// > ??> @ 0x1009234a0
// > ??> @ 0x100933868
// > ??> @ 0x100971550
// > ??> @ 0x100971d38
// > ??> @ 0x100972548
//
// 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 __fastcall GameObject::setRotationX(GameObject *a1, float a2)
{
cocos2d::CCSprite *m_glowSprite; // rdi
cocos2d::CCSprite *m_colorSprite; // rdi
cocos2d::CCParticleSystemQuad *m_particle; // rdi
if ( a1->m_fRotationX != a2 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
CCSpritePlus::setRotationX(a1, a2);
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *, float))m_glowSprite->setRotationX)(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *, float))m_colorSprite->setRotationX)(m_colorSprite, a2);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( !a1->m_particleLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))m_particle->setRotationX)(m_particle, a2);
}
a1->m_isRotationAligned = _mm_movemask_ps(
_mm_cmpeq_ps(
_mm_shuffle_ps(
(__m128)LODWORD(a1->m_fRotationX),
(__m128)LODWORD(a1->m_fRotationX),
0),
(__m128)xmmword_10081F3E0)) != 0;
}
}