//
// ParticleGameObject::updateParticleAngle from 0x140642bf0 to 0x140642d18 (296 bytes)
//
// 12 xrefs:
// > ParticleGameObject::applyParticleSettings @ 0x14064205e
// > ParticleGameObject::updateParticle @ 0x140642648
// > ParticleGameObject::updateParticle @ 0x140642686
// > ParticleGameObject::setRotation @ 0x140642938
// > ParticleGameObject::setRotationX @ 0x140642aa9
// > ParticleGameObject::setRotationY @ 0x140642bd8
// > ParticleGameObject::setScaleX @ 0x140642d65
// > ParticleGameObject::setScaleY @ 0x140642de5
// > ParticleGameObject::setScale @ 0x140642e65
// > ??> @ 0x1408e8490
// > ??> @ 0x1408e84a0
// > ??> @ 0x140931160
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:35:35 +0000
//
void __fastcall ParticleGameObject::updateParticleAngle(_BYTE *a1, __int64 a2, float *a3)
{
float v5; // xmm7_4
float v6; // xmm6_4
float v7; // xmm0_4
__int64 v8; // rax
_BYTE v9[16]; // [rsp+20h] [rbp-38h] BYREF
float X; // [rsp+70h] [rbp+18h] BYREF
float Y; // [rsp+74h] [rbp+1Ch]
char v12; // [rsp+78h] [rbp+20h] BYREF
if ( a3 )
{
if ( a1[828]
&& ((*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1272LL))(a1)
|| (*(unsigned __int8 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1280LL))(a1)) )
{
v5 = a3[192] * 0.017453292;
v6 = sinf(v5);
v7 = cosf(v5);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&X, v7, v6);
cocos2d::CCNode::convertToWorldSpace(a1, v9, v8);
cocos2d::CCNode::convertToWorldSpace(a1, &v12, &unk_14090BDD8);
cocos2d::CCPoint::operator-(v9, &X, &v12);
atan2f(Y, X);
(*(void (__fastcall **)(float *))(*(_QWORD *)a3 + 1000LL))(a3);
}
else
{
(*(void (__fastcall **)(float *))(*(_QWORD *)a3 + 1000LL))(a3);
}
}
}