//
// isin from 0x7c43a0 to 0x7c43fa (90 bytes)
//
// 8 xrefs:
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x7c447c
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x7c4486
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x7c449a
// > cocos2d::CCNode::nodeToParentTransformFast @ 0x7c44a4
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3940
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3948
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3aee
// > cocos2d::CCParticleSystem::initParticle @ 0x7e3af6
//
// 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 12:00:23 +0000
//
int __fastcall isin(int a1)
{
bool v1; // nf
int v2; // r4
bool v3; // cc
int v4; // r0
float v5; // s15
v1 = a1 < 0;
if ( a1 < 0 )
a1 = -a1;
v2 = !v1;
if ( a1 >= 360 )
a1 %= 360;
v3 = a1 <= 180;
if ( a1 <= 180 )
a1 = (unsigned __int8)a1;
else
a1 += 76;
if ( !v3 )
{
v2 ^= 1u;
a1 = (unsigned __int8)a1;
}
if ( (unsigned int)a1 > 0x5A )
a1 = (unsigned __int8)(-76 - a1);
v4 = 2 * a1;
if ( v2 )
v5 = *(float *)&word_BF25F4[v4 + 2];
else
v5 = -*(float *)&word_BF25F4[v4 + 2];
return LODWORD(v5);
}