//
// ParticleGameObject::updateParticleAngle from 0x4e76e0 to 0x4e77c0 (224 bytes)
//
// 6 xrefs:
// > ParticleGameObject::applyParticleSettings @ 0x4e786a
// > ParticleGameObject::setRotation @ 0x4e7b48
// > ParticleGameObject::setRotationX @ 0x4e7b72
// > ParticleGameObject::setRotationY @ 0x4e7b9c
// > ParticleGameObject::updateParticleScale @ 0x4e7bc4
// > ParticleGameObject::updateParticle @ 0x4e7c56
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:51:06 +0000
//
const cocos2d::CCPoint *__fastcall ParticleGameObject::updateParticleAngle(
const cocos2d::CCPoint *this,
float a2,
cocos2d::CCParticleSystemQuad *a3)
{
const cocos2d::CCPoint *v3; // r5
float v6; // s16
float v7; // r8
float v8; // r0
float v9; // r0
_BYTE v10[8]; // [sp+4h] [bp-20h] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-18h] BYREF
float x[2]; // [sp+14h] [bp-10h] BYREF
v3 = this;
if ( a3 )
{
if ( *((_BYTE *)this + 688)
&& ((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)this + 712))(this)
|| (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v3 + 716))(v3)) )
{
v6 = *((float *)a3 + 169) * 0.017453;
v7 = cosf(v6);
v8 = sinf(v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)x, v7, v8);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v10, v3);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v11, v3);
cocos2d::CCPoint::operator-(x, v10, v11);
v9 = atan2f(x[1], x[0]);
return (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCParticleSystemQuad *, _DWORD))(*(_DWORD *)a3 + 504))(
a3,
v9 * 57.296);
}
else
{
return (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCParticleSystemQuad *, _DWORD))(*(_DWORD *)a3 + 504))(
a3,
*((float *)a3 + 169) - a2);
}
}
return this;
}