//
// ParticleGameObject::updateParticleAngle from 0x754e8c to 0x754fe4 (344 bytes)
//
// 7 xrefs:
// > ParticleGameObject::applyParticleSettings @ 0x7550f4
// > ParticleGameObject::setRotation @ 0x7554c8
// > ParticleGameObject::setRotationX @ 0x755514
// > ParticleGameObject::setRotationY @ 0x755560
// > ParticleGameObject::updateParticleScale @ 0x755598
// > ParticleGameObject::updateParticle @ 0x755688
// > ??> @ 0xaab98
//
// 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::updateParticleAngle(ParticleGameObject *a1, float a2, cocos2d::CCParticleSystemQuad *a3)
{
float v5; // s8
float v6; // s9
float v7; // s0
float v8; // s0
bool v9; // w0
float v10; // [xsp+50h] [xbp+50h]
_BYTE v11[8]; // [xsp+60h] [xbp+60h] BYREF
_BYTE v12[8]; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCPoint x; // [xsp+70h] [xbp+70h] BYREF
if ( a3 )
{
if ( a1->m_isParticleSpriteLocked && ((v10 = a2, a1->isFlipX(a1)) || (v9 = a1->isFlipY(a1), a2 = v10, v9)) )
{
v5 = a3->m_fDefaultAngle * 0.017453;
v6 = cosf(v5);
v7 = sinf(v5);
cocos2d::CCPoint::CCPoint(&x, v6, v7);
cocos2d::CCNode::convertToWorldSpace(a1, &x);
cocos2d::CCNode::convertToWorldSpace(a1, &stru_1242458);
cocos2d::CCPoint::operator-(&x, v11, v12);
v8 = atan2f(x.y, x.x);
a3->setAngle(a3, v8 * 57.296);
}
else
{
a3->setAngle(a3, a3->m_fDefaultAngle - a2);
}
}
}