//
// sub_1800037E0 from 0x1800037e0 to 0x180003874 (148 bytes)
//
// 8 xrefs:
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dcd
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003dde
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003df4
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x180003e05
// > cocos2d::CCParticleSystem::initParticle @ 0x180068b1d
// > cocos2d::CCParticleSystem::initParticle @ 0x180068b28
// > cocos2d::CCParticleSystem::initParticle @ 0x180068dc4
// > cocos2d::CCParticleSystem::initParticle @ 0x180068dcf
//
// 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:21:17 +0000
//
__m128 __fastcall sub_1800037E0(int a1)
{
int v1; // r8d
unsigned int v2; // r9d
unsigned __int8 v3; // cl
unsigned __int8 v4; // dl
unsigned __int8 v5; // cl
__m128 result; // xmm0
char v7; // cl
v1 = -a1;
if ( a1 > 0 )
v1 = a1;
v2 = (unsigned int)a1 >> 31;
if ( v1 >= 360 )
v1 %= 360;
v3 = v1 + 76;
if ( v1 <= 180 )
v3 = v1;
v4 = v3;
v5 = -76 - v3;
if ( v4 <= 0x5Au )
v5 = v4;
result = (__m128)dword_1800EB890[v5];
v7 = v2;
if ( v1 <= 180 )
v7 = v2 ^ 1;
if ( !v7 )
return _mm_xor_ps(result, (__m128)xmmword_1800EC220);
return result;
}